From 64fe775e9537a188a216af7a16d5ee024f0f5994 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 28 Jan 2025 14:49:49 +0000 Subject: [PATCH] Releasing version 3.56.0 --- CHANGELOG.md | 13 + bmc-accessgovernancecp/pom.xml | 4 +- 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-aianomalydetection/pom.xml | 4 +- bmc-aidocument/pom.xml | 4 +- bmc-ailanguage/pom.xml | 4 +- bmc-aispeech/pom.xml | 4 +- bmc-aivision/pom.xml | 4 +- bmc-analytics/pom.xml | 4 +- bmc-announcementsservice/pom.xml | 4 +- bmc-apigateway/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 328 +++---- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-core/pom.xml | 6 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- .../bmc/database/DatabaseAsyncClient.java | 1 + .../oracle/bmc/database/DatabaseClient.java | 1 + .../model/CloudExadataInfrastructure.java | 193 +++- .../CloudExadataInfrastructureSummary.java | 193 +++- .../bmc/database/model/CloudVmCluster.java | 111 ++- .../database/model/CloudVmClusterSummary.java | 111 ++- ...eateCloudExadataInfrastructureDetails.java | 88 +- .../CreateExadataInfrastructureDetails.java | 82 ++ .../oracle/bmc/database/model/DbServer.java | 111 ++- .../bmc/database/model/DbServerSummary.java | 111 ++- .../database/model/DbSystemShapeSummary.java | 187 ++++ .../database/model/ExadataInfrastructure.java | 194 +++- .../model/ExadataInfrastructureSummary.java | 194 +++- .../database/model/FlexComponentSummary.java | 342 ++++++- .../UpdateExadataInfrastructureDetails.java | 1 + .../oracle/bmc/database/model/VmCluster.java | 111 ++- .../bmc/database/model/VmClusterSummary.java | 111 ++- .../requests/ListFlexComponentsRequest.java | 40 +- .../oci-java-sdk-database/reflect-config.json | 72 ++ bmc-databasemanagement/pom.xml | 4 +- .../bmc/databasemanagement/DbManagement.java | 300 ++++++ .../databasemanagement/DbManagementAsync.java | 302 ++++++ .../DbManagementAsyncClient.java | 730 ++++++++++++++ .../DbManagementClient.java | 659 +++++++++++++ .../DbManagementPaginators.java | 255 +++++ .../DbManagementWaiters.java | 117 +++ .../ManagedMySqlDatabases.java | 43 + .../ManagedMySqlDatabasesAsync.java | 38 + .../ManagedMySqlDatabasesAsyncClient.java | 86 ++ .../ManagedMySqlDatabasesClient.java | 183 +++- .../ManagedMySqlDatabasesWaiters.java | 136 +++ .../model/AlertLogSummary.java | 2 + .../model/AttentionLogSummary.java | 2 + .../model/AwrDbSnapshotRangeSummary.java | 114 +++ .../model/AwrDbSummary.java | 114 +++ .../model/BaseDatabaseHaDetails.java | 563 +++++++++++ ...ExternalMySqlDatabaseConnectorDetails.java | 165 ++++ .../CreateExternalMySqlDatabaseDetails.java | 172 ++++ .../CreateMySqlDatabaseConnectorDetails.java | 415 ++++++++ .../model/DatabaseBackupMetrics.java | 806 ++++++++++++++++ .../model/DatabaseBackupSummary.java | 402 ++++++++ .../model/DatabaseFleetBackupMetrics.java | 136 +++ .../model/DatabaseFleetDataguardMetrics.java | 137 +++ .../model/DatabaseFleetHaOverviewMetrics.java | 134 +++ .../model/DatabaseHaBackupDetails.java | 801 ++++++++++++++++ .../model/DatabaseHaMetrics.java | 671 +++++++++++++ .../model/DatabaseHostedIn.java | 42 + .../model/DataguardMetrics.java | 721 ++++++++++++++ ...ExternalMysqlAssociatedServiceDetails.java | 212 +++++ ...ableExternalDatabaseManagementDetails.java | 134 +++ ...ExternalMysqlAssociatedServiceDetails.java | 212 +++++ ...ataInfrastructureLifecycleStateValues.java | 176 ++++ .../model/ExternalMySqlDatabase.java | 261 +++++ .../ExternalMySqlDatabaseCollection.java | 133 +++ .../model/ExternalMySqlDatabaseConnector.java | 895 ++++++++++++++++++ .../model/ExternalMySqlDatabaseSummary.java | 441 +++++++++ .../ExternalMysqlAssociatedServiceName.java | 39 + .../model/HaMetricDefinition.java | 319 +++++++ .../model/ManagedMySqlDatabase.java | 162 +++- .../model/ManagedMySqlDatabaseSummary.java | 124 ++- .../model/ManagementState.java | 53 ++ .../model/MySqlConnectorCollection.java | 133 +++ .../model/MySqlConnectorType.java | 52 + .../model/MySqlCredType.java | 54 ++ .../model/MySqlDataSummary.java | 120 +++ .../model/MySqlDatabaseConnectorSummary.java | 837 ++++++++++++++++ .../model/MySqlDeploymentType.java | 19 +- .../model/MySqlNetworkProtocolType.java | 54 ++ .../databasemanagement/model/MySqlType.java | 52 + .../StandByDatabaseDataguardMetrics.java | 401 ++++++++ ...ExternalMySqlDatabaseConnectorDetails.java | 165 ++++ .../UpdateExternalMySqlDatabaseDetails.java | 134 +++ .../UpdateMySqlDatabaseConnectorDetails.java | 415 ++++++++ .../model/WorkRequestOperationType.java | 5 + ...abaseConnectorConnectionStatusRequest.java | 304 ++++++ ...ExternalMySqlDatabaseConnectorRequest.java | 327 +++++++ .../CreateExternalMySqlDatabaseRequest.java | 284 ++++++ ...ExternalMySqlDatabaseConnectorRequest.java | 251 +++++ .../DeleteExternalMySqlDatabaseRequest.java | 245 +++++ ...xternalMySqlDatabaseManagementRequest.java | 301 ++++++ ...ExternalMysqlAssociatedServiceRequest.java | 383 ++++++++ ...xternalMySqlDatabaseManagementRequest.java | 369 ++++++++ ...ExternalMysqlAssociatedServiceRequest.java | 381 ++++++++ .../GetDatabaseFleetBackupMetricsRequest.java | 839 ++++++++++++++++ ...tDatabaseFleetDataguardMetricsRequest.java | 736 ++++++++++++++ ...DatabaseFleetHaOverviewMetricsRequest.java | 737 ++++++++++++++ .../GetDatabaseHaBackupDetailsRequest.java | 238 +++++ ...ExternalMySqlDatabaseConnectorRequest.java | 206 ++++ .../GetExternalMySqlDatabaseRequest.java | 199 ++++ .../requests/GetMySqlFleetMetricRequest.java | 38 +- .../ListExternalMySqlDatabasesRequest.java | 414 ++++++++ .../ListManagedMySqlDatabasesRequest.java | 37 +- .../ListMySqlDatabaseConnectorsRequest.java | 455 +++++++++ ...ExternalMysqlDatabaseConnectorRequest.java | 324 +++++++ .../UpdateExternalMysqlDatabaseRequest.java | 310 ++++++ ...baseConnectorConnectionStatusResponse.java | 188 ++++ ...xternalMySqlDatabaseConnectorResponse.java | 297 ++++++ .../CreateExternalMySqlDatabaseResponse.java | 291 ++++++ ...xternalMySqlDatabaseConnectorResponse.java | 188 ++++ .../DeleteExternalMySqlDatabaseResponse.java | 186 ++++ ...ternalMySqlDatabaseManagementResponse.java | 188 ++++ ...xternalMysqlAssociatedServiceResponse.java | 140 +++ ...ternalMySqlDatabaseManagementResponse.java | 188 ++++ ...xternalMysqlAssociatedServiceResponse.java | 140 +++ ...GetDatabaseFleetBackupMetricsResponse.java | 237 +++++ ...DatabaseFleetDataguardMetricsResponse.java | 238 +++++ ...atabaseFleetHaOverviewMetricsResponse.java | 239 +++++ .../GetDatabaseHaBackupDetailsResponse.java | 186 ++++ ...xternalMySqlDatabaseConnectorResponse.java | 227 +++++ .../GetExternalMySqlDatabaseResponse.java | 217 +++++ .../ListExternalMySqlDatabasesResponse.java | 238 +++++ .../ListMySqlDatabaseConnectorsResponse.java | 236 +++++ ...xternalMysqlDatabaseConnectorResponse.java | 271 ++++++ .../UpdateExternalMysqlDatabaseResponse.java | 217 +++++ .../reflect-config.json | 432 +++++++++ bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- bmc-datascience/pom.xml | 4 +- bmc-delegateaccesscontrol/pom.xml | 4 +- bmc-demandsignal/pom.xml | 4 +- bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- .../CreateDrProtectionGroupMemberDetails.java | 3 + ...rotectionGroupMemberOkeClusterDetails.java | 547 +++++++++++ .../model/CreateOkeBackupLocationDetails.java | 198 ++++ .../CreateOkeClusterBackupConfigDetails.java | 447 +++++++++ ...eOkeClusterLoadBalancerMappingDetails.java | 207 ++++ ...erManagedNodePoolConfigurationDetails.java | 208 ++++ ...sterNetworkLoadBalancerMappingDetails.java | 214 +++++ .../CreateOkeClusterVaultMappingDetails.java | 201 ++++ ...erVirtualNodePoolConfigurationDetails.java | 208 ++++ .../model/DrPlanStepType.java | 43 + .../model/DrProtectionGroupMember.java | 5 +- .../DrProtectionGroupMemberOkeCluster.java | 529 +++++++++++ .../model/DrProtectionGroupMemberType.java | 5 +- .../model/OkeBackupLocation.java | 241 +++++ .../model/OkeClusterBackupConfig.java | 375 ++++++++ .../model/OkeClusterImageReplication.java | 56 ++ .../model/OkeClusterLoadBalancerMapping.java | 206 ++++ ...keClusterManagedNodePoolConfiguration.java | 205 ++++ .../OkeClusterNetworkLoadBalancerMapping.java | 213 +++++ .../model/OkeClusterVaultMapping.java | 200 ++++ ...keClusterVirtualNodePoolConfiguration.java | 205 ++++ .../UpdateDrProtectionGroupMemberDetails.java | 3 + ...rotectionGroupMemberOkeClusterDetails.java | 547 +++++++++++ .../model/UpdateOkeBackupLocationDetails.java | 198 ++++ .../UpdateOkeClusterBackupConfigDetails.java | 375 ++++++++ ...eOkeClusterLoadBalancerMappingDetails.java | 207 ++++ ...erManagedNodePoolConfigurationDetails.java | 208 ++++ ...sterNetworkLoadBalancerMappingDetails.java | 214 +++++ .../UpdateOkeClusterVaultMappingDetails.java | 201 ++++ ...erVirtualNodePoolConfigurationDetails.java | 208 ++++ .../reflect-config.json | 342 +++++++ bmc-dns/pom.xml | 6 +- bmc-dts/pom.xml | 4 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 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-generativeai/pom.xml | 4 +- bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaiinference/pom.xml | 4 +- bmc-genericartifactscontent/pom.xml | 4 +- bmc-globallydistributeddatabase/pom.xml | 4 +- bmc-goldengate/pom.xml | 4 +- bmc-governancerulescontrolplane/pom.xml | 4 +- bmc-healthchecks/pom.xml | 4 +- bmc-identity/pom.xml | 4 +- bmc-identitydataplane/pom.xml | 4 +- bmc-identitydomains/pom.xml | 4 +- bmc-integration/pom.xml | 4 +- bmc-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- bmc-lockbox/pom.xml | 4 +- bmc-loganalytics/pom.xml | 4 +- bmc-logging/pom.xml | 4 +- bmc-loggingingestion/pom.xml | 4 +- bmc-loggingsearch/pom.xml | 4 +- bmc-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplaceprivateoffer/pom.xml | 4 +- bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- bmc-operatoraccesscontrol/pom.xml | 4 +- bmc-opsi/pom.xml | 4 +- .../oracle/bmc/opsi/OperationsInsights.java | 19 + .../bmc/opsi/OperationsInsightsAsync.java | 19 + .../opsi/OperationsInsightsAsyncClient.java | 44 + .../bmc/opsi/OperationsInsightsClient.java | 41 + ...ctionableInsightsContentTypesResource.java | 96 ++ ...MysqlDatabaseInsightConnectionDetails.java | 153 +++ .../model/CreateDatabaseInsightDetails.java | 3 + ...teExternalMysqlDatabaseInsightDetails.java | 242 +++++ .../opsi/model/CreateNewsReportDetails.java | 94 +- .../model/DatabaseConfigurationSummary.java | 3 + .../bmc/opsi/model/DatabaseEntitySource.java | 1 + .../opsi/model/DatabaseEntitySourceAll.java | 1 + .../bmc/opsi/model/DatabaseInsight.java | 3 + .../opsi/model/DatabaseInsightSummary.java | 5 +- .../model/EnableDatabaseInsightDetails.java | 3 + ...leExternalMysqlDatabaseInsightDetails.java | 153 +++ ...rnalMysqlDatabaseConfigurationSummary.java | 395 ++++++++ .../model/ExternalMysqlDatabaseInsight.java | 434 +++++++++ .../ExternalMysqlDatabaseInsightSummary.java | 510 ++++++++++ .../com/oracle/bmc/opsi/model/MatchRule.java | 53 ++ .../bmc/opsi/model/NewsContentTypes.java | 53 +- .../oracle/bmc/opsi/model/NewsFrequency.java | 4 + .../com/oracle/bmc/opsi/model/NewsReport.java | 94 +- .../bmc/opsi/model/NewsReportSummary.java | 94 +- .../oracle/bmc/opsi/model/OperationType.java | 2 + ...ResourceUtilizationInsightAggregation.java | 88 ++ .../model/UpdateDatabaseInsightDetails.java | 5 +- ...teExternalMysqlDatabaseInsightDetails.java | 129 +++ .../opsi/model/UpdateNewsReportDetails.java | 92 +- .../bmc/opsi/model/VmClusterSummary.java | 32 +- ...MysqlDatabaseInsightConnectionRequest.java | 384 ++++++++ .../ListDatabaseConfigurationsRequest.java | 1 + .../requests/ListDatabaseInsightsRequest.java | 1 + ...seInsightResourceCapacityTrendRequest.java | 1 + ...seInsightResourceForecastTrendRequest.java | 1 + ...abaseInsightResourceStatisticsRequest.java | 1 + ...zeDatabaseInsightResourceUsageRequest.java | 1 + ...abaseInsightResourceUsageTrendRequest.java | 1 + ...ightResourceUtilizationInsightRequest.java | 1 + ...ightResourceUtilizationInsightRequest.java | 72 +- .../requests/SummarizeSqlInsightsRequest.java | 1 + .../SummarizeSqlStatisticsRequest.java | 1 + ...ysqlDatabaseInsightConnectionResponse.java | 188 ++++ .../oci-java-sdk-opsi/reflect-config.json | 110 +++ bmc-optimizer/pom.xml | 4 +- bmc-osmanagement/pom.xml | 4 +- bmc-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- bmc-redis/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcescheduler/pom.xml | 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-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-servicemesh/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- bmc-streaming/pom.xml | 4 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- .../AssignedSubscriptionLineItemSummary.java | 52 +- .../model/AssignedSubscriptionSummary.java | 27 +- .../model/AvailableRegionSummary.java | 54 +- .../model/ClassicAssignedSubscription.java | 41 +- .../ClassicAssignedSubscriptionSummary.java | 65 +- .../ClassicSubscriptionEnvironmentName.java | 51 - .../model/ClassicSubscriptionManagedBy.java | 55 ++ .../model/ClassicSubscriptionSummary.java | 24 +- .../CloudAssignedSubscriptionSummary.java | 24 +- .../model/CloudSubscriptionSummary.java | 24 +- .../model/CreateChildTenancyDetails.java | 46 +- .../model/LinkSummary.java | 52 +- .../model/OperationType.java | 5 + .../model/OrganizationSummary.java | 52 +- .../model/OrganizationTenancySummary.java | 52 +- .../model/SubscriptionLineItemSummary.java | 52 +- .../model/SubscriptionMappingSummary.java | 52 +- .../model/SubscriptionSummary.java | 31 +- .../reflect-config.json | 4 +- bmc-threatintelligence/pom.xml | 4 +- bmc-usage/pom.xml | 4 +- bmc-usageapi/pom.xml | 4 +- bmc-vault/pom.xml | 6 +- bmc-vbsinst/pom.xml | 4 +- bmc-visualbuilder/pom.xml | 4 +- bmc-vnmonitoring/pom.xml | 4 +- bmc-vulnerabilityscanning/pom.xml | 4 +- bmc-waa/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-waf/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- bmc-zpr/pom.xml | 4 +- pom.xml | 2 +- 388 files changed, 39800 insertions(+), 730 deletions(-) create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesWaiters.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BaseDatabaseHaDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupSummary.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetBackupMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetDataguardMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetHaOverviewMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaBackupDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHostedIn.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalMysqlAssociatedServiceDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalMysqlAssociatedServiceDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExadataInfrastructureLifecycleStateValues.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMysqlAssociatedServiceName.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HaMetricDefinition.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StandByDatabaseDataguardMetrics.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CheckExternalMySqlDatabaseConnectorConnectionStatusRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseConnectorRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseConnectorRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMySqlDatabaseManagementRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMysqlAssociatedServiceRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMySqlDatabaseManagementRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMysqlAssociatedServiceRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetBackupMetricsRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetDataguardMetricsRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetHaOverviewMetricsRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseHaBackupDetailsRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseConnectorRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalMySqlDatabasesRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListMySqlDatabaseConnectorsRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseConnectorRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseConnectorResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseConnectorResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMySqlDatabaseManagementResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMysqlAssociatedServiceResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMySqlDatabaseManagementResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMysqlAssociatedServiceResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetBackupMetricsResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetDataguardMetricsResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetHaOverviewMetricsResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseHaBackupDetailsResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseConnectorResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListExternalMySqlDatabasesResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListMySqlDatabaseConnectorsResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseConnectorResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseResponse.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberOkeClusterDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeBackupLocationDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterBackupConfigDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterLoadBalancerMappingDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterManagedNodePoolConfigurationDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterNetworkLoadBalancerMappingDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVaultMappingDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVirtualNodePoolConfigurationDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberOkeCluster.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeBackupLocation.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterBackupConfig.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterImageReplication.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterLoadBalancerMapping.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterManagedNodePoolConfiguration.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterNetworkLoadBalancerMapping.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVaultMapping.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVirtualNodePoolConfiguration.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberOkeClusterDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeBackupLocationDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterBackupConfigDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterLoadBalancerMappingDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterManagedNodePoolConfigurationDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterNetworkLoadBalancerMappingDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVaultMappingDetails.java create mode 100644 bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVirtualNodePoolConfigurationDetails.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ActionableInsightsContentTypesResource.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ChangeExternalMysqlDatabaseInsightConnectionDetails.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateExternalMysqlDatabaseInsightDetails.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableExternalMysqlDatabaseInsightDetails.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseConfigurationSummary.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsight.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsightSummary.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/MatchRule.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateExternalMysqlDatabaseInsightDetails.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ChangeExternalMysqlDatabaseInsightConnectionRequest.java create mode 100644 bmc-opsi/src/main/java/com/oracle/bmc/opsi/responses/ChangeExternalMysqlDatabaseInsightConnectionResponse.java delete mode 100644 bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionEnvironmentName.java create mode 100644 bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionManagedBy.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 3de22c7f0e5..e8fbb641629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.56.0 - 2025-01-28 +### Added +- Support for external MySQL database management in the Database Management service +- Support for fetching highly available metrics for managed databases in the Database Management service +- Support for Exadata Infrastructure on Exadata Cloud@Customer in the Database service +- Support for disaster recovery for cloud native applications running on OKE clusters in the Disaster Recovery service +- Support for subscription assignment at creation of the child tenancies in the Organizations service +- Support for additional actionable insights content-types for news reports in the Operations Insights service +- Support for MySQL Heatwave database systems in the Operations Insights service + +### Breaking Changes +- Enum `com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscriptionEnvironmentName` has been removed from the Organizations service + ## 3.55.3 - 2025-01-21 ### Added - Support for Bring Your Own ASN (BYOASN) in the Networking service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 766f5b9e7c4..6f0fab38bd9 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index aac4b5b2972..03c71f6915f 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.55.3 + 3.56.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 2d0c1fefc84..d7ebe5e3535 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.55.3 + 3.56.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 1265401296b..a084cd7f98b 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.55.3 + 3.56.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.3 + 3.56.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index a22844bae9d..8074881f0b0 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.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index c835e80ff77..296e1868c4f 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.55.3 + 3.56.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.55.3 + 3.56.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.55.3 + 3.56.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.55.3 + 3.56.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 5fa109e78af..227897c0332 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.55.3 + 3.56.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index 453c11555d5..06c89ede2da 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.55.3 + 3.56.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.55.3 + 3.56.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.55.3 + 3.56.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index c6723dfc969..e915f5b949e 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.55.3 + 3.56.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 9e2ead0788e..0c5fa081570 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.55.3 + 3.56.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.55.3 + 3.56.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.3 + 3.56.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index a912f704b8a..e62e07cb100 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.55.3 + 3.56.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.55.3 + 3.56.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 32e06580e86..247531647b3 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 0d3e4873adb..4a773b13098 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 34c2b68e4de..c959825b353 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 925c3d952ff..0a9a2947168 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 6f3fe4c39ce..76ec880a588 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index a2b31757c31..d6f57073bde 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 62fe6fccef5..8ba12d376ea 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index cf22074fe48..42924dc461e 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 0a87ed1cdb0..e54e32ab780 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 23103b1e365..0cd58088e28 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 9bdf4e681d6..03410a654d8 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 995675f7ee0..cd867f61d8e 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 91c62a35d84..f5b1909bc30 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 36975614b59..f0ebcb89382 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index d5adecf7195..1c98186054e 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 9a4172ad717..7b9876ffecf 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 5968b30ce0e..aec73fbaa4f 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index bddbd3ea5b0..2ff82232521 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index fa8bf254762..1a61404acb1 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index f3efa35e604..638216da11d 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 96d72abd7d1..2e843af2893 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 91f7b609deb..ab3d85c3756 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.55.3 + 3.56.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,974 +38,974 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.55.3 + 3.56.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.55.3 + 3.56.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 76659142930..705abe0bbe0 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index f6389506995..0a218e461a0 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index d06692a9584..08ef7dab012 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 35fd8c13ed6..58d79861360 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index fb5189440d2..c7887e8c9d6 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index ec83773481e..0df13cb80f6 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 06f4c962760..508b37eadfd 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 832e1726216..f0fd28df16a 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 5470e80aa7a..9c48330183e 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index f2ca2e06205..dca2b64bc71 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index a8e057b64e7..33f80af5030 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.55.3 + 3.56.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.55.3 + 3.56.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.3 + 3.56.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 5a283e2d422..85c115ee6f8 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.55.3 + 3.56.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.55.3 + 3.56.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.3 + 3.56.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 8b0b32abad9..cd6a067a43d 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.55.3 + 3.56.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index c8c57c5b821..9c2b5cac07c 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.55.3 + 3.56.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 9d133a69de4..b402f424550 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -62,12 +62,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.3 + 3.56.0 @@ -112,7 +112,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 6e21cf8d879..9af89ae6847 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 877eb9d1614..46a18fd5701 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 8e694bae0a3..721c9b18d51 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 6e735bb83e8..7e3863b56b6 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index f627c27de0a..b71da243dc8 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.3 + 3.56.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index aa97b6a54ad..2402a0150e7 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 937cfc5580a..4ad5f5d7fe0 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.3 + 3.56.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index 09f46eece23..16b9be2eaa9 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -11134,6 +11134,7 @@ public java.util.concurrent.Future listFlexComponent .appendPathParam("flexComponents") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("name", request.getName()) + .appendQueryParam("shape", request.getShape()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("limit", request.getLimit()) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index d1ce64ae3cc..c154a308c58 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -9959,6 +9959,7 @@ public ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest r .appendPathParam("flexComponents") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("name", request.getName()) + .appendQueryParam("shape", request.getShape()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("limit", request.getLimit()) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java index b0605d47934..a5f6e1a0164 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java @@ -61,7 +61,10 @@ public final class CloudExadataInfrastructure "monthlyStorageServerVersion", "monthlyDbServerVersion", "definedFileSystemConfigurations", - "isSchedulingPolicyAssociated" + "isSchedulingPolicyAssociated", + "databaseServerType", + "storageServerType", + "computeModel" }) public CloudExadataInfrastructure( String id, @@ -100,7 +103,10 @@ public CloudExadataInfrastructure( String monthlyStorageServerVersion, String monthlyDbServerVersion, java.util.List definedFileSystemConfigurations, - Boolean isSchedulingPolicyAssociated) { + Boolean isSchedulingPolicyAssociated, + String databaseServerType, + String storageServerType, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -139,6 +145,9 @@ public CloudExadataInfrastructure( this.monthlyDbServerVersion = monthlyDbServerVersion; this.definedFileSystemConfigurations = definedFileSystemConfigurations; this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; + this.databaseServerType = databaseServerType; + this.storageServerType = storageServerType; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -786,6 +795,59 @@ public Builder isSchedulingPolicyAssociated(Boolean isSchedulingPolicyAssociated this.__explicitlySet__.add("isSchedulingPolicyAssociated"); return this; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @param databaseServerType the value to set + * @return this builder + */ + public Builder databaseServerType(String databaseServerType) { + this.databaseServerType = databaseServerType; + this.__explicitlySet__.add("databaseServerType"); + return this; + } + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @param storageServerType the value to set + * @return this builder + */ + public Builder storageServerType(String storageServerType) { + this.storageServerType = storageServerType; + this.__explicitlySet__.add("storageServerType"); + return this; + } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -829,7 +891,10 @@ public CloudExadataInfrastructure build() { this.monthlyStorageServerVersion, this.monthlyDbServerVersion, this.definedFileSystemConfigurations, - this.isSchedulingPolicyAssociated); + this.isSchedulingPolicyAssociated, + this.databaseServerType, + this.storageServerType, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -949,6 +1014,15 @@ public Builder copy(CloudExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("isSchedulingPolicyAssociated")) { this.isSchedulingPolicyAssociated(model.getIsSchedulingPolicyAssociated()); } + if (model.wasPropertyExplicitlySet("databaseServerType")) { + this.databaseServerType(model.getDatabaseServerType()); + } + if (model.wasPropertyExplicitlySet("storageServerType")) { + this.storageServerType(model.getStorageServerType()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -1576,6 +1650,104 @@ public Boolean getIsSchedulingPolicyAssociated() { return isSchedulingPolicyAssociated; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private final String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @return the value + */ + public String getDatabaseServerType() { + return databaseServerType; + } + + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private final String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @return the value + */ + public String getStorageServerType() { + return storageServerType; + } + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -1633,6 +1805,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.definedFileSystemConfigurations)); sb.append(", isSchedulingPolicyAssociated=") .append(String.valueOf(this.isSchedulingPolicyAssociated)); + sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType)); + sb.append(", storageServerType=").append(String.valueOf(this.storageServerType)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -1692,6 +1867,9 @@ public boolean equals(Object o) { this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) && java.util.Objects.equals( this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) + && java.util.Objects.equals(this.databaseServerType, other.databaseServerType) + && java.util.Objects.equals(this.storageServerType, other.storageServerType) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -1822,6 +2000,15 @@ public int hashCode() { + (this.isSchedulingPolicyAssociated == null ? 43 : this.isSchedulingPolicyAssociated.hashCode()); + result = + (result * PRIME) + + (this.databaseServerType == null + ? 43 + : this.databaseServerType.hashCode()); + result = + (result * PRIME) + + (this.storageServerType == null ? 43 : this.storageServerType.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java index 4d7f21cf2cf..9be942f6128 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java @@ -61,7 +61,10 @@ public final class CloudExadataInfrastructureSummary "monthlyStorageServerVersion", "monthlyDbServerVersion", "definedFileSystemConfigurations", - "isSchedulingPolicyAssociated" + "isSchedulingPolicyAssociated", + "databaseServerType", + "storageServerType", + "computeModel" }) public CloudExadataInfrastructureSummary( String id, @@ -100,7 +103,10 @@ public CloudExadataInfrastructureSummary( String monthlyStorageServerVersion, String monthlyDbServerVersion, java.util.List definedFileSystemConfigurations, - Boolean isSchedulingPolicyAssociated) { + Boolean isSchedulingPolicyAssociated, + String databaseServerType, + String storageServerType, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -139,6 +145,9 @@ public CloudExadataInfrastructureSummary( this.monthlyDbServerVersion = monthlyDbServerVersion; this.definedFileSystemConfigurations = definedFileSystemConfigurations; this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; + this.databaseServerType = databaseServerType; + this.storageServerType = storageServerType; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -786,6 +795,59 @@ public Builder isSchedulingPolicyAssociated(Boolean isSchedulingPolicyAssociated this.__explicitlySet__.add("isSchedulingPolicyAssociated"); return this; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @param databaseServerType the value to set + * @return this builder + */ + public Builder databaseServerType(String databaseServerType) { + this.databaseServerType = databaseServerType; + this.__explicitlySet__.add("databaseServerType"); + return this; + } + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @param storageServerType the value to set + * @return this builder + */ + public Builder storageServerType(String storageServerType) { + this.storageServerType = storageServerType; + this.__explicitlySet__.add("storageServerType"); + return this; + } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -829,7 +891,10 @@ public CloudExadataInfrastructureSummary build() { this.monthlyStorageServerVersion, this.monthlyDbServerVersion, this.definedFileSystemConfigurations, - this.isSchedulingPolicyAssociated); + this.isSchedulingPolicyAssociated, + this.databaseServerType, + this.storageServerType, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -949,6 +1014,15 @@ public Builder copy(CloudExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("isSchedulingPolicyAssociated")) { this.isSchedulingPolicyAssociated(model.getIsSchedulingPolicyAssociated()); } + if (model.wasPropertyExplicitlySet("databaseServerType")) { + this.databaseServerType(model.getDatabaseServerType()); + } + if (model.wasPropertyExplicitlySet("storageServerType")) { + this.storageServerType(model.getStorageServerType()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -1576,6 +1650,104 @@ public Boolean getIsSchedulingPolicyAssociated() { return isSchedulingPolicyAssociated; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private final String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @return the value + */ + public String getDatabaseServerType() { + return databaseServerType; + } + + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private final String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @return the value + */ + public String getStorageServerType() { + return storageServerType; + } + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -1633,6 +1805,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.definedFileSystemConfigurations)); sb.append(", isSchedulingPolicyAssociated=") .append(String.valueOf(this.isSchedulingPolicyAssociated)); + sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType)); + sb.append(", storageServerType=").append(String.valueOf(this.storageServerType)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -1692,6 +1867,9 @@ public boolean equals(Object o) { this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) && java.util.Objects.equals( this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) + && java.util.Objects.equals(this.databaseServerType, other.databaseServerType) + && java.util.Objects.equals(this.storageServerType, other.storageServerType) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -1822,6 +2000,15 @@ public int hashCode() { + (this.isSchedulingPolicyAssociated == null ? 43 : this.isSchedulingPolicyAssociated.hashCode()); + result = + (result * PRIME) + + (this.databaseServerType == null + ? 43 + : this.databaseServerType.hashCode()); + result = + (result * PRIME) + + (this.storageServerType == null ? 43 : this.storageServerType.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java index 49ade40d5fb..5064362b523 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java @@ -74,7 +74,8 @@ public final class CloudVmCluster "dataCollectionOptions", "giSoftwareImageId", "fileSystemConfigurationDetails", - "cloudAutomationUpdateDetails" + "cloudAutomationUpdateDetails", + "computeModel" }) public CloudVmCluster( ExadataIormConfig iormConfigCache, @@ -128,7 +129,8 @@ public CloudVmCluster( DataCollectionOptions dataCollectionOptions, String giSoftwareImageId, java.util.List fileSystemConfigurationDetails, - CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + CloudAutomationUpdateDetails cloudAutomationUpdateDetails, + ComputeModel computeModel) { super(); this.iormConfigCache = iormConfigCache; this.id = id; @@ -182,6 +184,7 @@ public CloudVmCluster( this.giSoftwareImageId = giSoftwareImageId; this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1152,6 +1155,29 @@ public Builder cloudAutomationUpdateDetails( this.__explicitlySet__.add("cloudAutomationUpdateDetails"); return this; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1210,7 +1236,8 @@ public CloudVmCluster build() { this.dataCollectionOptions, this.giSoftwareImageId, this.fileSystemConfigurationDetails, - this.cloudAutomationUpdateDetails); + this.cloudAutomationUpdateDetails, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1375,6 +1402,9 @@ public Builder copy(CloudVmCluster model) { if (model.wasPropertyExplicitlySet("cloudAutomationUpdateDetails")) { this.cloudAutomationUpdateDetails(model.getCloudAutomationUpdateDetails()); } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -2387,6 +2417,78 @@ public CloudAutomationUpdateDetails getCloudAutomationUpdateDetails() { return cloudAutomationUpdateDetails; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -2459,6 +2561,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.fileSystemConfigurationDetails)); sb.append(", cloudAutomationUpdateDetails=") .append(String.valueOf(this.cloudAutomationUpdateDetails)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -2532,6 +2635,7 @@ public boolean equals(Object o) { this.fileSystemConfigurationDetails, other.fileSystemConfigurationDetails) && java.util.Objects.equals( this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -2677,6 +2781,7 @@ public int hashCode() { + (this.cloudAutomationUpdateDetails == null ? 43 : this.cloudAutomationUpdateDetails.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java index 335ed137997..be18ab97ec4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java @@ -74,7 +74,8 @@ public final class CloudVmClusterSummary "dataCollectionOptions", "giSoftwareImageId", "fileSystemConfigurationDetails", - "cloudAutomationUpdateDetails" + "cloudAutomationUpdateDetails", + "computeModel" }) public CloudVmClusterSummary( String id, @@ -127,7 +128,8 @@ public CloudVmClusterSummary( DataCollectionOptions dataCollectionOptions, String giSoftwareImageId, java.util.List fileSystemConfigurationDetails, - CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + CloudAutomationUpdateDetails cloudAutomationUpdateDetails, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -180,6 +182,7 @@ public CloudVmClusterSummary( this.giSoftwareImageId = giSoftwareImageId; this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1141,6 +1144,29 @@ public Builder cloudAutomationUpdateDetails( this.__explicitlySet__.add("cloudAutomationUpdateDetails"); return this; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1198,7 +1224,8 @@ public CloudVmClusterSummary build() { this.dataCollectionOptions, this.giSoftwareImageId, this.fileSystemConfigurationDetails, - this.cloudAutomationUpdateDetails); + this.cloudAutomationUpdateDetails, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1360,6 +1387,9 @@ public Builder copy(CloudVmClusterSummary model) { if (model.wasPropertyExplicitlySet("cloudAutomationUpdateDetails")) { this.cloudAutomationUpdateDetails(model.getCloudAutomationUpdateDetails()); } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -2365,6 +2395,78 @@ public CloudAutomationUpdateDetails getCloudAutomationUpdateDetails() { return cloudAutomationUpdateDetails; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -2436,6 +2538,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.fileSystemConfigurationDetails)); sb.append(", cloudAutomationUpdateDetails=") .append(String.valueOf(this.cloudAutomationUpdateDetails)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -2508,6 +2611,7 @@ public boolean equals(Object o) { this.fileSystemConfigurationDetails, other.fileSystemConfigurationDetails) && java.util.Objects.equals( this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -2650,6 +2754,7 @@ public int hashCode() { + (this.cloudAutomationUpdateDetails == null ? 43 : this.cloudAutomationUpdateDetails.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java index 34632bd4e26..fac22d677ab 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCloudExadataInfrastructureDetails.java @@ -36,7 +36,9 @@ public final class CreateCloudExadataInfrastructureDetails "definedTags", "clusterPlacementGroupId", "subscriptionId", - "customerContacts" + "customerContacts", + "databaseServerType", + "storageServerType" }) public CreateCloudExadataInfrastructureDetails( String availabilityDomain, @@ -50,7 +52,9 @@ public CreateCloudExadataInfrastructureDetails( java.util.Map> definedTags, String clusterPlacementGroupId, String subscriptionId, - java.util.List customerContacts) { + java.util.List customerContacts, + String databaseServerType, + String storageServerType) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; @@ -64,6 +68,8 @@ public CreateCloudExadataInfrastructureDetails( this.clusterPlacementGroupId = clusterPlacementGroupId; this.subscriptionId = subscriptionId; this.customerContacts = customerContacts; + this.databaseServerType = databaseServerType; + this.storageServerType = storageServerType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -275,6 +281,36 @@ public Builder customerContacts(java.util.List customerContacts this.__explicitlySet__.add("customerContacts"); return this; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @param databaseServerType the value to set + * @return this builder + */ + public Builder databaseServerType(String databaseServerType) { + this.databaseServerType = databaseServerType; + this.__explicitlySet__.add("databaseServerType"); + return this; + } + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @param storageServerType the value to set + * @return this builder + */ + public Builder storageServerType(String storageServerType) { + this.storageServerType = storageServerType; + this.__explicitlySet__.add("storageServerType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -293,7 +329,9 @@ public CreateCloudExadataInfrastructureDetails build() { this.definedTags, this.clusterPlacementGroupId, this.subscriptionId, - this.customerContacts); + this.customerContacts, + this.databaseServerType, + this.storageServerType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -338,6 +376,12 @@ public Builder copy(CreateCloudExadataInfrastructureDetails model) { if (model.wasPropertyExplicitlySet("customerContacts")) { this.customerContacts(model.getCustomerContacts()); } + if (model.wasPropertyExplicitlySet("databaseServerType")) { + this.databaseServerType(model.getDatabaseServerType()); + } + if (model.wasPropertyExplicitlySet("storageServerType")) { + this.storageServerType(model.getStorageServerType()); + } return this; } } @@ -533,6 +577,32 @@ public java.util.List getCustomerContacts() { return customerContacts; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private final String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @return the value + */ + public String getDatabaseServerType() { + return databaseServerType; + } + + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private final String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @return the value + */ + public String getStorageServerType() { + return storageServerType; + } + @Override public String toString() { return this.toString(true); @@ -561,6 +631,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", customerContacts=").append(String.valueOf(this.customerContacts)); + sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType)); + sb.append(", storageServerType=").append(String.valueOf(this.storageServerType)); sb.append(")"); return sb.toString(); } @@ -588,6 +660,8 @@ public boolean equals(Object o) { this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.customerContacts, other.customerContacts) + && java.util.Objects.equals(this.databaseServerType, other.databaseServerType) + && java.util.Objects.equals(this.storageServerType, other.storageServerType) && super.equals(other); } @@ -623,6 +697,14 @@ public int hashCode() { result = (result * PRIME) + (this.customerContacts == null ? 43 : this.customerContacts.hashCode()); + result = + (result * PRIME) + + (this.databaseServerType == null + ? 43 + : this.databaseServerType.hashCode()); + result = + (result * PRIME) + + (this.storageServerType == null ? 43 : this.storageServerType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java index 804c78885c1..b30660cfe88 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java @@ -49,6 +49,8 @@ public final class CreateExadataInfrastructureDetails "ntpServer", "isCpsOfflineReportEnabled", "networkBondingModeDetails", + "databaseServerType", + "storageServerType", "freeformTags", "definedTags" }) @@ -74,6 +76,8 @@ public CreateExadataInfrastructureDetails( java.util.List ntpServer, Boolean isCpsOfflineReportEnabled, NetworkBondingModeDetails networkBondingModeDetails, + String databaseServerType, + String storageServerType, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -98,6 +102,8 @@ public CreateExadataInfrastructureDetails( this.ntpServer = ntpServer; this.isCpsOfflineReportEnabled = isCpsOfflineReportEnabled; this.networkBondingModeDetails = networkBondingModeDetails; + this.databaseServerType = databaseServerType; + this.storageServerType = storageServerType; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -440,6 +446,36 @@ public Builder networkBondingModeDetails( this.__explicitlySet__.add("networkBondingModeDetails"); return this; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @param databaseServerType the value to set + * @return this builder + */ + public Builder databaseServerType(String databaseServerType) { + this.databaseServerType = databaseServerType; + this.__explicitlySet__.add("databaseServerType"); + return this; + } + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @param storageServerType the value to set + * @return this builder + */ + public Builder storageServerType(String storageServerType) { + this.storageServerType = storageServerType; + this.__explicitlySet__.add("storageServerType"); + 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 @@ -515,6 +551,8 @@ public CreateExadataInfrastructureDetails build() { this.ntpServer, this.isCpsOfflineReportEnabled, this.networkBondingModeDetails, + this.databaseServerType, + this.storageServerType, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -588,6 +626,12 @@ public Builder copy(CreateExadataInfrastructureDetails model) { if (model.wasPropertyExplicitlySet("networkBondingModeDetails")) { this.networkBondingModeDetails(model.getNetworkBondingModeDetails()); } + if (model.wasPropertyExplicitlySet("databaseServerType")) { + this.databaseServerType(model.getDatabaseServerType()); + } + if (model.wasPropertyExplicitlySet("storageServerType")) { + this.storageServerType(model.getStorageServerType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -898,6 +942,32 @@ public NetworkBondingModeDetails getNetworkBondingModeDetails() { return networkBondingModeDetails; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private final String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @return the value + */ + public String getDatabaseServerType() { + return databaseServerType; + } + + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private final String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @return the value + */ + public String getStorageServerType() { + return storageServerType; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource @@ -989,6 +1059,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isCpsOfflineReportEnabled)); sb.append(", networkBondingModeDetails=") .append(String.valueOf(this.networkBondingModeDetails)); + sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType)); + sb.append(", storageServerType=").append(String.valueOf(this.storageServerType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -1031,6 +1103,8 @@ public boolean equals(Object o) { this.isCpsOfflineReportEnabled, other.isCpsOfflineReportEnabled) && java.util.Objects.equals( this.networkBondingModeDetails, other.networkBondingModeDetails) + && java.util.Objects.equals(this.databaseServerType, other.databaseServerType) + && java.util.Objects.equals(this.storageServerType, other.storageServerType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -1093,6 +1167,14 @@ public int hashCode() { + (this.networkBondingModeDetails == null ? 43 : this.networkBondingModeDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseServerType == null + ? 43 + : this.databaseServerType.hashCode()); + result = + (result * PRIME) + + (this.storageServerType == null ? 43 : this.storageServerType.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServer.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServer.java index c298116c4b9..2cdac37293c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServer.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServer.java @@ -42,7 +42,8 @@ public final class DbServer extends com.oracle.bmc.http.client.internal.Explicit "timeCreated", "dbServerPatchingDetails", "freeformTags", - "definedTags" + "definedTags", + "computeModel" }) public DbServer( String id, @@ -65,7 +66,8 @@ public DbServer( java.util.Date timeCreated, DbServerPatchingDetails dbServerPatchingDetails, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + ComputeModel computeModel) { super(); this.id = id; this.displayName = displayName; @@ -88,6 +90,7 @@ public DbServer( this.dbServerPatchingDetails = dbServerPatchingDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -455,6 +458,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -482,7 +508,8 @@ public DbServer build() { this.timeCreated, this.dbServerPatchingDetails, this.freeformTags, - this.definedTags); + this.definedTags, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -554,6 +581,9 @@ public Builder copy(DbServer model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -932,6 +962,78 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -971,6 +1073,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.dbServerPatchingDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -1011,6 +1114,7 @@ public boolean equals(Object o) { this.dbServerPatchingDetails, other.dbServerPatchingDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -1073,6 +1177,7 @@ public int hashCode() { : this.dbServerPatchingDetails.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.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServerSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServerSummary.java index ea4ba665925..89a266256f1 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServerSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbServerSummary.java @@ -43,7 +43,8 @@ public final class DbServerSummary "timeCreated", "dbServerPatchingDetails", "freeformTags", - "definedTags" + "definedTags", + "computeModel" }) public DbServerSummary( String id, @@ -66,7 +67,8 @@ public DbServerSummary( java.util.Date timeCreated, DbServerPatchingDetails dbServerPatchingDetails, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + ComputeModel computeModel) { super(); this.id = id; this.displayName = displayName; @@ -89,6 +91,7 @@ public DbServerSummary( this.dbServerPatchingDetails = dbServerPatchingDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -456,6 +459,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -483,7 +509,8 @@ public DbServerSummary build() { this.timeCreated, this.dbServerPatchingDetails, this.freeformTags, - this.definedTags); + this.definedTags, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -555,6 +582,9 @@ public Builder copy(DbServerSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -933,6 +963,78 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -972,6 +1074,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.dbServerPatchingDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -1012,6 +1115,7 @@ public boolean equals(Object o) { this.dbServerPatchingDetails, other.dbServerPatchingDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -1074,6 +1178,7 @@ public int hashCode() { : this.dbServerPatchingDetails.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.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemShapeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemShapeSummary.java index 1d6ee1e89eb..76606bba7ba 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemShapeSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemShapeSummary.java @@ -49,6 +49,9 @@ public final class DbSystemShapeSummary "minDbNodeStoragePerNodeInGBs", "availableDataStorageInTBs", "minDataStorageInTBs", + "displayName", + "computeModel", + "areServerTypesSupported", "minimumNodeCount", "maximumNodeCount", "availableCoreCountPerNode" @@ -73,6 +76,9 @@ public DbSystemShapeSummary( Integer minDbNodeStoragePerNodeInGBs, Integer availableDataStorageInTBs, Integer minDataStorageInTBs, + String displayName, + ComputeModel computeModel, + Boolean areServerTypesSupported, Integer minimumNodeCount, Integer maximumNodeCount, Integer availableCoreCountPerNode) { @@ -96,6 +102,9 @@ public DbSystemShapeSummary( this.minDbNodeStoragePerNodeInGBs = minDbNodeStoragePerNodeInGBs; this.availableDataStorageInTBs = availableDataStorageInTBs; this.minDataStorageInTBs = minDataStorageInTBs; + this.displayName = displayName; + this.computeModel = computeModel; + this.areServerTypesSupported = areServerTypesSupported; this.minimumNodeCount = minimumNodeCount; this.maximumNodeCount = maximumNodeCount; this.availableCoreCountPerNode = availableCoreCountPerNode; @@ -415,6 +424,59 @@ public Builder minDataStorageInTBs(Integer minDataStorageInTBs) { this.__explicitlySet__.add("minDataStorageInTBs"); return this; } + /** The display name of the shape used for the DB system. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the shape used for the DB system. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } + /** If true, the shape supports configurable DB and Storage Server types. */ + @com.fasterxml.jackson.annotation.JsonProperty("areServerTypesSupported") + private Boolean areServerTypesSupported; + + /** + * If true, the shape supports configurable DB and Storage Server types. + * + * @param areServerTypesSupported the value to set + * @return this builder + */ + public Builder areServerTypesSupported(Boolean areServerTypesSupported) { + this.areServerTypesSupported = areServerTypesSupported; + this.__explicitlySet__.add("areServerTypesSupported"); + return this; + } /** The minimum number of compute servers available for this shape. */ @com.fasterxml.jackson.annotation.JsonProperty("minimumNodeCount") private Integer minimumNodeCount; @@ -490,6 +552,9 @@ public DbSystemShapeSummary build() { this.minDbNodeStoragePerNodeInGBs, this.availableDataStorageInTBs, this.minDataStorageInTBs, + this.displayName, + this.computeModel, + this.areServerTypesSupported, this.minimumNodeCount, this.maximumNodeCount, this.availableCoreCountPerNode); @@ -559,6 +624,15 @@ public Builder copy(DbSystemShapeSummary model) { if (model.wasPropertyExplicitlySet("minDataStorageInTBs")) { this.minDataStorageInTBs(model.getMinDataStorageInTBs()); } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } + if (model.wasPropertyExplicitlySet("areServerTypesSupported")) { + this.areServerTypesSupported(model.getAreServerTypesSupported()); + } if (model.wasPropertyExplicitlySet("minimumNodeCount")) { this.minimumNodeCount(model.getMinimumNodeCount()); } @@ -900,6 +974,104 @@ public Integer getMinDataStorageInTBs() { return minDataStorageInTBs; } + /** The display name of the shape used for the DB system. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the shape used for the DB system. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + + /** If true, the shape supports configurable DB and Storage Server types. */ + @com.fasterxml.jackson.annotation.JsonProperty("areServerTypesSupported") + private final Boolean areServerTypesSupported; + + /** + * If true, the shape supports configurable DB and Storage Server types. + * + * @return the value + */ + public Boolean getAreServerTypesSupported() { + return areServerTypesSupported; + } + /** The minimum number of compute servers available for this shape. */ @com.fasterxml.jackson.annotation.JsonProperty("minimumNodeCount") private final Integer minimumNodeCount; @@ -983,6 +1155,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availableDataStorageInTBs=") .append(String.valueOf(this.availableDataStorageInTBs)); sb.append(", minDataStorageInTBs=").append(String.valueOf(this.minDataStorageInTBs)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); + sb.append(", areServerTypesSupported=") + .append(String.valueOf(this.areServerTypesSupported)); sb.append(", minimumNodeCount=").append(String.valueOf(this.minimumNodeCount)); sb.append(", maximumNodeCount=").append(String.valueOf(this.maximumNodeCount)); sb.append(", availableCoreCountPerNode=") @@ -1027,6 +1203,10 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.availableDataStorageInTBs, other.availableDataStorageInTBs) && java.util.Objects.equals(this.minDataStorageInTBs, other.minDataStorageInTBs) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.computeModel, other.computeModel) + && java.util.Objects.equals( + this.areServerTypesSupported, other.areServerTypesSupported) && java.util.Objects.equals(this.minimumNodeCount, other.minimumNodeCount) && java.util.Objects.equals(this.maximumNodeCount, other.maximumNodeCount) && java.util.Objects.equals( @@ -1111,6 +1291,13 @@ public int hashCode() { + (this.minDataStorageInTBs == null ? 43 : this.minDataStorageInTBs.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); + result = + (result * PRIME) + + (this.areServerTypesSupported == null + ? 43 + : this.areServerTypesSupported.hashCode()); result = (result * PRIME) + (this.minimumNodeCount == null ? 43 : this.minimumNodeCount.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java index 64e1910e77d..f83c2bfb212 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java @@ -74,7 +74,10 @@ public final class ExadataInfrastructure "freeformTags", "definedTags", "isSchedulingPolicyAssociated", - "exascaleConfig" + "exascaleConfig", + "databaseServerType", + "storageServerType", + "computeModel" }) public ExadataInfrastructure( String id, @@ -127,7 +130,10 @@ public ExadataInfrastructure( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isSchedulingPolicyAssociated, - ExascaleConfigDetails exascaleConfig) { + ExascaleConfigDetails exascaleConfig, + String databaseServerType, + String storageServerType, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -180,6 +186,9 @@ public ExadataInfrastructure( this.definedTags = definedTags; this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; this.exascaleConfig = exascaleConfig; + this.databaseServerType = databaseServerType; + this.storageServerType = storageServerType; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1013,6 +1022,59 @@ public Builder exascaleConfig(ExascaleConfigDetails exascaleConfig) { this.__explicitlySet__.add("exascaleConfig"); return this; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @param databaseServerType the value to set + * @return this builder + */ + public Builder databaseServerType(String databaseServerType) { + this.databaseServerType = databaseServerType; + this.__explicitlySet__.add("databaseServerType"); + return this; + } + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @param storageServerType the value to set + * @return this builder + */ + public Builder storageServerType(String storageServerType) { + this.storageServerType = storageServerType; + this.__explicitlySet__.add("storageServerType"); + return this; + } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1070,7 +1132,10 @@ public ExadataInfrastructure build() { this.freeformTags, this.definedTags, this.isSchedulingPolicyAssociated, - this.exascaleConfig); + this.exascaleConfig, + this.databaseServerType, + this.storageServerType, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1232,6 +1297,15 @@ public Builder copy(ExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("exascaleConfig")) { this.exascaleConfig(model.getExascaleConfig()); } + if (model.wasPropertyExplicitlySet("databaseServerType")) { + this.databaseServerType(model.getDatabaseServerType()); + } + if (model.wasPropertyExplicitlySet("storageServerType")) { + this.storageServerType(model.getStorageServerType()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -1621,6 +1695,7 @@ public enum AdditionalComputeSystemModel implements com.oracle.bmc.http.internal X8M("X8M"), X9M("X9M"), X10M("X10M"), + X11M("X11M"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -2124,6 +2199,104 @@ public ExascaleConfigDetails getExascaleConfig() { return exascaleConfig; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private final String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @return the value + */ + public String getDatabaseServerType() { + return databaseServerType; + } + + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private final String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @return the value + */ + public String getStorageServerType() { + return storageServerType; + } + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -2206,6 +2379,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isSchedulingPolicyAssociated=") .append(String.valueOf(this.isSchedulingPolicyAssociated)); sb.append(", exascaleConfig=").append(String.valueOf(this.exascaleConfig)); + sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType)); + sb.append(", storageServerType=").append(String.valueOf(this.storageServerType)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -2283,6 +2459,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) && java.util.Objects.equals(this.exascaleConfig, other.exascaleConfig) + && java.util.Objects.equals(this.databaseServerType, other.databaseServerType) + && java.util.Objects.equals(this.storageServerType, other.storageServerType) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -2451,6 +2630,15 @@ public int hashCode() { result = (result * PRIME) + (this.exascaleConfig == null ? 43 : this.exascaleConfig.hashCode()); + result = + (result * PRIME) + + (this.databaseServerType == null + ? 43 + : this.databaseServerType.hashCode()); + result = + (result * PRIME) + + (this.storageServerType == null ? 43 : this.storageServerType.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java index 7aae267a826..e9fb039c626 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java @@ -77,7 +77,10 @@ public final class ExadataInfrastructureSummary "freeformTags", "definedTags", "isSchedulingPolicyAssociated", - "exascaleConfig" + "exascaleConfig", + "databaseServerType", + "storageServerType", + "computeModel" }) public ExadataInfrastructureSummary( String id, @@ -130,7 +133,10 @@ public ExadataInfrastructureSummary( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isSchedulingPolicyAssociated, - ExascaleConfigDetails exascaleConfig) { + ExascaleConfigDetails exascaleConfig, + String databaseServerType, + String storageServerType, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -183,6 +189,9 @@ public ExadataInfrastructureSummary( this.definedTags = definedTags; this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; this.exascaleConfig = exascaleConfig; + this.databaseServerType = databaseServerType; + this.storageServerType = storageServerType; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1016,6 +1025,59 @@ public Builder exascaleConfig(ExascaleConfigDetails exascaleConfig) { this.__explicitlySet__.add("exascaleConfig"); return this; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @param databaseServerType the value to set + * @return this builder + */ + public Builder databaseServerType(String databaseServerType) { + this.databaseServerType = databaseServerType; + this.__explicitlySet__.add("databaseServerType"); + return this; + } + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @param storageServerType the value to set + * @return this builder + */ + public Builder storageServerType(String storageServerType) { + this.storageServerType = storageServerType; + this.__explicitlySet__.add("storageServerType"); + return this; + } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1073,7 +1135,10 @@ public ExadataInfrastructureSummary build() { this.freeformTags, this.definedTags, this.isSchedulingPolicyAssociated, - this.exascaleConfig); + this.exascaleConfig, + this.databaseServerType, + this.storageServerType, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1235,6 +1300,15 @@ public Builder copy(ExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("exascaleConfig")) { this.exascaleConfig(model.getExascaleConfig()); } + if (model.wasPropertyExplicitlySet("databaseServerType")) { + this.databaseServerType(model.getDatabaseServerType()); + } + if (model.wasPropertyExplicitlySet("storageServerType")) { + this.storageServerType(model.getStorageServerType()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -1624,6 +1698,7 @@ public enum AdditionalComputeSystemModel implements com.oracle.bmc.http.internal X8M("X8M"), X9M("X9M"), X10M("X10M"), + X11M("X11M"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -2127,6 +2202,104 @@ public ExascaleConfigDetails getExascaleConfig() { return exascaleConfig; } + /** The database server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseServerType") + private final String databaseServerType; + + /** + * The database server type of the Exadata infrastructure. + * + * @return the value + */ + public String getDatabaseServerType() { + return databaseServerType; + } + + /** The storage server type of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageServerType") + private final String storageServerType; + + /** + * The storage server type of the Exadata infrastructure. + * + * @return the value + */ + public String getStorageServerType() { + return storageServerType; + } + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -2209,6 +2382,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isSchedulingPolicyAssociated=") .append(String.valueOf(this.isSchedulingPolicyAssociated)); sb.append(", exascaleConfig=").append(String.valueOf(this.exascaleConfig)); + sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType)); + sb.append(", storageServerType=").append(String.valueOf(this.storageServerType)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -2286,6 +2462,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) && java.util.Objects.equals(this.exascaleConfig, other.exascaleConfig) + && java.util.Objects.equals(this.databaseServerType, other.databaseServerType) + && java.util.Objects.equals(this.storageServerType, other.storageServerType) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -2454,6 +2633,15 @@ public int hashCode() { result = (result * PRIME) + (this.exascaleConfig == null ? 43 : this.exascaleConfig.hashCode()); + result = + (result * PRIME) + + (this.databaseServerType == null + ? 43 + : this.databaseServerType.hashCode()); + result = + (result * PRIME) + + (this.storageServerType == null ? 43 : this.storageServerType.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/FlexComponentSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/FlexComponentSummary.java index 629c2983a45..ee0729ab7c0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/FlexComponentSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/FlexComponentSummary.java @@ -33,18 +33,39 @@ public final class FlexComponentSummary "name", "minimumCoreCount", "availableCoreCount", - "availableDbStorageInGBs" + "availableDbStorageInGBs", + "runtimeMinimumCoreCount", + "shape", + "availableMemoryInGBs", + "availableLocalStorageInGBs", + "computeModel", + "hardwareType", + "descriptionSummary" }) public FlexComponentSummary( String name, Integer minimumCoreCount, Integer availableCoreCount, - Integer availableDbStorageInGBs) { + Integer availableDbStorageInGBs, + Integer runtimeMinimumCoreCount, + String shape, + Integer availableMemoryInGBs, + Integer availableLocalStorageInGBs, + String computeModel, + HardwareType hardwareType, + String descriptionSummary) { super(); this.name = name; this.minimumCoreCount = minimumCoreCount; this.availableCoreCount = availableCoreCount; this.availableDbStorageInGBs = availableDbStorageInGBs; + this.runtimeMinimumCoreCount = runtimeMinimumCoreCount; + this.shape = shape; + this.availableMemoryInGBs = availableMemoryInGBs; + this.availableLocalStorageInGBs = availableLocalStorageInGBs; + this.computeModel = computeModel; + this.hardwareType = hardwareType; + this.descriptionSummary = descriptionSummary; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -119,6 +140,115 @@ public Builder availableDbStorageInGBs(Integer availableDbStorageInGBs) { this.__explicitlySet__.add("availableDbStorageInGBs"); return this; } + /** The runtime minimum number of CPU cores that can be enabled for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("runtimeMinimumCoreCount") + private Integer runtimeMinimumCoreCount; + + /** + * The runtime minimum number of CPU cores that can be enabled for this Flex Component. + * + * @param runtimeMinimumCoreCount the value to set + * @return this builder + */ + public Builder runtimeMinimumCoreCount(Integer runtimeMinimumCoreCount) { + this.runtimeMinimumCoreCount = runtimeMinimumCoreCount; + this.__explicitlySet__.add("runtimeMinimumCoreCount"); + return this; + } + /** The name of the DB system shape for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * The name of the DB system shape for this Flex Component. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** The maximum memory size that can be enabled on the DB Server for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableMemoryInGBs") + private Integer availableMemoryInGBs; + + /** + * The maximum memory size that can be enabled on the DB Server for this Flex Component. + * + * @param availableMemoryInGBs the value to set + * @return this builder + */ + public Builder availableMemoryInGBs(Integer availableMemoryInGBs) { + this.availableMemoryInGBs = availableMemoryInGBs; + this.__explicitlySet__.add("availableMemoryInGBs"); + return this; + } + /** + * The maximum local storage that can be enabled on the DB Server for this Flex Component. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availableLocalStorageInGBs") + private Integer availableLocalStorageInGBs; + + /** + * The maximum local storage that can be enabled on the DB Server for this Flex Component. + * + * @param availableLocalStorageInGBs the value to set + * @return this builder + */ + public Builder availableLocalStorageInGBs(Integer availableLocalStorageInGBs) { + this.availableLocalStorageInGBs = availableLocalStorageInGBs; + this.__explicitlySet__.add("availableLocalStorageInGBs"); + return this; + } + /** The compute model of the DB Server for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private String computeModel; + + /** + * The compute model of the DB Server for this Flex Component. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(String computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } + /** + * The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component. + */ + @com.fasterxml.jackson.annotation.JsonProperty("hardwareType") + private HardwareType hardwareType; + + /** + * The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component. + * + * @param hardwareType the value to set + * @return this builder + */ + public Builder hardwareType(HardwareType hardwareType) { + this.hardwareType = hardwareType; + this.__explicitlySet__.add("hardwareType"); + return this; + } + /** The description summary for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("descriptionSummary") + private String descriptionSummary; + + /** + * The description summary for this Flex Component. + * + * @param descriptionSummary the value to set + * @return this builder + */ + public Builder descriptionSummary(String descriptionSummary) { + this.descriptionSummary = descriptionSummary; + this.__explicitlySet__.add("descriptionSummary"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -129,7 +259,14 @@ public FlexComponentSummary build() { this.name, this.minimumCoreCount, this.availableCoreCount, - this.availableDbStorageInGBs); + this.availableDbStorageInGBs, + this.runtimeMinimumCoreCount, + this.shape, + this.availableMemoryInGBs, + this.availableLocalStorageInGBs, + this.computeModel, + this.hardwareType, + this.descriptionSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -150,6 +287,27 @@ public Builder copy(FlexComponentSummary model) { if (model.wasPropertyExplicitlySet("availableDbStorageInGBs")) { this.availableDbStorageInGBs(model.getAvailableDbStorageInGBs()); } + if (model.wasPropertyExplicitlySet("runtimeMinimumCoreCount")) { + this.runtimeMinimumCoreCount(model.getRuntimeMinimumCoreCount()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("availableMemoryInGBs")) { + this.availableMemoryInGBs(model.getAvailableMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("availableLocalStorageInGBs")) { + this.availableLocalStorageInGBs(model.getAvailableLocalStorageInGBs()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } + if (model.wasPropertyExplicitlySet("hardwareType")) { + this.hardwareType(model.getHardwareType()); + } + if (model.wasPropertyExplicitlySet("descriptionSummary")) { + this.descriptionSummary(model.getDescriptionSummary()); + } return this; } } @@ -221,6 +379,143 @@ public Integer getAvailableDbStorageInGBs() { return availableDbStorageInGBs; } + /** The runtime minimum number of CPU cores that can be enabled for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("runtimeMinimumCoreCount") + private final Integer runtimeMinimumCoreCount; + + /** + * The runtime minimum number of CPU cores that can be enabled for this Flex Component. + * + * @return the value + */ + public Integer getRuntimeMinimumCoreCount() { + return runtimeMinimumCoreCount; + } + + /** The name of the DB system shape for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * The name of the DB system shape for this Flex Component. + * + * @return the value + */ + public String getShape() { + return shape; + } + + /** The maximum memory size that can be enabled on the DB Server for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableMemoryInGBs") + private final Integer availableMemoryInGBs; + + /** + * The maximum memory size that can be enabled on the DB Server for this Flex Component. + * + * @return the value + */ + public Integer getAvailableMemoryInGBs() { + return availableMemoryInGBs; + } + + /** The maximum local storage that can be enabled on the DB Server for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableLocalStorageInGBs") + private final Integer availableLocalStorageInGBs; + + /** + * The maximum local storage that can be enabled on the DB Server for this Flex Component. + * + * @return the value + */ + public Integer getAvailableLocalStorageInGBs() { + return availableLocalStorageInGBs; + } + + /** The compute model of the DB Server for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final String computeModel; + + /** + * The compute model of the DB Server for this Flex Component. + * + * @return the value + */ + public String getComputeModel() { + return computeModel; + } + + /** The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component. */ + public enum HardwareType implements com.oracle.bmc.http.internal.BmcEnum { + Compute("COMPUTE"), + Cell("CELL"), + + /** + * 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(HardwareType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HardwareType v : HardwareType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HardwareType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HardwareType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HardwareType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("hardwareType") + private final HardwareType hardwareType; + + /** + * The hardware type of the DB (Compute) or Storage (Cell) Server for this Flex Component. + * + * @return the value + */ + public HardwareType getHardwareType() { + return hardwareType; + } + + /** The description summary for this Flex Component. */ + @com.fasterxml.jackson.annotation.JsonProperty("descriptionSummary") + private final String descriptionSummary; + + /** + * The description summary for this Flex Component. + * + * @return the value + */ + public String getDescriptionSummary() { + return descriptionSummary; + } + @Override public String toString() { return this.toString(true); @@ -241,6 +536,15 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availableCoreCount=").append(String.valueOf(this.availableCoreCount)); sb.append(", availableDbStorageInGBs=") .append(String.valueOf(this.availableDbStorageInGBs)); + sb.append(", runtimeMinimumCoreCount=") + .append(String.valueOf(this.runtimeMinimumCoreCount)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", availableMemoryInGBs=").append(String.valueOf(this.availableMemoryInGBs)); + sb.append(", availableLocalStorageInGBs=") + .append(String.valueOf(this.availableLocalStorageInGBs)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); + sb.append(", hardwareType=").append(String.valueOf(this.hardwareType)); + sb.append(", descriptionSummary=").append(String.valueOf(this.descriptionSummary)); sb.append(")"); return sb.toString(); } @@ -260,6 +564,15 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availableCoreCount, other.availableCoreCount) && java.util.Objects.equals( this.availableDbStorageInGBs, other.availableDbStorageInGBs) + && java.util.Objects.equals( + this.runtimeMinimumCoreCount, other.runtimeMinimumCoreCount) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.availableMemoryInGBs, other.availableMemoryInGBs) + && java.util.Objects.equals( + this.availableLocalStorageInGBs, other.availableLocalStorageInGBs) + && java.util.Objects.equals(this.computeModel, other.computeModel) + && java.util.Objects.equals(this.hardwareType, other.hardwareType) + && java.util.Objects.equals(this.descriptionSummary, other.descriptionSummary) && super.equals(other); } @@ -281,6 +594,29 @@ public int hashCode() { + (this.availableDbStorageInGBs == null ? 43 : this.availableDbStorageInGBs.hashCode()); + result = + (result * PRIME) + + (this.runtimeMinimumCoreCount == null + ? 43 + : this.runtimeMinimumCoreCount.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.availableMemoryInGBs == null + ? 43 + : this.availableMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.availableLocalStorageInGBs == null + ? 43 + : this.availableLocalStorageInGBs.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); + result = (result * PRIME) + (this.hardwareType == null ? 43 : this.hardwareType.hashCode()); + result = + (result * PRIME) + + (this.descriptionSummary == null + ? 43 + : this.descriptionSummary.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java index 8eff0deb3e1..095eec0f7c3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadataInfrastructureDetails.java @@ -730,6 +730,7 @@ public enum AdditionalComputeSystemModel implements com.oracle.bmc.http.internal X8M("X8M"), X9M("X9M"), X10M("X10M"), + X11M("X11M"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java index 905988d7287..363cc69889c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java @@ -54,7 +54,8 @@ public final class VmCluster extends com.oracle.bmc.http.client.internal.Explici "fileSystemConfigurationDetails", "cloudAutomationUpdateDetails", "exascaleDbStorageVaultId", - "storageManagementType" + "storageManagementType", + "computeModel" }) public VmCluster( String id, @@ -89,7 +90,8 @@ public VmCluster( java.util.List fileSystemConfigurationDetails, CloudAutomationUpdateDetails cloudAutomationUpdateDetails, String exascaleDbStorageVaultId, - StorageManagementType storageManagementType) { + StorageManagementType storageManagementType, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -124,6 +126,7 @@ public VmCluster( this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; this.storageManagementType = storageManagementType; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -686,6 +689,29 @@ public Builder storageManagementType(StorageManagementType storageManagementType this.__explicitlySet__.add("storageManagementType"); return this; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -725,7 +751,8 @@ public VmCluster build() { this.fileSystemConfigurationDetails, this.cloudAutomationUpdateDetails, this.exascaleDbStorageVaultId, - this.storageManagementType); + this.storageManagementType, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -833,6 +860,9 @@ public Builder copy(VmCluster model) { if (model.wasPropertyExplicitlySet("storageManagementType")) { this.storageManagementType(model.getStorageManagementType()); } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -1472,6 +1502,78 @@ public StorageManagementType getStorageManagementType() { return storageManagementType; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -1526,6 +1628,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", exascaleDbStorageVaultId=") .append(String.valueOf(this.exascaleDbStorageVaultId)); sb.append(", storageManagementType=").append(String.valueOf(this.storageManagementType)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -1580,6 +1683,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) && java.util.Objects.equals(this.storageManagementType, other.storageManagementType) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -1690,6 +1794,7 @@ public int hashCode() { + (this.storageManagementType == null ? 43 : this.storageManagementType.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java index 47da4c0cc7b..aa7d803ca43 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java @@ -55,7 +55,8 @@ public final class VmClusterSummary "fileSystemConfigurationDetails", "cloudAutomationUpdateDetails", "exascaleDbStorageVaultId", - "storageManagementType" + "storageManagementType", + "computeModel" }) public VmClusterSummary( String id, @@ -90,7 +91,8 @@ public VmClusterSummary( java.util.List fileSystemConfigurationDetails, CloudAutomationUpdateDetails cloudAutomationUpdateDetails, String exascaleDbStorageVaultId, - StorageManagementType storageManagementType) { + StorageManagementType storageManagementType, + ComputeModel computeModel) { super(); this.id = id; this.compartmentId = compartmentId; @@ -125,6 +127,7 @@ public VmClusterSummary( this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; this.storageManagementType = storageManagementType; + this.computeModel = computeModel; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -687,6 +690,29 @@ public Builder storageManagementType(StorageManagementType storageManagementType this.__explicitlySet__.add("storageManagementType"); return this; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify + * {@code computeModel} to a non-null value. ECPU compute model is the recommended model and + * OCPU compute model is legacy. + * + * @param computeModel the value to set + * @return this builder + */ + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -726,7 +752,8 @@ public VmClusterSummary build() { this.fileSystemConfigurationDetails, this.cloudAutomationUpdateDetails, this.exascaleDbStorageVaultId, - this.storageManagementType); + this.storageManagementType, + this.computeModel); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -834,6 +861,9 @@ public Builder copy(VmClusterSummary model) { if (model.wasPropertyExplicitlySet("storageManagementType")) { this.storageManagementType(model.getStorageManagementType()); } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } return this; } } @@ -1473,6 +1503,78 @@ public StorageManagementType getStorageManagementType() { return storageManagementType; } + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + public enum ComputeModel implements com.oracle.bmc.http.internal.BmcEnum { + Ecpu("ECPU"), + Ocpu("OCPU"), + + /** + * 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(ComputeModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeModel v : ComputeModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private final ComputeModel computeModel; + + /** + * The compute model of the Autonomous Database. This is required if using the {@code + * computeCount} parameter. If using {@code cpuCoreCount} then it is an error to specify {@code + * computeModel} to a non-null value. ECPU compute model is the recommended model and OCPU + * compute model is legacy. + * + * @return the value + */ + public ComputeModel getComputeModel() { + return computeModel; + } + @Override public String toString() { return this.toString(true); @@ -1527,6 +1629,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", exascaleDbStorageVaultId=") .append(String.valueOf(this.exascaleDbStorageVaultId)); sb.append(", storageManagementType=").append(String.valueOf(this.storageManagementType)); + sb.append(", computeModel=").append(String.valueOf(this.computeModel)); sb.append(")"); return sb.toString(); } @@ -1581,6 +1684,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) && java.util.Objects.equals(this.storageManagementType, other.storageManagementType) + && java.util.Objects.equals(this.computeModel, other.computeModel) && super.equals(other); } @@ -1691,6 +1795,7 @@ public int hashCode() { + (this.storageManagementType == null ? 43 : this.storageManagementType.hashCode()); + result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListFlexComponentsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListFlexComponentsRequest.java index 197e5064159..53a87bebaeb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListFlexComponentsRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListFlexComponentsRequest.java @@ -39,6 +39,19 @@ public String getCompartmentId() { public String getName() { return name; } + /** + * A filter to return only resources that belong to the entire shape name given. The match is + * not case sensitive. + */ + private String shape; + + /** + * A filter to return only resources that belong to the entire shape name given. The match is + * not case sensitive. + */ + public String getShape() { + return shape; + } /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ private SortOrder sortOrder; @@ -186,6 +199,24 @@ public Builder name(String name) { return this; } + /** + * A filter to return only resources that belong to the entire shape name given. The match + * is not case sensitive. + */ + private String shape = null; + + /** + * A filter to return only resources that belong to the entire shape name given. The match + * is not case sensitive. + * + * @param shape the value to set + * @return this builder instance + */ + public Builder shape(String shape) { + this.shape = shape; + return this; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ private SortOrder sortOrder = null; @@ -278,6 +309,7 @@ public Builder retryConfiguration( public Builder copy(ListFlexComponentsRequest o) { compartmentId(o.getCompartmentId()); name(o.getName()); + shape(o.getShape()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); limit(o.getLimit()); @@ -318,12 +350,14 @@ public ListFlexComponentsRequest buildWithoutInvocationCallback() { ListFlexComponentsRequest request = new ListFlexComponentsRequest(); request.compartmentId = compartmentId; request.name = name; + request.shape = shape; request.sortOrder = sortOrder; request.sortBy = sortBy; request.limit = limit; request.page = page; return request; - // new ListFlexComponentsRequest(compartmentId, name, sortOrder, sortBy, limit, page); + // new ListFlexComponentsRequest(compartmentId, name, shape, sortOrder, sortBy, limit, + // page); } } @@ -336,6 +370,7 @@ public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) .name(name) + .shape(shape) .sortOrder(sortOrder) .sortBy(sortBy) .limit(limit) @@ -358,6 +393,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",shape=").append(String.valueOf(this.shape)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -379,6 +415,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.limit, other.limit) @@ -393,6 +430,7 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.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()); diff --git a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json index 68ce4531416..698ff09d765 100644 --- a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json +++ b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json @@ -2228,6 +2228,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CloudExadataInfrastructure$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CloudExadataInfrastructureSummary", @@ -2248,6 +2254,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CloudExadataInfrastructureSummary$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CloudExadataInfrastructureUnallocatedResources", @@ -2294,6 +2306,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CloudVmCluster$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CloudVmClusterSummary", @@ -2326,6 +2344,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CloudVmClusterSummary$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CompleteExternalBackupJobDetails", @@ -4654,6 +4678,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DbServer$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DbServerDetails", @@ -4722,6 +4752,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DbServerSummary$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DbSystem", @@ -4820,6 +4856,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DbSystemShapeSummary$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DbSystemStoragePerformanceSummary", @@ -5351,6 +5393,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExadataInfrastructure$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ExadataInfrastructureContact", @@ -5397,6 +5445,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExadataInfrastructureSummary$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ExadataInfrastructureUnAllocatedResources", @@ -6275,6 +6329,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.FlexComponentSummary$HardwareType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.GenerateAutonomousDatabaseWalletDetails", @@ -9272,6 +9332,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.VmCluster$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.VmClusterNetwork", @@ -9358,6 +9424,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.VmClusterSummary$ComputeModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.VmClusterUpdate", diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 86a40a817d5..e15d30f683c 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java index 67578cff15f..af8257cce90 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java @@ -340,6 +340,25 @@ ChangeSqlPlanBaselinesAttributesResponse changeSqlPlanBaselinesAttributes( CheckExternalExadataStorageConnectorResponse checkExternalExadataStorageConnector( CheckExternalExadataStorageConnectorRequest request); + /** + * Check the status of the external database connection specified in this connector. This + * operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. + * + * @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 + * CheckExternalMySqlDatabaseConnectorConnectionStatus API. + */ + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse + checkExternalMySqlDatabaseConnectorConnectionStatus( + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest request); + /** * Configures automatic capture filters to capture only those statements that match the filter * criteria. @@ -479,6 +498,40 @@ CreateExternalExadataInfrastructureResponse createExternalExadataInfrastructure( CreateExternalExadataStorageConnectorResponse createExternalExadataStorageConnector( CreateExternalExadataStorageConnectorRequest request); + /** + * Creates an external MySQL 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 + * CreateExternalMySqlDatabase API. + */ + CreateExternalMySqlDatabaseResponse createExternalMySqlDatabase( + CreateExternalMySqlDatabaseRequest request); + + /** + * Creates an external MySQL connector resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CreateExternalMySqlDatabaseConnector API. + */ + CreateExternalMySqlDatabaseConnectorResponse createExternalMySqlDatabaseConnector( + CreateExternalMySqlDatabaseConnectorRequest request); + /** * Creates a job to be executed on a Managed Database or Managed Database Group. Only one of the * parameters, managedDatabaseId or managedDatabaseGroupId should be provided as input in @@ -647,6 +700,41 @@ DeleteExternalExadataInfrastructureResponse deleteExternalExadataInfrastructure( DeleteExternalExadataStorageConnectorResponse deleteExternalExadataStorageConnector( DeleteExternalExadataStorageConnectorRequest request); + /** + * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL 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 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 + * DeleteExternalMySqlDatabase API. + */ + DeleteExternalMySqlDatabaseResponse deleteExternalMySqlDatabase( + DeleteExternalMySqlDatabaseRequest request); + + /** + * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database + * connector. + * + * @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 + * DeleteExternalMySqlDatabaseConnector API. + */ + DeleteExternalMySqlDatabaseConnectorResponse deleteExternalMySqlDatabaseConnector( + DeleteExternalMySqlDatabaseConnectorRequest request); + /** * Deletes the job specified by jobId. * @@ -862,6 +950,23 @@ DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemStackMonit disableExternalExadataInfrastructureManagement( DisableExternalExadataInfrastructureManagementRequest request); + /** + * Disables Database Management for an external MySQL 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 + * DisableExternalMySqlDatabaseManagement API. + */ + DisableExternalMySqlDatabaseManagementResponse disableExternalMySqlDatabaseManagement( + DisableExternalMySqlDatabaseManagementRequest request); + /** * Disables a Database Management feature for the specified external non-container database. * @@ -1184,6 +1289,23 @@ EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStackMonitor enableExternalExadataInfrastructureManagement( EnableExternalExadataInfrastructureManagementRequest request); + /** + * Enables Database Management for an external MySQL 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 + * EnableExternalMySqlDatabaseManagement API. + */ + EnableExternalMySqlDatabaseManagementResponse enableExternalMySqlDatabaseManagement( + EnableExternalMySqlDatabaseManagementRequest request); + /** * Enables Database Management feature for the specified external non-container database. * @@ -1346,6 +1468,65 @@ EnableSqlPlanBaselinesUsageResponse enableSqlPlanBaselinesUsage( */ GetClusterCacheMetricResponse getClusterCacheMetric(GetClusterCacheMetricRequest request); + /** + * Gets the fleet of container databases (CDBs) and their backup details and metrics, in a + * compartment or Database Group. The databaseHostedIn query parameter must be provided to list + * either cloud or external databases. Either the CompartmentId or the ManagedDatabaseGroupId + * query parameters must be provided to retrieve the HA and backup metrics. + * + * @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 + * GetDatabaseFleetBackupMetrics API. + */ + GetDatabaseFleetBackupMetricsResponse getDatabaseFleetBackupMetrics( + GetDatabaseFleetBackupMetricsRequest request); + + /** + * Gets the fleet of Oracle Data Guard-enabled container databases (CDBs) along with Data Guard + * metrics and standby databases, in a compartment or Database Group. Either the CompartmentId + * or the ManagedDatabaseGroupId query parameters must be provided to retrieve the list of + * databases and Data Guard metrics. + * + * @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 + * GetDatabaseFleetDataguardMetrics API. + */ + GetDatabaseFleetDataguardMetricsResponse getDatabaseFleetDataguardMetrics( + GetDatabaseFleetDataguardMetricsRequest request); + + /** + * Gets the fleet of container databases (CDBs) and their HA and backup metrics in a compartment + * or in a Database Group. Either the CompartmentId or the ManagedDatabaseGroupId query + * parameters must be provided to retrieve the HA and backup metrics. + * + * @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 + * GetDatabaseFleetHaOverviewMetrics API. + */ + GetDatabaseFleetHaOverviewMetricsResponse getDatabaseFleetHaOverviewMetrics( + GetDatabaseFleetHaOverviewMetricsRequest request); + /** * Gets the health metrics for a fleet of databases in a compartment or in a Managed Database * Group. Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be @@ -1365,6 +1546,23 @@ EnableSqlPlanBaselinesUsageResponse enableSqlPlanBaselinesUsage( GetDatabaseFleetHealthMetricsResponse getDatabaseFleetHealthMetrics( GetDatabaseFleetHealthMetricsRequest request); + /** + * Gets HA and backup details with metrics and backup history for a single 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 + * GetDatabaseHaBackupDetails API. + */ + GetDatabaseHaBackupDetailsResponse getDatabaseHaBackupDetails( + GetDatabaseHaBackupDetailsRequest request); + /** * Gets a summary of the activity and resource usage metrics like DB Time, CPU, User I/O, Wait, * Storage, and Memory for a Managed Database. @@ -1671,6 +1869,40 @@ GetExternalExadataStorageServerResponse getExternalExadataStorageServer( */ GetExternalListenerResponse getExternalListener(GetExternalListenerRequest request); + /** + * Retrieves the external MySQL database 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 + * GetExternalMySqlDatabase API. + */ + GetExternalMySqlDatabaseResponse getExternalMySqlDatabase( + GetExternalMySqlDatabaseRequest request); + + /** + * Retrieves the MySQL database connector. + * + * @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 + * GetExternalMySqlDatabaseConnector API. + */ + GetExternalMySqlDatabaseConnectorResponse getExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request); + /** * Get the IORM plan from the specific Exadata storage server. * @@ -2453,6 +2685,23 @@ ListExternalListenerServicesResponse listExternalListenerServices( */ ListExternalListenersResponse listExternalListeners(ListExternalListenersRequest request); + /** + * Gets the list of External MySQL Databases. + * + * @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 + * ListExternalMySqlDatabases API. + */ + ListExternalMySqlDatabasesResponse listExternalMySqlDatabases( + ListExternalMySqlDatabasesRequest request); + /** * Gets the job execution for a specific ID or the list of job executions for a job, job run, * Managed Database or Managed Database Group in a specific compartment. Only one of the @@ -2553,6 +2802,23 @@ ListManagedDatabaseGroupsResponse listManagedDatabaseGroups( */ ListManagedDatabasesResponse listManagedDatabases(ListManagedDatabasesRequest request); + /** + * Gets the list of External MySQL Database connectors. + * + * @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 + * ListMySqlDatabaseConnectors API. + */ + ListMySqlDatabaseConnectorsResponse listMySqlDatabaseConnectors( + ListMySqlDatabaseConnectorsRequest request); + /** * Gets a single named credential specified by the name or all the named credentials in a * specific compartment. @@ -3673,6 +3939,40 @@ UpdateExternalExadataStorageServerResponse updateExternalExadataStorageServer( */ UpdateExternalListenerResponse updateExternalListener(UpdateExternalListenerRequest request); + /** + * Updates the External Mysql 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 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 + * UpdateExternalMysqlDatabase API. + */ + UpdateExternalMysqlDatabaseResponse updateExternalMysqlDatabase( + UpdateExternalMysqlDatabaseRequest request); + + /** + * Updates the External Mysql Database Connector. + * + * @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 + * UpdateExternalMysqlDatabaseConnector API. + */ + UpdateExternalMysqlDatabaseConnectorResponse updateExternalMysqlDatabaseConnector( + UpdateExternalMysqlDatabaseConnectorRequest request); + /** * Updates the details for the recurring scheduled job specified by jobId. Note that * non-recurring (one time) jobs cannot be updated. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java index 06ee6882ba3..82dbb2f1117 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java @@ -341,6 +341,25 @@ java.util.concurrent.Future changeSpaceBudget( CheckExternalExadataStorageConnectorResponse> handler); + /** + * Check the status of the external database connection specified in this connector. This + * operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. + * + * @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 + checkExternalMySqlDatabaseConnectorConnectionStatus( + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest request, + com.oracle.bmc.responses.AsyncHandler< + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest, + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse> + handler); + /** * Configures automatic capture filters to capture only those statements that match the filter * criteria. @@ -487,6 +506,40 @@ java.util.concurrent.Future createExternalDbSyst CreateExternalExadataStorageConnectorResponse> handler); + /** + * Creates an external MySQL 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 createExternalMySqlDatabase( + CreateExternalMySqlDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExternalMySqlDatabaseRequest, CreateExternalMySqlDatabaseResponse> + handler); + + /** + * Creates an external MySQL connector resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + createExternalMySqlDatabaseConnector( + CreateExternalMySqlDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExternalMySqlDatabaseConnectorRequest, + CreateExternalMySqlDatabaseConnectorResponse> + handler); + /** * Creates a job to be executed on a Managed Database or Managed Database Group. Only one of the * parameters, managedDatabaseId or managedDatabaseGroupId should be provided as input in @@ -657,6 +710,41 @@ java.util.concurrent.Future deleteExternalDbSyst DeleteExternalExadataStorageConnectorResponse> handler); + /** + * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL 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 deleteExternalMySqlDatabase( + DeleteExternalMySqlDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalMySqlDatabaseRequest, DeleteExternalMySqlDatabaseResponse> + handler); + + /** + * Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database + * connector. + * + * @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 + deleteExternalMySqlDatabaseConnector( + DeleteExternalMySqlDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalMySqlDatabaseConnectorRequest, + DeleteExternalMySqlDatabaseConnectorResponse> + handler); + /** * Deletes the job specified by jobId. * @@ -875,6 +963,24 @@ java.util.concurrent.Future deletePreferredCr DisableExternalExadataInfrastructureManagementResponse> handler); + /** + * Disables Database Management for an external MySQL 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 + disableExternalMySqlDatabaseManagement( + DisableExternalMySqlDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalMySqlDatabaseManagementRequest, + DisableExternalMySqlDatabaseManagementResponse> + handler); + /** * Disables a Database Management feature for the specified external non-container database. * @@ -1205,6 +1311,24 @@ java.util.concurrent.Future dropTablespace( EnableExternalExadataInfrastructureManagementResponse> handler); + /** + * Enables Database Management for an external MySQL 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 + enableExternalMySqlDatabaseManagement( + EnableExternalMySqlDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalMySqlDatabaseManagementRequest, + EnableExternalMySqlDatabaseManagementResponse> + handler); + /** * Enables Database Management feature for the specified external non-container database. * @@ -1367,6 +1491,68 @@ java.util.concurrent.Future getClusterCacheMetric GetClusterCacheMetricRequest, GetClusterCacheMetricResponse> handler); + /** + * Gets the fleet of container databases (CDBs) and their backup details and metrics, in a + * compartment or Database Group. The databaseHostedIn query parameter must be provided to list + * either cloud or external databases. Either the CompartmentId or the ManagedDatabaseGroupId + * query parameters must be provided to retrieve the HA and backup metrics. + * + * @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 + getDatabaseFleetBackupMetrics( + GetDatabaseFleetBackupMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseFleetBackupMetricsRequest, + GetDatabaseFleetBackupMetricsResponse> + handler); + + /** + * Gets the fleet of Oracle Data Guard-enabled container databases (CDBs) along with Data Guard + * metrics and standby databases, in a compartment or Database Group. Either the CompartmentId + * or the ManagedDatabaseGroupId query parameters must be provided to retrieve the list of + * databases and Data Guard metrics. + * + * @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 + getDatabaseFleetDataguardMetrics( + GetDatabaseFleetDataguardMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseFleetDataguardMetricsRequest, + GetDatabaseFleetDataguardMetricsResponse> + handler); + + /** + * Gets the fleet of container databases (CDBs) and their HA and backup metrics in a compartment + * or in a Database Group. Either the CompartmentId or the ManagedDatabaseGroupId query + * parameters must be provided to retrieve the HA and backup metrics. + * + * @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 + getDatabaseFleetHaOverviewMetrics( + GetDatabaseFleetHaOverviewMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseFleetHaOverviewMetricsRequest, + GetDatabaseFleetHaOverviewMetricsResponse> + handler); + /** * Gets the health metrics for a fleet of databases in a compartment or in a Managed Database * Group. Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be @@ -1387,6 +1573,22 @@ java.util.concurrent.Future getClusterCacheMetric GetDatabaseFleetHealthMetricsResponse> handler); + /** + * Gets HA and backup details with metrics and backup history for a single 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 getDatabaseHaBackupDetails( + GetDatabaseHaBackupDetailsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDatabaseHaBackupDetailsRequest, GetDatabaseHaBackupDetailsResponse> + handler); + /** * Gets a summary of the activity and resource usage metrics like DB Time, CPU, User I/O, Wait, * Storage, and Memory for a Managed Database. @@ -1697,6 +1899,40 @@ java.util.concurrent.Future getExternalListener( GetExternalListenerRequest, GetExternalListenerResponse> handler); + /** + * Retrieves the external MySQL database 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 getExternalMySqlDatabase( + GetExternalMySqlDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExternalMySqlDatabaseRequest, GetExternalMySqlDatabaseResponse> + handler); + + /** + * Retrieves the MySQL database connector. + * + * @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 + getExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse> + handler); + /** * Get the IORM plan from the specific Exadata storage server. * @@ -2476,6 +2712,22 @@ java.util.concurrent.Future listExternalListeners ListExternalListenersRequest, ListExternalListenersResponse> handler); + /** + * Gets the list of External MySQL Databases. + * + * @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 listExternalMySqlDatabases( + ListExternalMySqlDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExternalMySqlDatabasesRequest, ListExternalMySqlDatabasesResponse> + handler); + /** * Gets the job execution for a specific ID or the list of job executions for a job, job run, * Managed Database or Managed Database Group in a specific compartment. Only one of the @@ -2573,6 +2825,22 @@ java.util.concurrent.Future listManagedDatabases( ListManagedDatabasesRequest, ListManagedDatabasesResponse> handler); + /** + * Gets the list of External MySQL Database connectors. + * + * @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 listMySqlDatabaseConnectors( + ListMySqlDatabaseConnectorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMySqlDatabaseConnectorsRequest, ListMySqlDatabaseConnectorsResponse> + handler); + /** * Gets a single named credential specified by the name or all the named credentials in a * specific compartment. @@ -3703,6 +3971,40 @@ java.util.concurrent.Future updateExternalListen UpdateExternalListenerRequest, UpdateExternalListenerResponse> handler); + /** + * Updates the External Mysql 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 updateExternalMysqlDatabase( + UpdateExternalMysqlDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalMysqlDatabaseRequest, UpdateExternalMysqlDatabaseResponse> + handler); + + /** + * Updates the External Mysql Database Connector. + * + * @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 + updateExternalMysqlDatabaseConnector( + UpdateExternalMysqlDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalMysqlDatabaseConnectorRequest, + UpdateExternalMysqlDatabaseConnectorResponse> + handler); + /** * Updates the details for the recurring scheduled job specified by jobId. Note that * non-recurring (one time) jobs cannot be updated. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java index 301bd1952d9..467b7d53a44 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java @@ -678,6 +678,49 @@ public java.util.concurrent.Future changeSpaceBudget( .callAsync(handler); } + @Override + public java.util.concurrent.Future + checkExternalMySqlDatabaseConnectorConnectionStatus( + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest, + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + + return clientCall( + request, + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse::builder) + .logger(LOG, "checkExternalMySqlDatabaseConnectorConnectionStatus") + .serviceDetails( + "DbManagement", + "CheckExternalMySqlDatabaseConnectorConnectionStatus", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/CheckExternalMySqlDatabaseConnectorConnectionStatus") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CheckExternalMySqlDatabaseConnectorConnectionStatusRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .appendPathParam("actions") + .appendPathParam("checkConnectionStatus") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future configureAutomaticCaptureFilters( @@ -994,6 +1037,95 @@ public java.util.concurrent.Future createExterna .callAsync(handler); } + @Override + public java.util.concurrent.Future + createExternalMySqlDatabase( + CreateExternalMySqlDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExternalMySqlDatabaseRequest, + CreateExternalMySqlDatabaseResponse> + handler) { + Objects.requireNonNull( + request.getCreateExternalMySqlDatabaseDetails(), + "createExternalMySqlDatabaseDetails is required"); + + return clientCall(request, CreateExternalMySqlDatabaseResponse::builder) + .logger(LOG, "createExternalMySqlDatabase") + .serviceDetails( + "DbManagement", + "CreateExternalMySqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/CreateExternalMySqlDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExternalMySqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase.class, + CreateExternalMySqlDatabaseResponse.Builder::externalMySqlDatabase) + .handleResponseHeaderString( + "etag", CreateExternalMySqlDatabaseResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateExternalMySqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateExternalMySqlDatabaseResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateExternalMySqlDatabaseResponse.Builder::contentLocation) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createExternalMySqlDatabaseConnector( + CreateExternalMySqlDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExternalMySqlDatabaseConnectorRequest, + CreateExternalMySqlDatabaseConnectorResponse> + handler) { + Objects.requireNonNull( + request.getCreateExternalMySqlDatabaseConnectorDetails(), + "createExternalMySqlDatabaseConnectorDetails is required"); + + Objects.requireNonNull( + request.getIsTestConnectionParam(), "isTestConnectionParam is required"); + + return clientCall(request, CreateExternalMySqlDatabaseConnectorResponse::builder) + .logger(LOG, "createExternalMySqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "CreateExternalMySqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/CreateExternalMySqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExternalMySqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendQueryParam("isTestConnectionParam", request.getIsTestConnectionParam()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + .class, + CreateExternalMySqlDatabaseConnectorResponse.Builder + ::externalMySqlDatabaseConnector) + .handleResponseHeaderString( + "opc-request-id", + CreateExternalMySqlDatabaseConnectorResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateExternalMySqlDatabaseConnectorResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateExternalMySqlDatabaseConnectorResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateExternalMySqlDatabaseConnectorResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createJob( CreateJobRequest request, @@ -1335,6 +1467,76 @@ public java.util.concurrent.Future deleteExterna .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteExternalMySqlDatabase( + DeleteExternalMySqlDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExternalMySqlDatabaseRequest, + DeleteExternalMySqlDatabaseResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + + return clientCall(request, DeleteExternalMySqlDatabaseResponse::builder) + .logger(LOG, "deleteExternalMySqlDatabase") + .serviceDetails( + "DbManagement", + "DeleteExternalMySqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DeleteExternalMySqlDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExternalMySqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteExternalMySqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteExternalMySqlDatabaseResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteExternalMySqlDatabaseConnector( + DeleteExternalMySqlDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExternalMySqlDatabaseConnectorRequest, + DeleteExternalMySqlDatabaseConnectorResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + + return clientCall(request, DeleteExternalMySqlDatabaseConnectorResponse::builder) + .logger(LOG, "deleteExternalMySqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "DeleteExternalMySqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/DeleteExternalMySqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExternalMySqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteExternalMySqlDatabaseConnectorResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteExternalMySqlDatabaseConnectorResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteJob( DeleteJobRequest request, @@ -1771,6 +1973,44 @@ public java.util.concurrent.Future deletePref .callAsync(handler); } + @Override + public java.util.concurrent.Future + disableExternalMySqlDatabaseManagement( + DisableExternalMySqlDatabaseManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalMySqlDatabaseManagementRequest, + DisableExternalMySqlDatabaseManagementResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + + return clientCall(request, DisableExternalMySqlDatabaseManagementResponse::builder) + .logger(LOG, "disableExternalMySqlDatabaseManagement") + .serviceDetails( + "DbManagement", + "DisableExternalMySqlDatabaseManagement", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DisableExternalMySqlDatabaseManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalMySqlDatabaseManagementRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalMySqlDatabaseManagementResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DisableExternalMySqlDatabaseManagementResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future disableExternalNonContainerDatabaseManagementFeature( @@ -2428,6 +2668,48 @@ public java.util.concurrent.Future dropTablespace( .callAsync(handler); } + @Override + public java.util.concurrent.Future + enableExternalMySqlDatabaseManagement( + EnableExternalMySqlDatabaseManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableExternalMySqlDatabaseManagementRequest, + EnableExternalMySqlDatabaseManagementResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalDatabaseManagementDetails(), + "enableExternalDatabaseManagementDetails is required"); + + return clientCall(request, EnableExternalMySqlDatabaseManagementResponse::builder) + .logger(LOG, "enableExternalMySqlDatabaseManagement") + .serviceDetails( + "DbManagement", + "EnableExternalMySqlDatabaseManagement", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/EnableExternalMySqlDatabaseManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalMySqlDatabaseManagementRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalMySqlDatabaseManagementResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + EnableExternalMySqlDatabaseManagementResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future enableExternalNonContainerDatabaseManagementFeature( @@ -2804,6 +3086,184 @@ public java.util.concurrent.Future getClusterCach .callAsync(handler); } + @Override + public java.util.concurrent.Future + getDatabaseFleetBackupMetrics( + GetDatabaseFleetBackupMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseFleetBackupMetricsRequest, + GetDatabaseFleetBackupMetricsResponse> + handler) { + Objects.requireNonNull(request.getDatabaseHostedIn(), "databaseHostedIn is required"); + + Objects.requireNonNull(request.getStartTime(), "startTime is required"); + + Objects.requireNonNull(request.getEndTime(), "endTime is required"); + + return clientCall(request, GetDatabaseFleetBackupMetricsResponse::builder) + .logger(LOG, "getDatabaseFleetBackupMetrics") + .serviceDetails( + "DbManagement", + "GetDatabaseFleetBackupMetrics", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetBackupMetrics/GetDatabaseFleetBackupMetrics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseFleetBackupMetricsRequest::builder) + .basePath("/20201101") + .appendPathParam("databaseFleetBackupMetrics") + .appendEnumQueryParam("databaseHostedIn", request.getDatabaseHostedIn()) + .appendQueryParam("managedDatabaseGroupId", request.getManagedDatabaseGroupId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("startTime", request.getStartTime()) + .appendQueryParam("endTime", request.getEndTime()) + .appendQueryParam("filterByMetricNames", request.getFilterByMetricNames()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "definedTagExists", + request.getDefinedTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagExists", + request.getFreeformTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics.class, + GetDatabaseFleetBackupMetricsResponse.Builder::databaseFleetBackupMetrics) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseFleetBackupMetricsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", GetDatabaseFleetBackupMetricsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseFleetDataguardMetrics( + GetDatabaseFleetDataguardMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseFleetDataguardMetricsRequest, + GetDatabaseFleetDataguardMetricsResponse> + handler) { + + return clientCall(request, GetDatabaseFleetDataguardMetricsResponse::builder) + .logger(LOG, "getDatabaseFleetDataguardMetrics") + .serviceDetails( + "DbManagement", + "GetDatabaseFleetDataguardMetrics", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetDataguardMetrics/GetDatabaseFleetDataguardMetrics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseFleetDataguardMetricsRequest::builder) + .basePath("/20201101") + .appendPathParam("databaseFleetDataguardMetrics") + .appendQueryParam("managedDatabaseGroupId", request.getManagedDatabaseGroupId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("filterByMetricNames", request.getFilterByMetricNames()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "definedTagExists", + request.getDefinedTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagExists", + request.getFreeformTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics.class, + GetDatabaseFleetDataguardMetricsResponse.Builder + ::databaseFleetDataguardMetrics) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseFleetDataguardMetricsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + GetDatabaseFleetDataguardMetricsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseFleetHaOverviewMetrics( + GetDatabaseFleetHaOverviewMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseFleetHaOverviewMetricsRequest, + GetDatabaseFleetHaOverviewMetricsResponse> + handler) { + + return clientCall(request, GetDatabaseFleetHaOverviewMetricsResponse::builder) + .logger(LOG, "getDatabaseFleetHaOverviewMetrics") + .serviceDetails( + "DbManagement", + "GetDatabaseFleetHaOverviewMetrics", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetHaOverviewMetrics/GetDatabaseFleetHaOverviewMetrics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseFleetHaOverviewMetricsRequest::builder) + .basePath("/20201101") + .appendPathParam("databaseFleetHaOverviewMetrics") + .appendQueryParam("managedDatabaseGroupId", request.getManagedDatabaseGroupId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("filterByMetricNames", request.getFilterByMetricNames()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "definedTagExists", + request.getDefinedTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagExists", + request.getFreeformTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + .class, + GetDatabaseFleetHaOverviewMetricsResponse.Builder + ::databaseFleetHaOverviewMetrics) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseFleetHaOverviewMetricsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + GetDatabaseFleetHaOverviewMetricsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDatabaseFleetHealthMetrics( @@ -2871,6 +3331,40 @@ public java.util.concurrent.Future getClusterCach .callAsync(handler); } + @Override + public java.util.concurrent.Future + getDatabaseHaBackupDetails( + GetDatabaseHaBackupDetailsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseHaBackupDetailsRequest, + GetDatabaseHaBackupDetailsResponse> + handler) { + + Validate.notBlank(request.getManagedDatabaseId(), "managedDatabaseId must not be blank"); + + return clientCall(request, GetDatabaseHaBackupDetailsResponse::builder) + .logger(LOG, "getDatabaseHaBackupDetails") + .serviceDetails( + "DbManagement", + "GetDatabaseHaBackupDetails", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseHaBackupDetails/GetDatabaseHaBackupDetails") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseHaBackupDetailsRequest::builder) + .basePath("/20201101") + .appendPathParam("managedDatabases") + .appendPathParam(request.getManagedDatabaseId()) + .appendPathParam("haBackupDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails.class, + GetDatabaseHaBackupDetailsResponse.Builder::databaseHaBackupDetails) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseHaBackupDetailsResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDatabaseHomeMetrics( GetDatabaseHomeMetricsRequest request, @@ -3499,6 +3993,77 @@ public java.util.concurrent.Future getExternalListe .callAsync(handler); } + @Override + public java.util.concurrent.Future getExternalMySqlDatabase( + GetExternalMySqlDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExternalMySqlDatabaseRequest, GetExternalMySqlDatabaseResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + + return clientCall(request, GetExternalMySqlDatabaseResponse::builder) + .logger(LOG, "getExternalMySqlDatabase") + .serviceDetails( + "DbManagement", + "GetExternalMySqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/GetExternalMySqlDatabase") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExternalMySqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase.class, + GetExternalMySqlDatabaseResponse.Builder::externalMySqlDatabase) + .handleResponseHeaderString( + "opc-request-id", GetExternalMySqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetExternalMySqlDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + + return clientCall(request, GetExternalMySqlDatabaseConnectorResponse::builder) + .logger(LOG, "getExternalMySqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "GetExternalMySqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/GetExternalMySqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExternalMySqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + .class, + GetExternalMySqlDatabaseConnectorResponse.Builder + ::externalMySqlDatabaseConnector) + .handleResponseHeaderString( + "opc-request-id", + GetExternalMySqlDatabaseConnectorResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetExternalMySqlDatabaseConnectorResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getIormPlan( GetIormPlanRequest request, @@ -5289,6 +5854,45 @@ public java.util.concurrent.Future listExternalLi .callAsync(handler); } + @Override + public java.util.concurrent.Future + listExternalMySqlDatabases( + ListExternalMySqlDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExternalMySqlDatabasesRequest, + ListExternalMySqlDatabasesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListExternalMySqlDatabasesResponse::builder) + .logger(LOG, "listExternalMySqlDatabases") + .serviceDetails( + "DbManagement", + "ListExternalMySqlDatabases", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseCollection/ListExternalMySqlDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExternalMySqlDatabasesRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + .class, + ListExternalMySqlDatabasesResponse.Builder::externalMySqlDatabaseCollection) + .handleResponseHeaderString( + "opc-request-id", ListExternalMySqlDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExternalMySqlDatabasesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listJobExecutions( ListJobExecutionsRequest request, @@ -5490,6 +6094,45 @@ public java.util.concurrent.Future listManagedData .callAsync(handler); } + @Override + public java.util.concurrent.Future + listMySqlDatabaseConnectors( + ListMySqlDatabaseConnectorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMySqlDatabaseConnectorsRequest, + ListMySqlDatabaseConnectorsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMySqlDatabaseConnectorsResponse::builder) + .logger(LOG, "listMySqlDatabaseConnectors") + .serviceDetails( + "DbManagement", + "ListMySqlDatabaseConnectors", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/MySqlConnectorCollection/ListMySqlDatabaseConnectors") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMySqlDatabaseConnectorsRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendQueryParam("externalDatabaseId", request.getExternalDatabaseId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection.class, + ListMySqlDatabaseConnectorsResponse.Builder::mySqlConnectorCollection) + .handleResponseHeaderString( + "opc-request-id", ListMySqlDatabaseConnectorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMySqlDatabaseConnectorsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listNamedCredentials( ListNamedCredentialsRequest request, @@ -8213,6 +8856,93 @@ public java.util.concurrent.Future updateExterna .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateExternalMysqlDatabase( + UpdateExternalMysqlDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExternalMysqlDatabaseRequest, + UpdateExternalMysqlDatabaseResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getUpdateExternalMySqlDatabaseDetails(), + "updateExternalMySqlDatabaseDetails is required"); + + return clientCall(request, UpdateExternalMysqlDatabaseResponse::builder) + .logger(LOG, "updateExternalMysqlDatabase") + .serviceDetails( + "DbManagement", + "UpdateExternalMysqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/UpdateExternalMysqlDatabase") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExternalMysqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase.class, + UpdateExternalMysqlDatabaseResponse.Builder::externalMySqlDatabase) + .handleResponseHeaderString( + "opc-request-id", UpdateExternalMysqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateExternalMysqlDatabaseResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateExternalMysqlDatabaseConnector( + UpdateExternalMysqlDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExternalMysqlDatabaseConnectorRequest, + UpdateExternalMysqlDatabaseConnectorResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + Objects.requireNonNull( + request.getUpdateExternalMySqlDatabaseConnectorDetails(), + "updateExternalMySqlDatabaseConnectorDetails is required"); + + return clientCall(request, UpdateExternalMysqlDatabaseConnectorResponse::builder) + .logger(LOG, "updateExternalMysqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "UpdateExternalMysqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/UpdateExternalMysqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExternalMysqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + .class, + UpdateExternalMysqlDatabaseConnectorResponse.Builder + ::externalMySqlDatabaseConnector) + .handleResponseHeaderString( + "opc-request-id", + UpdateExternalMysqlDatabaseConnectorResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateExternalMysqlDatabaseConnectorResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "etag", UpdateExternalMysqlDatabaseConnectorResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateJob( UpdateJobRequest request, diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java index d91fa094330..9c7e047b873 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java @@ -648,6 +648,46 @@ public CheckExternalExadataStorageConnectorResponse checkExternalExadataStorageC .callSync(); } + @Override + public CheckExternalMySqlDatabaseConnectorConnectionStatusResponse + checkExternalMySqlDatabaseConnectorConnectionStatus( + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + + return clientCall( + request, + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse::builder) + .logger(LOG, "checkExternalMySqlDatabaseConnectorConnectionStatus") + .serviceDetails( + "DbManagement", + "CheckExternalMySqlDatabaseConnectorConnectionStatus", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/CheckExternalMySqlDatabaseConnectorConnectionStatus") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CheckExternalMySqlDatabaseConnectorConnectionStatusRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .appendPathParam("actions") + .appendPathParam("checkConnectionStatus") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.Builder + ::opcRequestId) + .callSync(); + } + @Override public ConfigureAutomaticCaptureFiltersResponse configureAutomaticCaptureFilters( ConfigureAutomaticCaptureFiltersRequest request) { @@ -931,6 +971,87 @@ public CreateExternalExadataStorageConnectorResponse createExternalExadataStorag .callSync(); } + @Override + public CreateExternalMySqlDatabaseResponse createExternalMySqlDatabase( + CreateExternalMySqlDatabaseRequest request) { + Objects.requireNonNull( + request.getCreateExternalMySqlDatabaseDetails(), + "createExternalMySqlDatabaseDetails is required"); + + return clientCall(request, CreateExternalMySqlDatabaseResponse::builder) + .logger(LOG, "createExternalMySqlDatabase") + .serviceDetails( + "DbManagement", + "CreateExternalMySqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/CreateExternalMySqlDatabase") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExternalMySqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase.class, + CreateExternalMySqlDatabaseResponse.Builder::externalMySqlDatabase) + .handleResponseHeaderString( + "etag", CreateExternalMySqlDatabaseResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateExternalMySqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateExternalMySqlDatabaseResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateExternalMySqlDatabaseResponse.Builder::contentLocation) + .callSync(); + } + + @Override + public CreateExternalMySqlDatabaseConnectorResponse createExternalMySqlDatabaseConnector( + CreateExternalMySqlDatabaseConnectorRequest request) { + Objects.requireNonNull( + request.getCreateExternalMySqlDatabaseConnectorDetails(), + "createExternalMySqlDatabaseConnectorDetails is required"); + + Objects.requireNonNull( + request.getIsTestConnectionParam(), "isTestConnectionParam is required"); + + return clientCall(request, CreateExternalMySqlDatabaseConnectorResponse::builder) + .logger(LOG, "createExternalMySqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "CreateExternalMySqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/CreateExternalMySqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExternalMySqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendQueryParam("isTestConnectionParam", request.getIsTestConnectionParam()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + .class, + CreateExternalMySqlDatabaseConnectorResponse.Builder + ::externalMySqlDatabaseConnector) + .handleResponseHeaderString( + "opc-request-id", + CreateExternalMySqlDatabaseConnectorResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateExternalMySqlDatabaseConnectorResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateExternalMySqlDatabaseConnectorResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateExternalMySqlDatabaseConnectorResponse.Builder::etag) + .callSync(); + } + @Override public CreateJobResponse createJob(CreateJobRequest request) { Objects.requireNonNull(request.getCreateJobDetails(), "createJobDetails is required"); @@ -1229,6 +1350,66 @@ public DeleteExternalExadataStorageConnectorResponse deleteExternalExadataStorag .callSync(); } + @Override + public DeleteExternalMySqlDatabaseResponse deleteExternalMySqlDatabase( + DeleteExternalMySqlDatabaseRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + + return clientCall(request, DeleteExternalMySqlDatabaseResponse::builder) + .logger(LOG, "deleteExternalMySqlDatabase") + .serviceDetails( + "DbManagement", + "DeleteExternalMySqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DeleteExternalMySqlDatabase") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExternalMySqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteExternalMySqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteExternalMySqlDatabaseResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteExternalMySqlDatabaseConnectorResponse deleteExternalMySqlDatabaseConnector( + DeleteExternalMySqlDatabaseConnectorRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + + return clientCall(request, DeleteExternalMySqlDatabaseConnectorResponse::builder) + .logger(LOG, "deleteExternalMySqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "DeleteExternalMySqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/DeleteExternalMySqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExternalMySqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteExternalMySqlDatabaseConnectorResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteExternalMySqlDatabaseConnectorResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteJobResponse deleteJob(DeleteJobRequest request) { @@ -1621,6 +1802,40 @@ public DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemSta .callSync(); } + @Override + public DisableExternalMySqlDatabaseManagementResponse disableExternalMySqlDatabaseManagement( + DisableExternalMySqlDatabaseManagementRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + + return clientCall(request, DisableExternalMySqlDatabaseManagementResponse::builder) + .logger(LOG, "disableExternalMySqlDatabaseManagement") + .serviceDetails( + "DbManagement", + "DisableExternalMySqlDatabaseManagement", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DisableExternalMySqlDatabaseManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalMySqlDatabaseManagementRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalMySqlDatabaseManagementResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DisableExternalMySqlDatabaseManagementResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DisableExternalNonContainerDatabaseManagementFeatureResponse disableExternalNonContainerDatabaseManagementFeature( @@ -2218,6 +2433,44 @@ public EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStack .callSync(); } + @Override + public EnableExternalMySqlDatabaseManagementResponse enableExternalMySqlDatabaseManagement( + EnableExternalMySqlDatabaseManagementRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalDatabaseManagementDetails(), + "enableExternalDatabaseManagementDetails is required"); + + return clientCall(request, EnableExternalMySqlDatabaseManagementResponse::builder) + .logger(LOG, "enableExternalMySqlDatabaseManagement") + .serviceDetails( + "DbManagement", + "EnableExternalMySqlDatabaseManagement", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/EnableExternalMySqlDatabaseManagement") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalMySqlDatabaseManagementRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalMySqlDatabaseManagementResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + EnableExternalMySqlDatabaseManagementResponse.Builder::opcRequestId) + .callSync(); + } + @Override public EnableExternalNonContainerDatabaseManagementFeatureResponse enableExternalNonContainerDatabaseManagementFeature( @@ -2561,6 +2814,172 @@ public GetClusterCacheMetricResponse getClusterCacheMetric( .callSync(); } + @Override + public GetDatabaseFleetBackupMetricsResponse getDatabaseFleetBackupMetrics( + GetDatabaseFleetBackupMetricsRequest request) { + Objects.requireNonNull(request.getDatabaseHostedIn(), "databaseHostedIn is required"); + + Objects.requireNonNull(request.getStartTime(), "startTime is required"); + + Objects.requireNonNull(request.getEndTime(), "endTime is required"); + + return clientCall(request, GetDatabaseFleetBackupMetricsResponse::builder) + .logger(LOG, "getDatabaseFleetBackupMetrics") + .serviceDetails( + "DbManagement", + "GetDatabaseFleetBackupMetrics", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetBackupMetrics/GetDatabaseFleetBackupMetrics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseFleetBackupMetricsRequest::builder) + .basePath("/20201101") + .appendPathParam("databaseFleetBackupMetrics") + .appendEnumQueryParam("databaseHostedIn", request.getDatabaseHostedIn()) + .appendQueryParam("managedDatabaseGroupId", request.getManagedDatabaseGroupId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("startTime", request.getStartTime()) + .appendQueryParam("endTime", request.getEndTime()) + .appendQueryParam("filterByMetricNames", request.getFilterByMetricNames()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "definedTagExists", + request.getDefinedTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagExists", + request.getFreeformTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics.class, + GetDatabaseFleetBackupMetricsResponse.Builder::databaseFleetBackupMetrics) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseFleetBackupMetricsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", GetDatabaseFleetBackupMetricsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public GetDatabaseFleetDataguardMetricsResponse getDatabaseFleetDataguardMetrics( + GetDatabaseFleetDataguardMetricsRequest request) { + + return clientCall(request, GetDatabaseFleetDataguardMetricsResponse::builder) + .logger(LOG, "getDatabaseFleetDataguardMetrics") + .serviceDetails( + "DbManagement", + "GetDatabaseFleetDataguardMetrics", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetDataguardMetrics/GetDatabaseFleetDataguardMetrics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseFleetDataguardMetricsRequest::builder) + .basePath("/20201101") + .appendPathParam("databaseFleetDataguardMetrics") + .appendQueryParam("managedDatabaseGroupId", request.getManagedDatabaseGroupId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("filterByMetricNames", request.getFilterByMetricNames()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "definedTagExists", + request.getDefinedTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagExists", + request.getFreeformTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics.class, + GetDatabaseFleetDataguardMetricsResponse.Builder + ::databaseFleetDataguardMetrics) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseFleetDataguardMetricsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + GetDatabaseFleetDataguardMetricsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public GetDatabaseFleetHaOverviewMetricsResponse getDatabaseFleetHaOverviewMetrics( + GetDatabaseFleetHaOverviewMetricsRequest request) { + + return clientCall(request, GetDatabaseFleetHaOverviewMetricsResponse::builder) + .logger(LOG, "getDatabaseFleetHaOverviewMetrics") + .serviceDetails( + "DbManagement", + "GetDatabaseFleetHaOverviewMetrics", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetHaOverviewMetrics/GetDatabaseFleetHaOverviewMetrics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseFleetHaOverviewMetricsRequest::builder) + .basePath("/20201101") + .appendPathParam("databaseFleetHaOverviewMetrics") + .appendQueryParam("managedDatabaseGroupId", request.getManagedDatabaseGroupId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("filterByMetricNames", request.getFilterByMetricNames()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "definedTagExists", + request.getDefinedTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagExists", + request.getFreeformTagExists(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + .class, + GetDatabaseFleetHaOverviewMetricsResponse.Builder + ::databaseFleetHaOverviewMetrics) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseFleetHaOverviewMetricsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + GetDatabaseFleetHaOverviewMetricsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public GetDatabaseFleetHealthMetricsResponse getDatabaseFleetHealthMetrics( GetDatabaseFleetHealthMetricsRequest request) { @@ -2623,6 +3042,36 @@ public GetDatabaseFleetHealthMetricsResponse getDatabaseFleetHealthMetrics( .callSync(); } + @Override + public GetDatabaseHaBackupDetailsResponse getDatabaseHaBackupDetails( + GetDatabaseHaBackupDetailsRequest request) { + + Validate.notBlank(request.getManagedDatabaseId(), "managedDatabaseId must not be blank"); + + return clientCall(request, GetDatabaseHaBackupDetailsResponse::builder) + .logger(LOG, "getDatabaseHaBackupDetails") + .serviceDetails( + "DbManagement", + "GetDatabaseHaBackupDetails", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseHaBackupDetails/GetDatabaseHaBackupDetails") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseHaBackupDetailsRequest::builder) + .basePath("/20201101") + .appendPathParam("managedDatabases") + .appendPathParam(request.getManagedDatabaseId()) + .appendPathParam("haBackupDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails.class, + GetDatabaseHaBackupDetailsResponse.Builder::databaseHaBackupDetails) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseHaBackupDetailsResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDatabaseHomeMetricsResponse getDatabaseHomeMetrics( GetDatabaseHomeMetricsRequest request) { @@ -3186,6 +3635,71 @@ public GetExternalListenerResponse getExternalListener(GetExternalListenerReques .callSync(); } + @Override + public GetExternalMySqlDatabaseResponse getExternalMySqlDatabase( + GetExternalMySqlDatabaseRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + + return clientCall(request, GetExternalMySqlDatabaseResponse::builder) + .logger(LOG, "getExternalMySqlDatabase") + .serviceDetails( + "DbManagement", + "GetExternalMySqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/GetExternalMySqlDatabase") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExternalMySqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase.class, + GetExternalMySqlDatabaseResponse.Builder::externalMySqlDatabase) + .handleResponseHeaderString( + "opc-request-id", GetExternalMySqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetExternalMySqlDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public GetExternalMySqlDatabaseConnectorResponse getExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + + return clientCall(request, GetExternalMySqlDatabaseConnectorResponse::builder) + .logger(LOG, "getExternalMySqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "GetExternalMySqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/GetExternalMySqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExternalMySqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + .class, + GetExternalMySqlDatabaseConnectorResponse.Builder + ::externalMySqlDatabaseConnector) + .handleResponseHeaderString( + "opc-request-id", + GetExternalMySqlDatabaseConnectorResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetExternalMySqlDatabaseConnectorResponse.Builder::etag) + .callSync(); + } + @Override public GetIormPlanResponse getIormPlan(GetIormPlanRequest request) { @@ -4821,6 +5335,40 @@ public ListExternalListenersResponse listExternalListeners( .callSync(); } + @Override + public ListExternalMySqlDatabasesResponse listExternalMySqlDatabases( + ListExternalMySqlDatabasesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListExternalMySqlDatabasesResponse::builder) + .logger(LOG, "listExternalMySqlDatabases") + .serviceDetails( + "DbManagement", + "ListExternalMySqlDatabases", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseCollection/ListExternalMySqlDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExternalMySqlDatabasesRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + .class, + ListExternalMySqlDatabasesResponse.Builder::externalMySqlDatabaseCollection) + .handleResponseHeaderString( + "opc-request-id", ListExternalMySqlDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExternalMySqlDatabasesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListJobExecutionsResponse listJobExecutions(ListJobExecutionsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -5005,6 +5553,40 @@ public ListManagedDatabasesResponse listManagedDatabases(ListManagedDatabasesReq .callSync(); } + @Override + public ListMySqlDatabaseConnectorsResponse listMySqlDatabaseConnectors( + ListMySqlDatabaseConnectorsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMySqlDatabaseConnectorsResponse::builder) + .logger(LOG, "listMySqlDatabaseConnectors") + .serviceDetails( + "DbManagement", + "ListMySqlDatabaseConnectors", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/MySqlConnectorCollection/ListMySqlDatabaseConnectors") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMySqlDatabaseConnectorsRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendQueryParam("externalDatabaseId", request.getExternalDatabaseId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection.class, + ListMySqlDatabaseConnectorsResponse.Builder::mySqlConnectorCollection) + .handleResponseHeaderString( + "opc-request-id", ListMySqlDatabaseConnectorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMySqlDatabaseConnectorsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListNamedCredentialsResponse listNamedCredentials(ListNamedCredentialsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -7482,6 +8064,83 @@ public UpdateExternalListenerResponse updateExternalListener( .callSync(); } + @Override + public UpdateExternalMysqlDatabaseResponse updateExternalMysqlDatabase( + UpdateExternalMysqlDatabaseRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getUpdateExternalMySqlDatabaseDetails(), + "updateExternalMySqlDatabaseDetails is required"); + + return clientCall(request, UpdateExternalMysqlDatabaseResponse::builder) + .logger(LOG, "updateExternalMysqlDatabase") + .serviceDetails( + "DbManagement", + "UpdateExternalMysqlDatabase", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/UpdateExternalMysqlDatabase") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExternalMysqlDatabaseRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase.class, + UpdateExternalMysqlDatabaseResponse.Builder::externalMySqlDatabase) + .handleResponseHeaderString( + "opc-request-id", UpdateExternalMysqlDatabaseResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateExternalMysqlDatabaseResponse.Builder::etag) + .callSync(); + } + + @Override + public UpdateExternalMysqlDatabaseConnectorResponse updateExternalMysqlDatabaseConnector( + UpdateExternalMysqlDatabaseConnectorRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseConnectorId(), + "externalMySqlDatabaseConnectorId must not be blank"); + Objects.requireNonNull( + request.getUpdateExternalMySqlDatabaseConnectorDetails(), + "updateExternalMySqlDatabaseConnectorDetails is required"); + + return clientCall(request, UpdateExternalMysqlDatabaseConnectorResponse::builder) + .logger(LOG, "updateExternalMysqlDatabaseConnector") + .serviceDetails( + "DbManagement", + "UpdateExternalMysqlDatabaseConnector", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/UpdateExternalMysqlDatabaseConnector") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExternalMysqlDatabaseConnectorRequest::builder) + .basePath("/20201101") + .appendPathParam("externalMySqlDatabaseConnectors") + .appendPathParam(request.getExternalMySqlDatabaseConnectorId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + .class, + UpdateExternalMysqlDatabaseConnectorResponse.Builder + ::externalMySqlDatabaseConnector) + .handleResponseHeaderString( + "opc-request-id", + UpdateExternalMysqlDatabaseConnectorResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateExternalMysqlDatabaseConnectorResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "etag", UpdateExternalMysqlDatabaseConnectorResponse.Builder::etag) + .callSync(); + } + @Override public UpdateJobResponse updateJob(UpdateJobRequest request) { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java index 9dd3f2bc595..a9ee6fa416f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java @@ -2954,6 +2954,133 @@ public ListExternalListenersResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listExternalMySqlDatabases 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 listExternalMySqlDatabasesResponseIterator( + final ListExternalMySqlDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExternalMySqlDatabasesRequest.Builder, + ListExternalMySqlDatabasesRequest, + ListExternalMySqlDatabasesResponse>( + new java.util.function.Supplier() { + @Override + public ListExternalMySqlDatabasesRequest.Builder get() { + return ListExternalMySqlDatabasesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExternalMySqlDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalMySqlDatabasesRequest.Builder>, + ListExternalMySqlDatabasesRequest>() { + @Override + public ListExternalMySqlDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalMySqlDatabasesRequest.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< + ListExternalMySqlDatabasesRequest, ListExternalMySqlDatabasesResponse>() { + @Override + public ListExternalMySqlDatabasesResponse apply( + ListExternalMySqlDatabasesRequest request) { + return client.listExternalMySqlDatabases(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseSummary} objects contained in + * responses from the listExternalMySqlDatabases operation. This iterable will fetch more data + * from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseSummary} objects contained + * in responses received from the service. + */ + public Iterable + listExternalMySqlDatabasesRecordIterator( + final ListExternalMySqlDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExternalMySqlDatabasesRequest.Builder, + ListExternalMySqlDatabasesRequest, + ListExternalMySqlDatabasesResponse, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseSummary>( + new java.util.function.Supplier() { + @Override + public ListExternalMySqlDatabasesRequest.Builder get() { + return ListExternalMySqlDatabasesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExternalMySqlDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalMySqlDatabasesRequest.Builder>, + ListExternalMySqlDatabasesRequest>() { + @Override + public ListExternalMySqlDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalMySqlDatabasesRequest.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< + ListExternalMySqlDatabasesRequest, ListExternalMySqlDatabasesResponse>() { + @Override + public ListExternalMySqlDatabasesResponse apply( + ListExternalMySqlDatabasesRequest request) { + return client.listExternalMySqlDatabases(request); + } + }, + new java.util.function.Function< + ListExternalMySqlDatabasesResponse, + java.util.List< + com.oracle.bmc.databasemanagement.model + .ExternalMySqlDatabaseSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemanagement.model + .ExternalMySqlDatabaseSummary> + apply(ListExternalMySqlDatabasesResponse response) { + return response.getExternalMySqlDatabaseCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listJobExecutions operation. This iterable will fetch more data from the server as needed. @@ -3550,6 +3677,134 @@ public ListManagedDatabasesResponse apply(ListManagedDatabasesRequest request) { }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listMySqlDatabaseConnectors 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 + listMySqlDatabaseConnectorsResponseIterator( + final ListMySqlDatabaseConnectorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMySqlDatabaseConnectorsRequest.Builder, + ListMySqlDatabaseConnectorsRequest, + ListMySqlDatabaseConnectorsResponse>( + new java.util.function.Supplier() { + @Override + public ListMySqlDatabaseConnectorsRequest.Builder get() { + return ListMySqlDatabaseConnectorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMySqlDatabaseConnectorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMySqlDatabaseConnectorsRequest.Builder>, + ListMySqlDatabaseConnectorsRequest>() { + @Override + public ListMySqlDatabaseConnectorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMySqlDatabaseConnectorsRequest.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< + ListMySqlDatabaseConnectorsRequest, ListMySqlDatabaseConnectorsResponse>() { + @Override + public ListMySqlDatabaseConnectorsResponse apply( + ListMySqlDatabaseConnectorsRequest request) { + return client.listMySqlDatabaseConnectors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.databasemanagement.model.MySqlDatabaseConnectorSummary} objects contained in + * responses from the listMySqlDatabaseConnectors operation. This iterable will fetch more data + * from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.databasemanagement.model.MySqlDatabaseConnectorSummary} objects contained + * in responses received from the service. + */ + public Iterable + listMySqlDatabaseConnectorsRecordIterator( + final ListMySqlDatabaseConnectorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMySqlDatabaseConnectorsRequest.Builder, + ListMySqlDatabaseConnectorsRequest, + ListMySqlDatabaseConnectorsResponse, + com.oracle.bmc.databasemanagement.model.MySqlDatabaseConnectorSummary>( + new java.util.function.Supplier() { + @Override + public ListMySqlDatabaseConnectorsRequest.Builder get() { + return ListMySqlDatabaseConnectorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMySqlDatabaseConnectorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMySqlDatabaseConnectorsRequest.Builder>, + ListMySqlDatabaseConnectorsRequest>() { + @Override + public ListMySqlDatabaseConnectorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMySqlDatabaseConnectorsRequest.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< + ListMySqlDatabaseConnectorsRequest, ListMySqlDatabaseConnectorsResponse>() { + @Override + public ListMySqlDatabaseConnectorsResponse apply( + ListMySqlDatabaseConnectorsRequest request) { + return client.listMySqlDatabaseConnectors(request); + } + }, + new java.util.function.Function< + ListMySqlDatabaseConnectorsResponse, + java.util.List< + com.oracle.bmc.databasemanagement.model + .MySqlDatabaseConnectorSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemanagement.model + .MySqlDatabaseConnectorSummary> + apply(ListMySqlDatabaseConnectorsResponse response) { + return response.getMySqlConnectorCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listNamedCredentials operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java index fa6ccfcdf12..f14e13dd427 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java @@ -1275,6 +1275,123 @@ public boolean test(GetExternalListenerResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse> + forExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request, + com.oracle.bmc.databasemanagement.model.LifecycleStates... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forExternalMySqlDatabaseConnector( + 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< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse> + forExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request, + com.oracle.bmc.databasemanagement.model.LifecycleStates targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forExternalMySqlDatabaseConnector( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse> + forExternalMySqlDatabaseConnector( + GetExternalMySqlDatabaseConnectorRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasemanagement.model.LifecycleStates... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forExternalMySqlDatabaseConnector( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ExternalMySqlDatabaseConnector. + private com.oracle.bmc.waiter.Waiter< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse> + forExternalMySqlDatabaseConnector( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetExternalMySqlDatabaseConnectorRequest request, + final com.oracle.bmc.databasemanagement.model.LifecycleStates... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetExternalMySqlDatabaseConnectorRequest, + GetExternalMySqlDatabaseConnectorResponse>() { + @Override + public GetExternalMySqlDatabaseConnectorResponse apply( + GetExternalMySqlDatabaseConnectorRequest request) { + return client.getExternalMySqlDatabaseConnector(request); + } + }, + new java.util.function.Predicate< + GetExternalMySqlDatabaseConnectorResponse>() { + @Override + public boolean test( + GetExternalMySqlDatabaseConnectorResponse response) { + return targetStatesSet.contains( + response.getExternalMySqlDatabaseConnector() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasemanagement.model.LifecycleStates.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java index 8dcca31c733..04223be7ee6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java @@ -66,6 +66,42 @@ public interface ManagedMySqlDatabases extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Disable an Associated Service for an external MySQL database resource. An Associated Service + * example is OPSI. + * + * @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 + * DisableExternalMysqlAssociatedService API. + */ + DisableExternalMysqlAssociatedServiceResponse disableExternalMysqlAssociatedService( + DisableExternalMysqlAssociatedServiceRequest request); + + /** + * Enable an Associated Service for an external MySQL database resource. An Associated Service + * example is OPSI. + * + * @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 + * EnableExternalMysqlAssociatedService API. + */ + EnableExternalMysqlAssociatedServiceResponse enableExternalMysqlAssociatedService( + EnableExternalMysqlAssociatedServiceRequest request); + /** * Gets the health metrics for a fleet of HeatWave clusters in a compartment. * @@ -183,6 +219,13 @@ ListManagedMySqlDatabasesResponse listManagedMySqlDatabases( summarizeManagedMySqlDatabaseAvailabilityMetrics( SummarizeManagedMySqlDatabaseAvailabilityMetricsRequest request); + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + ManagedMySqlDatabasesWaiters getWaiters(); + /** * Gets the pre-configured paginators available for list operations in this service which may * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java index be61b63cce2..69a3719754a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java @@ -63,6 +63,44 @@ public interface ManagedMySqlDatabasesAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Disable an Associated Service for an external MySQL database resource. An Associated Service + * example is OPSI. + * + * @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 + disableExternalMysqlAssociatedService( + DisableExternalMysqlAssociatedServiceRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalMysqlAssociatedServiceRequest, + DisableExternalMysqlAssociatedServiceResponse> + handler); + + /** + * Enable an Associated Service for an external MySQL database resource. An Associated Service + * example is OPSI. + * + * @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 + enableExternalMysqlAssociatedService( + EnableExternalMysqlAssociatedServiceRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalMysqlAssociatedServiceRequest, + EnableExternalMysqlAssociatedServiceResponse> + handler); + /** * Gets the health metrics for a fleet of HeatWave clusters in a compartment. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsyncClient.java index 47d1552bb25..82258bc9d97 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsyncClient.java @@ -95,6 +95,86 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future + disableExternalMysqlAssociatedService( + DisableExternalMysqlAssociatedServiceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalMysqlAssociatedServiceRequest, + DisableExternalMysqlAssociatedServiceResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalMysqlAssociatedServiceDetails(), + "disableExternalMysqlAssociatedServiceDetails is required"); + + return clientCall(request, DisableExternalMysqlAssociatedServiceResponse::builder) + .logger(LOG, "disableExternalMysqlAssociatedService") + .serviceDetails( + "ManagedMySqlDatabases", + "DisableExternalMysqlAssociatedService", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DisableExternalMysqlAssociatedService") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalMysqlAssociatedServiceRequest::builder) + .basePath("/20201101") + .appendPathParam("internal") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableAssociatedService") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalMysqlAssociatedServiceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + enableExternalMysqlAssociatedService( + EnableExternalMysqlAssociatedServiceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableExternalMysqlAssociatedServiceRequest, + EnableExternalMysqlAssociatedServiceResponse> + handler) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalMysqlAssociatedServiceDetails(), + "enableExternalMysqlAssociatedServiceDetails is required"); + + return clientCall(request, EnableExternalMysqlAssociatedServiceResponse::builder) + .logger(LOG, "enableExternalMysqlAssociatedService") + .serviceDetails( + "ManagedMySqlDatabases", + "EnableExternalMysqlAssociatedService", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/EnableExternalMysqlAssociatedService") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalMysqlAssociatedServiceRequest::builder) + .basePath("/20201101") + .appendPathParam("internal") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableAssociatedService") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalMysqlAssociatedServiceResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getHeatWaveFleetMetric( GetHeatWaveFleetMetricRequest request, @@ -197,6 +277,9 @@ public java.util.concurrent.Future getMySqlFleetMet request.getFilterByMySqlDeploymentTypeParam()) .appendEnumQueryParam( "filterByMdsDeploymentType", request.getFilterByMdsDeploymentType()) + .appendEnumQueryParam( + "filterByMySqlDatabaseTypeParam", + request.getFilterByMySqlDatabaseTypeParam()) .appendEnumQueryParam("filterByMySqlStatus", request.getFilterByMySqlStatus()) .appendQueryParam( "filterByMySqlDatabaseVersion", request.getFilterByMySqlDatabaseVersion()) @@ -324,6 +407,9 @@ public java.util.concurrent.Future listManage .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam( + "filterByMySqlDatabaseTypeParam", + request.getFilterByMySqlDatabaseTypeParam()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesClient.java index 3c937e9405b..22fefa95111 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesClient.java @@ -26,17 +26,38 @@ public class ManagedMySqlDatabasesClient extends com.oracle.bmc.http.internal.Ba private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ManagedMySqlDatabasesClient.class); + private final ManagedMySqlDatabasesWaiters waiters; + private final ManagedMySqlDatabasesPaginators paginators; ManagedMySqlDatabasesClient( com.oracle.bmc.common.ClientBuilderBase builder, - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { super( builder, authenticationDetailsProvider, CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("ManagedMySqlDatabases-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new ManagedMySqlDatabasesWaiters(executorService, this); + this.paginators = new ManagedMySqlDatabasesPaginators(this); } @@ -56,6 +77,8 @@ public static Builder builder() { public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< Builder, ManagedMySqlDatabasesClient> { + private java.util.concurrent.ExecutorService executorService; + private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "databasemanagement"; @@ -65,6 +88,17 @@ private Builder(com.oracle.bmc.Service service) { com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + /** * Build the client. * @@ -75,7 +109,8 @@ public ManagedMySqlDatabasesClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new ManagedMySqlDatabasesClient(this, authenticationDetailsProvider); + return new ManagedMySqlDatabasesClient( + this, authenticationDetailsProvider, executorService); } } @@ -89,6 +124,78 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public DisableExternalMysqlAssociatedServiceResponse disableExternalMysqlAssociatedService( + DisableExternalMysqlAssociatedServiceRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalMysqlAssociatedServiceDetails(), + "disableExternalMysqlAssociatedServiceDetails is required"); + + return clientCall(request, DisableExternalMysqlAssociatedServiceResponse::builder) + .logger(LOG, "disableExternalMysqlAssociatedService") + .serviceDetails( + "ManagedMySqlDatabases", + "DisableExternalMysqlAssociatedService", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DisableExternalMysqlAssociatedService") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalMysqlAssociatedServiceRequest::builder) + .basePath("/20201101") + .appendPathParam("internal") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableAssociatedService") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalMysqlAssociatedServiceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public EnableExternalMysqlAssociatedServiceResponse enableExternalMysqlAssociatedService( + EnableExternalMysqlAssociatedServiceRequest request) { + + Validate.notBlank( + request.getExternalMySqlDatabaseId(), "externalMySqlDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalMysqlAssociatedServiceDetails(), + "enableExternalMysqlAssociatedServiceDetails is required"); + + return clientCall(request, EnableExternalMysqlAssociatedServiceResponse::builder) + .logger(LOG, "enableExternalMysqlAssociatedService") + .serviceDetails( + "ManagedMySqlDatabases", + "EnableExternalMysqlAssociatedService", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/EnableExternalMysqlAssociatedService") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalMysqlAssociatedServiceRequest::builder) + .basePath("/20201101") + .appendPathParam("internal") + .appendPathParam("externalMySqlDatabases") + .appendPathParam(request.getExternalMySqlDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableAssociatedService") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalMysqlAssociatedServiceResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetHeatWaveFleetMetricResponse getHeatWaveFleetMetric( GetHeatWaveFleetMetricRequest request) { @@ -181,6 +288,9 @@ public GetMySqlFleetMetricResponse getMySqlFleetMetric(GetMySqlFleetMetricReques request.getFilterByMySqlDeploymentTypeParam()) .appendEnumQueryParam( "filterByMdsDeploymentType", request.getFilterByMdsDeploymentType()) + .appendEnumQueryParam( + "filterByMySqlDatabaseTypeParam", + request.getFilterByMySqlDatabaseTypeParam()) .appendEnumQueryParam("filterByMySqlStatus", request.getFilterByMySqlStatus()) .appendQueryParam( "filterByMySqlDatabaseVersion", request.getFilterByMySqlDatabaseVersion()) @@ -298,6 +408,9 @@ public ListManagedMySqlDatabasesResponse listManagedMySqlDatabases( .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam( + "filterByMySqlDatabaseTypeParam", + request.getFilterByMySqlDatabaseTypeParam()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") @@ -360,6 +473,11 @@ public ListManagedMySqlDatabasesResponse listManagedMySqlDatabases( .callSync(); } + @Override + public ManagedMySqlDatabasesWaiters getWaiters() { + return waiters; + } + @Override public ManagedMySqlDatabasesPaginators getPaginators() { return paginators; @@ -374,7 +492,7 @@ public ManagedMySqlDatabasesPaginators getPaginators() { @Deprecated public ManagedMySqlDatabasesClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(builder(), authenticationDetailsProvider); + this(builder(), authenticationDetailsProvider, null); } /** @@ -388,7 +506,7 @@ public ManagedMySqlDatabasesClient( public ManagedMySqlDatabasesClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { - this(builder().configuration(configuration), authenticationDetailsProvider); + this(builder().configuration(configuration), authenticationDetailsProvider, null); } /** @@ -406,7 +524,8 @@ public ManagedMySqlDatabasesClient( com.oracle.bmc.http.ClientConfigurator clientConfigurator) { this( builder().configuration(configuration).clientConfigurator(clientConfigurator), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -429,7 +548,8 @@ public ManagedMySqlDatabasesClient( .configuration(configuration) .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -455,7 +575,8 @@ public ManagedMySqlDatabasesClient( .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -484,7 +605,8 @@ public ManagedMySqlDatabasesClient( .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators) .endpoint(endpoint), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -521,6 +643,47 @@ public ManagedMySqlDatabasesClient( .endpoint(endpoint) .signingStrategyRequestSignerFactories( signingStrategyRequestSignerFactories), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public ManagedMySqlDatabasesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesWaiters.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesWaiters.java new file mode 100644 index 00000000000..b0268004373 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesWaiters.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement; + +import com.oracle.bmc.databasemanagement.requests.*; +import com.oracle.bmc.databasemanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of ManagedMySqlDatabases. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ManagedMySqlDatabasesWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final ManagedMySqlDatabases client; + + public ManagedMySqlDatabasesWaiters( + java.util.concurrent.ExecutorService executorService, ManagedMySqlDatabases client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetManagedMySqlDatabaseRequest, GetManagedMySqlDatabaseResponse> + forManagedMySqlDatabase( + GetManagedMySqlDatabaseRequest request, + com.oracle.bmc.databasemanagement.model.LifecycleStates... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forManagedMySqlDatabase( + 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< + GetManagedMySqlDatabaseRequest, GetManagedMySqlDatabaseResponse> + forManagedMySqlDatabase( + GetManagedMySqlDatabaseRequest request, + com.oracle.bmc.databasemanagement.model.LifecycleStates targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forManagedMySqlDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetManagedMySqlDatabaseRequest, GetManagedMySqlDatabaseResponse> + forManagedMySqlDatabase( + GetManagedMySqlDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasemanagement.model.LifecycleStates... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forManagedMySqlDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ManagedMySqlDatabase. + private com.oracle.bmc.waiter.Waiter< + GetManagedMySqlDatabaseRequest, GetManagedMySqlDatabaseResponse> + forManagedMySqlDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetManagedMySqlDatabaseRequest request, + final com.oracle.bmc.databasemanagement.model.LifecycleStates... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetManagedMySqlDatabaseRequest, GetManagedMySqlDatabaseResponse>() { + @Override + public GetManagedMySqlDatabaseResponse apply( + GetManagedMySqlDatabaseRequest request) { + return client.getManagedMySqlDatabase(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetManagedMySqlDatabaseResponse response) { + return targetStatesSet.contains( + response.getManagedMySqlDatabase().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasemanagement.model.LifecycleStates.Deleted)), + request); + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AlertLogSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AlertLogSummary.java index 49ca5282f64..4f410a62007 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AlertLogSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AlertLogSummary.java @@ -196,6 +196,7 @@ public enum MessageLevel implements com.oracle.bmc.http.internal.BmcEnum { Severe("SEVERE"), Important("IMPORTANT"), Normal("NORMAL"), + Other("OTHER"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -259,6 +260,7 @@ public enum MessageType implements com.oracle.bmc.http.internal.BmcEnum { Warning("WARNING"), Notification("NOTIFICATION"), Trace("TRACE"), + Other("OTHER"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AttentionLogSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AttentionLogSummary.java index 98da11e5ae5..8489e7a4e02 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AttentionLogSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AttentionLogSummary.java @@ -285,6 +285,7 @@ public enum MessageUrgency implements com.oracle.bmc.http.internal.BmcEnum { Soon("SOON"), Deferrable("DEFERRABLE"), Info("INFO"), + Other("OTHER"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -348,6 +349,7 @@ public enum MessageType implements com.oracle.bmc.http.internal.BmcEnum { Warning("WARNING"), Notification("NOTIFICATION"), Trace("TRACE"), + Other("OTHER"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSnapshotRangeSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSnapshotRangeSummary.java index f0e6ecd8238..5f2c3c70a8b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSnapshotRangeSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSnapshotRangeSummary.java @@ -26,6 +26,9 @@ public final class AwrDbSnapshotRangeSummary @java.beans.ConstructorProperties({ "awrDbId", "dbName", + "dbUniqueName", + "srcDbId", + "srcDbName", "instanceList", "timeDbStartup", "timeFirstSnapshotBegin", @@ -41,6 +44,9 @@ public final class AwrDbSnapshotRangeSummary public AwrDbSnapshotRangeSummary( String awrDbId, String dbName, + String dbUniqueName, + String srcDbId, + String srcDbName, java.util.List instanceList, java.util.Date timeDbStartup, java.util.Date timeFirstSnapshotBegin, @@ -55,6 +61,9 @@ public AwrDbSnapshotRangeSummary( super(); this.awrDbId = awrDbId; this.dbName = dbName; + this.dbUniqueName = dbUniqueName; + this.srcDbId = srcDbId; + this.srcDbName = srcDbName; this.instanceList = instanceList; this.timeDbStartup = timeDbStartup; this.timeFirstSnapshotBegin = timeFirstSnapshotBegin; @@ -106,6 +115,51 @@ public Builder dbName(String dbName) { this.__explicitlySet__.add("dbName"); return this; } + /** The unique name of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The unique name of the database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The internal ID of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbId") + private String srcDbId; + + /** + * The internal ID of the database where the AWR snapshot data was collected. + * + * @param srcDbId the value to set + * @return this builder + */ + public Builder srcDbId(String srcDbId) { + this.srcDbId = srcDbId; + this.__explicitlySet__.add("srcDbId"); + return this; + } + /** The name of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbName") + private String srcDbName; + + /** + * The name of the database where the AWR snapshot data was collected. + * + * @param srcDbName the value to set + * @return this builder + */ + public Builder srcDbName(String srcDbName) { + this.srcDbName = srcDbName; + this.__explicitlySet__.add("srcDbName"); + return this; + } /** The database instance numbers. */ @com.fasterxml.jackson.annotation.JsonProperty("instanceList") private java.util.List instanceList; @@ -304,6 +358,9 @@ public AwrDbSnapshotRangeSummary build() { new AwrDbSnapshotRangeSummary( this.awrDbId, this.dbName, + this.dbUniqueName, + this.srcDbId, + this.srcDbName, this.instanceList, this.timeDbStartup, this.timeFirstSnapshotBegin, @@ -329,6 +386,15 @@ public Builder copy(AwrDbSnapshotRangeSummary model) { if (model.wasPropertyExplicitlySet("dbName")) { this.dbName(model.getDbName()); } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("srcDbId")) { + this.srcDbId(model.getSrcDbId()); + } + if (model.wasPropertyExplicitlySet("srcDbName")) { + this.srcDbName(model.getSrcDbName()); + } if (model.wasPropertyExplicitlySet("instanceList")) { this.instanceList(model.getInstanceList()); } @@ -407,6 +473,45 @@ public String getDbName() { return dbName; } + /** The unique name of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The unique name of the database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The internal ID of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbId") + private final String srcDbId; + + /** + * The internal ID of the database where the AWR snapshot data was collected. + * + * @return the value + */ + public String getSrcDbId() { + return srcDbId; + } + + /** The name of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbName") + private final String srcDbName; + + /** + * The name of the database where the AWR snapshot data was collected. + * + * @return the value + */ + public String getSrcDbName() { + return srcDbName; + } + /** The database instance numbers. */ @com.fasterxml.jackson.annotation.JsonProperty("instanceList") private final java.util.List instanceList; @@ -591,6 +696,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("awrDbId=").append(String.valueOf(this.awrDbId)); sb.append(", dbName=").append(String.valueOf(this.dbName)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", srcDbId=").append(String.valueOf(this.srcDbId)); + sb.append(", srcDbName=").append(String.valueOf(this.srcDbName)); sb.append(", instanceList=").append(String.valueOf(this.instanceList)); sb.append(", timeDbStartup=").append(String.valueOf(this.timeDbStartup)); sb.append(", timeFirstSnapshotBegin=").append(String.valueOf(this.timeFirstSnapshotBegin)); @@ -618,6 +726,9 @@ public boolean equals(Object o) { AwrDbSnapshotRangeSummary other = (AwrDbSnapshotRangeSummary) o; return java.util.Objects.equals(this.awrDbId, other.awrDbId) && java.util.Objects.equals(this.dbName, other.dbName) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.srcDbId, other.srcDbId) + && java.util.Objects.equals(this.srcDbName, other.srcDbName) && java.util.Objects.equals(this.instanceList, other.instanceList) && java.util.Objects.equals(this.timeDbStartup, other.timeDbStartup) && java.util.Objects.equals( @@ -639,6 +750,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.awrDbId == null ? 43 : this.awrDbId.hashCode()); result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.srcDbId == null ? 43 : this.srcDbId.hashCode()); + result = (result * PRIME) + (this.srcDbName == null ? 43 : this.srcDbName.hashCode()); result = (result * PRIME) + (this.instanceList == null ? 43 : this.instanceList.hashCode()); result = (result * PRIME) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSummary.java index 71e3f8678f9..0467a894237 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AwrDbSummary.java @@ -24,6 +24,9 @@ public final class AwrDbSummary extends com.oracle.bmc.http.client.internal.Expl @java.beans.ConstructorProperties({ "awrDbId", "dbName", + "dbUniqueName", + "srcDbId", + "srcDbName", "instanceList", "timeDbStartup", "timeFirstSnapshotBegin", @@ -39,6 +42,9 @@ public final class AwrDbSummary extends com.oracle.bmc.http.client.internal.Expl public AwrDbSummary( String awrDbId, String dbName, + String dbUniqueName, + String srcDbId, + String srcDbName, java.util.List instanceList, java.util.Date timeDbStartup, java.util.Date timeFirstSnapshotBegin, @@ -53,6 +59,9 @@ public AwrDbSummary( super(); this.awrDbId = awrDbId; this.dbName = dbName; + this.dbUniqueName = dbUniqueName; + this.srcDbId = srcDbId; + this.srcDbName = srcDbName; this.instanceList = instanceList; this.timeDbStartup = timeDbStartup; this.timeFirstSnapshotBegin = timeFirstSnapshotBegin; @@ -104,6 +113,51 @@ public Builder dbName(String dbName) { this.__explicitlySet__.add("dbName"); return this; } + /** The unique name of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The unique name of the database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The internal ID of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbId") + private String srcDbId; + + /** + * The internal ID of the database where the AWR snapshot data was collected. + * + * @param srcDbId the value to set + * @return this builder + */ + public Builder srcDbId(String srcDbId) { + this.srcDbId = srcDbId; + this.__explicitlySet__.add("srcDbId"); + return this; + } + /** The name of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbName") + private String srcDbName; + + /** + * The name of the database where the AWR snapshot data was collected. + * + * @param srcDbName the value to set + * @return this builder + */ + public Builder srcDbName(String srcDbName) { + this.srcDbName = srcDbName; + this.__explicitlySet__.add("srcDbName"); + return this; + } /** The database instance numbers. */ @com.fasterxml.jackson.annotation.JsonProperty("instanceList") private java.util.List instanceList; @@ -302,6 +356,9 @@ public AwrDbSummary build() { new AwrDbSummary( this.awrDbId, this.dbName, + this.dbUniqueName, + this.srcDbId, + this.srcDbName, this.instanceList, this.timeDbStartup, this.timeFirstSnapshotBegin, @@ -327,6 +384,15 @@ public Builder copy(AwrDbSummary model) { if (model.wasPropertyExplicitlySet("dbName")) { this.dbName(model.getDbName()); } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("srcDbId")) { + this.srcDbId(model.getSrcDbId()); + } + if (model.wasPropertyExplicitlySet("srcDbName")) { + this.srcDbName(model.getSrcDbName()); + } if (model.wasPropertyExplicitlySet("instanceList")) { this.instanceList(model.getInstanceList()); } @@ -405,6 +471,45 @@ public String getDbName() { return dbName; } + /** The unique name of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The unique name of the database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The internal ID of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbId") + private final String srcDbId; + + /** + * The internal ID of the database where the AWR snapshot data was collected. + * + * @return the value + */ + public String getSrcDbId() { + return srcDbId; + } + + /** The name of the database where the AWR snapshot data was collected. */ + @com.fasterxml.jackson.annotation.JsonProperty("srcDbName") + private final String srcDbName; + + /** + * The name of the database where the AWR snapshot data was collected. + * + * @return the value + */ + public String getSrcDbName() { + return srcDbName; + } + /** The database instance numbers. */ @com.fasterxml.jackson.annotation.JsonProperty("instanceList") private final java.util.List instanceList; @@ -589,6 +694,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("awrDbId=").append(String.valueOf(this.awrDbId)); sb.append(", dbName=").append(String.valueOf(this.dbName)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", srcDbId=").append(String.valueOf(this.srcDbId)); + sb.append(", srcDbName=").append(String.valueOf(this.srcDbName)); sb.append(", instanceList=").append(String.valueOf(this.instanceList)); sb.append(", timeDbStartup=").append(String.valueOf(this.timeDbStartup)); sb.append(", timeFirstSnapshotBegin=").append(String.valueOf(this.timeFirstSnapshotBegin)); @@ -616,6 +724,9 @@ public boolean equals(Object o) { AwrDbSummary other = (AwrDbSummary) o; return java.util.Objects.equals(this.awrDbId, other.awrDbId) && java.util.Objects.equals(this.dbName, other.dbName) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.srcDbId, other.srcDbId) + && java.util.Objects.equals(this.srcDbName, other.srcDbName) && java.util.Objects.equals(this.instanceList, other.instanceList) && java.util.Objects.equals(this.timeDbStartup, other.timeDbStartup) && java.util.Objects.equals( @@ -637,6 +748,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.awrDbId == null ? 43 : this.awrDbId.hashCode()); result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.srcDbId == null ? 43 : this.srcDbId.hashCode()); + result = (result * PRIME) + (this.srcDbName == null ? 43 : this.srcDbName.hashCode()); result = (result * PRIME) + (this.instanceList == null ? 43 : this.instanceList.hashCode()); result = (result * PRIME) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BaseDatabaseHaDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BaseDatabaseHaDetails.java new file mode 100644 index 00000000000..9f56dfffac4 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BaseDatabaseHaDetails.java @@ -0,0 +1,563 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The common database details used by all HA metrics.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseDatabaseHaDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BaseDatabaseHaDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "dbId", + "compartmentId", + "databaseType", + "databaseSubType", + "deploymentType", + "databaseVersion", + "workloadType", + "databaseName", + "databaseId", + "dbUniqueName", + "dbRole" + }) + public BaseDatabaseHaDetails( + String dbId, + String compartmentId, + DatabaseType databaseType, + DatabaseSubType databaseSubType, + DeploymentType deploymentType, + String databaseVersion, + WorkloadType workloadType, + String databaseName, + String databaseId, + String dbUniqueName, + DbRole dbRole) { + super(); + this.dbId = dbId; + this.compartmentId = compartmentId; + this.databaseType = databaseType; + this.databaseSubType = databaseSubType; + this.deploymentType = deploymentType; + this.databaseVersion = databaseVersion; + this.workloadType = workloadType; + this.databaseName = databaseName; + this.databaseId = databaseId; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param dbId the value to set + * @return this builder + */ + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(DatabaseType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + * + * @param databaseSubType the value to set + * @return this builder + */ + public Builder databaseSubType(DatabaseSubType databaseSubType) { + this.databaseSubType = databaseSubType; + this.__explicitlySet__.add("databaseSubType"); + return this; + } + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The Oracle Database version. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @param workloadType the value to set + * @return this builder + */ + public Builder workloadType(WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The display name of the Managed Database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @param dbRole the value to set + * @return this builder + */ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseDatabaseHaDetails build() { + BaseDatabaseHaDetails model = + new BaseDatabaseHaDetails( + this.dbId, + this.compartmentId, + this.databaseType, + this.databaseSubType, + this.deploymentType, + this.databaseVersion, + this.workloadType, + this.databaseName, + this.databaseId, + this.dbUniqueName, + this.dbRole); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseDatabaseHaDetails model) { + if (model.wasPropertyExplicitlySet("dbId")) { + this.dbId(model.getDbId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseSubType")) { + this.databaseSubType(model.getDatabaseSubType()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private final String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getDbId() { + return dbId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @return the value + */ + public DatabaseType getDatabaseType() { + return databaseType; + } + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private final DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + * + * @return the value + */ + public DatabaseSubType getDatabaseSubType() { + return databaseSubType; + } + + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @return the value + */ + public DeploymentType getDeploymentType() { + return deploymentType; + } + + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The Oracle Database version. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @return the value + */ + public WorkloadType getWorkloadType() { + return workloadType; + } + + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The display name of the Managed Database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @return the value + */ + public DbRole getDbRole() { + return dbRole; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseDatabaseHaDetails("); + sb.append("super=").append(super.toString()); + sb.append("dbId=").append(String.valueOf(this.dbId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", databaseSubType=").append(String.valueOf(this.databaseSubType)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseDatabaseHaDetails)) { + return false; + } + + BaseDatabaseHaDetails other = (BaseDatabaseHaDetails) o; + return java.util.Objects.equals(this.dbId, other.dbId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.databaseSubType, other.databaseSubType) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dbId == null ? 43 : this.dbId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.databaseSubType == null ? 43 : this.databaseSubType.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java new file mode 100644 index 00000000000..ae56f3ed19e --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseConnectorDetails.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details for creating an external database connector.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateExternalMySqlDatabaseConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateExternalMySqlDatabaseConnectorDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "connectorDetails"}) + public CreateExternalMySqlDatabaseConnectorDetails( + String compartmentId, CreateMySqlDatabaseConnectorDetails connectorDetails) { + super(); + this.compartmentId = compartmentId; + this.connectorDetails = connectorDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private CreateMySqlDatabaseConnectorDetails connectorDetails; + + public Builder connectorDetails(CreateMySqlDatabaseConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalMySqlDatabaseConnectorDetails build() { + CreateExternalMySqlDatabaseConnectorDetails model = + new CreateExternalMySqlDatabaseConnectorDetails( + this.compartmentId, this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalMySqlDatabaseConnectorDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final CreateMySqlDatabaseConnectorDetails connectorDetails; + + public CreateMySqlDatabaseConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateExternalMySqlDatabaseConnectorDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExternalMySqlDatabaseConnectorDetails)) { + return false; + } + + CreateExternalMySqlDatabaseConnectorDetails other = + (CreateExternalMySqlDatabaseConnectorDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java new file mode 100644 index 00000000000..c10e571b730 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateExternalMySqlDatabaseDetails.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details for creating an external database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateExternalMySqlDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateExternalMySqlDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "dbName"}) + public CreateExternalMySqlDatabaseDetails(String compartmentId, String dbName) { + super(); + this.compartmentId = compartmentId; + this.dbName = dbName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private String dbName; + + /** + * Name of the External MySQL Database. + * + * @param dbName the value to set + * @return this builder + */ + public Builder dbName(String dbName) { + this.dbName = dbName; + this.__explicitlySet__.add("dbName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalMySqlDatabaseDetails build() { + CreateExternalMySqlDatabaseDetails model = + new CreateExternalMySqlDatabaseDetails(this.compartmentId, this.dbName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalMySqlDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("dbName")) { + this.dbName(model.getDbName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private final String dbName; + + /** + * Name of the External MySQL Database. + * + * @return the value + */ + public String getDbName() { + return dbName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateExternalMySqlDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", dbName=").append(String.valueOf(this.dbName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExternalMySqlDatabaseDetails)) { + return false; + } + + CreateExternalMySqlDatabaseDetails other = (CreateExternalMySqlDatabaseDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.dbName, other.dbName) + && 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.dbName == null ? 43 : this.dbName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java new file mode 100644 index 00000000000..7f723d8af2b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateMySqlDatabaseConnectorDetails.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Create Details of external database connector.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMySqlDatabaseConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateMySqlDatabaseConnectorDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "macsAgentId", + "hostName", + "port", + "networkProtocol", + "externalDatabaseId", + "credentialType", + "sslSecretId" + }) + public CreateMySqlDatabaseConnectorDetails( + String displayName, + String macsAgentId, + String hostName, + Integer port, + MySqlNetworkProtocolType networkProtocol, + String externalDatabaseId, + MySqlCredType credentialType, + String sslSecretId) { + super(); + this.displayName = displayName; + this.macsAgentId = macsAgentId; + this.hostName = hostName; + this.port = port; + this.networkProtocol = networkProtocol; + this.externalDatabaseId = externalDatabaseId; + this.credentialType = credentialType; + this.sslSecretId = sslSecretId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** External MySQL Database Connector Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * External MySQL Database Connector Name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @param macsAgentId the value to set + * @return this builder + */ + public Builder macsAgentId(String macsAgentId) { + this.macsAgentId = macsAgentId; + this.__explicitlySet__.add("macsAgentId"); + return this; + } + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + /** + * Host name for Connector. + * + * @param hostName the value to set + * @return this builder + */ + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + /** Port number to connect to External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Port number to connect to External MySQL Database. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** + * Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private MySqlNetworkProtocolType networkProtocol; + + /** + * Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. + * + * @param networkProtocol the value to set + * @return this builder + */ + public Builder networkProtocol(MySqlNetworkProtocolType networkProtocol) { + this.networkProtocol = networkProtocol; + this.__explicitlySet__.add("networkProtocol"); + return this; + } + /** OCID of MySQL Database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + /** + * OCID of MySQL Database resource. + * + * @param externalDatabaseId the value to set + * @return this builder + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + /** Type of the credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private MySqlCredType credentialType; + + /** + * Type of the credential. + * + * @param credentialType the value to set + * @return this builder + */ + public Builder credentialType(MySqlCredType credentialType) { + this.credentialType = credentialType; + this.__explicitlySet__.add("credentialType"); + return this; + } + /** If using existing SSL secret to connect, OCID for the secret resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") + private String sslSecretId; + + /** + * If using existing SSL secret to connect, OCID for the secret resource. + * + * @param sslSecretId the value to set + * @return this builder + */ + public Builder sslSecretId(String sslSecretId) { + this.sslSecretId = sslSecretId; + this.__explicitlySet__.add("sslSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateMySqlDatabaseConnectorDetails build() { + CreateMySqlDatabaseConnectorDetails model = + new CreateMySqlDatabaseConnectorDetails( + this.displayName, + this.macsAgentId, + this.hostName, + this.port, + this.networkProtocol, + this.externalDatabaseId, + this.credentialType, + this.sslSecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMySqlDatabaseConnectorDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("macsAgentId")) { + this.macsAgentId(model.getMacsAgentId()); + } + if (model.wasPropertyExplicitlySet("hostName")) { + this.hostName(model.getHostName()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("networkProtocol")) { + this.networkProtocol(model.getNetworkProtocol()); + } + if (model.wasPropertyExplicitlySet("externalDatabaseId")) { + this.externalDatabaseId(model.getExternalDatabaseId()); + } + if (model.wasPropertyExplicitlySet("credentialType")) { + this.credentialType(model.getCredentialType()); + } + if (model.wasPropertyExplicitlySet("sslSecretId")) { + this.sslSecretId(model.getSslSecretId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** External MySQL Database Connector Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * External MySQL Database Connector Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private final String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @return the value + */ + public String getMacsAgentId() { + return macsAgentId; + } + + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private final String hostName; + + /** + * Host name for Connector. + * + * @return the value + */ + public String getHostName() { + return hostName; + } + + /** Port number to connect to External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Port number to connect to External MySQL Database. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private final MySqlNetworkProtocolType networkProtocol; + + /** + * Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. + * + * @return the value + */ + public MySqlNetworkProtocolType getNetworkProtocol() { + return networkProtocol; + } + + /** OCID of MySQL Database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private final String externalDatabaseId; + + /** + * OCID of MySQL Database resource. + * + * @return the value + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } + + /** Type of the credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private final MySqlCredType credentialType; + + /** + * Type of the credential. + * + * @return the value + */ + public MySqlCredType getCredentialType() { + return credentialType; + } + + /** If using existing SSL secret to connect, OCID for the secret resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") + private final String sslSecretId; + + /** + * If using existing SSL secret to connect, OCID for the secret resource. + * + * @return the value + */ + public String getSslSecretId() { + return sslSecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMySqlDatabaseConnectorDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", macsAgentId=").append(String.valueOf(this.macsAgentId)); + sb.append(", hostName=").append(String.valueOf(this.hostName)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", networkProtocol=").append(String.valueOf(this.networkProtocol)); + sb.append(", externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); + sb.append(", credentialType=").append(String.valueOf(this.credentialType)); + sb.append(", sslSecretId=").append(String.valueOf(this.sslSecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMySqlDatabaseConnectorDetails)) { + return false; + } + + CreateMySqlDatabaseConnectorDetails other = (CreateMySqlDatabaseConnectorDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.macsAgentId, other.macsAgentId) + && java.util.Objects.equals(this.hostName, other.hostName) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.networkProtocol, other.networkProtocol) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) + && java.util.Objects.equals(this.credentialType, other.credentialType) + && java.util.Objects.equals(this.sslSecretId, other.sslSecretId) + && 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.macsAgentId == null ? 43 : this.macsAgentId.hashCode()); + result = (result * PRIME) + (this.hostName == null ? 43 : this.hostName.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = + (result * PRIME) + + (this.networkProtocol == null ? 43 : this.networkProtocol.hashCode()); + result = + (result * PRIME) + + (this.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.credentialType == null ? 43 : this.credentialType.hashCode()); + result = (result * PRIME) + (this.sslSecretId == null ? 43 : this.sslSecretId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupMetrics.java new file mode 100644 index 00000000000..219fdc22834 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupMetrics.java @@ -0,0 +1,806 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the backup metrics for a single database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseBackupMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseBackupMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "retentionPeriodInDays", + "isAutomaticBackupEnabled", + "timeSeriesMetrics", + "isDataguardEnabled", + "lastBackupSummary", + "metrics", + "dbId", + "compartmentId", + "databaseType", + "databaseSubType", + "deploymentType", + "databaseVersion", + "workloadType", + "databaseName", + "databaseId", + "dbUniqueName", + "dbRole" + }) + public DatabaseBackupMetrics( + String retentionPeriodInDays, + Boolean isAutomaticBackupEnabled, + java.util.List timeSeriesMetrics, + Boolean isDataguardEnabled, + DatabaseBackupSummary lastBackupSummary, + java.util.List metrics, + String dbId, + String compartmentId, + DatabaseType databaseType, + DatabaseSubType databaseSubType, + DeploymentType deploymentType, + String databaseVersion, + WorkloadType workloadType, + String databaseName, + String databaseId, + String dbUniqueName, + DbRole dbRole) { + super(); + this.retentionPeriodInDays = retentionPeriodInDays; + this.isAutomaticBackupEnabled = isAutomaticBackupEnabled; + this.timeSeriesMetrics = timeSeriesMetrics; + this.isDataguardEnabled = isDataguardEnabled; + this.lastBackupSummary = lastBackupSummary; + this.metrics = metrics; + this.dbId = dbId; + this.compartmentId = compartmentId; + this.databaseType = databaseType; + this.databaseSubType = databaseSubType; + this.deploymentType = deploymentType; + this.databaseVersion = databaseVersion; + this.workloadType = workloadType; + this.databaseName = databaseName; + this.databaseId = databaseId; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The retention period of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private String retentionPeriodInDays; + + /** + * The retention period of the database. + * + * @param retentionPeriodInDays the value to set + * @return this builder + */ + public Builder retentionPeriodInDays(String retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + return this; + } + /** + * Indicates whether automatic backup is enabled or not. This is only applicable for cloud + * databases. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticBackupEnabled") + private Boolean isAutomaticBackupEnabled; + + /** + * Indicates whether automatic backup is enabled or not. This is only applicable for cloud + * databases. + * + * @param isAutomaticBackupEnabled the value to set + * @return this builder + */ + public Builder isAutomaticBackupEnabled(Boolean isAutomaticBackupEnabled) { + this.isAutomaticBackupEnabled = isAutomaticBackupEnabled; + this.__explicitlySet__.add("isAutomaticBackupEnabled"); + return this; + } + /** The array of metric values for different timestamps. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSeriesMetrics") + private java.util.List timeSeriesMetrics; + + /** + * The array of metric values for different timestamps. + * + * @param timeSeriesMetrics the value to set + * @return this builder + */ + public Builder timeSeriesMetrics( + java.util.List timeSeriesMetrics) { + this.timeSeriesMetrics = timeSeriesMetrics; + this.__explicitlySet__.add("timeSeriesMetrics"); + return this; + } + /** Indicates whether Data Guard is enabled for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDataguardEnabled") + private Boolean isDataguardEnabled; + + /** + * Indicates whether Data Guard is enabled for the database. + * + * @param isDataguardEnabled the value to set + * @return this builder + */ + public Builder isDataguardEnabled(Boolean isDataguardEnabled) { + this.isDataguardEnabled = isDataguardEnabled; + this.__explicitlySet__.add("isDataguardEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastBackupSummary") + private DatabaseBackupSummary lastBackupSummary; + + public Builder lastBackupSummary(DatabaseBackupSummary lastBackupSummary) { + this.lastBackupSummary = lastBackupSummary; + this.__explicitlySet__.add("lastBackupSummary"); + return this; + } + /** A list of database health metrics such as BackupDuration and BackupSize. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private java.util.List metrics; + + /** + * A list of database health metrics such as BackupDuration and BackupSize. + * + * @param metrics the value to set + * @return this builder + */ + public Builder metrics(java.util.List metrics) { + this.metrics = metrics; + this.__explicitlySet__.add("metrics"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param dbId the value to set + * @return this builder + */ + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(DatabaseType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + * + * @param databaseSubType the value to set + * @return this builder + */ + public Builder databaseSubType(DatabaseSubType databaseSubType) { + this.databaseSubType = databaseSubType; + this.__explicitlySet__.add("databaseSubType"); + return this; + } + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The Oracle Database version. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @param workloadType the value to set + * @return this builder + */ + public Builder workloadType(WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The display name of the Managed Database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @param dbRole the value to set + * @return this builder + */ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseBackupMetrics build() { + DatabaseBackupMetrics model = + new DatabaseBackupMetrics( + this.retentionPeriodInDays, + this.isAutomaticBackupEnabled, + this.timeSeriesMetrics, + this.isDataguardEnabled, + this.lastBackupSummary, + this.metrics, + this.dbId, + this.compartmentId, + this.databaseType, + this.databaseSubType, + this.deploymentType, + this.databaseVersion, + this.workloadType, + this.databaseName, + this.databaseId, + this.dbUniqueName, + this.dbRole); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseBackupMetrics model) { + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + if (model.wasPropertyExplicitlySet("isAutomaticBackupEnabled")) { + this.isAutomaticBackupEnabled(model.getIsAutomaticBackupEnabled()); + } + if (model.wasPropertyExplicitlySet("timeSeriesMetrics")) { + this.timeSeriesMetrics(model.getTimeSeriesMetrics()); + } + if (model.wasPropertyExplicitlySet("isDataguardEnabled")) { + this.isDataguardEnabled(model.getIsDataguardEnabled()); + } + if (model.wasPropertyExplicitlySet("lastBackupSummary")) { + this.lastBackupSummary(model.getLastBackupSummary()); + } + if (model.wasPropertyExplicitlySet("metrics")) { + this.metrics(model.getMetrics()); + } + if (model.wasPropertyExplicitlySet("dbId")) { + this.dbId(model.getDbId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseSubType")) { + this.databaseSubType(model.getDatabaseSubType()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The retention period of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final String retentionPeriodInDays; + + /** + * The retention period of the database. + * + * @return the value + */ + public String getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + /** + * Indicates whether automatic backup is enabled or not. This is only applicable for cloud + * databases. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticBackupEnabled") + private final Boolean isAutomaticBackupEnabled; + + /** + * Indicates whether automatic backup is enabled or not. This is only applicable for cloud + * databases. + * + * @return the value + */ + public Boolean getIsAutomaticBackupEnabled() { + return isAutomaticBackupEnabled; + } + + /** The array of metric values for different timestamps. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeSeriesMetrics") + private final java.util.List timeSeriesMetrics; + + /** + * The array of metric values for different timestamps. + * + * @return the value + */ + public java.util.List getTimeSeriesMetrics() { + return timeSeriesMetrics; + } + + /** Indicates whether Data Guard is enabled for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDataguardEnabled") + private final Boolean isDataguardEnabled; + + /** + * Indicates whether Data Guard is enabled for the database. + * + * @return the value + */ + public Boolean getIsDataguardEnabled() { + return isDataguardEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastBackupSummary") + private final DatabaseBackupSummary lastBackupSummary; + + public DatabaseBackupSummary getLastBackupSummary() { + return lastBackupSummary; + } + + /** A list of database health metrics such as BackupDuration and BackupSize. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private final java.util.List metrics; + + /** + * A list of database health metrics such as BackupDuration and BackupSize. + * + * @return the value + */ + public java.util.List getMetrics() { + return metrics; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private final String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getDbId() { + return dbId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @return the value + */ + public DatabaseType getDatabaseType() { + return databaseType; + } + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private final DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + * + * @return the value + */ + public DatabaseSubType getDatabaseSubType() { + return databaseSubType; + } + + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @return the value + */ + public DeploymentType getDeploymentType() { + return deploymentType; + } + + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The Oracle Database version. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @return the value + */ + public WorkloadType getWorkloadType() { + return workloadType; + } + + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The display name of the Managed Database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @return the value + */ + public DbRole getDbRole() { + return dbRole; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseBackupMetrics("); + sb.append("super=").append(super.toString()); + sb.append("retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + sb.append(", isAutomaticBackupEnabled=") + .append(String.valueOf(this.isAutomaticBackupEnabled)); + sb.append(", timeSeriesMetrics=").append(String.valueOf(this.timeSeriesMetrics)); + sb.append(", isDataguardEnabled=").append(String.valueOf(this.isDataguardEnabled)); + sb.append(", lastBackupSummary=").append(String.valueOf(this.lastBackupSummary)); + sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", dbId=").append(String.valueOf(this.dbId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", databaseSubType=").append(String.valueOf(this.databaseSubType)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseBackupMetrics)) { + return false; + } + + DatabaseBackupMetrics other = (DatabaseBackupMetrics) o; + return java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && java.util.Objects.equals( + this.isAutomaticBackupEnabled, other.isAutomaticBackupEnabled) + && java.util.Objects.equals(this.timeSeriesMetrics, other.timeSeriesMetrics) + && java.util.Objects.equals(this.isDataguardEnabled, other.isDataguardEnabled) + && java.util.Objects.equals(this.lastBackupSummary, other.lastBackupSummary) + && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.dbId, other.dbId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.databaseSubType, other.databaseSubType) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.hashCode()); + result = + (result * PRIME) + + (this.isAutomaticBackupEnabled == null + ? 43 + : this.isAutomaticBackupEnabled.hashCode()); + result = + (result * PRIME) + + (this.timeSeriesMetrics == null ? 43 : this.timeSeriesMetrics.hashCode()); + result = + (result * PRIME) + + (this.isDataguardEnabled == null + ? 43 + : this.isDataguardEnabled.hashCode()); + result = + (result * PRIME) + + (this.lastBackupSummary == null ? 43 : this.lastBackupSummary.hashCode()); + result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = (result * PRIME) + (this.dbId == null ? 43 : this.dbId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.databaseSubType == null ? 43 : this.databaseSubType.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupSummary.java new file mode 100644 index 00000000000..883f13e9650 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseBackupSummary.java @@ -0,0 +1,402 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The summary of the High Availability (HA) and backup for a database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseBackupSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseBackupSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "backupStatus", + "timeBackupCompleted", + "backupDurationInSeconds", + "backupType", + "backupDestination", + "backupSizeInGBs" + }) + public DatabaseBackupSummary( + String backupStatus, + java.util.Date timeBackupCompleted, + Integer backupDurationInSeconds, + String backupType, + BackupDestination backupDestination, + Float backupSizeInGBs) { + super(); + this.backupStatus = backupStatus; + this.timeBackupCompleted = timeBackupCompleted; + this.backupDurationInSeconds = backupDurationInSeconds; + this.backupType = backupType; + this.backupDestination = backupDestination; + this.backupSizeInGBs = backupSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The backup status of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupStatus") + private String backupStatus; + + /** + * The backup status of the database. + * + * @param backupStatus the value to set + * @return this builder + */ + public Builder backupStatus(String backupStatus) { + this.backupStatus = backupStatus; + this.__explicitlySet__.add("backupStatus"); + return this; + } + /** + * The database backup completion date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private java.util.Date timeBackupCompleted; + + /** + * The database backup completion date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param timeBackupCompleted the value to set + * @return this builder + */ + public Builder timeBackupCompleted(java.util.Date timeBackupCompleted) { + this.timeBackupCompleted = timeBackupCompleted; + this.__explicitlySet__.add("timeBackupCompleted"); + return this; + } + /** The backup duration of the database in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDurationInSeconds") + private Integer backupDurationInSeconds; + + /** + * The backup duration of the database in seconds. + * + * @param backupDurationInSeconds the value to set + * @return this builder + */ + public Builder backupDurationInSeconds(Integer backupDurationInSeconds) { + this.backupDurationInSeconds = backupDurationInSeconds; + this.__explicitlySet__.add("backupDurationInSeconds"); + return this; + } + /** The backup type of the database (FULL/INCREMENTAL). */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private String backupType; + + /** + * The backup type of the database (FULL/INCREMENTAL). + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(String backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + /** The backup destination of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestination") + private BackupDestination backupDestination; + + /** + * The backup destination of the database. + * + * @param backupDestination the value to set + * @return this builder + */ + public Builder backupDestination(BackupDestination backupDestination) { + this.backupDestination = backupDestination; + this.__explicitlySet__.add("backupDestination"); + return this; + } + /** The backup size of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") + private Float backupSizeInGBs; + + /** + * The backup size of the database. + * + * @param backupSizeInGBs the value to set + * @return this builder + */ + public Builder backupSizeInGBs(Float backupSizeInGBs) { + this.backupSizeInGBs = backupSizeInGBs; + this.__explicitlySet__.add("backupSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseBackupSummary build() { + DatabaseBackupSummary model = + new DatabaseBackupSummary( + this.backupStatus, + this.timeBackupCompleted, + this.backupDurationInSeconds, + this.backupType, + this.backupDestination, + this.backupSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseBackupSummary model) { + if (model.wasPropertyExplicitlySet("backupStatus")) { + this.backupStatus(model.getBackupStatus()); + } + if (model.wasPropertyExplicitlySet("timeBackupCompleted")) { + this.timeBackupCompleted(model.getTimeBackupCompleted()); + } + if (model.wasPropertyExplicitlySet("backupDurationInSeconds")) { + this.backupDurationInSeconds(model.getBackupDurationInSeconds()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + if (model.wasPropertyExplicitlySet("backupDestination")) { + this.backupDestination(model.getBackupDestination()); + } + if (model.wasPropertyExplicitlySet("backupSizeInGBs")) { + this.backupSizeInGBs(model.getBackupSizeInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The backup status of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupStatus") + private final String backupStatus; + + /** + * The backup status of the database. + * + * @return the value + */ + public String getBackupStatus() { + return backupStatus; + } + + /** + * The database backup completion date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private final java.util.Date timeBackupCompleted; + + /** + * The database backup completion date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @return the value + */ + public java.util.Date getTimeBackupCompleted() { + return timeBackupCompleted; + } + + /** The backup duration of the database in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDurationInSeconds") + private final Integer backupDurationInSeconds; + + /** + * The backup duration of the database in seconds. + * + * @return the value + */ + public Integer getBackupDurationInSeconds() { + return backupDurationInSeconds; + } + + /** The backup type of the database (FULL/INCREMENTAL). */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final String backupType; + + /** + * The backup type of the database (FULL/INCREMENTAL). + * + * @return the value + */ + public String getBackupType() { + return backupType; + } + + /** The backup destination of the database. */ + public enum BackupDestination implements com.oracle.bmc.http.internal.BmcEnum { + Disk("DISK"), + Tape("TAPE"), + Nfs("NFS"), + Local("LOCAL"), + Dbrs("DBRS"), + ObjectStore("OBJECT_STORE"), + RecoveryAppliance("RECOVERY_APPLIANCE"), + + /** + * 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(BackupDestination.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupDestination v : BackupDestination.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupDestination(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupDestination create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupDestination', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The backup destination of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestination") + private final BackupDestination backupDestination; + + /** + * The backup destination of the database. + * + * @return the value + */ + public BackupDestination getBackupDestination() { + return backupDestination; + } + + /** The backup size of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") + private final Float backupSizeInGBs; + + /** + * The backup size of the database. + * + * @return the value + */ + public Float getBackupSizeInGBs() { + return backupSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseBackupSummary("); + sb.append("super=").append(super.toString()); + sb.append("backupStatus=").append(String.valueOf(this.backupStatus)); + sb.append(", timeBackupCompleted=").append(String.valueOf(this.timeBackupCompleted)); + sb.append(", backupDurationInSeconds=") + .append(String.valueOf(this.backupDurationInSeconds)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(", backupDestination=").append(String.valueOf(this.backupDestination)); + sb.append(", backupSizeInGBs=").append(String.valueOf(this.backupSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseBackupSummary)) { + return false; + } + + DatabaseBackupSummary other = (DatabaseBackupSummary) o; + return java.util.Objects.equals(this.backupStatus, other.backupStatus) + && java.util.Objects.equals(this.timeBackupCompleted, other.timeBackupCompleted) + && java.util.Objects.equals( + this.backupDurationInSeconds, other.backupDurationInSeconds) + && java.util.Objects.equals(this.backupType, other.backupType) + && java.util.Objects.equals(this.backupDestination, other.backupDestination) + && java.util.Objects.equals(this.backupSizeInGBs, other.backupSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.backupStatus == null ? 43 : this.backupStatus.hashCode()); + result = + (result * PRIME) + + (this.timeBackupCompleted == null + ? 43 + : this.timeBackupCompleted.hashCode()); + result = + (result * PRIME) + + (this.backupDurationInSeconds == null + ? 43 + : this.backupDurationInSeconds.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = + (result * PRIME) + + (this.backupDestination == null ? 43 : this.backupDestination.hashCode()); + result = + (result * PRIME) + + (this.backupSizeInGBs == null ? 43 : this.backupSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetBackupMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetBackupMetrics.java new file mode 100644 index 00000000000..8bd6c9d243c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetBackupMetrics.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the backup metrics for the fleet of databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseFleetBackupMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseFleetBackupMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"backupMetrics"}) + public DatabaseFleetBackupMetrics(java.util.List backupMetrics) { + super(); + this.backupMetrics = backupMetrics; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of backup metrics for the databases present in the fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupMetrics") + private java.util.List backupMetrics; + + /** + * A list of backup metrics for the databases present in the fleet. + * + * @param backupMetrics the value to set + * @return this builder + */ + public Builder backupMetrics(java.util.List backupMetrics) { + this.backupMetrics = backupMetrics; + this.__explicitlySet__.add("backupMetrics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseFleetBackupMetrics build() { + DatabaseFleetBackupMetrics model = new DatabaseFleetBackupMetrics(this.backupMetrics); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseFleetBackupMetrics model) { + if (model.wasPropertyExplicitlySet("backupMetrics")) { + this.backupMetrics(model.getBackupMetrics()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of backup metrics for the databases present in the fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupMetrics") + private final java.util.List backupMetrics; + + /** + * A list of backup metrics for the databases present in the fleet. + * + * @return the value + */ + public java.util.List getBackupMetrics() { + return backupMetrics; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseFleetBackupMetrics("); + sb.append("super=").append(super.toString()); + sb.append("backupMetrics=").append(String.valueOf(this.backupMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseFleetBackupMetrics)) { + return false; + } + + DatabaseFleetBackupMetrics other = (DatabaseFleetBackupMetrics) o; + return java.util.Objects.equals(this.backupMetrics, other.backupMetrics) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.backupMetrics == null ? 43 : this.backupMetrics.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetDataguardMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetDataguardMetrics.java new file mode 100644 index 00000000000..383e878eddc --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetDataguardMetrics.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The list of Oracle Data Guard-enabled databases in the fleet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseFleetDataguardMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseFleetDataguardMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dataguardMetrics"}) + public DatabaseFleetDataguardMetrics(java.util.List dataguardMetrics) { + super(); + this.dataguardMetrics = dataguardMetrics; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Data Guard usage metrics for the Oracle Data Guard-enabled databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataguardMetrics") + private java.util.List dataguardMetrics; + + /** + * The Data Guard usage metrics for the Oracle Data Guard-enabled databases. + * + * @param dataguardMetrics the value to set + * @return this builder + */ + public Builder dataguardMetrics(java.util.List dataguardMetrics) { + this.dataguardMetrics = dataguardMetrics; + this.__explicitlySet__.add("dataguardMetrics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseFleetDataguardMetrics build() { + DatabaseFleetDataguardMetrics model = + new DatabaseFleetDataguardMetrics(this.dataguardMetrics); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseFleetDataguardMetrics model) { + if (model.wasPropertyExplicitlySet("dataguardMetrics")) { + this.dataguardMetrics(model.getDataguardMetrics()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Data Guard usage metrics for the Oracle Data Guard-enabled databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataguardMetrics") + private final java.util.List dataguardMetrics; + + /** + * The Data Guard usage metrics for the Oracle Data Guard-enabled databases. + * + * @return the value + */ + public java.util.List getDataguardMetrics() { + return dataguardMetrics; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseFleetDataguardMetrics("); + sb.append("super=").append(super.toString()); + sb.append("dataguardMetrics=").append(String.valueOf(this.dataguardMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseFleetDataguardMetrics)) { + return false; + } + + DatabaseFleetDataguardMetrics other = (DatabaseFleetDataguardMetrics) o; + return java.util.Objects.equals(this.dataguardMetrics, other.dataguardMetrics) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.dataguardMetrics == null ? 43 : this.dataguardMetrics.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetHaOverviewMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetHaOverviewMetrics.java new file mode 100644 index 00000000000..56bb664ab32 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFleetHaOverviewMetrics.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the HA metrics for the fleet of databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseFleetHaOverviewMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseFleetHaOverviewMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"haMetrics"}) + public DatabaseFleetHaOverviewMetrics(java.util.List haMetrics) { + super(); + this.haMetrics = haMetrics; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of the databases present in the fleet and their HA usage metrics. */ + @com.fasterxml.jackson.annotation.JsonProperty("haMetrics") + private java.util.List haMetrics; + + /** + * A list of the databases present in the fleet and their HA usage metrics. + * + * @param haMetrics the value to set + * @return this builder + */ + public Builder haMetrics(java.util.List haMetrics) { + this.haMetrics = haMetrics; + this.__explicitlySet__.add("haMetrics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseFleetHaOverviewMetrics build() { + DatabaseFleetHaOverviewMetrics model = + new DatabaseFleetHaOverviewMetrics(this.haMetrics); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseFleetHaOverviewMetrics model) { + if (model.wasPropertyExplicitlySet("haMetrics")) { + this.haMetrics(model.getHaMetrics()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of the databases present in the fleet and their HA usage metrics. */ + @com.fasterxml.jackson.annotation.JsonProperty("haMetrics") + private final java.util.List haMetrics; + + /** + * A list of the databases present in the fleet and their HA usage metrics. + * + * @return the value + */ + public java.util.List getHaMetrics() { + return haMetrics; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseFleetHaOverviewMetrics("); + sb.append("super=").append(super.toString()); + sb.append("haMetrics=").append(String.valueOf(this.haMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseFleetHaOverviewMetrics)) { + return false; + } + + DatabaseFleetHaOverviewMetrics other = (DatabaseFleetHaOverviewMetrics) o; + return java.util.Objects.equals(this.haMetrics, other.haMetrics) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.haMetrics == null ? 43 : this.haMetrics.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaBackupDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaBackupDetails.java new file mode 100644 index 00000000000..e3fa39eec4a --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaBackupDetails.java @@ -0,0 +1,801 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The database HA and backup details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseHaBackupDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseHaBackupDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "flashBackOn", + "flashBackTime", + "recoveryWindowGoalInDays", + "lastFullBackupSummary", + "backupHistory", + "metrics", + "dbId", + "compartmentId", + "databaseType", + "databaseSubType", + "deploymentType", + "databaseVersion", + "workloadType", + "databaseName", + "databaseId", + "dbUniqueName", + "dbRole" + }) + public DatabaseHaBackupDetails( + String flashBackOn, + java.util.Date flashBackTime, + Integer recoveryWindowGoalInDays, + DatabaseBackupSummary lastFullBackupSummary, + java.util.List backupHistory, + java.util.List metrics, + String dbId, + String compartmentId, + DatabaseType databaseType, + DatabaseSubType databaseSubType, + DeploymentType deploymentType, + String databaseVersion, + WorkloadType workloadType, + String databaseName, + String databaseId, + String dbUniqueName, + DbRole dbRole) { + super(); + this.flashBackOn = flashBackOn; + this.flashBackTime = flashBackTime; + this.recoveryWindowGoalInDays = recoveryWindowGoalInDays; + this.lastFullBackupSummary = lastFullBackupSummary; + this.backupHistory = backupHistory; + this.metrics = metrics; + this.dbId = dbId; + this.compartmentId = compartmentId; + this.databaseType = databaseType; + this.databaseSubType = databaseSubType; + this.deploymentType = deploymentType; + this.databaseVersion = databaseVersion; + this.workloadType = workloadType; + this.databaseName = databaseName; + this.databaseId = databaseId; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates whether flashback is enabled for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("flashBackOn") + private String flashBackOn; + + /** + * Indicates whether flashback is enabled for the database. + * + * @param flashBackOn the value to set + * @return this builder + */ + public Builder flashBackOn(String flashBackOn) { + this.flashBackOn = flashBackOn; + this.__explicitlySet__.add("flashBackOn"); + return this; + } + /** + * The oldest flashback date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + @com.fasterxml.jackson.annotation.JsonProperty("flashBackTime") + private java.util.Date flashBackTime; + + /** + * The oldest flashback date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param flashBackTime the value to set + * @return this builder + */ + public Builder flashBackTime(java.util.Date flashBackTime) { + this.flashBackTime = flashBackTime; + this.__explicitlySet__.add("flashBackTime"); + return this; + } + /** The configured number of days intended to recover a protected database from a backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryWindowGoalInDays") + private Integer recoveryWindowGoalInDays; + + /** + * The configured number of days intended to recover a protected database from a backup. + * + * @param recoveryWindowGoalInDays the value to set + * @return this builder + */ + public Builder recoveryWindowGoalInDays(Integer recoveryWindowGoalInDays) { + this.recoveryWindowGoalInDays = recoveryWindowGoalInDays; + this.__explicitlySet__.add("recoveryWindowGoalInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastFullBackupSummary") + private DatabaseBackupSummary lastFullBackupSummary; + + public Builder lastFullBackupSummary(DatabaseBackupSummary lastFullBackupSummary) { + this.lastFullBackupSummary = lastFullBackupSummary; + this.__explicitlySet__.add("lastFullBackupSummary"); + return this; + } + /** A list of database backups. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupHistory") + private java.util.List backupHistory; + + /** + * A list of database backups. + * + * @param backupHistory the value to set + * @return this builder + */ + public Builder backupHistory(java.util.List backupHistory) { + this.backupHistory = backupHistory; + this.__explicitlySet__.add("backupHistory"); + return this; + } + /** A list of database backup metrics such as BackupSize and BackupDuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private java.util.List metrics; + + /** + * A list of database backup metrics such as BackupSize and BackupDuration. + * + * @param metrics the value to set + * @return this builder + */ + public Builder metrics(java.util.List metrics) { + this.metrics = metrics; + this.__explicitlySet__.add("metrics"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param dbId the value to set + * @return this builder + */ + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(DatabaseType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + * + * @param databaseSubType the value to set + * @return this builder + */ + public Builder databaseSubType(DatabaseSubType databaseSubType) { + this.databaseSubType = databaseSubType; + this.__explicitlySet__.add("databaseSubType"); + return this; + } + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The Oracle Database version. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @param workloadType the value to set + * @return this builder + */ + public Builder workloadType(WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The display name of the Managed Database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @param dbRole the value to set + * @return this builder + */ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseHaBackupDetails build() { + DatabaseHaBackupDetails model = + new DatabaseHaBackupDetails( + this.flashBackOn, + this.flashBackTime, + this.recoveryWindowGoalInDays, + this.lastFullBackupSummary, + this.backupHistory, + this.metrics, + this.dbId, + this.compartmentId, + this.databaseType, + this.databaseSubType, + this.deploymentType, + this.databaseVersion, + this.workloadType, + this.databaseName, + this.databaseId, + this.dbUniqueName, + this.dbRole); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseHaBackupDetails model) { + if (model.wasPropertyExplicitlySet("flashBackOn")) { + this.flashBackOn(model.getFlashBackOn()); + } + if (model.wasPropertyExplicitlySet("flashBackTime")) { + this.flashBackTime(model.getFlashBackTime()); + } + if (model.wasPropertyExplicitlySet("recoveryWindowGoalInDays")) { + this.recoveryWindowGoalInDays(model.getRecoveryWindowGoalInDays()); + } + if (model.wasPropertyExplicitlySet("lastFullBackupSummary")) { + this.lastFullBackupSummary(model.getLastFullBackupSummary()); + } + if (model.wasPropertyExplicitlySet("backupHistory")) { + this.backupHistory(model.getBackupHistory()); + } + if (model.wasPropertyExplicitlySet("metrics")) { + this.metrics(model.getMetrics()); + } + if (model.wasPropertyExplicitlySet("dbId")) { + this.dbId(model.getDbId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseSubType")) { + this.databaseSubType(model.getDatabaseSubType()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates whether flashback is enabled for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("flashBackOn") + private final String flashBackOn; + + /** + * Indicates whether flashback is enabled for the database. + * + * @return the value + */ + public String getFlashBackOn() { + return flashBackOn; + } + + /** + * The oldest flashback date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + @com.fasterxml.jackson.annotation.JsonProperty("flashBackTime") + private final java.util.Date flashBackTime; + + /** + * The oldest flashback date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @return the value + */ + public java.util.Date getFlashBackTime() { + return flashBackTime; + } + + /** The configured number of days intended to recover a protected database from a backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryWindowGoalInDays") + private final Integer recoveryWindowGoalInDays; + + /** + * The configured number of days intended to recover a protected database from a backup. + * + * @return the value + */ + public Integer getRecoveryWindowGoalInDays() { + return recoveryWindowGoalInDays; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastFullBackupSummary") + private final DatabaseBackupSummary lastFullBackupSummary; + + public DatabaseBackupSummary getLastFullBackupSummary() { + return lastFullBackupSummary; + } + + /** A list of database backups. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupHistory") + private final java.util.List backupHistory; + + /** + * A list of database backups. + * + * @return the value + */ + public java.util.List getBackupHistory() { + return backupHistory; + } + + /** A list of database backup metrics such as BackupSize and BackupDuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private final java.util.List metrics; + + /** + * A list of database backup metrics such as BackupSize and BackupDuration. + * + * @return the value + */ + public java.util.List getMetrics() { + return metrics; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private final String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getDbId() { + return dbId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @return the value + */ + public DatabaseType getDatabaseType() { + return databaseType; + } + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private final DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + * + * @return the value + */ + public DatabaseSubType getDatabaseSubType() { + return databaseSubType; + } + + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @return the value + */ + public DeploymentType getDeploymentType() { + return deploymentType; + } + + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The Oracle Database version. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @return the value + */ + public WorkloadType getWorkloadType() { + return workloadType; + } + + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The display name of the Managed Database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @return the value + */ + public DbRole getDbRole() { + return dbRole; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseHaBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("flashBackOn=").append(String.valueOf(this.flashBackOn)); + sb.append(", flashBackTime=").append(String.valueOf(this.flashBackTime)); + sb.append(", recoveryWindowGoalInDays=") + .append(String.valueOf(this.recoveryWindowGoalInDays)); + sb.append(", lastFullBackupSummary=").append(String.valueOf(this.lastFullBackupSummary)); + sb.append(", backupHistory=").append(String.valueOf(this.backupHistory)); + sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", dbId=").append(String.valueOf(this.dbId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", databaseSubType=").append(String.valueOf(this.databaseSubType)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseHaBackupDetails)) { + return false; + } + + DatabaseHaBackupDetails other = (DatabaseHaBackupDetails) o; + return java.util.Objects.equals(this.flashBackOn, other.flashBackOn) + && java.util.Objects.equals(this.flashBackTime, other.flashBackTime) + && java.util.Objects.equals( + this.recoveryWindowGoalInDays, other.recoveryWindowGoalInDays) + && java.util.Objects.equals(this.lastFullBackupSummary, other.lastFullBackupSummary) + && java.util.Objects.equals(this.backupHistory, other.backupHistory) + && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.dbId, other.dbId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.databaseSubType, other.databaseSubType) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.flashBackOn == null ? 43 : this.flashBackOn.hashCode()); + result = + (result * PRIME) + + (this.flashBackTime == null ? 43 : this.flashBackTime.hashCode()); + result = + (result * PRIME) + + (this.recoveryWindowGoalInDays == null + ? 43 + : this.recoveryWindowGoalInDays.hashCode()); + result = + (result * PRIME) + + (this.lastFullBackupSummary == null + ? 43 + : this.lastFullBackupSummary.hashCode()); + result = + (result * PRIME) + + (this.backupHistory == null ? 43 : this.backupHistory.hashCode()); + result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = (result * PRIME) + (this.dbId == null ? 43 : this.dbId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.databaseSubType == null ? 43 : this.databaseSubType.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaMetrics.java new file mode 100644 index 00000000000..416f09eb8f3 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHaMetrics.java @@ -0,0 +1,671 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the HA metrics for a single database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseHaMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseHaMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isDataguardEnabled", + "lastBackupSummary", + "metrics", + "dbId", + "compartmentId", + "databaseType", + "databaseSubType", + "deploymentType", + "databaseVersion", + "workloadType", + "databaseName", + "databaseId", + "dbUniqueName", + "dbRole" + }) + public DatabaseHaMetrics( + Boolean isDataguardEnabled, + DatabaseBackupSummary lastBackupSummary, + java.util.List metrics, + String dbId, + String compartmentId, + DatabaseType databaseType, + DatabaseSubType databaseSubType, + DeploymentType deploymentType, + String databaseVersion, + WorkloadType workloadType, + String databaseName, + String databaseId, + String dbUniqueName, + DbRole dbRole) { + super(); + this.isDataguardEnabled = isDataguardEnabled; + this.lastBackupSummary = lastBackupSummary; + this.metrics = metrics; + this.dbId = dbId; + this.compartmentId = compartmentId; + this.databaseType = databaseType; + this.databaseSubType = databaseSubType; + this.deploymentType = deploymentType; + this.databaseVersion = databaseVersion; + this.workloadType = workloadType; + this.databaseName = databaseName; + this.databaseId = databaseId; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates whether Data Guard is enabled for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDataguardEnabled") + private Boolean isDataguardEnabled; + + /** + * Indicates whether Data Guard is enabled for the database. + * + * @param isDataguardEnabled the value to set + * @return this builder + */ + public Builder isDataguardEnabled(Boolean isDataguardEnabled) { + this.isDataguardEnabled = isDataguardEnabled; + this.__explicitlySet__.add("isDataguardEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastBackupSummary") + private DatabaseBackupSummary lastBackupSummary; + + public Builder lastBackupSummary(DatabaseBackupSummary lastBackupSummary) { + this.lastBackupSummary = lastBackupSummary; + this.__explicitlySet__.add("lastBackupSummary"); + return this; + } + /** A list of database health metrics such as BackupDuration and BackupSize. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private java.util.List metrics; + + /** + * A list of database health metrics such as BackupDuration and BackupSize. + * + * @param metrics the value to set + * @return this builder + */ + public Builder metrics(java.util.List metrics) { + this.metrics = metrics; + this.__explicitlySet__.add("metrics"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param dbId the value to set + * @return this builder + */ + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(DatabaseType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + * + * @param databaseSubType the value to set + * @return this builder + */ + public Builder databaseSubType(DatabaseSubType databaseSubType) { + this.databaseSubType = databaseSubType; + this.__explicitlySet__.add("databaseSubType"); + return this; + } + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The Oracle Database version. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @param workloadType the value to set + * @return this builder + */ + public Builder workloadType(WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The display name of the Managed Database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @param dbRole the value to set + * @return this builder + */ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseHaMetrics build() { + DatabaseHaMetrics model = + new DatabaseHaMetrics( + this.isDataguardEnabled, + this.lastBackupSummary, + this.metrics, + this.dbId, + this.compartmentId, + this.databaseType, + this.databaseSubType, + this.deploymentType, + this.databaseVersion, + this.workloadType, + this.databaseName, + this.databaseId, + this.dbUniqueName, + this.dbRole); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseHaMetrics model) { + if (model.wasPropertyExplicitlySet("isDataguardEnabled")) { + this.isDataguardEnabled(model.getIsDataguardEnabled()); + } + if (model.wasPropertyExplicitlySet("lastBackupSummary")) { + this.lastBackupSummary(model.getLastBackupSummary()); + } + if (model.wasPropertyExplicitlySet("metrics")) { + this.metrics(model.getMetrics()); + } + if (model.wasPropertyExplicitlySet("dbId")) { + this.dbId(model.getDbId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseSubType")) { + this.databaseSubType(model.getDatabaseSubType()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates whether Data Guard is enabled for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDataguardEnabled") + private final Boolean isDataguardEnabled; + + /** + * Indicates whether Data Guard is enabled for the database. + * + * @return the value + */ + public Boolean getIsDataguardEnabled() { + return isDataguardEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastBackupSummary") + private final DatabaseBackupSummary lastBackupSummary; + + public DatabaseBackupSummary getLastBackupSummary() { + return lastBackupSummary; + } + + /** A list of database health metrics such as BackupDuration and BackupSize. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private final java.util.List metrics; + + /** + * A list of database health metrics such as BackupDuration and BackupSize. + * + * @return the value + */ + public java.util.List getMetrics() { + return metrics; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private final String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getDbId() { + return dbId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @return the value + */ + public DatabaseType getDatabaseType() { + return databaseType; + } + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private final DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + * + * @return the value + */ + public DatabaseSubType getDatabaseSubType() { + return databaseSubType; + } + + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @return the value + */ + public DeploymentType getDeploymentType() { + return deploymentType; + } + + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The Oracle Database version. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @return the value + */ + public WorkloadType getWorkloadType() { + return workloadType; + } + + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The display name of the Managed Database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @return the value + */ + public DbRole getDbRole() { + return dbRole; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseHaMetrics("); + sb.append("super=").append(super.toString()); + sb.append("isDataguardEnabled=").append(String.valueOf(this.isDataguardEnabled)); + sb.append(", lastBackupSummary=").append(String.valueOf(this.lastBackupSummary)); + sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", dbId=").append(String.valueOf(this.dbId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", databaseSubType=").append(String.valueOf(this.databaseSubType)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseHaMetrics)) { + return false; + } + + DatabaseHaMetrics other = (DatabaseHaMetrics) o; + return java.util.Objects.equals(this.isDataguardEnabled, other.isDataguardEnabled) + && java.util.Objects.equals(this.lastBackupSummary, other.lastBackupSummary) + && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.dbId, other.dbId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.databaseSubType, other.databaseSubType) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isDataguardEnabled == null + ? 43 + : this.isDataguardEnabled.hashCode()); + result = + (result * PRIME) + + (this.lastBackupSummary == null ? 43 : this.lastBackupSummary.hashCode()); + result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = (result * PRIME) + (this.dbId == null ? 43 : this.dbId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.databaseSubType == null ? 43 : this.databaseSubType.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHostedIn.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHostedIn.java new file mode 100644 index 00000000000..4df2f72c3ed --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseHostedIn.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Indicates whether the database is a cloud database (CLOUD) or an external database (EXTERNAL). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum DatabaseHostedIn implements com.oracle.bmc.http.internal.BmcEnum { + Cloud("CLOUD"), + External("EXTERNAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseHostedIn v : DatabaseHostedIn.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseHostedIn(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseHostedIn create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseHostedIn: " + key); + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardMetrics.java new file mode 100644 index 00000000000..2d54ccff9ca --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardMetrics.java @@ -0,0 +1,721 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The Data Guard usage metrics for a single database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataguardMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataguardMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "fastStartFailOver", + "protectionMode", + "metrics", + "standByDatabases", + "dbId", + "compartmentId", + "databaseType", + "databaseSubType", + "deploymentType", + "databaseVersion", + "workloadType", + "databaseName", + "databaseId", + "dbUniqueName", + "dbRole" + }) + public DataguardMetrics( + String fastStartFailOver, + String protectionMode, + java.util.List metrics, + java.util.List standByDatabases, + String dbId, + String compartmentId, + DatabaseType databaseType, + DatabaseSubType databaseSubType, + DeploymentType deploymentType, + String databaseVersion, + WorkloadType workloadType, + String databaseName, + String databaseId, + String dbUniqueName, + DbRole dbRole) { + super(); + this.fastStartFailOver = fastStartFailOver; + this.protectionMode = protectionMode; + this.metrics = metrics; + this.standByDatabases = standByDatabases; + this.dbId = dbId; + this.compartmentId = compartmentId; + this.databaseType = databaseType; + this.databaseSubType = databaseSubType; + this.deploymentType = deploymentType; + this.databaseVersion = databaseVersion; + this.workloadType = workloadType; + this.databaseName = databaseName; + this.databaseId = databaseId; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Fast-Start Failover status of the primary database. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOver") + private String fastStartFailOver; + + /** + * The Fast-Start Failover status of the primary database. + * + * @param fastStartFailOver the value to set + * @return this builder + */ + public Builder fastStartFailOver(String fastStartFailOver) { + this.fastStartFailOver = fastStartFailOver; + this.__explicitlySet__.add("fastStartFailOver"); + return this; + } + /** The protection mode of the primary Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private String protectionMode; + + /** + * The protection mode of the primary Database. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(String protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** A list of primary or standby database metrics. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private java.util.List metrics; + + /** + * A list of primary or standby database metrics. + * + * @param metrics the value to set + * @return this builder + */ + public Builder metrics(java.util.List metrics) { + this.metrics = metrics; + this.__explicitlySet__.add("metrics"); + return this; + } + /** A list of standby databases and their metrics */ + @com.fasterxml.jackson.annotation.JsonProperty("standByDatabases") + private java.util.List standByDatabases; + + /** + * A list of standby databases and their metrics + * + * @param standByDatabases the value to set + * @return this builder + */ + public Builder standByDatabases( + java.util.List standByDatabases) { + this.standByDatabases = standByDatabases; + this.__explicitlySet__.add("standByDatabases"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param dbId the value to set + * @return this builder + */ + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(DatabaseType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container + * Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous + * Container Database. + * + * @param databaseSubType the value to set + * @return this builder + */ + public Builder databaseSubType(DatabaseSubType databaseSubType) { + this.databaseSubType = databaseSubType; + this.__explicitlySet__.add("databaseSubType"); + return this; + } + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The Oracle Database version. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @param workloadType the value to set + * @return this builder + */ + public Builder workloadType(WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The display name of the Managed Database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @param dbRole the value to set + * @return this builder + */ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataguardMetrics build() { + DataguardMetrics model = + new DataguardMetrics( + this.fastStartFailOver, + this.protectionMode, + this.metrics, + this.standByDatabases, + this.dbId, + this.compartmentId, + this.databaseType, + this.databaseSubType, + this.deploymentType, + this.databaseVersion, + this.workloadType, + this.databaseName, + this.databaseId, + this.dbUniqueName, + this.dbRole); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataguardMetrics model) { + if (model.wasPropertyExplicitlySet("fastStartFailOver")) { + this.fastStartFailOver(model.getFastStartFailOver()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("metrics")) { + this.metrics(model.getMetrics()); + } + if (model.wasPropertyExplicitlySet("standByDatabases")) { + this.standByDatabases(model.getStandByDatabases()); + } + if (model.wasPropertyExplicitlySet("dbId")) { + this.dbId(model.getDbId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseSubType")) { + this.databaseSubType(model.getDatabaseSubType()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Fast-Start Failover status of the primary database. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOver") + private final String fastStartFailOver; + + /** + * The Fast-Start Failover status of the primary database. + * + * @return the value + */ + public String getFastStartFailOver() { + return fastStartFailOver; + } + + /** The protection mode of the primary Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final String protectionMode; + + /** + * The protection mode of the primary Database. + * + * @return the value + */ + public String getProtectionMode() { + return protectionMode; + } + + /** A list of primary or standby database metrics. */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private final java.util.List metrics; + + /** + * A list of primary or standby database metrics. + * + * @return the value + */ + public java.util.List getMetrics() { + return metrics; + } + + /** A list of standby databases and their metrics */ + @com.fasterxml.jackson.annotation.JsonProperty("standByDatabases") + private final java.util.List standByDatabases; + + /** + * A list of standby databases and their metrics + * + * @return the value + */ + public java.util.List getStandByDatabases() { + return standByDatabases; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private final String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getDbId() { + return dbId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The type of Oracle Database installation. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final DatabaseType databaseType; + + /** + * The type of Oracle Database installation. + * + * @return the value + */ + public DatabaseType getDatabaseType() { + return databaseType; + } + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSubType") + private final DatabaseSubType databaseSubType; + + /** + * The subtype of the Oracle Database. Indicates whether the database is a Container Database, + * Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container + * Database. + * + * @return the value + */ + public DatabaseSubType getDatabaseSubType() { + return databaseSubType; + } + + /** The infrastructure used to deploy the Oracle Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The infrastructure used to deploy the Oracle Database. + * + * @return the value + */ + public DeploymentType getDeploymentType() { + return deploymentType; + } + + /** The Oracle Database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The Oracle Database version. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The workload type of the Autonomous Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final WorkloadType workloadType; + + /** + * The workload type of the Autonomous Database. + * + * @return the value + */ + public WorkloadType getWorkloadType() { + return workloadType; + } + + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The display name of the Managed Database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @return the value + */ + public DbRole getDbRole() { + return dbRole; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataguardMetrics("); + sb.append("super=").append(super.toString()); + sb.append("fastStartFailOver=").append(String.valueOf(this.fastStartFailOver)); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", standByDatabases=").append(String.valueOf(this.standByDatabases)); + sb.append(", dbId=").append(String.valueOf(this.dbId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", databaseSubType=").append(String.valueOf(this.databaseSubType)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataguardMetrics)) { + return false; + } + + DataguardMetrics other = (DataguardMetrics) o; + return java.util.Objects.equals(this.fastStartFailOver, other.fastStartFailOver) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.standByDatabases, other.standByDatabases) + && java.util.Objects.equals(this.dbId, other.dbId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.databaseSubType, other.databaseSubType) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.fastStartFailOver == null ? 43 : this.fastStartFailOver.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.standByDatabases == null ? 43 : this.standByDatabases.hashCode()); + result = (result * PRIME) + (this.dbId == null ? 43 : this.dbId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.databaseSubType == null ? 43 : this.databaseSubType.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalMysqlAssociatedServiceDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalMysqlAssociatedServiceDetails.java new file mode 100644 index 00000000000..b04dd975fa8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalMysqlAssociatedServiceDetails.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details to disable an eMysql Associated Service.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisableExternalMysqlAssociatedServiceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisableExternalMysqlAssociatedServiceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"serviceResourceId", "connectorId", "serviceName"}) + public DisableExternalMysqlAssociatedServiceDetails( + String serviceResourceId, + String connectorId, + ExternalMysqlAssociatedServiceName serviceName) { + super(); + this.serviceResourceId = serviceResourceId; + this.connectorId = connectorId; + this.serviceName = serviceName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the Service Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceResourceId") + private String serviceResourceId; + + /** + * OCID of the Service Resource. + * + * @param serviceResourceId the value to set + * @return this builder + */ + public Builder serviceResourceId(String serviceResourceId) { + this.serviceResourceId = serviceResourceId; + this.__explicitlySet__.add("serviceResourceId"); + return this; + } + /** OCID of the External MySQL Database connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private String connectorId; + + /** + * OCID of the External MySQL Database connector. + * + * @param connectorId the value to set + * @return this builder + */ + public Builder connectorId(String connectorId) { + this.connectorId = connectorId; + this.__explicitlySet__.add("connectorId"); + return this; + } + /** Name of the Associated Service. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private ExternalMysqlAssociatedServiceName serviceName; + + /** + * Name of the Associated Service. + * + * @param serviceName the value to set + * @return this builder + */ + public Builder serviceName(ExternalMysqlAssociatedServiceName serviceName) { + this.serviceName = serviceName; + this.__explicitlySet__.add("serviceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisableExternalMysqlAssociatedServiceDetails build() { + DisableExternalMysqlAssociatedServiceDetails model = + new DisableExternalMysqlAssociatedServiceDetails( + this.serviceResourceId, this.connectorId, this.serviceName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisableExternalMysqlAssociatedServiceDetails model) { + if (model.wasPropertyExplicitlySet("serviceResourceId")) { + this.serviceResourceId(model.getServiceResourceId()); + } + if (model.wasPropertyExplicitlySet("connectorId")) { + this.connectorId(model.getConnectorId()); + } + if (model.wasPropertyExplicitlySet("serviceName")) { + this.serviceName(model.getServiceName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the Service Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceResourceId") + private final String serviceResourceId; + + /** + * OCID of the Service Resource. + * + * @return the value + */ + public String getServiceResourceId() { + return serviceResourceId; + } + + /** OCID of the External MySQL Database connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private final String connectorId; + + /** + * OCID of the External MySQL Database connector. + * + * @return the value + */ + public String getConnectorId() { + return connectorId; + } + + /** Name of the Associated Service. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private final ExternalMysqlAssociatedServiceName serviceName; + + /** + * Name of the Associated Service. + * + * @return the value + */ + public ExternalMysqlAssociatedServiceName getServiceName() { + return serviceName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisableExternalMysqlAssociatedServiceDetails("); + sb.append("super=").append(super.toString()); + sb.append("serviceResourceId=").append(String.valueOf(this.serviceResourceId)); + sb.append(", connectorId=").append(String.valueOf(this.connectorId)); + sb.append(", serviceName=").append(String.valueOf(this.serviceName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableExternalMysqlAssociatedServiceDetails)) { + return false; + } + + DisableExternalMysqlAssociatedServiceDetails other = + (DisableExternalMysqlAssociatedServiceDetails) o; + return java.util.Objects.equals(this.serviceResourceId, other.serviceResourceId) + && java.util.Objects.equals(this.connectorId, other.connectorId) + && java.util.Objects.equals(this.serviceName, other.serviceName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.serviceResourceId == null ? 43 : this.serviceResourceId.hashCode()); + result = (result * PRIME) + (this.connectorId == null ? 43 : this.connectorId.hashCode()); + result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java new file mode 100644 index 00000000000..4feea8f8610 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalDatabaseManagementDetails.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Detail to enable or disable database management.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableExternalDatabaseManagementDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableExternalDatabaseManagementDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectorId"}) + public EnableExternalDatabaseManagementDetails(String connectorId) { + super(); + this.connectorId = connectorId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of External MySQL Database connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private String connectorId; + + /** + * OCID of External MySQL Database connector. + * + * @param connectorId the value to set + * @return this builder + */ + public Builder connectorId(String connectorId) { + this.connectorId = connectorId; + this.__explicitlySet__.add("connectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalDatabaseManagementDetails build() { + EnableExternalDatabaseManagementDetails model = + new EnableExternalDatabaseManagementDetails(this.connectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalDatabaseManagementDetails model) { + if (model.wasPropertyExplicitlySet("connectorId")) { + this.connectorId(model.getConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of External MySQL Database connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private final String connectorId; + + /** + * OCID of External MySQL Database connector. + * + * @return the value + */ + public String getConnectorId() { + return connectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableExternalDatabaseManagementDetails("); + sb.append("super=").append(super.toString()); + sb.append("connectorId=").append(String.valueOf(this.connectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalDatabaseManagementDetails)) { + return false; + } + + EnableExternalDatabaseManagementDetails other = (EnableExternalDatabaseManagementDetails) o; + return java.util.Objects.equals(this.connectorId, other.connectorId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.connectorId == null ? 43 : this.connectorId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalMysqlAssociatedServiceDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalMysqlAssociatedServiceDetails.java new file mode 100644 index 00000000000..db105a8873b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalMysqlAssociatedServiceDetails.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details to enable an eMysql Associated Service.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableExternalMysqlAssociatedServiceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableExternalMysqlAssociatedServiceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"serviceResourceId", "connectorId", "serviceName"}) + public EnableExternalMysqlAssociatedServiceDetails( + String serviceResourceId, + String connectorId, + ExternalMysqlAssociatedServiceName serviceName) { + super(); + this.serviceResourceId = serviceResourceId; + this.connectorId = connectorId; + this.serviceName = serviceName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the Service Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceResourceId") + private String serviceResourceId; + + /** + * OCID of the Service Resource. + * + * @param serviceResourceId the value to set + * @return this builder + */ + public Builder serviceResourceId(String serviceResourceId) { + this.serviceResourceId = serviceResourceId; + this.__explicitlySet__.add("serviceResourceId"); + return this; + } + /** OCID of the External MySQL Database connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private String connectorId; + + /** + * OCID of the External MySQL Database connector. + * + * @param connectorId the value to set + * @return this builder + */ + public Builder connectorId(String connectorId) { + this.connectorId = connectorId; + this.__explicitlySet__.add("connectorId"); + return this; + } + /** Name of the Associated Service. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private ExternalMysqlAssociatedServiceName serviceName; + + /** + * Name of the Associated Service. + * + * @param serviceName the value to set + * @return this builder + */ + public Builder serviceName(ExternalMysqlAssociatedServiceName serviceName) { + this.serviceName = serviceName; + this.__explicitlySet__.add("serviceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalMysqlAssociatedServiceDetails build() { + EnableExternalMysqlAssociatedServiceDetails model = + new EnableExternalMysqlAssociatedServiceDetails( + this.serviceResourceId, this.connectorId, this.serviceName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalMysqlAssociatedServiceDetails model) { + if (model.wasPropertyExplicitlySet("serviceResourceId")) { + this.serviceResourceId(model.getServiceResourceId()); + } + if (model.wasPropertyExplicitlySet("connectorId")) { + this.connectorId(model.getConnectorId()); + } + if (model.wasPropertyExplicitlySet("serviceName")) { + this.serviceName(model.getServiceName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the Service Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceResourceId") + private final String serviceResourceId; + + /** + * OCID of the Service Resource. + * + * @return the value + */ + public String getServiceResourceId() { + return serviceResourceId; + } + + /** OCID of the External MySQL Database connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private final String connectorId; + + /** + * OCID of the External MySQL Database connector. + * + * @return the value + */ + public String getConnectorId() { + return connectorId; + } + + /** Name of the Associated Service. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private final ExternalMysqlAssociatedServiceName serviceName; + + /** + * Name of the Associated Service. + * + * @return the value + */ + public ExternalMysqlAssociatedServiceName getServiceName() { + return serviceName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableExternalMysqlAssociatedServiceDetails("); + sb.append("super=").append(super.toString()); + sb.append("serviceResourceId=").append(String.valueOf(this.serviceResourceId)); + sb.append(", connectorId=").append(String.valueOf(this.connectorId)); + sb.append(", serviceName=").append(String.valueOf(this.serviceName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalMysqlAssociatedServiceDetails)) { + return false; + } + + EnableExternalMysqlAssociatedServiceDetails other = + (EnableExternalMysqlAssociatedServiceDetails) o; + return java.util.Objects.equals(this.serviceResourceId, other.serviceResourceId) + && java.util.Objects.equals(this.connectorId, other.connectorId) + && java.util.Objects.equals(this.serviceName, other.serviceName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.serviceResourceId == null ? 43 : this.serviceResourceId.hashCode()); + result = (result * PRIME) + (this.connectorId == null ? 43 : this.connectorId.hashCode()); + result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExadataInfrastructureLifecycleStateValues.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExadataInfrastructureLifecycleStateValues.java new file mode 100644 index 00000000000..4c8612fcd8d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExadataInfrastructureLifecycleStateValues.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * the lifecycle state values for the Exadata infrastructure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExadataInfrastructureLifecycleStateValues.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExadataInfrastructureLifecycleStateValues + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"lifecycleState"}) + public ExadataInfrastructureLifecycleStateValues(LifecycleState lifecycleState) { + super(); + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The current lifecycle state of the database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the database resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExadataInfrastructureLifecycleStateValues build() { + ExadataInfrastructureLifecycleStateValues model = + new ExadataInfrastructureLifecycleStateValues(this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExadataInfrastructureLifecycleStateValues model) { + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The current lifecycle state of the database resource. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + 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); + } + }; + /** The current lifecycle state of the database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the database resource. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExadataInfrastructureLifecycleStateValues("); + sb.append("super=").append(super.toString()); + 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 ExadataInfrastructureLifecycleStateValues)) { + return false; + } + + ExadataInfrastructureLifecycleStateValues other = + (ExadataInfrastructureLifecycleStateValues) o; + return java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java new file mode 100644 index 00000000000..a932ca37580 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabase.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * External database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMySqlDatabase.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMySqlDatabase + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "externalDatabaseId", + "dbName", + "managementState" + }) + public ExternalMySqlDatabase( + String compartmentId, + String externalDatabaseId, + String dbName, + ManagementState managementState) { + super(); + this.compartmentId = compartmentId; + this.externalDatabaseId = externalDatabaseId; + this.dbName = dbName; + this.managementState = managementState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** OCID of External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + /** + * OCID of External MySQL Database. + * + * @param externalDatabaseId the value to set + * @return this builder + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + /** Display Name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private String dbName; + + /** + * Display Name of the External MySQL Database. + * + * @param dbName the value to set + * @return this builder + */ + public Builder dbName(String dbName) { + this.dbName = dbName; + this.__explicitlySet__.add("dbName"); + return this; + } + /** Indicates database management state. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private ManagementState managementState; + + /** + * Indicates database management state. + * + * @param managementState the value to set + * @return this builder + */ + public Builder managementState(ManagementState managementState) { + this.managementState = managementState; + this.__explicitlySet__.add("managementState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMySqlDatabase build() { + ExternalMySqlDatabase model = + new ExternalMySqlDatabase( + this.compartmentId, + this.externalDatabaseId, + this.dbName, + this.managementState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMySqlDatabase model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("externalDatabaseId")) { + this.externalDatabaseId(model.getExternalDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbName")) { + this.dbName(model.getDbName()); + } + if (model.wasPropertyExplicitlySet("managementState")) { + this.managementState(model.getManagementState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** OCID of External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private final String externalDatabaseId; + + /** + * OCID of External MySQL Database. + * + * @return the value + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } + + /** Display Name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private final String dbName; + + /** + * Display Name of the External MySQL Database. + * + * @return the value + */ + public String getDbName() { + return dbName; + } + + /** Indicates database management state. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private final ManagementState managementState; + + /** + * Indicates database management state. + * + * @return the value + */ + public ManagementState getManagementState() { + return managementState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalMySqlDatabase("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); + sb.append(", dbName=").append(String.valueOf(this.dbName)); + sb.append(", managementState=").append(String.valueOf(this.managementState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalMySqlDatabase)) { + return false; + } + + ExternalMySqlDatabase other = (ExternalMySqlDatabase) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) + && java.util.Objects.equals(this.dbName, other.dbName) + && java.util.Objects.equals(this.managementState, other.managementState) + && 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.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); + result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode()); + result = + (result * PRIME) + + (this.managementState == null ? 43 : this.managementState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java new file mode 100644 index 00000000000..39668d38300 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The collection of external MySQL Databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMySqlDatabaseCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMySqlDatabaseCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ExternalMySqlDatabaseCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of external MySQL Database records. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of external MySQL Database records. + * + * @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 ExternalMySqlDatabaseCollection build() { + ExternalMySqlDatabaseCollection model = new ExternalMySqlDatabaseCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMySqlDatabaseCollection 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); + } + + /** The list of external MySQL Database records. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of external MySQL Database records. + * + * @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("ExternalMySqlDatabaseCollection("); + 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 ExternalMySqlDatabaseCollection)) { + return false; + } + + ExternalMySqlDatabaseCollection other = (ExternalMySqlDatabaseCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java new file mode 100644 index 00000000000..e807db12c8e --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseConnector.java @@ -0,0 +1,895 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details of external database connector.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMySqlDatabaseConnector.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMySqlDatabaseConnector + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "compartmentId", + "associatedServices", + "externalDatabaseId", + "id", + "timeUpdated", + "timeCreated", + "lifecycleState", + "sourceDatabase", + "sourceDatabaseType", + "macsAgentId", + "connectionStatus", + "timeConnectionStatusUpdated", + "hostName", + "port", + "connectorType", + "networkProtocol", + "credentialType", + "sslSecretId", + "sslSecretName" + }) + public ExternalMySqlDatabaseConnector( + String name, + String compartmentId, + String associatedServices, + String externalDatabaseId, + String id, + java.util.Date timeUpdated, + java.util.Date timeCreated, + LifecycleStates lifecycleState, + String sourceDatabase, + MySqlType sourceDatabaseType, + String macsAgentId, + String connectionStatus, + java.util.Date timeConnectionStatusUpdated, + String hostName, + Integer port, + MySqlConnectorType connectorType, + MySqlNetworkProtocolType networkProtocol, + MySqlCredType credentialType, + String sslSecretId, + String sslSecretName) { + super(); + this.name = name; + this.compartmentId = compartmentId; + this.associatedServices = associatedServices; + this.externalDatabaseId = externalDatabaseId; + this.id = id; + this.timeUpdated = timeUpdated; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.sourceDatabase = sourceDatabase; + this.sourceDatabaseType = sourceDatabaseType; + this.macsAgentId = macsAgentId; + this.connectionStatus = connectionStatus; + this.timeConnectionStatusUpdated = timeConnectionStatusUpdated; + this.hostName = hostName; + this.port = port; + this.connectorType = connectorType; + this.networkProtocol = networkProtocol; + this.credentialType = credentialType; + this.sslSecretId = sslSecretId; + this.sslSecretName = sslSecretName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** External MySQL Database Connector Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * External MySQL Database Connector Name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** OCID of compartment for the External MySQL connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL connector. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** OCI Services associated with this connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedServices") + private String associatedServices; + + /** + * OCI Services associated with this connector. + * + * @param associatedServices the value to set + * @return this builder + */ + public Builder associatedServices(String associatedServices) { + this.associatedServices = associatedServices; + this.__explicitlySet__.add("associatedServices"); + return this; + } + /** OCID of MySQL Database resource */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + /** + * OCID of MySQL Database resource + * + * @param externalDatabaseId the value to set + * @return this builder + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + /** OCID of MySQL Database Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * OCID of MySQL Database Connector. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Connector update time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Connector update time. + * + * @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; + } + /** Connector creation time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Connector creation time. + * + * @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 lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Name of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabase") + private String sourceDatabase; + + /** + * Name of MySQL Database. + * + * @param sourceDatabase the value to set + * @return this builder + */ + public Builder sourceDatabase(String sourceDatabase) { + this.sourceDatabase = sourceDatabase; + this.__explicitlySet__.add("sourceDatabase"); + return this; + } + /** Type of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseType") + private MySqlType sourceDatabaseType; + + /** + * Type of MySQL Database. + * + * @param sourceDatabaseType the value to set + * @return this builder + */ + public Builder sourceDatabaseType(MySqlType sourceDatabaseType) { + this.sourceDatabaseType = sourceDatabaseType; + this.__explicitlySet__.add("sourceDatabaseType"); + return this; + } + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @param macsAgentId the value to set + * @return this builder + */ + public Builder macsAgentId(String macsAgentId) { + this.macsAgentId = macsAgentId; + this.__explicitlySet__.add("macsAgentId"); + return this; + } + /** Connection Status */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + private String connectionStatus; + + /** + * Connection Status + * + * @param connectionStatus the value to set + * @return this builder + */ + public Builder connectionStatus(String connectionStatus) { + this.connectionStatus = connectionStatus; + this.__explicitlySet__.add("connectionStatus"); + return this; + } + /** Time when connection status was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusUpdated") + private java.util.Date timeConnectionStatusUpdated; + + /** + * Time when connection status was last updated. + * + * @param timeConnectionStatusUpdated the value to set + * @return this builder + */ + public Builder timeConnectionStatusUpdated(java.util.Date timeConnectionStatusUpdated) { + this.timeConnectionStatusUpdated = timeConnectionStatusUpdated; + this.__explicitlySet__.add("timeConnectionStatusUpdated"); + return this; + } + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + /** + * Host name for Connector. + * + * @param hostName the value to set + * @return this builder + */ + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + /** Connector port. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Connector port. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** Connector Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorType") + private MySqlConnectorType connectorType; + + /** + * Connector Type. + * + * @param connectorType the value to set + * @return this builder + */ + public Builder connectorType(MySqlConnectorType connectorType) { + this.connectorType = connectorType; + this.__explicitlySet__.add("connectorType"); + return this; + } + /** Network Protocol. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private MySqlNetworkProtocolType networkProtocol; + + /** + * Network Protocol. + * + * @param networkProtocol the value to set + * @return this builder + */ + public Builder networkProtocol(MySqlNetworkProtocolType networkProtocol) { + this.networkProtocol = networkProtocol; + this.__explicitlySet__.add("networkProtocol"); + return this; + } + /** Credential type used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private MySqlCredType credentialType; + + /** + * Credential type used to connect to database. + * + * @param credentialType the value to set + * @return this builder + */ + public Builder credentialType(MySqlCredType credentialType) { + this.credentialType = credentialType; + this.__explicitlySet__.add("credentialType"); + return this; + } + /** OCID of the SSL secret, if TCPS with SSL is used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") + private String sslSecretId; + + /** + * OCID of the SSL secret, if TCPS with SSL is used to connect to database. + * + * @param sslSecretId the value to set + * @return this builder + */ + public Builder sslSecretId(String sslSecretId) { + this.sslSecretId = sslSecretId; + this.__explicitlySet__.add("sslSecretId"); + return this; + } + /** Name of the SSL secret, if TCPS with SSL is used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretName") + private String sslSecretName; + + /** + * Name of the SSL secret, if TCPS with SSL is used to connect to database. + * + * @param sslSecretName the value to set + * @return this builder + */ + public Builder sslSecretName(String sslSecretName) { + this.sslSecretName = sslSecretName; + this.__explicitlySet__.add("sslSecretName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMySqlDatabaseConnector build() { + ExternalMySqlDatabaseConnector model = + new ExternalMySqlDatabaseConnector( + this.name, + this.compartmentId, + this.associatedServices, + this.externalDatabaseId, + this.id, + this.timeUpdated, + this.timeCreated, + this.lifecycleState, + this.sourceDatabase, + this.sourceDatabaseType, + this.macsAgentId, + this.connectionStatus, + this.timeConnectionStatusUpdated, + this.hostName, + this.port, + this.connectorType, + this.networkProtocol, + this.credentialType, + this.sslSecretId, + this.sslSecretName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMySqlDatabaseConnector model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("associatedServices")) { + this.associatedServices(model.getAssociatedServices()); + } + if (model.wasPropertyExplicitlySet("externalDatabaseId")) { + this.externalDatabaseId(model.getExternalDatabaseId()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("sourceDatabase")) { + this.sourceDatabase(model.getSourceDatabase()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseType")) { + this.sourceDatabaseType(model.getSourceDatabaseType()); + } + if (model.wasPropertyExplicitlySet("macsAgentId")) { + this.macsAgentId(model.getMacsAgentId()); + } + if (model.wasPropertyExplicitlySet("connectionStatus")) { + this.connectionStatus(model.getConnectionStatus()); + } + if (model.wasPropertyExplicitlySet("timeConnectionStatusUpdated")) { + this.timeConnectionStatusUpdated(model.getTimeConnectionStatusUpdated()); + } + if (model.wasPropertyExplicitlySet("hostName")) { + this.hostName(model.getHostName()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("connectorType")) { + this.connectorType(model.getConnectorType()); + } + if (model.wasPropertyExplicitlySet("networkProtocol")) { + this.networkProtocol(model.getNetworkProtocol()); + } + if (model.wasPropertyExplicitlySet("credentialType")) { + this.credentialType(model.getCredentialType()); + } + if (model.wasPropertyExplicitlySet("sslSecretId")) { + this.sslSecretId(model.getSslSecretId()); + } + if (model.wasPropertyExplicitlySet("sslSecretName")) { + this.sslSecretName(model.getSslSecretName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** External MySQL Database Connector Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * External MySQL Database Connector Name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** OCID of compartment for the External MySQL connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL connector. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** OCI Services associated with this connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedServices") + private final String associatedServices; + + /** + * OCI Services associated with this connector. + * + * @return the value + */ + public String getAssociatedServices() { + return associatedServices; + } + + /** OCID of MySQL Database resource */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private final String externalDatabaseId; + + /** + * OCID of MySQL Database resource + * + * @return the value + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } + + /** OCID of MySQL Database Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * OCID of MySQL Database Connector. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Connector update time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Connector update time. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Connector creation time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Connector creation time. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + + /** Name of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabase") + private final String sourceDatabase; + + /** + * Name of MySQL Database. + * + * @return the value + */ + public String getSourceDatabase() { + return sourceDatabase; + } + + /** Type of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseType") + private final MySqlType sourceDatabaseType; + + /** + * Type of MySQL Database. + * + * @return the value + */ + public MySqlType getSourceDatabaseType() { + return sourceDatabaseType; + } + + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private final String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @return the value + */ + public String getMacsAgentId() { + return macsAgentId; + } + + /** Connection Status */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + private final String connectionStatus; + + /** + * Connection Status + * + * @return the value + */ + public String getConnectionStatus() { + return connectionStatus; + } + + /** Time when connection status was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusUpdated") + private final java.util.Date timeConnectionStatusUpdated; + + /** + * Time when connection status was last updated. + * + * @return the value + */ + public java.util.Date getTimeConnectionStatusUpdated() { + return timeConnectionStatusUpdated; + } + + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private final String hostName; + + /** + * Host name for Connector. + * + * @return the value + */ + public String getHostName() { + return hostName; + } + + /** Connector port. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Connector port. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** Connector Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorType") + private final MySqlConnectorType connectorType; + + /** + * Connector Type. + * + * @return the value + */ + public MySqlConnectorType getConnectorType() { + return connectorType; + } + + /** Network Protocol. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private final MySqlNetworkProtocolType networkProtocol; + + /** + * Network Protocol. + * + * @return the value + */ + public MySqlNetworkProtocolType getNetworkProtocol() { + return networkProtocol; + } + + /** Credential type used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private final MySqlCredType credentialType; + + /** + * Credential type used to connect to database. + * + * @return the value + */ + public MySqlCredType getCredentialType() { + return credentialType; + } + + /** OCID of the SSL secret, if TCPS with SSL is used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") + private final String sslSecretId; + + /** + * OCID of the SSL secret, if TCPS with SSL is used to connect to database. + * + * @return the value + */ + public String getSslSecretId() { + return sslSecretId; + } + + /** Name of the SSL secret, if TCPS with SSL is used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretName") + private final String sslSecretName; + + /** + * Name of the SSL secret, if TCPS with SSL is used to connect to database. + * + * @return the value + */ + public String getSslSecretName() { + return sslSecretName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalMySqlDatabaseConnector("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", associatedServices=").append(String.valueOf(this.associatedServices)); + sb.append(", externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", sourceDatabase=").append(String.valueOf(this.sourceDatabase)); + sb.append(", sourceDatabaseType=").append(String.valueOf(this.sourceDatabaseType)); + sb.append(", macsAgentId=").append(String.valueOf(this.macsAgentId)); + sb.append(", connectionStatus=").append(String.valueOf(this.connectionStatus)); + sb.append(", timeConnectionStatusUpdated=") + .append(String.valueOf(this.timeConnectionStatusUpdated)); + sb.append(", hostName=").append(String.valueOf(this.hostName)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", connectorType=").append(String.valueOf(this.connectorType)); + sb.append(", networkProtocol=").append(String.valueOf(this.networkProtocol)); + sb.append(", credentialType=").append(String.valueOf(this.credentialType)); + sb.append(", sslSecretId=").append(String.valueOf(this.sslSecretId)); + sb.append(", sslSecretName=").append(String.valueOf(this.sslSecretName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalMySqlDatabaseConnector)) { + return false; + } + + ExternalMySqlDatabaseConnector other = (ExternalMySqlDatabaseConnector) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.associatedServices, other.associatedServices) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sourceDatabase, other.sourceDatabase) + && java.util.Objects.equals(this.sourceDatabaseType, other.sourceDatabaseType) + && java.util.Objects.equals(this.macsAgentId, other.macsAgentId) + && java.util.Objects.equals(this.connectionStatus, other.connectionStatus) + && java.util.Objects.equals( + this.timeConnectionStatusUpdated, other.timeConnectionStatusUpdated) + && java.util.Objects.equals(this.hostName, other.hostName) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.connectorType, other.connectorType) + && java.util.Objects.equals(this.networkProtocol, other.networkProtocol) + && java.util.Objects.equals(this.credentialType, other.credentialType) + && java.util.Objects.equals(this.sslSecretId, other.sslSecretId) + && java.util.Objects.equals(this.sslSecretName, other.sslSecretName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.associatedServices == null + ? 43 + : this.associatedServices.hashCode()); + result = + (result * PRIME) + + (this.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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.sourceDatabase == null ? 43 : this.sourceDatabase.hashCode()); + result = + (result * PRIME) + + (this.sourceDatabaseType == null + ? 43 + : this.sourceDatabaseType.hashCode()); + result = (result * PRIME) + (this.macsAgentId == null ? 43 : this.macsAgentId.hashCode()); + result = + (result * PRIME) + + (this.connectionStatus == null ? 43 : this.connectionStatus.hashCode()); + result = + (result * PRIME) + + (this.timeConnectionStatusUpdated == null + ? 43 + : this.timeConnectionStatusUpdated.hashCode()); + result = (result * PRIME) + (this.hostName == null ? 43 : this.hostName.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = + (result * PRIME) + + (this.connectorType == null ? 43 : this.connectorType.hashCode()); + result = + (result * PRIME) + + (this.networkProtocol == null ? 43 : this.networkProtocol.hashCode()); + result = + (result * PRIME) + + (this.credentialType == null ? 43 : this.credentialType.hashCode()); + result = (result * PRIME) + (this.sslSecretId == null ? 43 : this.sslSecretId.hashCode()); + result = + (result * PRIME) + + (this.sslSecretName == null ? 43 : this.sslSecretName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java new file mode 100644 index 00000000000..a217a890b67 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMySqlDatabaseSummary.java @@ -0,0 +1,441 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * External database summary record.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMySqlDatabaseSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMySqlDatabaseSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "externalDatabaseId", + "connectorId", + "dbName", + "deploymentType", + "managementState", + "lifecycleState", + "systemTags" + }) + public ExternalMySqlDatabaseSummary( + String compartmentId, + String externalDatabaseId, + String connectorId, + String dbName, + MySqlDeploymentType deploymentType, + ManagementState managementState, + LifecycleStates lifecycleState, + java.util.Map> systemTags) { + super(); + this.compartmentId = compartmentId; + this.externalDatabaseId = externalDatabaseId; + this.connectorId = connectorId; + this.dbName = dbName; + this.deploymentType = deploymentType; + this.managementState = managementState; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** OCID of External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + /** + * OCID of External MySQL Database. + * + * @param externalDatabaseId the value to set + * @return this builder + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + /** The OCID of the enabled MySQL Database Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private String connectorId; + + /** + * The OCID of the enabled MySQL Database Connector. + * + * @param connectorId the value to set + * @return this builder + */ + public Builder connectorId(String connectorId) { + this.connectorId = connectorId; + this.__explicitlySet__.add("connectorId"); + return this; + } + /** Display name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private String dbName; + + /** + * Display name of the External MySQL Database. + * + * @param dbName the value to set + * @return this builder + */ + public Builder dbName(String dbName) { + this.dbName = dbName; + this.__explicitlySet__.add("dbName"); + return this; + } + /** The deployment type of the Mysql Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private MySqlDeploymentType deploymentType; + + /** + * The deployment type of the Mysql Database. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(MySqlDeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** Indicates database management state. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private ManagementState managementState; + + /** + * Indicates database management state. + * + * @param managementState the value to set + * @return this builder + */ + public Builder managementState(ManagementState managementState) { + this.managementState = managementState; + this.__explicitlySet__.add("managementState"); + return this; + } + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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 ExternalMySqlDatabaseSummary build() { + ExternalMySqlDatabaseSummary model = + new ExternalMySqlDatabaseSummary( + this.compartmentId, + this.externalDatabaseId, + this.connectorId, + this.dbName, + this.deploymentType, + this.managementState, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMySqlDatabaseSummary model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("externalDatabaseId")) { + this.externalDatabaseId(model.getExternalDatabaseId()); + } + if (model.wasPropertyExplicitlySet("connectorId")) { + this.connectorId(model.getConnectorId()); + } + if (model.wasPropertyExplicitlySet("dbName")) { + this.dbName(model.getDbName()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("managementState")) { + this.managementState(model.getManagementState()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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); + } + + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** OCID of External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private final String externalDatabaseId; + + /** + * OCID of External MySQL Database. + * + * @return the value + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } + + /** The OCID of the enabled MySQL Database Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private final String connectorId; + + /** + * The OCID of the enabled MySQL Database Connector. + * + * @return the value + */ + public String getConnectorId() { + return connectorId; + } + + /** Display name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private final String dbName; + + /** + * Display name of the External MySQL Database. + * + * @return the value + */ + public String getDbName() { + return dbName; + } + + /** The deployment type of the Mysql Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final MySqlDeploymentType deploymentType; + + /** + * The deployment type of the Mysql Database. + * + * @return the value + */ + public MySqlDeploymentType getDeploymentType() { + return deploymentType; + } + + /** Indicates database management state. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private final ManagementState managementState; + + /** + * Indicates database management state. + * + * @return the value + */ + public ManagementState getManagementState() { + return managementState; + } + + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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("ExternalMySqlDatabaseSummary("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); + sb.append(", connectorId=").append(String.valueOf(this.connectorId)); + sb.append(", dbName=").append(String.valueOf(this.dbName)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", managementState=").append(String.valueOf(this.managementState)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 ExternalMySqlDatabaseSummary)) { + return false; + } + + ExternalMySqlDatabaseSummary other = (ExternalMySqlDatabaseSummary) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) + && java.util.Objects.equals(this.connectorId, other.connectorId) + && java.util.Objects.equals(this.dbName, other.dbName) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.managementState, other.managementState) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); + result = (result * PRIME) + (this.connectorId == null ? 43 : this.connectorId.hashCode()); + result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = + (result * PRIME) + + (this.managementState == null ? 43 : this.managementState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMysqlAssociatedServiceName.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMysqlAssociatedServiceName.java new file mode 100644 index 00000000000..17e2fbc44cf --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalMysqlAssociatedServiceName.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The name of the eMysql Associated Service. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum ExternalMysqlAssociatedServiceName implements com.oracle.bmc.http.internal.BmcEnum { + OperationsInsights("OPERATIONS_INSIGHTS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ExternalMysqlAssociatedServiceName v : ExternalMysqlAssociatedServiceName.values()) { + map.put(v.getValue(), v); + } + } + + ExternalMysqlAssociatedServiceName(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ExternalMysqlAssociatedServiceName create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ExternalMysqlAssociatedServiceName: " + key); + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HaMetricDefinition.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HaMetricDefinition.java new file mode 100644 index 00000000000..11cd6a02794 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HaMetricDefinition.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The metric definition for HA and backup metrics.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HaMetricDefinition.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HaMetricDefinition + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "metricName", + "metadata", + "dimensions", + "timestamp", + "value" + }) + public HaMetricDefinition( + String metricName, + java.util.Map metadata, + java.util.Map dimensions, + java.util.Date timestamp, + Double value) { + super(); + this.metricName = metricName; + this.metadata = metadata; + this.dimensions = dimensions; + this.timestamp = timestamp; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the metric. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricName") + private String metricName; + + /** + * The name of the metric. + * + * @param metricName the value to set + * @return this builder + */ + public Builder metricName(String metricName) { + this.metricName = metricName; + this.__explicitlySet__.add("metricName"); + return this; + } + /** + * The metadata qualifiers provided in the definition of the returned metric. Available + * metadata vary by metric. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * The metadata qualifiers provided in the definition of the returned metric. Available + * metadata vary by metric. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The dimension qualifiers provided in the definition of the returned metric. Available + * dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. + * Example: {@code {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private java.util.Map dimensions; + + /** + * The dimension qualifiers provided in the definition of the returned metric. Available + * dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. + * Example: {@code {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}} + * + * @param dimensions the value to set + * @return this builder + */ + public Builder dimensions(java.util.Map dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } + /** + * The data point date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The data point date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @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; + } + /** The target value of the metric. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Double value; + + /** + * The target value of the metric. + * + * @param value the value to set + * @return this builder + */ + public Builder value(Double value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HaMetricDefinition build() { + HaMetricDefinition model = + new HaMetricDefinition( + this.metricName, + this.metadata, + this.dimensions, + this.timestamp, + this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HaMetricDefinition model) { + if (model.wasPropertyExplicitlySet("metricName")) { + this.metricName(model.getMetricName()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the metric. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricName") + private final String metricName; + + /** + * The name of the metric. + * + * @return the value + */ + public String getMetricName() { + return metricName; + } + + /** + * The metadata qualifiers provided in the definition of the returned metric. Available metadata + * vary by metric. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * The metadata qualifiers provided in the definition of the returned metric. Available metadata + * vary by metric. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The dimension qualifiers provided in the definition of the returned metric. Available + * dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. + * Example: {@code {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final java.util.Map dimensions; + + /** + * The dimension qualifiers provided in the definition of the returned metric. Available + * dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. + * Example: {@code {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}} + * + * @return the value + */ + public java.util.Map getDimensions() { + return dimensions; + } + + /** + * The data point date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The data point date and time in UTC in ISO-8601 format, which is + * "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + /** The target value of the metric. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Double value; + + /** + * The target value of the metric. + * + * @return the value + */ + public Double getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HaMetricDefinition("); + sb.append("super=").append(super.toString()); + sb.append("metricName=").append(String.valueOf(this.metricName)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HaMetricDefinition)) { + return false; + } + + HaMetricDefinition other = (HaMetricDefinition) o; + return java.util.Objects.equals(this.metricName, other.metricName) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.dimensions, other.dimensions) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.metricName == null ? 43 : this.metricName.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java index 7d8ee2cc34e..de46126fe51 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java @@ -37,7 +37,11 @@ public final class ManagedMySqlDatabase "heatWaveMemorySize", "heatWaveNodes", "isHeatWaveActive", - "timeCreatedHeatWave" + "timeCreatedHeatWave", + "databaseType", + "managementState", + "lifecycleState", + "timeUpdated" }) public ManagedMySqlDatabase( String id, @@ -53,7 +57,11 @@ public ManagedMySqlDatabase( Integer heatWaveMemorySize, java.util.List heatWaveNodes, Boolean isHeatWaveActive, - java.util.Date timeCreatedHeatWave) { + java.util.Date timeCreatedHeatWave, + MySqlType databaseType, + ManagementState managementState, + LifecycleStates lifecycleState, + java.util.Date timeUpdated) { super(); this.id = id; this.compartmentId = compartmentId; @@ -69,6 +77,10 @@ public ManagedMySqlDatabase( this.heatWaveNodes = heatWaveNodes; this.isHeatWaveActive = isHeatWaveActive; this.timeCreatedHeatWave = timeCreatedHeatWave; + this.databaseType = databaseType; + this.managementState = managementState; + this.lifecycleState = lifecycleState; + this.timeUpdated = timeUpdated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -283,6 +295,66 @@ public Builder timeCreatedHeatWave(java.util.Date timeCreatedHeatWave) { this.__explicitlySet__.add("timeCreatedHeatWave"); return this; } + /** The type of the MySQL Database. Indicates whether the database is external or MDS. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private MySqlType databaseType; + + /** + * The type of the MySQL Database. Indicates whether the database is external or MDS. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(MySqlType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** Indicates database management status. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private ManagementState managementState; + + /** + * Indicates database management status. + * + * @param managementState the value to set + * @return this builder + */ + public Builder managementState(ManagementState managementState) { + this.managementState = managementState; + this.__explicitlySet__.add("managementState"); + return this; + } + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The date and time the Managed MySQL Database was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Managed MySQL Database was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -303,7 +375,11 @@ public ManagedMySqlDatabase build() { this.heatWaveMemorySize, this.heatWaveNodes, this.isHeatWaveActive, - this.timeCreatedHeatWave); + this.timeCreatedHeatWave, + this.databaseType, + this.managementState, + this.lifecycleState, + this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -354,6 +430,18 @@ public Builder copy(ManagedMySqlDatabase model) { if (model.wasPropertyExplicitlySet("timeCreatedHeatWave")) { this.timeCreatedHeatWave(model.getTimeCreatedHeatWave()); } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("managementState")) { + this.managementState(model.getManagementState()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } return this; } } @@ -549,6 +637,58 @@ public java.util.Date getTimeCreatedHeatWave() { return timeCreatedHeatWave; } + /** The type of the MySQL Database. Indicates whether the database is external or MDS. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final MySqlType databaseType; + + /** + * The type of the MySQL Database. Indicates whether the database is external or MDS. + * + * @return the value + */ + public MySqlType getDatabaseType() { + return databaseType; + } + + /** Indicates database management status. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private final ManagementState managementState; + + /** + * Indicates database management status. + * + * @return the value + */ + public ManagementState getManagementState() { + return managementState; + } + + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + + /** The date and time the Managed MySQL Database was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Managed MySQL Database was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + @Override public String toString() { return this.toString(true); @@ -579,6 +719,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", heatWaveNodes=").append(String.valueOf(this.heatWaveNodes)); sb.append(", isHeatWaveActive=").append(String.valueOf(this.isHeatWaveActive)); sb.append(", timeCreatedHeatWave=").append(String.valueOf(this.timeCreatedHeatWave)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", managementState=").append(String.valueOf(this.managementState)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(")"); return sb.toString(); } @@ -608,6 +752,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.heatWaveNodes, other.heatWaveNodes) && java.util.Objects.equals(this.isHeatWaveActive, other.isHeatWaveActive) && java.util.Objects.equals(this.timeCreatedHeatWave, other.timeCreatedHeatWave) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.managementState, other.managementState) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && super.equals(other); } @@ -655,6 +803,14 @@ public int hashCode() { + (this.timeCreatedHeatWave == null ? 43 : this.timeCreatedHeatWave.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.managementState == null ? 43 : this.managementState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java index 2cdfd550fde..a6217203189 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabaseSummary.java @@ -29,7 +29,10 @@ public final class ManagedMySqlDatabaseSummary "dbName", "dbVersion", "timeCreated", - "name" + "name", + "databaseType", + "managementState", + "lifecycleState" }) public ManagedMySqlDatabaseSummary( String id, @@ -37,7 +40,10 @@ public ManagedMySqlDatabaseSummary( String dbName, String dbVersion, java.util.Date timeCreated, - String name) { + String name, + MySqlType databaseType, + ManagementState managementState, + LifecycleStates lifecycleState) { super(); this.id = id; this.compartmentId = compartmentId; @@ -45,6 +51,9 @@ public ManagedMySqlDatabaseSummary( this.dbVersion = dbVersion; this.timeCreated = timeCreated; this.name = name; + this.databaseType = databaseType; + this.managementState = managementState; + this.lifecycleState = lifecycleState; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -139,6 +148,51 @@ public Builder name(String name) { this.__explicitlySet__.add("name"); return this; } + /** The type of the MySQL Database. Indicates whether the database is external or MDS. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private MySqlType databaseType; + + /** + * The type of the MySQL Database. Indicates whether the database is external or MDS. + * + * @param databaseType the value to set + * @return this builder + */ + public Builder databaseType(MySqlType databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + /** Indicates database management status. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private ManagementState managementState; + + /** + * Indicates database management status. + * + * @param managementState the value to set + * @return this builder + */ + public Builder managementState(ManagementState managementState) { + this.managementState = managementState; + this.__explicitlySet__.add("managementState"); + return this; + } + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -151,7 +205,10 @@ public ManagedMySqlDatabaseSummary build() { this.dbName, this.dbVersion, this.timeCreated, - this.name); + this.name, + this.databaseType, + this.managementState, + this.lifecycleState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -178,6 +235,15 @@ public Builder copy(ManagedMySqlDatabaseSummary model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("managementState")) { + this.managementState(model.getManagementState()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } return this; } } @@ -269,6 +335,45 @@ public String getName() { return name; } + /** The type of the MySQL Database. Indicates whether the database is external or MDS. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private final MySqlType databaseType; + + /** + * The type of the MySQL Database. Indicates whether the database is external or MDS. + * + * @return the value + */ + public MySqlType getDatabaseType() { + return databaseType; + } + + /** Indicates database management status. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementState") + private final ManagementState managementState; + + /** + * Indicates database management status. + * + * @return the value + */ + public ManagementState getManagementState() { + return managementState; + } + + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + @Override public String toString() { return this.toString(true); @@ -290,6 +395,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", databaseType=").append(String.valueOf(this.databaseType)); + sb.append(", managementState=").append(String.valueOf(this.managementState)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(")"); return sb.toString(); } @@ -310,6 +418,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dbVersion, other.dbVersion) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.databaseType, other.databaseType) + && java.util.Objects.equals(this.managementState, other.managementState) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && super.equals(other); } @@ -325,6 +436,13 @@ public int hashCode() { result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = + (result * PRIME) + + (this.managementState == null ? 43 : this.managementState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java new file mode 100644 index 00000000000..0a4b23da2cb --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagementState.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** Indicates whether Database Management is enabled or disabled. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum ManagementState implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ManagementState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ManagementState v : ManagementState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ManagementState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ManagementState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ManagementState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java new file mode 100644 index 00000000000..5e8d8f61b20 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The collection of external MySQL Database connectors.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlConnectorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlConnectorCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MySqlConnectorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of external MySQL Database connector records. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of external MySQL Database connector records. + * + * @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 MySqlConnectorCollection build() { + MySqlConnectorCollection model = new MySqlConnectorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlConnectorCollection 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); + } + + /** The list of external MySQL Database connector records. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of external MySQL Database connector records. + * + * @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("MySqlConnectorCollection("); + 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 MySqlConnectorCollection)) { + return false; + } + + MySqlConnectorCollection other = (MySqlConnectorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java new file mode 100644 index 00000000000..5de07d566f4 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlConnectorType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The connector type of MySQL Database. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum MySqlConnectorType implements com.oracle.bmc.http.internal.BmcEnum { + Macs("MACS"), + + /** + * 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(MySqlConnectorType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MySqlConnectorType v : MySqlConnectorType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MySqlConnectorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MySqlConnectorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MySqlConnectorType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java new file mode 100644 index 00000000000..91d1c98c26d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlCredType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The credential type for MySQL Database. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum MySqlCredType implements com.oracle.bmc.http.internal.BmcEnum { + MysqlExternalNonSslCredentials("MYSQL_EXTERNAL_NON_SSL_CREDENTIALS"), + MysqlExternalSslCredentials("MYSQL_EXTERNAL_SSL_CREDENTIALS"), + MysqlExternalSocketCredentials("MYSQL_EXTERNAL_SOCKET_CREDENTIALS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MySqlCredType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MySqlCredType v : MySqlCredType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MySqlCredType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MySqlCredType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MySqlCredType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java index e61f57f51e4..06aad622fff 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDataSummary.java @@ -31,6 +31,9 @@ public final class MySqlDataSummary "minTimerWait", "avgTimerWait", "maxTimerWait", + "maxControlledMemory", + "maxTotalMemory", + "sumCpuTime", "sumLockTime", "sumErrors", "sumWarnings", @@ -67,6 +70,9 @@ public MySqlDataSummary( java.math.BigDecimal minTimerWait, java.math.BigDecimal avgTimerWait, java.math.BigDecimal maxTimerWait, + Long maxControlledMemory, + Long maxTotalMemory, + Long sumCpuTime, java.math.BigDecimal sumLockTime, java.math.BigDecimal sumErrors, java.math.BigDecimal sumWarnings, @@ -102,6 +108,9 @@ public MySqlDataSummary( this.minTimerWait = minTimerWait; this.avgTimerWait = avgTimerWait; this.maxTimerWait = maxTimerWait; + this.maxControlledMemory = maxControlledMemory; + this.maxTotalMemory = maxTotalMemory; + this.sumCpuTime = sumCpuTime; this.sumLockTime = sumLockTime; this.sumErrors = sumErrors; this.sumWarnings = sumWarnings; @@ -256,6 +265,51 @@ public Builder maxTimerWait(java.math.BigDecimal maxTimerWait) { this.__explicitlySet__.add("maxTimerWait"); return this; } + /** The maximum amount of controlled memory used by a statement during execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxControlledMemory") + private Long maxControlledMemory; + + /** + * The maximum amount of controlled memory used by a statement during execution. + * + * @param maxControlledMemory the value to set + * @return this builder + */ + public Builder maxControlledMemory(Long maxControlledMemory) { + this.maxControlledMemory = maxControlledMemory; + this.__explicitlySet__.add("maxControlledMemory"); + return this; + } + /** The maximum amount of memory used by a statement during execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxTotalMemory") + private Long maxTotalMemory; + + /** + * The maximum amount of memory used by a statement during execution. + * + * @param maxTotalMemory the value to set + * @return this builder + */ + public Builder maxTotalMemory(Long maxTotalMemory) { + this.maxTotalMemory = maxTotalMemory; + this.__explicitlySet__.add("maxTotalMemory"); + return this; + } + /** The total amount of time spent on CPU for this statement. */ + @com.fasterxml.jackson.annotation.JsonProperty("sumCpuTime") + private Long sumCpuTime; + + /** + * The total amount of time spent on CPU for this statement. + * + * @param sumCpuTime the value to set + * @return this builder + */ + public Builder sumCpuTime(Long sumCpuTime) { + this.sumCpuTime = sumCpuTime; + this.__explicitlySet__.add("sumCpuTime"); + return this; + } /** The total amount of time that has been spent waiting for table locks. */ @com.fasterxml.jackson.annotation.JsonProperty("sumLockTime") private java.math.BigDecimal sumLockTime; @@ -717,6 +771,9 @@ public MySqlDataSummary build() { this.minTimerWait, this.avgTimerWait, this.maxTimerWait, + this.maxControlledMemory, + this.maxTotalMemory, + this.sumCpuTime, this.sumLockTime, this.sumErrors, this.sumWarnings, @@ -775,6 +832,15 @@ public Builder copy(MySqlDataSummary model) { if (model.wasPropertyExplicitlySet("maxTimerWait")) { this.maxTimerWait(model.getMaxTimerWait()); } + if (model.wasPropertyExplicitlySet("maxControlledMemory")) { + this.maxControlledMemory(model.getMaxControlledMemory()); + } + if (model.wasPropertyExplicitlySet("maxTotalMemory")) { + this.maxTotalMemory(model.getMaxTotalMemory()); + } + if (model.wasPropertyExplicitlySet("sumCpuTime")) { + this.sumCpuTime(model.getSumCpuTime()); + } if (model.wasPropertyExplicitlySet("sumLockTime")) { this.sumLockTime(model.getSumLockTime()); } @@ -974,6 +1040,45 @@ public java.math.BigDecimal getMaxTimerWait() { return maxTimerWait; } + /** The maximum amount of controlled memory used by a statement during execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxControlledMemory") + private final Long maxControlledMemory; + + /** + * The maximum amount of controlled memory used by a statement during execution. + * + * @return the value + */ + public Long getMaxControlledMemory() { + return maxControlledMemory; + } + + /** The maximum amount of memory used by a statement during execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxTotalMemory") + private final Long maxTotalMemory; + + /** + * The maximum amount of memory used by a statement during execution. + * + * @return the value + */ + public Long getMaxTotalMemory() { + return maxTotalMemory; + } + + /** The total amount of time spent on CPU for this statement. */ + @com.fasterxml.jackson.annotation.JsonProperty("sumCpuTime") + private final Long sumCpuTime; + + /** + * The total amount of time spent on CPU for this statement. + * + * @return the value + */ + public Long getSumCpuTime() { + return sumCpuTime; + } + /** The total amount of time that has been spent waiting for table locks. */ @com.fasterxml.jackson.annotation.JsonProperty("sumLockTime") private final java.math.BigDecimal sumLockTime; @@ -1385,6 +1490,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", minTimerWait=").append(String.valueOf(this.minTimerWait)); sb.append(", avgTimerWait=").append(String.valueOf(this.avgTimerWait)); sb.append(", maxTimerWait=").append(String.valueOf(this.maxTimerWait)); + sb.append(", maxControlledMemory=").append(String.valueOf(this.maxControlledMemory)); + sb.append(", maxTotalMemory=").append(String.valueOf(this.maxTotalMemory)); + sb.append(", sumCpuTime=").append(String.valueOf(this.sumCpuTime)); sb.append(", sumLockTime=").append(String.valueOf(this.sumLockTime)); sb.append(", sumErrors=").append(String.valueOf(this.sumErrors)); sb.append(", sumWarnings=").append(String.valueOf(this.sumWarnings)); @@ -1434,6 +1542,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.minTimerWait, other.minTimerWait) && java.util.Objects.equals(this.avgTimerWait, other.avgTimerWait) && java.util.Objects.equals(this.maxTimerWait, other.maxTimerWait) + && java.util.Objects.equals(this.maxControlledMemory, other.maxControlledMemory) + && java.util.Objects.equals(this.maxTotalMemory, other.maxTotalMemory) + && java.util.Objects.equals(this.sumCpuTime, other.sumCpuTime) && java.util.Objects.equals(this.sumLockTime, other.sumLockTime) && java.util.Objects.equals(this.sumErrors, other.sumErrors) && java.util.Objects.equals(this.sumWarnings, other.sumWarnings) @@ -1477,6 +1588,15 @@ public int hashCode() { result = (result * PRIME) + (this.minTimerWait == null ? 43 : this.minTimerWait.hashCode()); result = (result * PRIME) + (this.avgTimerWait == null ? 43 : this.avgTimerWait.hashCode()); result = (result * PRIME) + (this.maxTimerWait == null ? 43 : this.maxTimerWait.hashCode()); + result = + (result * PRIME) + + (this.maxControlledMemory == null + ? 43 + : this.maxControlledMemory.hashCode()); + result = + (result * PRIME) + + (this.maxTotalMemory == null ? 43 : this.maxTotalMemory.hashCode()); + result = (result * PRIME) + (this.sumCpuTime == null ? 43 : this.sumCpuTime.hashCode()); result = (result * PRIME) + (this.sumLockTime == null ? 43 : this.sumLockTime.hashCode()); result = (result * PRIME) + (this.sumErrors == null ? 43 : this.sumErrors.hashCode()); result = (result * PRIME) + (this.sumWarnings == null ? 43 : this.sumWarnings.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java new file mode 100644 index 00000000000..8c1f10f8f54 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseConnectorSummary.java @@ -0,0 +1,837 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details of external database connector.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDatabaseConnectorSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlDatabaseConnectorSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "compartmentId", + "associatedServices", + "id", + "timeCreated", + "timeUpdated", + "sourceDatabase", + "sourceDatabaseType", + "connectionStatus", + "timeConnectionStatusUpdated", + "hostName", + "macsAgentId", + "port", + "connectorType", + "networkProtocol", + "credentialType", + "systemTags", + "lifecycleState" + }) + public MySqlDatabaseConnectorSummary( + String name, + String compartmentId, + String associatedServices, + String id, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String sourceDatabase, + MySqlType sourceDatabaseType, + String connectionStatus, + java.util.Date timeConnectionStatusUpdated, + String hostName, + String macsAgentId, + Integer port, + MySqlConnectorType connectorType, + MySqlNetworkProtocolType networkProtocol, + MySqlCredType credentialType, + java.util.Map> systemTags, + LifecycleStates lifecycleState) { + super(); + this.name = name; + this.compartmentId = compartmentId; + this.associatedServices = associatedServices; + this.id = id; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.sourceDatabase = sourceDatabase; + this.sourceDatabaseType = sourceDatabaseType; + this.connectionStatus = connectionStatus; + this.timeConnectionStatusUpdated = timeConnectionStatusUpdated; + this.hostName = hostName; + this.macsAgentId = macsAgentId; + this.port = port; + this.connectorType = connectorType; + this.networkProtocol = networkProtocol; + this.credentialType = credentialType; + this.systemTags = systemTags; + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** External MySQL Database Connector Name */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * External MySQL Database Connector Name + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** OCID of compartment for the External MySQL connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL connector. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** OCI Services associated with this connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedServices") + private String associatedServices; + + /** + * OCI Services associated with this connector. + * + * @param associatedServices the value to set + * @return this builder + */ + public Builder associatedServices(String associatedServices) { + this.associatedServices = associatedServices; + this.__explicitlySet__.add("associatedServices"); + return this; + } + /** OCID of MySQL Database Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * OCID of MySQL Database Connector. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Connector creation time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Connector creation time. + * + * @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; + } + /** Connector update time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Connector update time. + * + * @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; + } + /** Name of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabase") + private String sourceDatabase; + + /** + * Name of MySQL Database. + * + * @param sourceDatabase the value to set + * @return this builder + */ + public Builder sourceDatabase(String sourceDatabase) { + this.sourceDatabase = sourceDatabase; + this.__explicitlySet__.add("sourceDatabase"); + return this; + } + /** Type of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseType") + private MySqlType sourceDatabaseType; + + /** + * Type of MySQL Database. + * + * @param sourceDatabaseType the value to set + * @return this builder + */ + public Builder sourceDatabaseType(MySqlType sourceDatabaseType) { + this.sourceDatabaseType = sourceDatabaseType; + this.__explicitlySet__.add("sourceDatabaseType"); + return this; + } + /** Connection Status. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + private String connectionStatus; + + /** + * Connection Status. + * + * @param connectionStatus the value to set + * @return this builder + */ + public Builder connectionStatus(String connectionStatus) { + this.connectionStatus = connectionStatus; + this.__explicitlySet__.add("connectionStatus"); + return this; + } + /** Time when connection status was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusUpdated") + private java.util.Date timeConnectionStatusUpdated; + + /** + * Time when connection status was last updated. + * + * @param timeConnectionStatusUpdated the value to set + * @return this builder + */ + public Builder timeConnectionStatusUpdated(java.util.Date timeConnectionStatusUpdated) { + this.timeConnectionStatusUpdated = timeConnectionStatusUpdated; + this.__explicitlySet__.add("timeConnectionStatusUpdated"); + return this; + } + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + /** + * Host name for Connector. + * + * @param hostName the value to set + * @return this builder + */ + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @param macsAgentId the value to set + * @return this builder + */ + public Builder macsAgentId(String macsAgentId) { + this.macsAgentId = macsAgentId; + this.__explicitlySet__.add("macsAgentId"); + return this; + } + /** Connector port. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Connector port. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** Connector Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorType") + private MySqlConnectorType connectorType; + + /** + * Connector Type. + * + * @param connectorType the value to set + * @return this builder + */ + public Builder connectorType(MySqlConnectorType connectorType) { + this.connectorType = connectorType; + this.__explicitlySet__.add("connectorType"); + return this; + } + /** Network Protocol. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private MySqlNetworkProtocolType networkProtocol; + + /** + * Network Protocol. + * + * @param networkProtocol the value to set + * @return this builder + */ + public Builder networkProtocol(MySqlNetworkProtocolType networkProtocol) { + this.networkProtocol = networkProtocol; + this.__explicitlySet__.add("networkProtocol"); + return this; + } + /** Credential type used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private MySqlCredType credentialType; + + /** + * Credential type used to connect to database. + * + * @param credentialType the value to set + * @return this builder + */ + public Builder credentialType(MySqlCredType credentialType) { + this.credentialType = credentialType; + this.__explicitlySet__.add("credentialType"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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; + } + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDatabaseConnectorSummary build() { + MySqlDatabaseConnectorSummary model = + new MySqlDatabaseConnectorSummary( + this.name, + this.compartmentId, + this.associatedServices, + this.id, + this.timeCreated, + this.timeUpdated, + this.sourceDatabase, + this.sourceDatabaseType, + this.connectionStatus, + this.timeConnectionStatusUpdated, + this.hostName, + this.macsAgentId, + this.port, + this.connectorType, + this.networkProtocol, + this.credentialType, + this.systemTags, + this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDatabaseConnectorSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("associatedServices")) { + this.associatedServices(model.getAssociatedServices()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("sourceDatabase")) { + this.sourceDatabase(model.getSourceDatabase()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseType")) { + this.sourceDatabaseType(model.getSourceDatabaseType()); + } + if (model.wasPropertyExplicitlySet("connectionStatus")) { + this.connectionStatus(model.getConnectionStatus()); + } + if (model.wasPropertyExplicitlySet("timeConnectionStatusUpdated")) { + this.timeConnectionStatusUpdated(model.getTimeConnectionStatusUpdated()); + } + if (model.wasPropertyExplicitlySet("hostName")) { + this.hostName(model.getHostName()); + } + if (model.wasPropertyExplicitlySet("macsAgentId")) { + this.macsAgentId(model.getMacsAgentId()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("connectorType")) { + this.connectorType(model.getConnectorType()); + } + if (model.wasPropertyExplicitlySet("networkProtocol")) { + this.networkProtocol(model.getNetworkProtocol()); + } + if (model.wasPropertyExplicitlySet("credentialType")) { + this.credentialType(model.getCredentialType()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** External MySQL Database Connector Name */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * External MySQL Database Connector Name + * + * @return the value + */ + public String getName() { + return name; + } + + /** OCID of compartment for the External MySQL connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL connector. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** OCI Services associated with this connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedServices") + private final String associatedServices; + + /** + * OCI Services associated with this connector. + * + * @return the value + */ + public String getAssociatedServices() { + return associatedServices; + } + + /** OCID of MySQL Database Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * OCID of MySQL Database Connector. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Connector creation time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Connector creation time. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Connector update time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Connector update time. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Name of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabase") + private final String sourceDatabase; + + /** + * Name of MySQL Database. + * + * @return the value + */ + public String getSourceDatabase() { + return sourceDatabase; + } + + /** Type of MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseType") + private final MySqlType sourceDatabaseType; + + /** + * Type of MySQL Database. + * + * @return the value + */ + public MySqlType getSourceDatabaseType() { + return sourceDatabaseType; + } + + /** Connection Status. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + private final String connectionStatus; + + /** + * Connection Status. + * + * @return the value + */ + public String getConnectionStatus() { + return connectionStatus; + } + + /** Time when connection status was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusUpdated") + private final java.util.Date timeConnectionStatusUpdated; + + /** + * Time when connection status was last updated. + * + * @return the value + */ + public java.util.Date getTimeConnectionStatusUpdated() { + return timeConnectionStatusUpdated; + } + + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private final String hostName; + + /** + * Host name for Connector. + * + * @return the value + */ + public String getHostName() { + return hostName; + } + + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private final String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @return the value + */ + public String getMacsAgentId() { + return macsAgentId; + } + + /** Connector port. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Connector port. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** Connector Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorType") + private final MySqlConnectorType connectorType; + + /** + * Connector Type. + * + * @return the value + */ + public MySqlConnectorType getConnectorType() { + return connectorType; + } + + /** Network Protocol. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private final MySqlNetworkProtocolType networkProtocol; + + /** + * Network Protocol. + * + * @return the value + */ + public MySqlNetworkProtocolType getNetworkProtocol() { + return networkProtocol; + } + + /** Credential type used to connect to database. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private final MySqlCredType credentialType; + + /** + * Credential type used to connect to database. + * + * @return the value + */ + public MySqlCredType getCredentialType() { + return credentialType; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** Indicates lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * Indicates lifecycle state of the resource. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDatabaseConnectorSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", associatedServices=").append(String.valueOf(this.associatedServices)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", sourceDatabase=").append(String.valueOf(this.sourceDatabase)); + sb.append(", sourceDatabaseType=").append(String.valueOf(this.sourceDatabaseType)); + sb.append(", connectionStatus=").append(String.valueOf(this.connectionStatus)); + sb.append(", timeConnectionStatusUpdated=") + .append(String.valueOf(this.timeConnectionStatusUpdated)); + sb.append(", hostName=").append(String.valueOf(this.hostName)); + sb.append(", macsAgentId=").append(String.valueOf(this.macsAgentId)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", connectorType=").append(String.valueOf(this.connectorType)); + sb.append(", networkProtocol=").append(String.valueOf(this.networkProtocol)); + sb.append(", credentialType=").append(String.valueOf(this.credentialType)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + 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 MySqlDatabaseConnectorSummary)) { + return false; + } + + MySqlDatabaseConnectorSummary other = (MySqlDatabaseConnectorSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.associatedServices, other.associatedServices) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.sourceDatabase, other.sourceDatabase) + && java.util.Objects.equals(this.sourceDatabaseType, other.sourceDatabaseType) + && java.util.Objects.equals(this.connectionStatus, other.connectionStatus) + && java.util.Objects.equals( + this.timeConnectionStatusUpdated, other.timeConnectionStatusUpdated) + && java.util.Objects.equals(this.hostName, other.hostName) + && java.util.Objects.equals(this.macsAgentId, other.macsAgentId) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.connectorType, other.connectorType) + && java.util.Objects.equals(this.networkProtocol, other.networkProtocol) + && java.util.Objects.equals(this.credentialType, other.credentialType) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.associatedServices == null + ? 43 + : this.associatedServices.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.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.sourceDatabase == null ? 43 : this.sourceDatabase.hashCode()); + result = + (result * PRIME) + + (this.sourceDatabaseType == null + ? 43 + : this.sourceDatabaseType.hashCode()); + result = + (result * PRIME) + + (this.connectionStatus == null ? 43 : this.connectionStatus.hashCode()); + result = + (result * PRIME) + + (this.timeConnectionStatusUpdated == null + ? 43 + : this.timeConnectionStatusUpdated.hashCode()); + result = (result * PRIME) + (this.hostName == null ? 43 : this.hostName.hashCode()); + result = (result * PRIME) + (this.macsAgentId == null ? 43 : this.macsAgentId.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = + (result * PRIME) + + (this.connectorType == null ? 43 : this.connectorType.hashCode()); + result = + (result * PRIME) + + (this.networkProtocol == null ? 43 : this.networkProtocol.hashCode()); + result = + (result * PRIME) + + (this.credentialType == null ? 43 : this.credentialType.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java index f30474ac60e..75caad9ae4d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDeploymentType.java @@ -9,7 +9,15 @@ public enum MySqlDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { Onpremise("ONPREMISE"), Mds("MDS"), - ; + + /** + * 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(MySqlDeploymentType.class); private final String value; private static java.util.Map map; @@ -17,7 +25,9 @@ public enum MySqlDeploymentType implements com.oracle.bmc.http.internal.BmcEnum static { map = new java.util.HashMap<>(); for (MySqlDeploymentType v : MySqlDeploymentType.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -35,6 +45,9 @@ public static MySqlDeploymentType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid MySqlDeploymentType: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'MySqlDeploymentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java new file mode 100644 index 00000000000..fa4043f88d8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlNetworkProtocolType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The network protocol for MySQL Database. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum MySqlNetworkProtocolType implements com.oracle.bmc.http.internal.BmcEnum { + Tcp("TCP"), + Tcps("TCPS"), + Sockets("SOCKETS"), + + /** + * 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(MySqlNetworkProtocolType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MySqlNetworkProtocolType v : MySqlNetworkProtocolType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MySqlNetworkProtocolType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MySqlNetworkProtocolType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MySqlNetworkProtocolType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java new file mode 100644 index 00000000000..d225a2fd5bf --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The type of MySQL Database. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum MySqlType implements com.oracle.bmc.http.internal.BmcEnum { + External("EXTERNAL"), + Mds("MDS"), + + /** + * 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(MySqlType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MySqlType v : MySqlType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MySqlType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MySqlType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MySqlType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StandByDatabaseDataguardMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StandByDatabaseDataguardMetrics.java new file mode 100644 index 00000000000..fbedd886dcd --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StandByDatabaseDataguardMetrics.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The standby database details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StandByDatabaseDataguardMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StandByDatabaseDataguardMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "dbId", + "compartmentId", + "databaseId", + "databaseName", + "dbUniqueName", + "dbRole", + "metrics" + }) + public StandByDatabaseDataguardMetrics( + String dbId, + String compartmentId, + String databaseId, + String databaseName, + String dbUniqueName, + DbRole dbRole, + java.util.List metrics) { + super(); + this.dbId = dbId; + this.compartmentId = compartmentId; + this.databaseId = databaseId; + this.databaseName = databaseName; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; + this.metrics = metrics; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param dbId the value to set + * @return this builder + */ + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The display name of the Managed Database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @param dbUniqueName the value to set + * @return this builder + */ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @param dbRole the value to set + * @return this builder + */ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + /** + * A list of standby databases with latest values for metrics such as ApplyLag, + * TransportLag, and RedoApplyRate. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private java.util.List metrics; + + /** + * A list of standby databases with latest values for metrics such as ApplyLag, + * TransportLag, and RedoApplyRate. + * + * @param metrics the value to set + * @return this builder + */ + public Builder metrics(java.util.List metrics) { + this.metrics = metrics; + this.__explicitlySet__.add("metrics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StandByDatabaseDataguardMetrics build() { + StandByDatabaseDataguardMetrics model = + new StandByDatabaseDataguardMetrics( + this.dbId, + this.compartmentId, + this.databaseId, + this.databaseName, + this.dbUniqueName, + this.dbRole, + this.metrics); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StandByDatabaseDataguardMetrics model) { + if (model.wasPropertyExplicitlySet("dbId")) { + this.dbId(model.getDbId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + if (model.wasPropertyExplicitlySet("metrics")) { + this.metrics(model.getMetrics()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private final String dbId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getDbId() { + return dbId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment where the Managed Database resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is + * captured here. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** The display name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The display name of the Managed Database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** The database unique name of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * + * @return the value + */ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** The database role of the Managed Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * + * @return the value + */ + public DbRole getDbRole() { + return dbRole; + } + + /** + * A list of standby databases with latest values for metrics such as ApplyLag, TransportLag, + * and RedoApplyRate. + */ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private final java.util.List metrics; + + /** + * A list of standby databases with latest values for metrics such as ApplyLag, TransportLag, + * and RedoApplyRate. + * + * @return the value + */ + public java.util.List getMetrics() { + return metrics; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StandByDatabaseDataguardMetrics("); + sb.append("super=").append(super.toString()); + sb.append("dbId=").append(String.valueOf(this.dbId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StandByDatabaseDataguardMetrics)) { + return false; + } + + StandByDatabaseDataguardMetrics other = (StandByDatabaseDataguardMetrics) o; + return java.util.Objects.equals(this.dbId, other.dbId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && java.util.Objects.equals(this.metrics, other.metrics) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dbId == null ? 43 : this.dbId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java new file mode 100644 index 00000000000..c5000c2008a --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseConnectorDetails.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details required for updating an external MySQL database connector.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateExternalMySqlDatabaseConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateExternalMySqlDatabaseConnectorDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "connectorDetails"}) + public UpdateExternalMySqlDatabaseConnectorDetails( + String compartmentId, UpdateMySqlDatabaseConnectorDetails connectorDetails) { + super(); + this.compartmentId = compartmentId; + this.connectorDetails = connectorDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private UpdateMySqlDatabaseConnectorDetails connectorDetails; + + public Builder connectorDetails(UpdateMySqlDatabaseConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalMySqlDatabaseConnectorDetails build() { + UpdateExternalMySqlDatabaseConnectorDetails model = + new UpdateExternalMySqlDatabaseConnectorDetails( + this.compartmentId, this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalMySqlDatabaseConnectorDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of compartment for the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of compartment for the External MySQL Database. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final UpdateMySqlDatabaseConnectorDetails connectorDetails; + + public UpdateMySqlDatabaseConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateExternalMySqlDatabaseConnectorDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExternalMySqlDatabaseConnectorDetails)) { + return false; + } + + UpdateExternalMySqlDatabaseConnectorDetails other = + (UpdateExternalMySqlDatabaseConnectorDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java new file mode 100644 index 00000000000..ae527e1e8ec --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateExternalMySqlDatabaseDetails.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Details for updating an external MySQL database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateExternalMySqlDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateExternalMySqlDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dbName"}) + public UpdateExternalMySqlDatabaseDetails(String dbName) { + super(); + this.dbName = dbName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Display Name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private String dbName; + + /** + * Display Name of the External MySQL Database. + * + * @param dbName the value to set + * @return this builder + */ + public Builder dbName(String dbName) { + this.dbName = dbName; + this.__explicitlySet__.add("dbName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalMySqlDatabaseDetails build() { + UpdateExternalMySqlDatabaseDetails model = + new UpdateExternalMySqlDatabaseDetails(this.dbName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalMySqlDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("dbName")) { + this.dbName(model.getDbName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Display Name of the External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private final String dbName; + + /** + * Display Name of the External MySQL Database. + * + * @return the value + */ + public String getDbName() { + return dbName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateExternalMySqlDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("dbName=").append(String.valueOf(this.dbName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExternalMySqlDatabaseDetails)) { + return false; + } + + UpdateExternalMySqlDatabaseDetails other = (UpdateExternalMySqlDatabaseDetails) o; + return java.util.Objects.equals(this.dbName, other.dbName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java new file mode 100644 index 00000000000..a2e477aba9c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateMySqlDatabaseConnectorDetails.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * Update Details of external database connector.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlDatabaseConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMySqlDatabaseConnectorDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "macsAgentId", + "hostName", + "port", + "credentialType", + "sslSecretId", + "networkProtocol", + "externalDatabaseId" + }) + public UpdateMySqlDatabaseConnectorDetails( + String displayName, + String macsAgentId, + String hostName, + Integer port, + MySqlCredType credentialType, + String sslSecretId, + MySqlNetworkProtocolType networkProtocol, + String externalDatabaseId) { + super(); + this.displayName = displayName; + this.macsAgentId = macsAgentId; + this.hostName = hostName; + this.port = port; + this.credentialType = credentialType; + this.sslSecretId = sslSecretId; + this.networkProtocol = networkProtocol; + this.externalDatabaseId = externalDatabaseId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** External MySQL Database Connector Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * External MySQL Database Connector Name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @param macsAgentId the value to set + * @return this builder + */ + public Builder macsAgentId(String macsAgentId) { + this.macsAgentId = macsAgentId; + this.__explicitlySet__.add("macsAgentId"); + return this; + } + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + /** + * Host name for Connector. + * + * @param hostName the value to set + * @return this builder + */ + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + /** Port number to connect to External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * Port number to connect to External MySQL Database. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** Type of the credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private MySqlCredType credentialType; + + /** + * Type of the credential. + * + * @param credentialType the value to set + * @return this builder + */ + public Builder credentialType(MySqlCredType credentialType) { + this.credentialType = credentialType; + this.__explicitlySet__.add("credentialType"); + return this; + } + /** If using existing SSL secret to connect, OCID for the secret resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") + private String sslSecretId; + + /** + * If using existing SSL secret to connect, OCID for the secret resource. + * + * @param sslSecretId the value to set + * @return this builder + */ + public Builder sslSecretId(String sslSecretId) { + this.sslSecretId = sslSecretId; + this.__explicitlySet__.add("sslSecretId"); + return this; + } + /** + * Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private MySqlNetworkProtocolType networkProtocol; + + /** + * Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. + * + * @param networkProtocol the value to set + * @return this builder + */ + public Builder networkProtocol(MySqlNetworkProtocolType networkProtocol) { + this.networkProtocol = networkProtocol; + this.__explicitlySet__.add("networkProtocol"); + return this; + } + /** OCID of MySQL Database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + /** + * OCID of MySQL Database resource. + * + * @param externalDatabaseId the value to set + * @return this builder + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMySqlDatabaseConnectorDetails build() { + UpdateMySqlDatabaseConnectorDetails model = + new UpdateMySqlDatabaseConnectorDetails( + this.displayName, + this.macsAgentId, + this.hostName, + this.port, + this.credentialType, + this.sslSecretId, + this.networkProtocol, + this.externalDatabaseId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMySqlDatabaseConnectorDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("macsAgentId")) { + this.macsAgentId(model.getMacsAgentId()); + } + if (model.wasPropertyExplicitlySet("hostName")) { + this.hostName(model.getHostName()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("credentialType")) { + this.credentialType(model.getCredentialType()); + } + if (model.wasPropertyExplicitlySet("sslSecretId")) { + this.sslSecretId(model.getSslSecretId()); + } + if (model.wasPropertyExplicitlySet("networkProtocol")) { + this.networkProtocol(model.getNetworkProtocol()); + } + if (model.wasPropertyExplicitlySet("externalDatabaseId")) { + this.externalDatabaseId(model.getExternalDatabaseId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** External MySQL Database Connector Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * External MySQL Database Connector Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Agent Id of the MACS agent. */ + @com.fasterxml.jackson.annotation.JsonProperty("macsAgentId") + private final String macsAgentId; + + /** + * Agent Id of the MACS agent. + * + * @return the value + */ + public String getMacsAgentId() { + return macsAgentId; + } + + /** Host name for Connector. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private final String hostName; + + /** + * Host name for Connector. + * + * @return the value + */ + public String getHostName() { + return hostName; + } + + /** Port number to connect to External MySQL Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * Port number to connect to External MySQL Database. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** Type of the credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentialType") + private final MySqlCredType credentialType; + + /** + * Type of the credential. + * + * @return the value + */ + public MySqlCredType getCredentialType() { + return credentialType; + } + + /** If using existing SSL secret to connect, OCID for the secret resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") + private final String sslSecretId; + + /** + * If using existing SSL secret to connect, OCID for the secret resource. + * + * @return the value + */ + public String getSslSecretId() { + return sslSecretId; + } + + /** Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkProtocol") + private final MySqlNetworkProtocolType networkProtocol; + + /** + * Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket. + * + * @return the value + */ + public MySqlNetworkProtocolType getNetworkProtocol() { + return networkProtocol; + } + + /** OCID of MySQL Database resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private final String externalDatabaseId; + + /** + * OCID of MySQL Database resource. + * + * @return the value + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMySqlDatabaseConnectorDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", macsAgentId=").append(String.valueOf(this.macsAgentId)); + sb.append(", hostName=").append(String.valueOf(this.hostName)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", credentialType=").append(String.valueOf(this.credentialType)); + sb.append(", sslSecretId=").append(String.valueOf(this.sslSecretId)); + sb.append(", networkProtocol=").append(String.valueOf(this.networkProtocol)); + sb.append(", externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMySqlDatabaseConnectorDetails)) { + return false; + } + + UpdateMySqlDatabaseConnectorDetails other = (UpdateMySqlDatabaseConnectorDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.macsAgentId, other.macsAgentId) + && java.util.Objects.equals(this.hostName, other.hostName) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.credentialType, other.credentialType) + && java.util.Objects.equals(this.sslSecretId, other.sslSecretId) + && java.util.Objects.equals(this.networkProtocol, other.networkProtocol) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) + && 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.macsAgentId == null ? 43 : this.macsAgentId.hashCode()); + result = (result * PRIME) + (this.hostName == null ? 43 : this.hostName.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = + (result * PRIME) + + (this.credentialType == null ? 43 : this.credentialType.hashCode()); + result = (result * PRIME) + (this.sslSecretId == null ? 43 : this.sslSecretId.hashCode()); + result = + (result * PRIME) + + (this.networkProtocol == null ? 43 : this.networkProtocol.hashCode()); + result = + (result * PRIME) + + (this.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java index 88c5714d1d9..185078869e7 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java @@ -30,6 +30,11 @@ public enum WorkRequestOperationType implements com.oracle.bmc.http.internal.Bmc EnableDbmgmt("ENABLE_DBMGMT"), DisableDbmgmt("DISABLE_DBMGMT"), ModifyDbmgmt("MODIFY_DBMGMT"), + CheckExternalMysqlConnection("CHECK_EXTERNAL_MYSQL_CONNECTION"), + UpdateExternalMysqlCredential("UPDATE_EXTERNAL_MYSQL_CREDENTIAL"), + CreateExternalMysqlConnector("CREATE_EXTERNAL_MYSQL_CONNECTOR"), + DeleteExternalMysqlConnector("DELETE_EXTERNAL_MYSQL_CONNECTOR"), + DeleteExternalMysqlDatabase("DELETE_EXTERNAL_MYSQL_DATABASE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CheckExternalMySqlDatabaseConnectorConnectionStatusRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CheckExternalMySqlDatabaseConnectorConnectionStatusRequest.java new file mode 100644 index 00000000000..51c000e3b77 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CheckExternalMySqlDatabaseConnectorConnectionStatusRequest.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * CheckExternalMySqlDatabaseConnectorConnectionStatusRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CheckExternalMySqlDatabaseConnectorConnectionStatusRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId; + + /** The OCID of the External MySQL Database Connector. */ + public String getExternalMySqlDatabaseConnectorId() { + return externalMySqlDatabaseConnectorId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId = null; + + /** + * The OCID of the External MySQL Database Connector. + * + * @param externalMySqlDatabaseConnectorId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseConnectorId(String externalMySqlDatabaseConnectorId) { + this.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CheckExternalMySqlDatabaseConnectorConnectionStatusRequest o) { + externalMySqlDatabaseConnectorId(o.getExternalMySqlDatabaseConnectorId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CheckExternalMySqlDatabaseConnectorConnectionStatusRequest 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 CheckExternalMySqlDatabaseConnectorConnectionStatusRequest + */ + public CheckExternalMySqlDatabaseConnectorConnectionStatusRequest build() { + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CheckExternalMySqlDatabaseConnectorConnectionStatusRequest 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 CheckExternalMySqlDatabaseConnectorConnectionStatusRequest + */ + public CheckExternalMySqlDatabaseConnectorConnectionStatusRequest + buildWithoutInvocationCallback() { + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest request = + new CheckExternalMySqlDatabaseConnectorConnectionStatusRequest(); + request.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new + // CheckExternalMySqlDatabaseConnectorConnectionStatusRequest(externalMySqlDatabaseConnectorId, opcRetryToken, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .externalMySqlDatabaseConnectorId(externalMySqlDatabaseConnectorId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",externalMySqlDatabaseConnectorId=") + .append(String.valueOf(this.externalMySqlDatabaseConnectorId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CheckExternalMySqlDatabaseConnectorConnectionStatusRequest)) { + return false; + } + + CheckExternalMySqlDatabaseConnectorConnectionStatusRequest other = + (CheckExternalMySqlDatabaseConnectorConnectionStatusRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnectorId, + other.externalMySqlDatabaseConnectorId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseConnectorId == null + ? 43 + : this.externalMySqlDatabaseConnectorId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseConnectorRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseConnectorRequest.java new file mode 100644 index 00000000000..dc184265972 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseConnectorRequest.java @@ -0,0 +1,327 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * CreateExternalMySqlDatabaseConnectorRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CreateExternalMySqlDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .CreateExternalMySqlDatabaseConnectorDetails> { + + /** The details required to create an external MySQL database connector resource. */ + private com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails + createExternalMySqlDatabaseConnectorDetails; + + /** The details required to create an external MySQL database connector resource. */ + public com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails + getCreateExternalMySqlDatabaseConnectorDetails() { + return createExternalMySqlDatabaseConnectorDetails; + } + /** Parameter indicating whether database connection needs to be tested. */ + private Boolean isTestConnectionParam; + + /** Parameter indicating whether database connection needs to be tested. */ + public Boolean getIsTestConnectionParam() { + return isTestConnectionParam; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails + getBody$() { + return createExternalMySqlDatabaseConnectorDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExternalMySqlDatabaseConnectorRequest, + com.oracle.bmc.databasemanagement.model + .CreateExternalMySqlDatabaseConnectorDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The details required to create an external MySQL database connector resource. */ + private com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails + createExternalMySqlDatabaseConnectorDetails = null; + + /** + * The details required to create an external MySQL database connector resource. + * + * @param createExternalMySqlDatabaseConnectorDetails the value to set + * @return this builder instance + */ + public Builder createExternalMySqlDatabaseConnectorDetails( + com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails + createExternalMySqlDatabaseConnectorDetails) { + this.createExternalMySqlDatabaseConnectorDetails = + createExternalMySqlDatabaseConnectorDetails; + return this; + } + + /** Parameter indicating whether database connection needs to be tested. */ + private Boolean isTestConnectionParam = null; + + /** + * Parameter indicating whether database connection needs to be tested. + * + * @param isTestConnectionParam the value to set + * @return this builder instance + */ + public Builder isTestConnectionParam(Boolean isTestConnectionParam) { + this.isTestConnectionParam = isTestConnectionParam; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateExternalMySqlDatabaseConnectorRequest o) { + createExternalMySqlDatabaseConnectorDetails( + o.getCreateExternalMySqlDatabaseConnectorDetails()); + isTestConnectionParam(o.getIsTestConnectionParam()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExternalMySqlDatabaseConnectorRequest 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 CreateExternalMySqlDatabaseConnectorRequest + */ + public CreateExternalMySqlDatabaseConnectorRequest build() { + CreateExternalMySqlDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails + body) { + createExternalMySqlDatabaseConnectorDetails(body); + return this; + } + + /** + * Build the instance of CreateExternalMySqlDatabaseConnectorRequest 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 CreateExternalMySqlDatabaseConnectorRequest + */ + public CreateExternalMySqlDatabaseConnectorRequest buildWithoutInvocationCallback() { + CreateExternalMySqlDatabaseConnectorRequest request = + new CreateExternalMySqlDatabaseConnectorRequest(); + request.createExternalMySqlDatabaseConnectorDetails = + createExternalMySqlDatabaseConnectorDetails; + request.isTestConnectionParam = isTestConnectionParam; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new + // CreateExternalMySqlDatabaseConnectorRequest(createExternalMySqlDatabaseConnectorDetails, isTestConnectionParam, 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() + .createExternalMySqlDatabaseConnectorDetails( + createExternalMySqlDatabaseConnectorDetails) + .isTestConnectionParam(isTestConnectionParam) + .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(",createExternalMySqlDatabaseConnectorDetails=") + .append(String.valueOf(this.createExternalMySqlDatabaseConnectorDetails)); + sb.append(",isTestConnectionParam=").append(String.valueOf(this.isTestConnectionParam)); + 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 CreateExternalMySqlDatabaseConnectorRequest)) { + return false; + } + + CreateExternalMySqlDatabaseConnectorRequest other = + (CreateExternalMySqlDatabaseConnectorRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createExternalMySqlDatabaseConnectorDetails, + other.createExternalMySqlDatabaseConnectorDetails) + && java.util.Objects.equals(this.isTestConnectionParam, other.isTestConnectionParam) + && 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.createExternalMySqlDatabaseConnectorDetails == null + ? 43 + : this.createExternalMySqlDatabaseConnectorDetails.hashCode()); + result = + (result * PRIME) + + (this.isTestConnectionParam == null + ? 43 + : this.isTestConnectionParam.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseRequest.java new file mode 100644 index 00000000000..a38e1feedb2 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateExternalMySqlDatabaseRequest.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * CreateExternalMySqlDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CreateExternalMySqlDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails> { + + /** The details required to create an external MySQL database resource. */ + private com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails + createExternalMySqlDatabaseDetails; + + /** The details required to create an external MySQL database resource. */ + public com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails + getCreateExternalMySqlDatabaseDetails() { + return createExternalMySqlDatabaseDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails getBody$() { + return createExternalMySqlDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExternalMySqlDatabaseRequest, + com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The details required to create an external MySQL database resource. */ + private com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails + createExternalMySqlDatabaseDetails = null; + + /** + * The details required to create an external MySQL database resource. + * + * @param createExternalMySqlDatabaseDetails the value to set + * @return this builder instance + */ + public Builder createExternalMySqlDatabaseDetails( + com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails + createExternalMySqlDatabaseDetails) { + this.createExternalMySqlDatabaseDetails = createExternalMySqlDatabaseDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateExternalMySqlDatabaseRequest o) { + createExternalMySqlDatabaseDetails(o.getCreateExternalMySqlDatabaseDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExternalMySqlDatabaseRequest 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 CreateExternalMySqlDatabaseRequest + */ + public CreateExternalMySqlDatabaseRequest build() { + CreateExternalMySqlDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails body) { + createExternalMySqlDatabaseDetails(body); + return this; + } + + /** + * Build the instance of CreateExternalMySqlDatabaseRequest 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 CreateExternalMySqlDatabaseRequest + */ + public CreateExternalMySqlDatabaseRequest buildWithoutInvocationCallback() { + CreateExternalMySqlDatabaseRequest request = new CreateExternalMySqlDatabaseRequest(); + request.createExternalMySqlDatabaseDetails = createExternalMySqlDatabaseDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateExternalMySqlDatabaseRequest(createExternalMySqlDatabaseDetails, + // 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() + .createExternalMySqlDatabaseDetails(createExternalMySqlDatabaseDetails) + .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(",createExternalMySqlDatabaseDetails=") + .append(String.valueOf(this.createExternalMySqlDatabaseDetails)); + 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 CreateExternalMySqlDatabaseRequest)) { + return false; + } + + CreateExternalMySqlDatabaseRequest other = (CreateExternalMySqlDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createExternalMySqlDatabaseDetails, + other.createExternalMySqlDatabaseDetails) + && 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.createExternalMySqlDatabaseDetails == null + ? 43 + : this.createExternalMySqlDatabaseDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseConnectorRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseConnectorRequest.java new file mode 100644 index 00000000000..709d8cda83a --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseConnectorRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteExternalMySqlDatabaseConnectorRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DeleteExternalMySqlDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId; + + /** The OCID of the External MySQL Database Connector. */ + public String getExternalMySqlDatabaseConnectorId() { + return externalMySqlDatabaseConnectorId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExternalMySqlDatabaseConnectorRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId = null; + + /** + * The OCID of the External MySQL Database Connector. + * + * @param externalMySqlDatabaseConnectorId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseConnectorId(String externalMySqlDatabaseConnectorId) { + this.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteExternalMySqlDatabaseConnectorRequest o) { + externalMySqlDatabaseConnectorId(o.getExternalMySqlDatabaseConnectorId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExternalMySqlDatabaseConnectorRequest 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 DeleteExternalMySqlDatabaseConnectorRequest + */ + public DeleteExternalMySqlDatabaseConnectorRequest build() { + DeleteExternalMySqlDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteExternalMySqlDatabaseConnectorRequest 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 DeleteExternalMySqlDatabaseConnectorRequest + */ + public DeleteExternalMySqlDatabaseConnectorRequest buildWithoutInvocationCallback() { + DeleteExternalMySqlDatabaseConnectorRequest request = + new DeleteExternalMySqlDatabaseConnectorRequest(); + request.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteExternalMySqlDatabaseConnectorRequest(externalMySqlDatabaseConnectorId, + // 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() + .externalMySqlDatabaseConnectorId(externalMySqlDatabaseConnectorId) + .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(",externalMySqlDatabaseConnectorId=") + .append(String.valueOf(this.externalMySqlDatabaseConnectorId)); + 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 DeleteExternalMySqlDatabaseConnectorRequest)) { + return false; + } + + DeleteExternalMySqlDatabaseConnectorRequest other = + (DeleteExternalMySqlDatabaseConnectorRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnectorId, + other.externalMySqlDatabaseConnectorId) + && 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.externalMySqlDatabaseConnectorId == null + ? 43 + : this.externalMySqlDatabaseConnectorId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseRequest.java new file mode 100644 index 00000000000..b8817d9e296 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteExternalMySqlDatabaseRequest.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteExternalMySqlDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DeleteExternalMySqlDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExternalMySqlDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteExternalMySqlDatabaseRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExternalMySqlDatabaseRequest 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 DeleteExternalMySqlDatabaseRequest + */ + public DeleteExternalMySqlDatabaseRequest build() { + DeleteExternalMySqlDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteExternalMySqlDatabaseRequest 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 DeleteExternalMySqlDatabaseRequest + */ + public DeleteExternalMySqlDatabaseRequest buildWithoutInvocationCallback() { + DeleteExternalMySqlDatabaseRequest request = new DeleteExternalMySqlDatabaseRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteExternalMySqlDatabaseRequest(externalMySqlDatabaseId, 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() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .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(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + 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 DeleteExternalMySqlDatabaseRequest)) { + return false; + } + + DeleteExternalMySqlDatabaseRequest other = (DeleteExternalMySqlDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && 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.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMySqlDatabaseManagementRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMySqlDatabaseManagementRequest.java new file mode 100644 index 00000000000..286b229dbfd --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMySqlDatabaseManagementRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableExternalMySqlDatabaseManagementRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalMySqlDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalMySqlDatabaseManagementRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableExternalMySqlDatabaseManagementRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalMySqlDatabaseManagementRequest 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 DisableExternalMySqlDatabaseManagementRequest + */ + public DisableExternalMySqlDatabaseManagementRequest build() { + DisableExternalMySqlDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DisableExternalMySqlDatabaseManagementRequest 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 DisableExternalMySqlDatabaseManagementRequest + */ + public DisableExternalMySqlDatabaseManagementRequest buildWithoutInvocationCallback() { + DisableExternalMySqlDatabaseManagementRequest request = + new DisableExternalMySqlDatabaseManagementRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DisableExternalMySqlDatabaseManagementRequest(externalMySqlDatabaseId, + // opcRetryToken, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableExternalMySqlDatabaseManagementRequest)) { + return false; + } + + DisableExternalMySqlDatabaseManagementRequest other = + (DisableExternalMySqlDatabaseManagementRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMysqlAssociatedServiceRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMysqlAssociatedServiceRequest.java new file mode 100644 index 00000000000..e416a0efd0b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalMysqlAssociatedServiceRequest.java @@ -0,0 +1,383 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableExternalMysqlAssociatedServiceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalMysqlAssociatedServiceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .DisableExternalMysqlAssociatedServiceDetails> { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** + * The details required to disable an Associated Service for an external MySQL database + * resource. + */ + private com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails + disableExternalMysqlAssociatedServiceDetails; + + /** + * The details required to disable an Associated Service for an external MySQL database + * resource. + */ + public com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails + getDisableExternalMysqlAssociatedServiceDetails() { + return disableExternalMysqlAssociatedServiceDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails + getBody$() { + return disableExternalMysqlAssociatedServiceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalMysqlAssociatedServiceRequest, + com.oracle.bmc.databasemanagement.model + .DisableExternalMysqlAssociatedServiceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** + * The details required to disable an Associated Service for an external MySQL database + * resource. + */ + private com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails + disableExternalMysqlAssociatedServiceDetails = null; + + /** + * The details required to disable an Associated Service for an external MySQL database + * resource. + * + * @param disableExternalMysqlAssociatedServiceDetails the value to set + * @return this builder instance + */ + public Builder disableExternalMysqlAssociatedServiceDetails( + com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails + disableExternalMysqlAssociatedServiceDetails) { + this.disableExternalMysqlAssociatedServiceDetails = + disableExternalMysqlAssociatedServiceDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableExternalMysqlAssociatedServiceRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + disableExternalMysqlAssociatedServiceDetails( + o.getDisableExternalMysqlAssociatedServiceDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalMysqlAssociatedServiceRequest 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 DisableExternalMysqlAssociatedServiceRequest + */ + public DisableExternalMysqlAssociatedServiceRequest build() { + DisableExternalMysqlAssociatedServiceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails + body) { + disableExternalMysqlAssociatedServiceDetails(body); + return this; + } + + /** + * Build the instance of DisableExternalMysqlAssociatedServiceRequest 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 DisableExternalMysqlAssociatedServiceRequest + */ + public DisableExternalMysqlAssociatedServiceRequest buildWithoutInvocationCallback() { + DisableExternalMysqlAssociatedServiceRequest request = + new DisableExternalMysqlAssociatedServiceRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.disableExternalMysqlAssociatedServiceDetails = + disableExternalMysqlAssociatedServiceDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DisableExternalMysqlAssociatedServiceRequest(externalMySqlDatabaseId, + // disableExternalMysqlAssociatedServiceDetails, opcRetryToken, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .disableExternalMysqlAssociatedServiceDetails( + disableExternalMysqlAssociatedServiceDetails) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + sb.append(",disableExternalMysqlAssociatedServiceDetails=") + .append(String.valueOf(this.disableExternalMysqlAssociatedServiceDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableExternalMysqlAssociatedServiceRequest)) { + return false; + } + + DisableExternalMysqlAssociatedServiceRequest other = + (DisableExternalMysqlAssociatedServiceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && java.util.Objects.equals( + this.disableExternalMysqlAssociatedServiceDetails, + other.disableExternalMysqlAssociatedServiceDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.disableExternalMysqlAssociatedServiceDetails == null + ? 43 + : this.disableExternalMysqlAssociatedServiceDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMySqlDatabaseManagementRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMySqlDatabaseManagementRequest.java new file mode 100644 index 00000000000..71d0f3ac765 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMySqlDatabaseManagementRequest.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableExternalMySqlDatabaseManagementRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalMySqlDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails> { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** The details required to enable an external MySQL database resource. */ + private com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails + enableExternalDatabaseManagementDetails; + + /** The details required to enable an external MySQL database resource. */ + public com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails + getEnableExternalDatabaseManagementDetails() { + return enableExternalDatabaseManagementDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails + getBody$() { + return enableExternalDatabaseManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalMySqlDatabaseManagementRequest, + com.oracle.bmc.databasemanagement.model + .EnableExternalDatabaseManagementDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** The details required to enable an external MySQL database resource. */ + private com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails + enableExternalDatabaseManagementDetails = null; + + /** + * The details required to enable an external MySQL database resource. + * + * @param enableExternalDatabaseManagementDetails the value to set + * @return this builder instance + */ + public Builder enableExternalDatabaseManagementDetails( + com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails + enableExternalDatabaseManagementDetails) { + this.enableExternalDatabaseManagementDetails = enableExternalDatabaseManagementDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableExternalMySqlDatabaseManagementRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + enableExternalDatabaseManagementDetails(o.getEnableExternalDatabaseManagementDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalMySqlDatabaseManagementRequest 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 EnableExternalMySqlDatabaseManagementRequest + */ + public EnableExternalMySqlDatabaseManagementRequest build() { + EnableExternalMySqlDatabaseManagementRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails + body) { + enableExternalDatabaseManagementDetails(body); + return this; + } + + /** + * Build the instance of EnableExternalMySqlDatabaseManagementRequest 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 EnableExternalMySqlDatabaseManagementRequest + */ + public EnableExternalMySqlDatabaseManagementRequest buildWithoutInvocationCallback() { + EnableExternalMySqlDatabaseManagementRequest request = + new EnableExternalMySqlDatabaseManagementRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.enableExternalDatabaseManagementDetails = + enableExternalDatabaseManagementDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new EnableExternalMySqlDatabaseManagementRequest(externalMySqlDatabaseId, + // enableExternalDatabaseManagementDetails, opcRetryToken, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .enableExternalDatabaseManagementDetails(enableExternalDatabaseManagementDetails) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + sb.append(",enableExternalDatabaseManagementDetails=") + .append(String.valueOf(this.enableExternalDatabaseManagementDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalMySqlDatabaseManagementRequest)) { + return false; + } + + EnableExternalMySqlDatabaseManagementRequest other = + (EnableExternalMySqlDatabaseManagementRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && java.util.Objects.equals( + this.enableExternalDatabaseManagementDetails, + other.enableExternalDatabaseManagementDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enableExternalDatabaseManagementDetails == null + ? 43 + : this.enableExternalDatabaseManagementDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMysqlAssociatedServiceRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMysqlAssociatedServiceRequest.java new file mode 100644 index 00000000000..2c5f3fecdfb --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalMysqlAssociatedServiceRequest.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableExternalMysqlAssociatedServiceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalMysqlAssociatedServiceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .EnableExternalMysqlAssociatedServiceDetails> { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** + * The details required to enable an Associated Service for an external MySQL database resource. + */ + private com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails + enableExternalMysqlAssociatedServiceDetails; + + /** + * The details required to enable an Associated Service for an external MySQL database resource. + */ + public com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails + getEnableExternalMysqlAssociatedServiceDetails() { + return enableExternalMysqlAssociatedServiceDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails + getBody$() { + return enableExternalMysqlAssociatedServiceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalMysqlAssociatedServiceRequest, + com.oracle.bmc.databasemanagement.model + .EnableExternalMysqlAssociatedServiceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** + * The details required to enable an Associated Service for an external MySQL database + * resource. + */ + private com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails + enableExternalMysqlAssociatedServiceDetails = null; + + /** + * The details required to enable an Associated Service for an external MySQL database + * resource. + * + * @param enableExternalMysqlAssociatedServiceDetails the value to set + * @return this builder instance + */ + public Builder enableExternalMysqlAssociatedServiceDetails( + com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails + enableExternalMysqlAssociatedServiceDetails) { + this.enableExternalMysqlAssociatedServiceDetails = + enableExternalMysqlAssociatedServiceDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableExternalMysqlAssociatedServiceRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + enableExternalMysqlAssociatedServiceDetails( + o.getEnableExternalMysqlAssociatedServiceDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalMysqlAssociatedServiceRequest 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 EnableExternalMysqlAssociatedServiceRequest + */ + public EnableExternalMysqlAssociatedServiceRequest build() { + EnableExternalMysqlAssociatedServiceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails + body) { + enableExternalMysqlAssociatedServiceDetails(body); + return this; + } + + /** + * Build the instance of EnableExternalMysqlAssociatedServiceRequest 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 EnableExternalMysqlAssociatedServiceRequest + */ + public EnableExternalMysqlAssociatedServiceRequest buildWithoutInvocationCallback() { + EnableExternalMysqlAssociatedServiceRequest request = + new EnableExternalMysqlAssociatedServiceRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.enableExternalMysqlAssociatedServiceDetails = + enableExternalMysqlAssociatedServiceDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new EnableExternalMysqlAssociatedServiceRequest(externalMySqlDatabaseId, + // enableExternalMysqlAssociatedServiceDetails, opcRetryToken, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .enableExternalMysqlAssociatedServiceDetails( + enableExternalMysqlAssociatedServiceDetails) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + sb.append(",enableExternalMysqlAssociatedServiceDetails=") + .append(String.valueOf(this.enableExternalMysqlAssociatedServiceDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalMysqlAssociatedServiceRequest)) { + return false; + } + + EnableExternalMysqlAssociatedServiceRequest other = + (EnableExternalMysqlAssociatedServiceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && java.util.Objects.equals( + this.enableExternalMysqlAssociatedServiceDetails, + other.enableExternalMysqlAssociatedServiceDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enableExternalMysqlAssociatedServiceDetails == null + ? 43 + : this.enableExternalMysqlAssociatedServiceDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetBackupMetricsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetBackupMetricsRequest.java new file mode 100644 index 00000000000..77083a3483d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetBackupMetricsRequest.java @@ -0,0 +1,839 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseFleetBackupMetricsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseFleetBackupMetricsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Indicates whether the database is a cloud database or an external database. */ + private com.oracle.bmc.databasemanagement.model.DatabaseHostedIn databaseHostedIn; + + /** Indicates whether the database is a cloud database or an external database. */ + public com.oracle.bmc.databasemanagement.model.DatabaseHostedIn getDatabaseHostedIn() { + return databaseHostedIn; + } + /** + * The start time of the time range to retrieve the health metrics of a Managed Database in UTC + * in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + private String startTime; + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database in UTC + * in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + public String getStartTime() { + return startTime; + } + /** + * The end time of the time range to retrieve the health metrics of a Managed Database in UTC in + * ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + private String endTime; + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database in UTC in + * ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + public String getEndTime() { + return endTime; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + private String managedDatabaseGroupId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + public String getManagedDatabaseGroupId() { + return managedDatabaseGroupId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + public String getFilterByMetricNames() { + return filterByMetricNames; + } + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of records returned in the paginated response. */ + private Integer limit; + + /** The maximum number of records returned in the paginated response. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Databasename("DATABASENAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagEquals() { + return definedTagEquals; + } + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagEquals; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + public java.util.List getFreeformTagEquals() { + return freeformTagEquals; + } + /** + * A list of tag existence filters to apply. Only resources for which the specified defined tags + * exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" + * (for checking existence of a defined tag) or "{namespace}.true". All inputs are + * case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace + * and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagExists; + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined tags + * exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" + * (for checking existence of a defined tag) or "{namespace}.true". All inputs are + * case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace + * and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagExists() { + return definedTagExists; + } + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs + * are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for different tag names are + * interpreted as "AND". + */ + private java.util.List freeformTagExists; + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs + * are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for different tag names are + * interpreted as "AND". + */ + public java.util.List getFreeformTagExists() { + return freeformTagExists; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseFleetBackupMetricsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Indicates whether the database is a cloud database or an external database. */ + private com.oracle.bmc.databasemanagement.model.DatabaseHostedIn databaseHostedIn = null; + + /** + * Indicates whether the database is a cloud database or an external database. + * + * @param databaseHostedIn the value to set + * @return this builder instance + */ + public Builder databaseHostedIn( + com.oracle.bmc.databasemanagement.model.DatabaseHostedIn databaseHostedIn) { + this.databaseHostedIn = databaseHostedIn; + return this; + } + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database in + * UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + private String startTime = null; + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database in + * UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param startTime the value to set + * @return this builder instance + */ + public Builder startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database in + * UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + */ + private String endTime = null; + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database in + * UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param endTime the value to set + * @return this builder instance + */ + public Builder endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + private String managedDatabaseGroupId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + * + * @param managedDatabaseGroupId the value to set + * @return this builder instance + */ + public Builder managedDatabaseGroupId(String managedDatabaseGroupId) { + this.managedDatabaseGroupId = managedDatabaseGroupId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames = null; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + * + * @param filterByMetricNames the value to set + * @return this builder instance + */ + public Builder filterByMetricNames(String filterByMetricNames) { + this.filterByMetricNames = filterByMetricNames; + return this; + } + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of records returned in the paginated response. */ + private Integer limit = null; + + /** + * The maximum number of records returned in the paginated response. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for {@code DATABASENAME} is ascending and it is case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for {@code DATABASENAME} is ascending and it is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder = null; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + * + * @param definedTagEquals the value to set + * @return this builder instance + */ + public Builder definedTagEquals(java.util.List definedTagEquals) { + this.definedTagEquals = definedTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a defined tag + * matching the value will be returned. Each item in the list has the format + * "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the + * same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different + * keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagEquals(String singularValue) { + return this.definedTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + */ + private java.util.List freeformTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + * + * @param freeformTagEquals the value to set + * @return this builder instance + */ + public Builder freeformTagEquals(java.util.List freeformTagEquals) { + this.freeformTagEquals = freeformTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a freeform tag + * matching the value will be returned. The key for each tag is "{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same tag name are interpreted as + * "OR". Values for different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagEquals(String singularValue) { + return this.freeformTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined + * tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + */ + private java.util.List definedTagExists = null; + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined + * tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + * + * @param definedTagExists the value to set + * @return this builder instance + */ + public Builder definedTagExists(java.util.List definedTagExists) { + this.definedTagExists = definedTagExists; + return this; + } + + /** + * Singular setter. A list of tag existence filters to apply. Only resources for which the + * specified defined tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagExists(String singularValue) { + return this.definedTagExists(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All + * inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. + * Absence ("false" at the end) is not supported. Multiple values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagExists = null; + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All + * inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. + * Absence ("false" at the end) is not supported. Multiple values for different tag names + * are interpreted as "AND". + * + * @param freeformTagExists the value to set + * @return this builder instance + */ + public Builder freeformTagExists(java.util.List freeformTagExists) { + this.freeformTagExists = freeformTagExists; + return this; + } + + /** + * Singular setter. A list of tag existence filters to apply. Only resources for which the + * specified freeform tags exist the value will be returned. The key for each tag is + * "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagExists(String singularValue) { + return this.freeformTagExists(java.util.Arrays.asList(singularValue)); + } + + /** + * 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(GetDatabaseFleetBackupMetricsRequest o) { + databaseHostedIn(o.getDatabaseHostedIn()); + startTime(o.getStartTime()); + endTime(o.getEndTime()); + opcRequestId(o.getOpcRequestId()); + managedDatabaseGroupId(o.getManagedDatabaseGroupId()); + compartmentId(o.getCompartmentId()); + filterByMetricNames(o.getFilterByMetricNames()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + definedTagEquals(o.getDefinedTagEquals()); + freeformTagEquals(o.getFreeformTagEquals()); + definedTagExists(o.getDefinedTagExists()); + freeformTagExists(o.getFreeformTagExists()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseFleetBackupMetricsRequest 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 GetDatabaseFleetBackupMetricsRequest + */ + public GetDatabaseFleetBackupMetricsRequest build() { + GetDatabaseFleetBackupMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseFleetBackupMetricsRequest 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 GetDatabaseFleetBackupMetricsRequest + */ + public GetDatabaseFleetBackupMetricsRequest buildWithoutInvocationCallback() { + GetDatabaseFleetBackupMetricsRequest request = + new GetDatabaseFleetBackupMetricsRequest(); + request.databaseHostedIn = databaseHostedIn; + request.startTime = startTime; + request.endTime = endTime; + request.opcRequestId = opcRequestId; + request.managedDatabaseGroupId = managedDatabaseGroupId; + request.compartmentId = compartmentId; + request.filterByMetricNames = filterByMetricNames; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.definedTagEquals = definedTagEquals; + request.freeformTagEquals = freeformTagEquals; + request.definedTagExists = definedTagExists; + request.freeformTagExists = freeformTagExists; + return request; + // new GetDatabaseFleetBackupMetricsRequest(databaseHostedIn, startTime, endTime, + // opcRequestId, managedDatabaseGroupId, compartmentId, filterByMetricNames, page, + // limit, sortBy, sortOrder, definedTagEquals, freeformTagEquals, definedTagExists, + // freeformTagExists); + } + } + + /** + * 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() + .databaseHostedIn(databaseHostedIn) + .startTime(startTime) + .endTime(endTime) + .opcRequestId(opcRequestId) + .managedDatabaseGroupId(managedDatabaseGroupId) + .compartmentId(compartmentId) + .filterByMetricNames(filterByMetricNames) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .definedTagEquals(definedTagEquals) + .freeformTagEquals(freeformTagEquals) + .definedTagExists(definedTagExists) + .freeformTagExists(freeformTagExists); + } + + /** + * 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(",databaseHostedIn=").append(String.valueOf(this.databaseHostedIn)); + sb.append(",startTime=").append(String.valueOf(this.startTime)); + sb.append(",endTime=").append(String.valueOf(this.endTime)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",managedDatabaseGroupId=").append(String.valueOf(this.managedDatabaseGroupId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",filterByMetricNames=").append(String.valueOf(this.filterByMetricNames)); + 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(",definedTagEquals=").append(String.valueOf(this.definedTagEquals)); + sb.append(",freeformTagEquals=").append(String.valueOf(this.freeformTagEquals)); + sb.append(",definedTagExists=").append(String.valueOf(this.definedTagExists)); + sb.append(",freeformTagExists=").append(String.valueOf(this.freeformTagExists)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseFleetBackupMetricsRequest)) { + return false; + } + + GetDatabaseFleetBackupMetricsRequest other = (GetDatabaseFleetBackupMetricsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.databaseHostedIn, other.databaseHostedIn) + && java.util.Objects.equals(this.startTime, other.startTime) + && java.util.Objects.equals(this.endTime, other.endTime) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.managedDatabaseGroupId, other.managedDatabaseGroupId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.filterByMetricNames, other.filterByMetricNames) + && 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.definedTagEquals, other.definedTagEquals) + && java.util.Objects.equals(this.freeformTagEquals, other.freeformTagEquals) + && java.util.Objects.equals(this.definedTagExists, other.definedTagExists) + && java.util.Objects.equals(this.freeformTagExists, other.freeformTagExists); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseHostedIn == null ? 43 : this.databaseHostedIn.hashCode()); + result = (result * PRIME) + (this.startTime == null ? 43 : this.startTime.hashCode()); + result = (result * PRIME) + (this.endTime == null ? 43 : this.endTime.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.managedDatabaseGroupId == null + ? 43 + : this.managedDatabaseGroupId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.filterByMetricNames == null + ? 43 + : this.filterByMetricNames.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.definedTagEquals == null ? 43 : this.definedTagEquals.hashCode()); + result = + (result * PRIME) + + (this.freeformTagEquals == null ? 43 : this.freeformTagEquals.hashCode()); + result = + (result * PRIME) + + (this.definedTagExists == null ? 43 : this.definedTagExists.hashCode()); + result = + (result * PRIME) + + (this.freeformTagExists == null ? 43 : this.freeformTagExists.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetDataguardMetricsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetDataguardMetricsRequest.java new file mode 100644 index 00000000000..899b62dce20 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetDataguardMetricsRequest.java @@ -0,0 +1,736 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseFleetDataguardMetricsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseFleetDataguardMetricsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + private String managedDatabaseGroupId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + public String getManagedDatabaseGroupId() { + return managedDatabaseGroupId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + public String getFilterByMetricNames() { + return filterByMetricNames; + } + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of records returned in the paginated response. */ + private Integer limit; + + /** The maximum number of records returned in the paginated response. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Databasename("DATABASENAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagEquals() { + return definedTagEquals; + } + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagEquals; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + public java.util.List getFreeformTagEquals() { + return freeformTagEquals; + } + /** + * A list of tag existence filters to apply. Only resources for which the specified defined tags + * exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" + * (for checking existence of a defined tag) or "{namespace}.true". All inputs are + * case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace + * and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagExists; + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined tags + * exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" + * (for checking existence of a defined tag) or "{namespace}.true". All inputs are + * case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace + * and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagExists() { + return definedTagExists; + } + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs + * are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for different tag names are + * interpreted as "AND". + */ + private java.util.List freeformTagExists; + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs + * are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for different tag names are + * interpreted as "AND". + */ + public java.util.List getFreeformTagExists() { + return freeformTagExists; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseFleetDataguardMetricsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + private String managedDatabaseGroupId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + * + * @param managedDatabaseGroupId the value to set + * @return this builder instance + */ + public Builder managedDatabaseGroupId(String managedDatabaseGroupId) { + this.managedDatabaseGroupId = managedDatabaseGroupId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames = null; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + * + * @param filterByMetricNames the value to set + * @return this builder instance + */ + public Builder filterByMetricNames(String filterByMetricNames) { + this.filterByMetricNames = filterByMetricNames; + return this; + } + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of records returned in the paginated response. */ + private Integer limit = null; + + /** + * The maximum number of records returned in the paginated response. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for {@code DATABASENAME} is ascending and it is case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for {@code DATABASENAME} is ascending and it is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder = null; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + * + * @param definedTagEquals the value to set + * @return this builder instance + */ + public Builder definedTagEquals(java.util.List definedTagEquals) { + this.definedTagEquals = definedTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a defined tag + * matching the value will be returned. Each item in the list has the format + * "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the + * same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different + * keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagEquals(String singularValue) { + return this.definedTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + */ + private java.util.List freeformTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + * + * @param freeformTagEquals the value to set + * @return this builder instance + */ + public Builder freeformTagEquals(java.util.List freeformTagEquals) { + this.freeformTagEquals = freeformTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a freeform tag + * matching the value will be returned. The key for each tag is "{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same tag name are interpreted as + * "OR". Values for different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagEquals(String singularValue) { + return this.freeformTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined + * tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + */ + private java.util.List definedTagExists = null; + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined + * tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + * + * @param definedTagExists the value to set + * @return this builder instance + */ + public Builder definedTagExists(java.util.List definedTagExists) { + this.definedTagExists = definedTagExists; + return this; + } + + /** + * Singular setter. A list of tag existence filters to apply. Only resources for which the + * specified defined tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagExists(String singularValue) { + return this.definedTagExists(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All + * inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. + * Absence ("false" at the end) is not supported. Multiple values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagExists = null; + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All + * inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. + * Absence ("false" at the end) is not supported. Multiple values for different tag names + * are interpreted as "AND". + * + * @param freeformTagExists the value to set + * @return this builder instance + */ + public Builder freeformTagExists(java.util.List freeformTagExists) { + this.freeformTagExists = freeformTagExists; + return this; + } + + /** + * Singular setter. A list of tag existence filters to apply. Only resources for which the + * specified freeform tags exist the value will be returned. The key for each tag is + * "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagExists(String singularValue) { + return this.freeformTagExists(java.util.Arrays.asList(singularValue)); + } + + /** + * 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(GetDatabaseFleetDataguardMetricsRequest o) { + opcRequestId(o.getOpcRequestId()); + managedDatabaseGroupId(o.getManagedDatabaseGroupId()); + compartmentId(o.getCompartmentId()); + filterByMetricNames(o.getFilterByMetricNames()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + definedTagEquals(o.getDefinedTagEquals()); + freeformTagEquals(o.getFreeformTagEquals()); + definedTagExists(o.getDefinedTagExists()); + freeformTagExists(o.getFreeformTagExists()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseFleetDataguardMetricsRequest 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 GetDatabaseFleetDataguardMetricsRequest + */ + public GetDatabaseFleetDataguardMetricsRequest build() { + GetDatabaseFleetDataguardMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseFleetDataguardMetricsRequest 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 GetDatabaseFleetDataguardMetricsRequest + */ + public GetDatabaseFleetDataguardMetricsRequest buildWithoutInvocationCallback() { + GetDatabaseFleetDataguardMetricsRequest request = + new GetDatabaseFleetDataguardMetricsRequest(); + request.opcRequestId = opcRequestId; + request.managedDatabaseGroupId = managedDatabaseGroupId; + request.compartmentId = compartmentId; + request.filterByMetricNames = filterByMetricNames; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.definedTagEquals = definedTagEquals; + request.freeformTagEquals = freeformTagEquals; + request.definedTagExists = definedTagExists; + request.freeformTagExists = freeformTagExists; + return request; + // new GetDatabaseFleetDataguardMetricsRequest(opcRequestId, managedDatabaseGroupId, + // compartmentId, filterByMetricNames, page, limit, sortBy, sortOrder, definedTagEquals, + // freeformTagEquals, definedTagExists, freeformTagExists); + } + } + + /** + * 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() + .opcRequestId(opcRequestId) + .managedDatabaseGroupId(managedDatabaseGroupId) + .compartmentId(compartmentId) + .filterByMetricNames(filterByMetricNames) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .definedTagEquals(definedTagEquals) + .freeformTagEquals(freeformTagEquals) + .definedTagExists(definedTagExists) + .freeformTagExists(freeformTagExists); + } + + /** + * 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",managedDatabaseGroupId=").append(String.valueOf(this.managedDatabaseGroupId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",filterByMetricNames=").append(String.valueOf(this.filterByMetricNames)); + 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(",definedTagEquals=").append(String.valueOf(this.definedTagEquals)); + sb.append(",freeformTagEquals=").append(String.valueOf(this.freeformTagEquals)); + sb.append(",definedTagExists=").append(String.valueOf(this.definedTagExists)); + sb.append(",freeformTagExists=").append(String.valueOf(this.freeformTagExists)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseFleetDataguardMetricsRequest)) { + return false; + } + + GetDatabaseFleetDataguardMetricsRequest other = (GetDatabaseFleetDataguardMetricsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.managedDatabaseGroupId, other.managedDatabaseGroupId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.filterByMetricNames, other.filterByMetricNames) + && 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.definedTagEquals, other.definedTagEquals) + && java.util.Objects.equals(this.freeformTagEquals, other.freeformTagEquals) + && java.util.Objects.equals(this.definedTagExists, other.definedTagExists) + && java.util.Objects.equals(this.freeformTagExists, other.freeformTagExists); + } + + @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.managedDatabaseGroupId == null + ? 43 + : this.managedDatabaseGroupId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.filterByMetricNames == null + ? 43 + : this.filterByMetricNames.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.definedTagEquals == null ? 43 : this.definedTagEquals.hashCode()); + result = + (result * PRIME) + + (this.freeformTagEquals == null ? 43 : this.freeformTagEquals.hashCode()); + result = + (result * PRIME) + + (this.definedTagExists == null ? 43 : this.definedTagExists.hashCode()); + result = + (result * PRIME) + + (this.freeformTagExists == null ? 43 : this.freeformTagExists.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetHaOverviewMetricsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetHaOverviewMetricsRequest.java new file mode 100644 index 00000000000..96cc2aecdc6 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseFleetHaOverviewMetricsRequest.java @@ -0,0 +1,737 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseFleetHaOverviewMetricsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseFleetHaOverviewMetricsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + private String managedDatabaseGroupId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + public String getManagedDatabaseGroupId() { + return managedDatabaseGroupId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + public String getFilterByMetricNames() { + return filterByMetricNames; + } + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of records returned in the paginated response. */ + private Integer limit; + + /** The maximum number of records returned in the paginated response. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Databasename("DATABASENAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * {@code DATABASENAME} is ascending and it is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagEquals() { + return definedTagEquals; + } + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagEquals; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + public java.util.List getFreeformTagEquals() { + return freeformTagEquals; + } + /** + * A list of tag existence filters to apply. Only resources for which the specified defined tags + * exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" + * (for checking existence of a defined tag) or "{namespace}.true". All inputs are + * case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace + * and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagExists; + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined tags + * exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" + * (for checking existence of a defined tag) or "{namespace}.true". All inputs are + * case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace + * and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagExists() { + return definedTagExists; + } + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs + * are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for different tag names are + * interpreted as "AND". + */ + private java.util.List freeformTagExists; + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs + * are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence + * ("false" at the end) is not supported. Multiple values for different tag names are + * interpreted as "AND". + */ + public java.util.List getFreeformTagExists() { + return freeformTagExists; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseFleetHaOverviewMetricsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + */ + private String managedDatabaseGroupId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database Group. + * + * @param managedDatabaseGroupId the value to set + * @return this builder instance + */ + public Builder managedDatabaseGroupId(String managedDatabaseGroupId) { + this.managedDatabaseGroupId = managedDatabaseGroupId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames = null; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names + * with a comma separator. Note that, by default, the service returns all supported metrics. + * + * @param filterByMetricNames the value to set + * @return this builder instance + */ + public Builder filterByMetricNames(String filterByMetricNames) { + this.filterByMetricNames = filterByMetricNames; + return this; + } + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of records returned in the paginated response. */ + private Integer limit = null; + + /** + * The maximum number of records returned in the paginated response. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for {@code DATABASENAME} is ascending and it is case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for {@code DATABASENAME} is ascending and it is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder = null; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + * + * @param definedTagEquals the value to set + * @return this builder instance + */ + public Builder definedTagEquals(java.util.List definedTagEquals) { + this.definedTagEquals = definedTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a defined tag + * matching the value will be returned. Each item in the list has the format + * "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the + * same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different + * keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagEquals(String singularValue) { + return this.definedTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + */ + private java.util.List freeformTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + * + * @param freeformTagEquals the value to set + * @return this builder instance + */ + public Builder freeformTagEquals(java.util.List freeformTagEquals) { + this.freeformTagEquals = freeformTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a freeform tag + * matching the value will be returned. The key for each tag is "{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same tag name are interpreted as + * "OR". Values for different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagEquals(String singularValue) { + return this.freeformTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined + * tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + */ + private java.util.List definedTagExists = null; + + /** + * A list of tag existence filters to apply. Only resources for which the specified defined + * tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + * + * @param definedTagExists the value to set + * @return this builder instance + */ + public Builder definedTagExists(java.util.List definedTagExists) { + this.definedTagExists = definedTagExists; + return this; + } + + /** + * Singular setter. A list of tag existence filters to apply. Only resources for which the + * specified defined tags exist will be returned. Each item in the list has the format + * "{namespace}.{tagName}.true" (for checking existence of a defined tag) or + * "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for + * different keys (i.e. different namespaces, different tag names, or both) are interpreted + * as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagExists(String singularValue) { + return this.definedTagExists(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All + * inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. + * Absence ("false" at the end) is not supported. Multiple values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagExists = null; + + /** + * A list of tag existence filters to apply. Only resources for which the specified freeform + * tags exist the value will be returned. The key for each tag is "{tagName}.true". All + * inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. + * Absence ("false" at the end) is not supported. Multiple values for different tag names + * are interpreted as "AND". + * + * @param freeformTagExists the value to set + * @return this builder instance + */ + public Builder freeformTagExists(java.util.List freeformTagExists) { + this.freeformTagExists = freeformTagExists; + return this; + } + + /** + * Singular setter. A list of tag existence filters to apply. Only resources for which the + * specified freeform tags exist the value will be returned. The key for each tag is + * "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at + * the end) is supported. Absence ("false" at the end) is not supported. Multiple values for + * different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagExists(String singularValue) { + return this.freeformTagExists(java.util.Arrays.asList(singularValue)); + } + + /** + * 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(GetDatabaseFleetHaOverviewMetricsRequest o) { + opcRequestId(o.getOpcRequestId()); + managedDatabaseGroupId(o.getManagedDatabaseGroupId()); + compartmentId(o.getCompartmentId()); + filterByMetricNames(o.getFilterByMetricNames()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + definedTagEquals(o.getDefinedTagEquals()); + freeformTagEquals(o.getFreeformTagEquals()); + definedTagExists(o.getDefinedTagExists()); + freeformTagExists(o.getFreeformTagExists()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseFleetHaOverviewMetricsRequest 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 GetDatabaseFleetHaOverviewMetricsRequest + */ + public GetDatabaseFleetHaOverviewMetricsRequest build() { + GetDatabaseFleetHaOverviewMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseFleetHaOverviewMetricsRequest 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 GetDatabaseFleetHaOverviewMetricsRequest + */ + public GetDatabaseFleetHaOverviewMetricsRequest buildWithoutInvocationCallback() { + GetDatabaseFleetHaOverviewMetricsRequest request = + new GetDatabaseFleetHaOverviewMetricsRequest(); + request.opcRequestId = opcRequestId; + request.managedDatabaseGroupId = managedDatabaseGroupId; + request.compartmentId = compartmentId; + request.filterByMetricNames = filterByMetricNames; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.definedTagEquals = definedTagEquals; + request.freeformTagEquals = freeformTagEquals; + request.definedTagExists = definedTagExists; + request.freeformTagExists = freeformTagExists; + return request; + // new GetDatabaseFleetHaOverviewMetricsRequest(opcRequestId, managedDatabaseGroupId, + // compartmentId, filterByMetricNames, page, limit, sortBy, sortOrder, definedTagEquals, + // freeformTagEquals, definedTagExists, freeformTagExists); + } + } + + /** + * 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() + .opcRequestId(opcRequestId) + .managedDatabaseGroupId(managedDatabaseGroupId) + .compartmentId(compartmentId) + .filterByMetricNames(filterByMetricNames) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .definedTagEquals(definedTagEquals) + .freeformTagEquals(freeformTagEquals) + .definedTagExists(definedTagExists) + .freeformTagExists(freeformTagExists); + } + + /** + * 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",managedDatabaseGroupId=").append(String.valueOf(this.managedDatabaseGroupId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",filterByMetricNames=").append(String.valueOf(this.filterByMetricNames)); + 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(",definedTagEquals=").append(String.valueOf(this.definedTagEquals)); + sb.append(",freeformTagEquals=").append(String.valueOf(this.freeformTagEquals)); + sb.append(",definedTagExists=").append(String.valueOf(this.definedTagExists)); + sb.append(",freeformTagExists=").append(String.valueOf(this.freeformTagExists)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseFleetHaOverviewMetricsRequest)) { + return false; + } + + GetDatabaseFleetHaOverviewMetricsRequest other = + (GetDatabaseFleetHaOverviewMetricsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.managedDatabaseGroupId, other.managedDatabaseGroupId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.filterByMetricNames, other.filterByMetricNames) + && 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.definedTagEquals, other.definedTagEquals) + && java.util.Objects.equals(this.freeformTagEquals, other.freeformTagEquals) + && java.util.Objects.equals(this.definedTagExists, other.definedTagExists) + && java.util.Objects.equals(this.freeformTagExists, other.freeformTagExists); + } + + @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.managedDatabaseGroupId == null + ? 43 + : this.managedDatabaseGroupId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.filterByMetricNames == null + ? 43 + : this.filterByMetricNames.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.definedTagEquals == null ? 43 : this.definedTagEquals.hashCode()); + result = + (result * PRIME) + + (this.freeformTagEquals == null ? 43 : this.freeformTagEquals.hashCode()); + result = + (result * PRIME) + + (this.definedTagExists == null ? 43 : this.definedTagExists.hashCode()); + result = + (result * PRIME) + + (this.freeformTagExists == null ? 43 : this.freeformTagExists.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseHaBackupDetailsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseHaBackupDetailsRequest.java new file mode 100644 index 00000000000..e69e0d46ec8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDatabaseHaBackupDetailsRequest.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseHaBackupDetailsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseHaBackupDetailsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + private String managedDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + public String getManagedDatabaseId() { + return managedDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDatabaseHaBackupDetailsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + private String managedDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param managedDatabaseId the value to set + * @return this builder instance + */ + public Builder managedDatabaseId(String managedDatabaseId) { + this.managedDatabaseId = managedDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @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(GetDatabaseHaBackupDetailsRequest o) { + managedDatabaseId(o.getManagedDatabaseId()); + opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDatabaseHaBackupDetailsRequest 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 GetDatabaseHaBackupDetailsRequest + */ + public GetDatabaseHaBackupDetailsRequest build() { + GetDatabaseHaBackupDetailsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDatabaseHaBackupDetailsRequest 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 GetDatabaseHaBackupDetailsRequest + */ + public GetDatabaseHaBackupDetailsRequest buildWithoutInvocationCallback() { + GetDatabaseHaBackupDetailsRequest request = new GetDatabaseHaBackupDetailsRequest(); + request.managedDatabaseId = managedDatabaseId; + request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; + return request; + // new GetDatabaseHaBackupDetailsRequest(managedDatabaseId, opcRequestId, + // opcNamedCredentialId); + } + } + + /** + * 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() + .managedDatabaseId(managedDatabaseId) + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); + } + + /** + * 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(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseHaBackupDetailsRequest)) { + return false; + } + + GetDatabaseHaBackupDetailsRequest other = (GetDatabaseHaBackupDetailsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseConnectorRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseConnectorRequest.java new file mode 100644 index 00000000000..81ef74f2719 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseConnectorRequest.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * GetExternalMySqlDatabaseConnectorRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetExternalMySqlDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId; + + /** The OCID of the External MySQL Database Connector. */ + public String getExternalMySqlDatabaseConnectorId() { + return externalMySqlDatabaseConnectorId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExternalMySqlDatabaseConnectorRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId = null; + + /** + * The OCID of the External MySQL Database Connector. + * + * @param externalMySqlDatabaseConnectorId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseConnectorId(String externalMySqlDatabaseConnectorId) { + this.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetExternalMySqlDatabaseConnectorRequest o) { + externalMySqlDatabaseConnectorId(o.getExternalMySqlDatabaseConnectorId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExternalMySqlDatabaseConnectorRequest 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 GetExternalMySqlDatabaseConnectorRequest + */ + public GetExternalMySqlDatabaseConnectorRequest build() { + GetExternalMySqlDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetExternalMySqlDatabaseConnectorRequest 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 GetExternalMySqlDatabaseConnectorRequest + */ + public GetExternalMySqlDatabaseConnectorRequest buildWithoutInvocationCallback() { + GetExternalMySqlDatabaseConnectorRequest request = + new GetExternalMySqlDatabaseConnectorRequest(); + request.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + request.opcRequestId = opcRequestId; + return request; + // new GetExternalMySqlDatabaseConnectorRequest(externalMySqlDatabaseConnectorId, + // 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() + .externalMySqlDatabaseConnectorId(externalMySqlDatabaseConnectorId) + .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(",externalMySqlDatabaseConnectorId=") + .append(String.valueOf(this.externalMySqlDatabaseConnectorId)); + 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 GetExternalMySqlDatabaseConnectorRequest)) { + return false; + } + + GetExternalMySqlDatabaseConnectorRequest other = + (GetExternalMySqlDatabaseConnectorRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnectorId, + other.externalMySqlDatabaseConnectorId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseConnectorId == null + ? 43 + : this.externalMySqlDatabaseConnectorId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseRequest.java new file mode 100644 index 00000000000..e9b5de19a05 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalMySqlDatabaseRequest.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * GetExternalMySqlDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetExternalMySqlDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExternalMySqlDatabaseRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetExternalMySqlDatabaseRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExternalMySqlDatabaseRequest 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 GetExternalMySqlDatabaseRequest + */ + public GetExternalMySqlDatabaseRequest build() { + GetExternalMySqlDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetExternalMySqlDatabaseRequest 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 GetExternalMySqlDatabaseRequest + */ + public GetExternalMySqlDatabaseRequest buildWithoutInvocationCallback() { + GetExternalMySqlDatabaseRequest request = new GetExternalMySqlDatabaseRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.opcRequestId = opcRequestId; + return request; + // new GetExternalMySqlDatabaseRequest(externalMySqlDatabaseId, 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() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .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(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + 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 GetExternalMySqlDatabaseRequest)) { + return false; + } + + GetExternalMySqlDatabaseRequest other = (GetExternalMySqlDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetMySqlFleetMetricRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetMySqlFleetMetricRequest.java index 0beb271a513..00d40d96d80 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetMySqlFleetMetricRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetMySqlFleetMetricRequest.java @@ -88,6 +88,13 @@ public String getFilterByMetricNames() { public com.oracle.bmc.databasemanagement.model.MdsType getFilterByMdsDeploymentType() { return filterByMdsDeploymentType; } + /** The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. */ + private com.oracle.bmc.databasemanagement.model.MySqlType filterByMySqlDatabaseTypeParam; + + /** The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. */ + public com.oracle.bmc.databasemanagement.model.MySqlType getFilterByMySqlDatabaseTypeParam() { + return filterByMySqlDatabaseTypeParam; + } /** The parameter to filter by MySQL Database status. */ private com.oracle.bmc.databasemanagement.model.DatabaseStatus filterByMySqlStatus; @@ -234,6 +241,22 @@ public Builder filterByMdsDeploymentType( return this; } + /** The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. */ + private com.oracle.bmc.databasemanagement.model.MySqlType filterByMySqlDatabaseTypeParam = + null; + + /** + * The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. + * + * @param filterByMySqlDatabaseTypeParam the value to set + * @return this builder instance + */ + public Builder filterByMySqlDatabaseTypeParam( + com.oracle.bmc.databasemanagement.model.MySqlType filterByMySqlDatabaseTypeParam) { + this.filterByMySqlDatabaseTypeParam = filterByMySqlDatabaseTypeParam; + return this; + } + /** The parameter to filter by MySQL Database status. */ private com.oracle.bmc.databasemanagement.model.DatabaseStatus filterByMySqlStatus = null; @@ -314,6 +337,7 @@ public Builder copy(GetMySqlFleetMetricRequest o) { filterByMetricNames(o.getFilterByMetricNames()); filterByMySqlDeploymentTypeParam(o.getFilterByMySqlDeploymentTypeParam()); filterByMdsDeploymentType(o.getFilterByMdsDeploymentType()); + filterByMySqlDatabaseTypeParam(o.getFilterByMySqlDatabaseTypeParam()); filterByMySqlStatus(o.getFilterByMySqlStatus()); filterByMySqlDatabaseVersion(o.getFilterByMySqlDatabaseVersion()); isHeatWaveEnabled(o.getIsHeatWaveEnabled()); @@ -358,13 +382,15 @@ public GetMySqlFleetMetricRequest buildWithoutInvocationCallback() { request.filterByMetricNames = filterByMetricNames; request.filterByMySqlDeploymentTypeParam = filterByMySqlDeploymentTypeParam; request.filterByMdsDeploymentType = filterByMdsDeploymentType; + request.filterByMySqlDatabaseTypeParam = filterByMySqlDatabaseTypeParam; request.filterByMySqlStatus = filterByMySqlStatus; request.filterByMySqlDatabaseVersion = filterByMySqlDatabaseVersion; request.isHeatWaveEnabled = isHeatWaveEnabled; return request; // new GetMySqlFleetMetricRequest(compartmentId, startTime, endTime, opcRequestId, // filterByMetricNames, filterByMySqlDeploymentTypeParam, filterByMdsDeploymentType, - // filterByMySqlStatus, filterByMySqlDatabaseVersion, isHeatWaveEnabled); + // filterByMySqlDatabaseTypeParam, filterByMySqlStatus, filterByMySqlDatabaseVersion, + // isHeatWaveEnabled); } } @@ -382,6 +408,7 @@ public Builder toBuilder() { .filterByMetricNames(filterByMetricNames) .filterByMySqlDeploymentTypeParam(filterByMySqlDeploymentTypeParam) .filterByMdsDeploymentType(filterByMdsDeploymentType) + .filterByMySqlDatabaseTypeParam(filterByMySqlDatabaseTypeParam) .filterByMySqlStatus(filterByMySqlStatus) .filterByMySqlDatabaseVersion(filterByMySqlDatabaseVersion) .isHeatWaveEnabled(isHeatWaveEnabled); @@ -410,6 +437,8 @@ public String toString() { .append(String.valueOf(this.filterByMySqlDeploymentTypeParam)); sb.append(",filterByMdsDeploymentType=") .append(String.valueOf(this.filterByMdsDeploymentType)); + sb.append(",filterByMySqlDatabaseTypeParam=") + .append(String.valueOf(this.filterByMySqlDatabaseTypeParam)); sb.append(",filterByMySqlStatus=").append(String.valueOf(this.filterByMySqlStatus)); sb.append(",filterByMySqlDatabaseVersion=") .append(String.valueOf(this.filterByMySqlDatabaseVersion)); @@ -439,6 +468,8 @@ public boolean equals(Object o) { other.filterByMySqlDeploymentTypeParam) && java.util.Objects.equals( this.filterByMdsDeploymentType, other.filterByMdsDeploymentType) + && java.util.Objects.equals( + this.filterByMySqlDatabaseTypeParam, other.filterByMySqlDatabaseTypeParam) && java.util.Objects.equals(this.filterByMySqlStatus, other.filterByMySqlStatus) && java.util.Objects.equals( this.filterByMySqlDatabaseVersion, other.filterByMySqlDatabaseVersion) @@ -470,6 +501,11 @@ public int hashCode() { + (this.filterByMdsDeploymentType == null ? 43 : this.filterByMdsDeploymentType.hashCode()); + result = + (result * PRIME) + + (this.filterByMySqlDatabaseTypeParam == null + ? 43 + : this.filterByMySqlDatabaseTypeParam.hashCode()); result = (result * PRIME) + (this.filterByMySqlStatus == null diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalMySqlDatabasesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalMySqlDatabasesRequest.java new file mode 100644 index 00000000000..4afc23061ef --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalMySqlDatabasesRequest.java @@ -0,0 +1,414 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * ListExternalMySqlDatabasesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ListExternalMySqlDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The parameter to filter by MySQL Database System type. */ + private String name; + + /** The parameter to filter by MySQL Database System type. */ + public String getName() { + return name; + } + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of records returned in the paginated response. */ + private Integer limit; + + /** The maximum number of records returned in the paginated response. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Name("NAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExternalMySqlDatabasesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The parameter to filter by MySQL Database System type. */ + private String name = null; + + /** + * The parameter to filter by MySQL Database System type. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of records returned in the paginated response. */ + private Integer limit = null; + + /** + * The maximum number of records returned in the paginated response. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 + * is ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 + * is ascending. The \u2018NAME\u2019 sort order is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder = null; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListExternalMySqlDatabasesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + name(o.getName()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExternalMySqlDatabasesRequest 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 ListExternalMySqlDatabasesRequest + */ + public ListExternalMySqlDatabasesRequest build() { + ListExternalMySqlDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListExternalMySqlDatabasesRequest 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 ListExternalMySqlDatabasesRequest + */ + public ListExternalMySqlDatabasesRequest buildWithoutInvocationCallback() { + ListExternalMySqlDatabasesRequest request = new ListExternalMySqlDatabasesRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.name = name; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListExternalMySqlDatabasesRequest(compartmentId, opcRequestId, name, page, limit, + // sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .name(name) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListExternalMySqlDatabasesRequest)) { + return false; + } + + ListExternalMySqlDatabasesRequest other = (ListExternalMySqlDatabasesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListManagedMySqlDatabasesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListManagedMySqlDatabasesRequest.java index d3608ec6fed..d80e9e70ae3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListManagedMySqlDatabasesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListManagedMySqlDatabasesRequest.java @@ -55,6 +55,13 @@ public String getPage() { public Integer getLimit() { return limit; } + /** The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. */ + private com.oracle.bmc.databasemanagement.model.MySqlType filterByMySqlDatabaseTypeParam; + + /** The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. */ + public com.oracle.bmc.databasemanagement.model.MySqlType getFilterByMySqlDatabaseTypeParam() { + return filterByMySqlDatabaseTypeParam; + } /** * The field to sort information by. Only one sortOrder can be used. The default sort order for * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is @@ -192,6 +199,22 @@ public Builder limit(Integer limit) { return this; } + /** The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. */ + private com.oracle.bmc.databasemanagement.model.MySqlType filterByMySqlDatabaseTypeParam = + null; + + /** + * The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS. + * + * @param filterByMySqlDatabaseTypeParam the value to set + * @return this builder instance + */ + public Builder filterByMySqlDatabaseTypeParam( + com.oracle.bmc.databasemanagement.model.MySqlType filterByMySqlDatabaseTypeParam) { + this.filterByMySqlDatabaseTypeParam = filterByMySqlDatabaseTypeParam; + return this; + } + /** * The field to sort information by. Only one sortOrder can be used. The default sort order * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 @@ -264,6 +287,7 @@ public Builder copy(ListManagedMySqlDatabasesRequest o) { opcRequestId(o.getOpcRequestId()); page(o.getPage()); limit(o.getLimit()); + filterByMySqlDatabaseTypeParam(o.getFilterByMySqlDatabaseTypeParam()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); invocationCallback(o.getInvocationCallback()); @@ -304,11 +328,12 @@ public ListManagedMySqlDatabasesRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.page = page; request.limit = limit; + request.filterByMySqlDatabaseTypeParam = filterByMySqlDatabaseTypeParam; request.sortBy = sortBy; request.sortOrder = sortOrder; return request; // new ListManagedMySqlDatabasesRequest(compartmentId, opcRequestId, page, limit, - // sortBy, sortOrder); + // filterByMySqlDatabaseTypeParam, sortBy, sortOrder); } } @@ -323,6 +348,7 @@ public Builder toBuilder() { .opcRequestId(opcRequestId) .page(page) .limit(limit) + .filterByMySqlDatabaseTypeParam(filterByMySqlDatabaseTypeParam) .sortBy(sortBy) .sortOrder(sortOrder); } @@ -345,6 +371,8 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",filterByMySqlDatabaseTypeParam=") + .append(String.valueOf(this.filterByMySqlDatabaseTypeParam)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(")"); @@ -366,6 +394,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals( + this.filterByMySqlDatabaseTypeParam, other.filterByMySqlDatabaseTypeParam) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder); } @@ -380,6 +410,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = + (result * PRIME) + + (this.filterByMySqlDatabaseTypeParam == null + ? 43 + : this.filterByMySqlDatabaseTypeParam.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); return result; diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListMySqlDatabaseConnectorsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListMySqlDatabaseConnectorsRequest.java new file mode 100644 index 00000000000..6c83651a8d6 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListMySqlDatabaseConnectorsRequest.java @@ -0,0 +1,455 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * ListMySqlDatabaseConnectorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ListMySqlDatabaseConnectorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + */ + private String externalDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } + /** The parameter to filter by MySQL Database System type. */ + private String name; + + /** The parameter to filter by MySQL Database System type. */ + public String getName() { + return name; + } + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of records returned in the paginated response. */ + private Integer limit; + + /** The maximum number of records returned in the paginated response. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Name("NAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMySqlDatabaseConnectorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + */ + private String externalDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + * + * @param externalDatabaseId the value to set + * @return this builder instance + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + return this; + } + + /** The parameter to filter by MySQL Database System type. */ + private String name = null; + + /** + * The parameter to filter by MySQL Database System type. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of records returned in the paginated response. */ + private Integer limit = null; + + /** + * The maximum number of records returned in the paginated response. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 + * is ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 + * is ascending. The \u2018NAME\u2019 sort order is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder = null; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListMySqlDatabaseConnectorsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + externalDatabaseId(o.getExternalDatabaseId()); + name(o.getName()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMySqlDatabaseConnectorsRequest 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 ListMySqlDatabaseConnectorsRequest + */ + public ListMySqlDatabaseConnectorsRequest build() { + ListMySqlDatabaseConnectorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMySqlDatabaseConnectorsRequest 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 ListMySqlDatabaseConnectorsRequest + */ + public ListMySqlDatabaseConnectorsRequest buildWithoutInvocationCallback() { + ListMySqlDatabaseConnectorsRequest request = new ListMySqlDatabaseConnectorsRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.externalDatabaseId = externalDatabaseId; + request.name = name; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListMySqlDatabaseConnectorsRequest(compartmentId, opcRequestId, + // externalDatabaseId, name, page, limit, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .externalDatabaseId(externalDatabaseId) + .name(name) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMySqlDatabaseConnectorsRequest)) { + return false; + } + + ListMySqlDatabaseConnectorsRequest other = (ListMySqlDatabaseConnectorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseConnectorRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseConnectorRequest.java new file mode 100644 index 00000000000..9e8f7ec4f43 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseConnectorRequest.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateExternalMysqlDatabaseConnectorRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class UpdateExternalMysqlDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .UpdateExternalMySqlDatabaseConnectorDetails> { + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId; + + /** The OCID of the External MySQL Database Connector. */ + public String getExternalMySqlDatabaseConnectorId() { + return externalMySqlDatabaseConnectorId; + } + /** The details required to update MySQL database connector resource. */ + private com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails + updateExternalMySqlDatabaseConnectorDetails; + + /** The details required to update MySQL database connector resource. */ + public com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails + getUpdateExternalMySqlDatabaseConnectorDetails() { + return updateExternalMySqlDatabaseConnectorDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails + getBody$() { + return updateExternalMySqlDatabaseConnectorDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExternalMysqlDatabaseConnectorRequest, + com.oracle.bmc.databasemanagement.model + .UpdateExternalMySqlDatabaseConnectorDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database Connector. */ + private String externalMySqlDatabaseConnectorId = null; + + /** + * The OCID of the External MySQL Database Connector. + * + * @param externalMySqlDatabaseConnectorId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseConnectorId(String externalMySqlDatabaseConnectorId) { + this.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + return this; + } + + /** The details required to update MySQL database connector resource. */ + private com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails + updateExternalMySqlDatabaseConnectorDetails = null; + + /** + * The details required to update MySQL database connector resource. + * + * @param updateExternalMySqlDatabaseConnectorDetails the value to set + * @return this builder instance + */ + public Builder updateExternalMySqlDatabaseConnectorDetails( + com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails + updateExternalMySqlDatabaseConnectorDetails) { + this.updateExternalMySqlDatabaseConnectorDetails = + updateExternalMySqlDatabaseConnectorDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateExternalMysqlDatabaseConnectorRequest o) { + externalMySqlDatabaseConnectorId(o.getExternalMySqlDatabaseConnectorId()); + updateExternalMySqlDatabaseConnectorDetails( + o.getUpdateExternalMySqlDatabaseConnectorDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExternalMysqlDatabaseConnectorRequest 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 UpdateExternalMysqlDatabaseConnectorRequest + */ + public UpdateExternalMysqlDatabaseConnectorRequest build() { + UpdateExternalMysqlDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails + body) { + updateExternalMySqlDatabaseConnectorDetails(body); + return this; + } + + /** + * Build the instance of UpdateExternalMysqlDatabaseConnectorRequest 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 UpdateExternalMysqlDatabaseConnectorRequest + */ + public UpdateExternalMysqlDatabaseConnectorRequest buildWithoutInvocationCallback() { + UpdateExternalMysqlDatabaseConnectorRequest request = + new UpdateExternalMysqlDatabaseConnectorRequest(); + request.externalMySqlDatabaseConnectorId = externalMySqlDatabaseConnectorId; + request.updateExternalMySqlDatabaseConnectorDetails = + updateExternalMySqlDatabaseConnectorDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateExternalMysqlDatabaseConnectorRequest(externalMySqlDatabaseConnectorId, + // updateExternalMySqlDatabaseConnectorDetails, 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() + .externalMySqlDatabaseConnectorId(externalMySqlDatabaseConnectorId) + .updateExternalMySqlDatabaseConnectorDetails( + updateExternalMySqlDatabaseConnectorDetails) + .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(",externalMySqlDatabaseConnectorId=") + .append(String.valueOf(this.externalMySqlDatabaseConnectorId)); + sb.append(",updateExternalMySqlDatabaseConnectorDetails=") + .append(String.valueOf(this.updateExternalMySqlDatabaseConnectorDetails)); + 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 UpdateExternalMysqlDatabaseConnectorRequest)) { + return false; + } + + UpdateExternalMysqlDatabaseConnectorRequest other = + (UpdateExternalMysqlDatabaseConnectorRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnectorId, + other.externalMySqlDatabaseConnectorId) + && java.util.Objects.equals( + this.updateExternalMySqlDatabaseConnectorDetails, + other.updateExternalMySqlDatabaseConnectorDetails) + && 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.externalMySqlDatabaseConnectorId == null + ? 43 + : this.externalMySqlDatabaseConnectorId.hashCode()); + result = + (result * PRIME) + + (this.updateExternalMySqlDatabaseConnectorDetails == null + ? 43 + : this.updateExternalMySqlDatabaseConnectorDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseRequest.java new file mode 100644 index 00000000000..c8a5e499530 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateExternalMysqlDatabaseRequest.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateExternalMysqlDatabaseRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class UpdateExternalMysqlDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails> { + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId; + + /** The OCID of the External MySQL Database. */ + public String getExternalMySqlDatabaseId() { + return externalMySqlDatabaseId; + } + /** The details required to update an external MySQL database resource. */ + private com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails + updateExternalMySqlDatabaseDetails; + + /** The details required to update an external MySQL database resource. */ + public com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails + getUpdateExternalMySqlDatabaseDetails() { + return updateExternalMySqlDatabaseDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails getBody$() { + return updateExternalMySqlDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExternalMysqlDatabaseRequest, + com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the External MySQL Database. */ + private String externalMySqlDatabaseId = null; + + /** + * The OCID of the External MySQL Database. + * + * @param externalMySqlDatabaseId the value to set + * @return this builder instance + */ + public Builder externalMySqlDatabaseId(String externalMySqlDatabaseId) { + this.externalMySqlDatabaseId = externalMySqlDatabaseId; + return this; + } + + /** The details required to update an external MySQL database resource. */ + private com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails + updateExternalMySqlDatabaseDetails = null; + + /** + * The details required to update an external MySQL database resource. + * + * @param updateExternalMySqlDatabaseDetails the value to set + * @return this builder instance + */ + public Builder updateExternalMySqlDatabaseDetails( + com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails + updateExternalMySqlDatabaseDetails) { + this.updateExternalMySqlDatabaseDetails = updateExternalMySqlDatabaseDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateExternalMysqlDatabaseRequest o) { + externalMySqlDatabaseId(o.getExternalMySqlDatabaseId()); + updateExternalMySqlDatabaseDetails(o.getUpdateExternalMySqlDatabaseDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExternalMysqlDatabaseRequest 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 UpdateExternalMysqlDatabaseRequest + */ + public UpdateExternalMysqlDatabaseRequest build() { + UpdateExternalMysqlDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails body) { + updateExternalMySqlDatabaseDetails(body); + return this; + } + + /** + * Build the instance of UpdateExternalMysqlDatabaseRequest 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 UpdateExternalMysqlDatabaseRequest + */ + public UpdateExternalMysqlDatabaseRequest buildWithoutInvocationCallback() { + UpdateExternalMysqlDatabaseRequest request = new UpdateExternalMysqlDatabaseRequest(); + request.externalMySqlDatabaseId = externalMySqlDatabaseId; + request.updateExternalMySqlDatabaseDetails = updateExternalMySqlDatabaseDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateExternalMysqlDatabaseRequest(externalMySqlDatabaseId, + // updateExternalMySqlDatabaseDetails, 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() + .externalMySqlDatabaseId(externalMySqlDatabaseId) + .updateExternalMySqlDatabaseDetails(updateExternalMySqlDatabaseDetails) + .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(",externalMySqlDatabaseId=").append(String.valueOf(this.externalMySqlDatabaseId)); + sb.append(",updateExternalMySqlDatabaseDetails=") + .append(String.valueOf(this.updateExternalMySqlDatabaseDetails)); + 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 UpdateExternalMysqlDatabaseRequest)) { + return false; + } + + UpdateExternalMysqlDatabaseRequest other = (UpdateExternalMysqlDatabaseRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalMySqlDatabaseId, other.externalMySqlDatabaseId) + && java.util.Objects.equals( + this.updateExternalMySqlDatabaseDetails, + other.updateExternalMySqlDatabaseDetails) + && 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.externalMySqlDatabaseId == null + ? 43 + : this.externalMySqlDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.updateExternalMySqlDatabaseDetails == null + ? 43 + : this.updateExternalMySqlDatabaseDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.java new file mode 100644 index 00000000000..464c18318e5 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CheckExternalMySqlDatabaseConnectorConnectionStatusResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CheckExternalMySqlDatabaseConnectorConnectionStatusResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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 CheckExternalMySqlDatabaseConnectorConnectionStatusResponse( + 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< + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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(CheckExternalMySqlDatabaseConnectorConnectionStatusResponse 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 CheckExternalMySqlDatabaseConnectorConnectionStatusResponse build() { + return new CheckExternalMySqlDatabaseConnectorConnectionStatusResponse( + __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 CheckExternalMySqlDatabaseConnectorConnectionStatusResponse)) { + return false; + } + + CheckExternalMySqlDatabaseConnectorConnectionStatusResponse other = + (CheckExternalMySqlDatabaseConnectorConnectionStatusResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseConnectorResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseConnectorResponse.java new file mode 100644 index 00000000000..3479d459ad9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseConnectorResponse.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CreateExternalMySqlDatabaseConnectorResponse + 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; + } + + /** Location of the resource. */ + private String location; + + /** + * Location of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Content Location of the resource. */ + private String contentLocation; + + /** + * Content Location of the resource. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code ExternalMySqlDatabaseConnector} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector; + + /** + * The returned {@code ExternalMySqlDatabaseConnector} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + getExternalMySqlDatabaseConnector() { + return externalMySqlDatabaseConnector; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "location", + "contentLocation", + "etag", + "externalMySqlDatabaseConnector" + }) + private CreateExternalMySqlDatabaseConnectorResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.externalMySqlDatabaseConnector = externalMySqlDatabaseConnector; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateExternalMySqlDatabaseConnectorResponse> { + 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; + } + + /** 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; + } + + /** Content Location of the resource. */ + private String contentLocation; + + /** + * Content Location of the resource. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code ExternalMySqlDatabaseConnector} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector; + + /** + * The returned {@code ExternalMySqlDatabaseConnector} instance. + * + * @param externalMySqlDatabaseConnector the value to set + * @return this builder + */ + public Builder externalMySqlDatabaseConnector( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector) { + this.externalMySqlDatabaseConnector = externalMySqlDatabaseConnector; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateExternalMySqlDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + externalMySqlDatabaseConnector(o.getExternalMySqlDatabaseConnector()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateExternalMySqlDatabaseConnectorResponse build() { + return new CreateExternalMySqlDatabaseConnectorResponse( + __httpStatusCode__, + headers, + opcRequestId, + location, + contentLocation, + etag, + externalMySqlDatabaseConnector); + } + } + + /** + * 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",externalMySqlDatabaseConnector=") + .append(String.valueOf(externalMySqlDatabaseConnector)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExternalMySqlDatabaseConnectorResponse)) { + return false; + } + + CreateExternalMySqlDatabaseConnectorResponse other = + (CreateExternalMySqlDatabaseConnectorResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnector, other.externalMySqlDatabaseConnector); + } + + @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.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.externalMySqlDatabaseConnector == null + ? 43 + : this.externalMySqlDatabaseConnector.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseResponse.java new file mode 100644 index 00000000000..f928c17c2d9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateExternalMySqlDatabaseResponse.java @@ -0,0 +1,291 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CreateExternalMySqlDatabaseResponse 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; + } + + /** Content Location of the resource. */ + private String contentLocation; + + /** + * Content Location of the resource. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** The returned {@code ExternalMySqlDatabase} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase; + + /** + * The returned {@code ExternalMySqlDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase + getExternalMySqlDatabase() { + return externalMySqlDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "location", + "contentLocation", + "externalMySqlDatabase" + }) + private CreateExternalMySqlDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String location, + String contentLocation, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.externalMySqlDatabase = externalMySqlDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateExternalMySqlDatabaseResponse> { + 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; + } + + /** Content Location of the resource. */ + private String contentLocation; + + /** + * Content 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 ExternalMySqlDatabase} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase; + + /** + * The returned {@code ExternalMySqlDatabase} instance. + * + * @param externalMySqlDatabase the value to set + * @return this builder + */ + public Builder externalMySqlDatabase( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase + externalMySqlDatabase) { + this.externalMySqlDatabase = externalMySqlDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateExternalMySqlDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + externalMySqlDatabase(o.getExternalMySqlDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateExternalMySqlDatabaseResponse build() { + return new CreateExternalMySqlDatabaseResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + location, + contentLocation, + externalMySqlDatabase); + } + } + + /** + * 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(",externalMySqlDatabase=").append(String.valueOf(externalMySqlDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExternalMySqlDatabaseResponse)) { + return false; + } + + CreateExternalMySqlDatabaseResponse other = (CreateExternalMySqlDatabaseResponse) 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.externalMySqlDatabase, other.externalMySqlDatabase); + } + + @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.externalMySqlDatabase == null + ? 43 + : this.externalMySqlDatabase.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseConnectorResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseConnectorResponse.java new file mode 100644 index 00000000000..d4a08a570b1 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseConnectorResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DeleteExternalMySqlDatabaseConnectorResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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 DeleteExternalMySqlDatabaseConnectorResponse( + 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< + DeleteExternalMySqlDatabaseConnectorResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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(DeleteExternalMySqlDatabaseConnectorResponse 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 DeleteExternalMySqlDatabaseConnectorResponse build() { + return new DeleteExternalMySqlDatabaseConnectorResponse( + __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 DeleteExternalMySqlDatabaseConnectorResponse)) { + return false; + } + + DeleteExternalMySqlDatabaseConnectorResponse other = + (DeleteExternalMySqlDatabaseConnectorResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseResponse.java new file mode 100644 index 00000000000..d5bb3d35558 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteExternalMySqlDatabaseResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DeleteExternalMySqlDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteExternalMySqlDatabaseResponse( + 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< + DeleteExternalMySqlDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteExternalMySqlDatabaseResponse 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 DeleteExternalMySqlDatabaseResponse build() { + return new DeleteExternalMySqlDatabaseResponse( + __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 DeleteExternalMySqlDatabaseResponse)) { + return false; + } + + DeleteExternalMySqlDatabaseResponse other = (DeleteExternalMySqlDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMySqlDatabaseManagementResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMySqlDatabaseManagementResponse.java new file mode 100644 index 00000000000..c7dd249ec24 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMySqlDatabaseManagementResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalMySqlDatabaseManagementResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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 DisableExternalMySqlDatabaseManagementResponse( + 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< + DisableExternalMySqlDatabaseManagementResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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(DisableExternalMySqlDatabaseManagementResponse 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 DisableExternalMySqlDatabaseManagementResponse build() { + return new DisableExternalMySqlDatabaseManagementResponse( + __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 DisableExternalMySqlDatabaseManagementResponse)) { + return false; + } + + DisableExternalMySqlDatabaseManagementResponse other = + (DisableExternalMySqlDatabaseManagementResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMysqlAssociatedServiceResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMysqlAssociatedServiceResponse.java new file mode 100644 index 00000000000..4d0007f629f --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalMysqlAssociatedServiceResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalMysqlAssociatedServiceResponse + 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 DisableExternalMysqlAssociatedServiceResponse( + 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< + DisableExternalMysqlAssociatedServiceResponse> { + 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(DisableExternalMysqlAssociatedServiceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DisableExternalMysqlAssociatedServiceResponse build() { + return new DisableExternalMysqlAssociatedServiceResponse( + __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 DisableExternalMysqlAssociatedServiceResponse)) { + return false; + } + + DisableExternalMysqlAssociatedServiceResponse other = + (DisableExternalMysqlAssociatedServiceResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMySqlDatabaseManagementResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMySqlDatabaseManagementResponse.java new file mode 100644 index 00000000000..e25d769cade --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMySqlDatabaseManagementResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalMySqlDatabaseManagementResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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 EnableExternalMySqlDatabaseManagementResponse( + 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< + EnableExternalMySqlDatabaseManagementResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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(EnableExternalMySqlDatabaseManagementResponse 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 EnableExternalMySqlDatabaseManagementResponse build() { + return new EnableExternalMySqlDatabaseManagementResponse( + __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 EnableExternalMySqlDatabaseManagementResponse)) { + return false; + } + + EnableExternalMySqlDatabaseManagementResponse other = + (EnableExternalMySqlDatabaseManagementResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMysqlAssociatedServiceResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMysqlAssociatedServiceResponse.java new file mode 100644 index 00000000000..e69838f80fe --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalMysqlAssociatedServiceResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalMysqlAssociatedServiceResponse + 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 EnableExternalMysqlAssociatedServiceResponse( + 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< + EnableExternalMysqlAssociatedServiceResponse> { + 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(EnableExternalMysqlAssociatedServiceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public EnableExternalMysqlAssociatedServiceResponse build() { + return new EnableExternalMysqlAssociatedServiceResponse( + __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 EnableExternalMysqlAssociatedServiceResponse)) { + return false; + } + + EnableExternalMysqlAssociatedServiceResponse other = + (EnableExternalMysqlAssociatedServiceResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetBackupMetricsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetBackupMetricsResponse.java new file mode 100644 index 00000000000..50fb3de85fc --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetBackupMetricsResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseFleetBackupMetricsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DatabaseFleetBackupMetrics} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics + databaseFleetBackupMetrics; + + /** + * The returned {@code DatabaseFleetBackupMetrics} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics + getDatabaseFleetBackupMetrics() { + return databaseFleetBackupMetrics; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseFleetBackupMetrics" + }) + private GetDatabaseFleetBackupMetricsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics + databaseFleetBackupMetrics) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseFleetBackupMetrics = databaseFleetBackupMetrics; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseFleetBackupMetricsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseFleetBackupMetrics} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics + databaseFleetBackupMetrics; + + /** + * The returned {@code DatabaseFleetBackupMetrics} instance. + * + * @param databaseFleetBackupMetrics the value to set + * @return this builder + */ + public Builder databaseFleetBackupMetrics( + com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics + databaseFleetBackupMetrics) { + this.databaseFleetBackupMetrics = databaseFleetBackupMetrics; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDatabaseFleetBackupMetricsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseFleetBackupMetrics(o.getDatabaseFleetBackupMetrics()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDatabaseFleetBackupMetricsResponse build() { + return new GetDatabaseFleetBackupMetricsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseFleetBackupMetrics); + } + } + + /** + * 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(",databaseFleetBackupMetrics=") + .append(String.valueOf(databaseFleetBackupMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseFleetBackupMetricsResponse)) { + return false; + } + + GetDatabaseFleetBackupMetricsResponse other = (GetDatabaseFleetBackupMetricsResponse) 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.databaseFleetBackupMetrics, other.databaseFleetBackupMetrics); + } + + @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.databaseFleetBackupMetrics == null + ? 43 + : this.databaseFleetBackupMetrics.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetDataguardMetricsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetDataguardMetricsResponse.java new file mode 100644 index 00000000000..2a870ac27fb --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetDataguardMetricsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseFleetDataguardMetricsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DatabaseFleetDataguardMetrics} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics + databaseFleetDataguardMetrics; + + /** + * The returned {@code DatabaseFleetDataguardMetrics} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics + getDatabaseFleetDataguardMetrics() { + return databaseFleetDataguardMetrics; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseFleetDataguardMetrics" + }) + private GetDatabaseFleetDataguardMetricsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics + databaseFleetDataguardMetrics) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseFleetDataguardMetrics = databaseFleetDataguardMetrics; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseFleetDataguardMetricsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseFleetDataguardMetrics} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics + databaseFleetDataguardMetrics; + + /** + * The returned {@code DatabaseFleetDataguardMetrics} instance. + * + * @param databaseFleetDataguardMetrics the value to set + * @return this builder + */ + public Builder databaseFleetDataguardMetrics( + com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics + databaseFleetDataguardMetrics) { + this.databaseFleetDataguardMetrics = databaseFleetDataguardMetrics; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDatabaseFleetDataguardMetricsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseFleetDataguardMetrics(o.getDatabaseFleetDataguardMetrics()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDatabaseFleetDataguardMetricsResponse build() { + return new GetDatabaseFleetDataguardMetricsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseFleetDataguardMetrics); + } + } + + /** + * 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(",databaseFleetDataguardMetrics=") + .append(String.valueOf(databaseFleetDataguardMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseFleetDataguardMetricsResponse)) { + return false; + } + + GetDatabaseFleetDataguardMetricsResponse other = + (GetDatabaseFleetDataguardMetricsResponse) 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.databaseFleetDataguardMetrics, other.databaseFleetDataguardMetrics); + } + + @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.databaseFleetDataguardMetrics == null + ? 43 + : this.databaseFleetDataguardMetrics.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetHaOverviewMetricsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetHaOverviewMetricsResponse.java new file mode 100644 index 00000000000..02e94bdce21 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseFleetHaOverviewMetricsResponse.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseFleetHaOverviewMetricsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DatabaseFleetHaOverviewMetrics} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + databaseFleetHaOverviewMetrics; + + /** + * The returned {@code DatabaseFleetHaOverviewMetrics} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + getDatabaseFleetHaOverviewMetrics() { + return databaseFleetHaOverviewMetrics; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "databaseFleetHaOverviewMetrics" + }) + private GetDatabaseFleetHaOverviewMetricsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + databaseFleetHaOverviewMetrics) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.databaseFleetHaOverviewMetrics = databaseFleetHaOverviewMetrics; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseFleetHaOverviewMetricsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseFleetHaOverviewMetrics} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + databaseFleetHaOverviewMetrics; + + /** + * The returned {@code DatabaseFleetHaOverviewMetrics} instance. + * + * @param databaseFleetHaOverviewMetrics the value to set + * @return this builder + */ + public Builder databaseFleetHaOverviewMetrics( + com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics + databaseFleetHaOverviewMetrics) { + this.databaseFleetHaOverviewMetrics = databaseFleetHaOverviewMetrics; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDatabaseFleetHaOverviewMetricsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + databaseFleetHaOverviewMetrics(o.getDatabaseFleetHaOverviewMetrics()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDatabaseFleetHaOverviewMetricsResponse build() { + return new GetDatabaseFleetHaOverviewMetricsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + databaseFleetHaOverviewMetrics); + } + } + + /** + * 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(",databaseFleetHaOverviewMetrics=") + .append(String.valueOf(databaseFleetHaOverviewMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseFleetHaOverviewMetricsResponse)) { + return false; + } + + GetDatabaseFleetHaOverviewMetricsResponse other = + (GetDatabaseFleetHaOverviewMetricsResponse) 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.databaseFleetHaOverviewMetrics, other.databaseFleetHaOverviewMetrics); + } + + @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.databaseFleetHaOverviewMetrics == null + ? 43 + : this.databaseFleetHaOverviewMetrics.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseHaBackupDetailsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseHaBackupDetailsResponse.java new file mode 100644 index 00000000000..4b4cc260a58 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDatabaseHaBackupDetailsResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDatabaseHaBackupDetailsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code DatabaseHaBackupDetails} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails databaseHaBackupDetails; + + /** + * The returned {@code DatabaseHaBackupDetails} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails + getDatabaseHaBackupDetails() { + return databaseHaBackupDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "databaseHaBackupDetails" + }) + private GetDatabaseHaBackupDetailsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails + databaseHaBackupDetails) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.databaseHaBackupDetails = databaseHaBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseHaBackupDetailsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DatabaseHaBackupDetails} instance. */ + private com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails + databaseHaBackupDetails; + + /** + * The returned {@code DatabaseHaBackupDetails} instance. + * + * @param databaseHaBackupDetails the value to set + * @return this builder + */ + public Builder databaseHaBackupDetails( + com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails + databaseHaBackupDetails) { + this.databaseHaBackupDetails = databaseHaBackupDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDatabaseHaBackupDetailsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + databaseHaBackupDetails(o.getDatabaseHaBackupDetails()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDatabaseHaBackupDetailsResponse build() { + return new GetDatabaseHaBackupDetailsResponse( + __httpStatusCode__, headers, opcRequestId, databaseHaBackupDetails); + } + } + + /** + * 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(",databaseHaBackupDetails=").append(String.valueOf(databaseHaBackupDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDatabaseHaBackupDetailsResponse)) { + return false; + } + + GetDatabaseHaBackupDetailsResponse other = (GetDatabaseHaBackupDetailsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.databaseHaBackupDetails, other.databaseHaBackupDetails); + } + + @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.databaseHaBackupDetails == null + ? 43 + : this.databaseHaBackupDetails.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseConnectorResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseConnectorResponse.java new file mode 100644 index 00000000000..6f420a28f63 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseConnectorResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetExternalMySqlDatabaseConnectorResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code ExternalMySqlDatabaseConnector} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector; + + /** + * The returned {@code ExternalMySqlDatabaseConnector} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + getExternalMySqlDatabaseConnector() { + return externalMySqlDatabaseConnector; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "externalMySqlDatabaseConnector" + }) + private GetExternalMySqlDatabaseConnectorResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.externalMySqlDatabaseConnector = externalMySqlDatabaseConnector; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetExternalMySqlDatabaseConnectorResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code ExternalMySqlDatabaseConnector} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector; + + /** + * The returned {@code ExternalMySqlDatabaseConnector} instance. + * + * @param externalMySqlDatabaseConnector the value to set + * @return this builder + */ + public Builder externalMySqlDatabaseConnector( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector) { + this.externalMySqlDatabaseConnector = externalMySqlDatabaseConnector; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetExternalMySqlDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + externalMySqlDatabaseConnector(o.getExternalMySqlDatabaseConnector()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetExternalMySqlDatabaseConnectorResponse build() { + return new GetExternalMySqlDatabaseConnectorResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + externalMySqlDatabaseConnector); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",externalMySqlDatabaseConnector=") + .append(String.valueOf(externalMySqlDatabaseConnector)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetExternalMySqlDatabaseConnectorResponse)) { + return false; + } + + GetExternalMySqlDatabaseConnectorResponse other = + (GetExternalMySqlDatabaseConnectorResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnector, other.externalMySqlDatabaseConnector); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.externalMySqlDatabaseConnector == null + ? 43 + : this.externalMySqlDatabaseConnector.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseResponse.java new file mode 100644 index 00000000000..c784b9c00e5 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetExternalMySqlDatabaseResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetExternalMySqlDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code ExternalMySqlDatabase} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase; + + /** + * The returned {@code ExternalMySqlDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase + getExternalMySqlDatabase() { + return externalMySqlDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "externalMySqlDatabase" + }) + private GetExternalMySqlDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.externalMySqlDatabase = externalMySqlDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetExternalMySqlDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code ExternalMySqlDatabase} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase; + + /** + * The returned {@code ExternalMySqlDatabase} instance. + * + * @param externalMySqlDatabase the value to set + * @return this builder + */ + public Builder externalMySqlDatabase( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase + externalMySqlDatabase) { + this.externalMySqlDatabase = externalMySqlDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetExternalMySqlDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + externalMySqlDatabase(o.getExternalMySqlDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetExternalMySqlDatabaseResponse build() { + return new GetExternalMySqlDatabaseResponse( + __httpStatusCode__, headers, opcRequestId, etag, externalMySqlDatabase); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",externalMySqlDatabase=").append(String.valueOf(externalMySqlDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetExternalMySqlDatabaseResponse)) { + return false; + } + + GetExternalMySqlDatabaseResponse other = (GetExternalMySqlDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.externalMySqlDatabase, other.externalMySqlDatabase); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.externalMySqlDatabase == null + ? 43 + : this.externalMySqlDatabase.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListExternalMySqlDatabasesResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListExternalMySqlDatabasesResponse.java new file mode 100644 index 00000000000..3fadbd52db2 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListExternalMySqlDatabasesResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ListExternalMySqlDatabasesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ExternalMySqlDatabaseCollection} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + externalMySqlDatabaseCollection; + + /** + * The returned {@code ExternalMySqlDatabaseCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + getExternalMySqlDatabaseCollection() { + return externalMySqlDatabaseCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "externalMySqlDatabaseCollection" + }) + private ListExternalMySqlDatabasesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + externalMySqlDatabaseCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.externalMySqlDatabaseCollection = externalMySqlDatabaseCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListExternalMySqlDatabasesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ExternalMySqlDatabaseCollection} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + externalMySqlDatabaseCollection; + + /** + * The returned {@code ExternalMySqlDatabaseCollection} instance. + * + * @param externalMySqlDatabaseCollection the value to set + * @return this builder + */ + public Builder externalMySqlDatabaseCollection( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection + externalMySqlDatabaseCollection) { + this.externalMySqlDatabaseCollection = externalMySqlDatabaseCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListExternalMySqlDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + externalMySqlDatabaseCollection(o.getExternalMySqlDatabaseCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListExternalMySqlDatabasesResponse build() { + return new ListExternalMySqlDatabasesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + externalMySqlDatabaseCollection); + } + } + + /** + * 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(",externalMySqlDatabaseCollection=") + .append(String.valueOf(externalMySqlDatabaseCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListExternalMySqlDatabasesResponse)) { + return false; + } + + ListExternalMySqlDatabasesResponse other = (ListExternalMySqlDatabasesResponse) 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.externalMySqlDatabaseCollection, + other.externalMySqlDatabaseCollection); + } + + @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.externalMySqlDatabaseCollection == null + ? 43 + : this.externalMySqlDatabaseCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListMySqlDatabaseConnectorsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListMySqlDatabaseConnectorsResponse.java new file mode 100644 index 00000000000..ccb9fb1febb --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListMySqlDatabaseConnectorsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ListMySqlDatabaseConnectorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code MySqlConnectorCollection} instance. */ + private com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection + mySqlConnectorCollection; + + /** + * The returned {@code MySqlConnectorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection + getMySqlConnectorCollection() { + return mySqlConnectorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "mySqlConnectorCollection" + }) + private ListMySqlDatabaseConnectorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection + mySqlConnectorCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.mySqlConnectorCollection = mySqlConnectorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListMySqlDatabaseConnectorsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code MySqlConnectorCollection} instance. */ + private com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection + mySqlConnectorCollection; + + /** + * The returned {@code MySqlConnectorCollection} instance. + * + * @param mySqlConnectorCollection the value to set + * @return this builder + */ + public Builder mySqlConnectorCollection( + com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection + mySqlConnectorCollection) { + this.mySqlConnectorCollection = mySqlConnectorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListMySqlDatabaseConnectorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + mySqlConnectorCollection(o.getMySqlConnectorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListMySqlDatabaseConnectorsResponse build() { + return new ListMySqlDatabaseConnectorsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + mySqlConnectorCollection); + } + } + + /** + * 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(",mySqlConnectorCollection=").append(String.valueOf(mySqlConnectorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMySqlDatabaseConnectorsResponse)) { + return false; + } + + ListMySqlDatabaseConnectorsResponse other = (ListMySqlDatabaseConnectorsResponse) 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.mySqlConnectorCollection, other.mySqlConnectorCollection); + } + + @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.mySqlConnectorCollection == null + ? 43 + : this.mySqlConnectorCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseConnectorResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseConnectorResponse.java new file mode 100644 index 00000000000..6434e96dda8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseConnectorResponse.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class UpdateExternalMysqlDatabaseConnectorResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code ExternalMySqlDatabaseConnector} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector; + + /** + * The returned {@code ExternalMySqlDatabaseConnector} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + getExternalMySqlDatabaseConnector() { + return externalMySqlDatabaseConnector; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "etag", + "externalMySqlDatabaseConnector" + }) + private UpdateExternalMysqlDatabaseConnectorResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId, + String etag, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.externalMySqlDatabaseConnector = externalMySqlDatabaseConnector; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateExternalMysqlDatabaseConnectorResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code ExternalMySqlDatabaseConnector} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector; + + /** + * The returned {@code ExternalMySqlDatabaseConnector} instance. + * + * @param externalMySqlDatabaseConnector the value to set + * @return this builder + */ + public Builder externalMySqlDatabaseConnector( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector + externalMySqlDatabaseConnector) { + this.externalMySqlDatabaseConnector = externalMySqlDatabaseConnector; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateExternalMysqlDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + externalMySqlDatabaseConnector(o.getExternalMySqlDatabaseConnector()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateExternalMysqlDatabaseConnectorResponse build() { + return new UpdateExternalMysqlDatabaseConnectorResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + etag, + externalMySqlDatabaseConnector); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",externalMySqlDatabaseConnector=") + .append(String.valueOf(externalMySqlDatabaseConnector)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExternalMysqlDatabaseConnectorResponse)) { + return false; + } + + UpdateExternalMysqlDatabaseConnectorResponse other = + (UpdateExternalMysqlDatabaseConnectorResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.externalMySqlDatabaseConnector, other.externalMySqlDatabaseConnector); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.externalMySqlDatabaseConnector == null + ? 43 + : this.externalMySqlDatabaseConnector.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseResponse.java new file mode 100644 index 00000000000..5c5045814ca --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateExternalMysqlDatabaseResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class UpdateExternalMysqlDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code ExternalMySqlDatabase} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase; + + /** + * The returned {@code ExternalMySqlDatabase} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase + getExternalMySqlDatabase() { + return externalMySqlDatabase; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "externalMySqlDatabase" + }) + private UpdateExternalMysqlDatabaseResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.externalMySqlDatabase = externalMySqlDatabase; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateExternalMysqlDatabaseResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code ExternalMySqlDatabase} instance. */ + private com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase externalMySqlDatabase; + + /** + * The returned {@code ExternalMySqlDatabase} instance. + * + * @param externalMySqlDatabase the value to set + * @return this builder + */ + public Builder externalMySqlDatabase( + com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase + externalMySqlDatabase) { + this.externalMySqlDatabase = externalMySqlDatabase; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateExternalMysqlDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + externalMySqlDatabase(o.getExternalMySqlDatabase()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateExternalMysqlDatabaseResponse build() { + return new UpdateExternalMysqlDatabaseResponse( + __httpStatusCode__, headers, opcRequestId, etag, externalMySqlDatabase); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",externalMySqlDatabase=").append(String.valueOf(externalMySqlDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExternalMysqlDatabaseResponse)) { + return false; + } + + UpdateExternalMysqlDatabaseResponse other = (UpdateExternalMysqlDatabaseResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.externalMySqlDatabase, other.externalMySqlDatabase); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.externalMySqlDatabase == null + ? 43 + : this.externalMySqlDatabase.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json index f92195d1b8b..5012380840f 100644 --- a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json +++ b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json @@ -882,6 +882,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BaseDatabaseHaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BaseDatabaseHaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.BasicDatabaseConnectionStringDetails", @@ -1330,6 +1344,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateExternalMySqlDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.CreateJobDetails", @@ -1351,6 +1393,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateMySqlDatabaseConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateMySqlDatabaseConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails", @@ -1507,6 +1563,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseBackupMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseBackupMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseBackupSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseBackupSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseBackupSummary$BackupDestination", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseConnectionCredentailsByName", @@ -1694,6 +1784,48 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetBackupMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetDataguardMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetHaOverviewMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetHealthMetrics", @@ -1708,6 +1840,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseHaBackupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseHaMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseHaMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseHomeMetricDefinition", @@ -1736,6 +1896,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseHostedIn", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseIOAggregateMetrics", @@ -2150,6 +2316,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DataguardMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DataguardMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DataguardPerformanceMetrics", @@ -2341,6 +2521,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalMysqlAssociatedServiceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DisableExternalNonContainerDatabaseManagementFeatureDetails", @@ -2728,6 +2922,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalDatabaseManagementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.EnableExternalDbSystemDatabaseManagementDetails", @@ -2782,6 +2990,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalMysqlAssociatedServiceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.EnableExternalNonContainerDatabaseManagementFeatureDetails", @@ -2871,6 +3093,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExadataInfrastructureLifecycleStateValues", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExadataInfrastructureLifecycleStateValues$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExadataInfrastructureLifecycleStateValues$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExecutionPlanStatsComparision", @@ -4194,6 +4436,68 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseConnector$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMySqlDatabaseSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalMysqlAssociatedServiceName", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails", @@ -4403,6 +4707,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.HaMetricDefinition", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.HaMetricDefinition$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.HeatWaveClusterStatus", @@ -5213,6 +5531,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ManagementState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.MdsType", @@ -5393,6 +5717,32 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlConnectorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlConnectorType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlCredType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.MySqlDataCollection", @@ -5421,6 +5771,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlDatabaseConnectorSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlDatabaseConnectorSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.MySqlDatabaseStatus", @@ -5517,6 +5881,18 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlNetworkProtocolType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MySqlType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.NamedCredential", @@ -7334,6 +7710,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.StandByDatabaseDataguardMetrics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.StandByDatabaseDataguardMetrics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.StartSqlTuningTaskDetails", @@ -8205,6 +8595,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateExternalMySqlDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.UpdateJobDetails", @@ -8240,6 +8658,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateMySqlDatabaseConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateMySqlDatabaseConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails", diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index bbebced10f3..138c8e6355d 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 7b77d44af26..1c7ea08cf4f 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index e3b01b671f7..b3073539cfc 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 398683a1968..38a086d1235 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index f2c93620986..d99090cbaf1 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 8a15d73b9f4..addc11508ed 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index c39a3e1f48f..accb7b57c8d 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index d7da1d25477..dea63a6fa2b 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index f30400707d1..8ff118ab6dd 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index b5d339c0e99..41c71a13430 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index d695e782de5..77a8d53f407 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 0dc06893a09..b0d323b26b2 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 65c0da45fb4..43a90eae6f7 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 18d834419b7..25f0fd2ab3a 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java index c09b9d65ce4..a0bc44e1e0c 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java @@ -46,6 +46,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDrProtectionGroupMemberVolumeGroupDetails.class, name = "VOLUME_GROUP"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDrProtectionGroupMemberOkeClusterDetails.class, + name = "OKE_CLUSTER"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDrProtectionGroupMemberFileSystemDetails.class, name = "FILE_SYSTEM"), diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberOkeClusterDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberOkeClusterDetails.java new file mode 100644 index 00000000000..5eb1c9ae797 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberOkeClusterDetails.java @@ -0,0 +1,547 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDrProtectionGroupMemberOkeClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDrProtectionGroupMemberOkeClusterDetails + extends CreateDrProtectionGroupMemberDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both + * the primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerClusterId") + private String peerClusterId; + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both + * the primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + * + * @param peerClusterId the value to set + * @return this builder + */ + public Builder peerClusterId(String peerClusterId) { + this.peerClusterId = peerClusterId; + this.__explicitlySet__.add("peerClusterId"); + return this; + } + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's + * Run Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("jumpHostId") + private String jumpHostId; + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's + * Run Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + * + * @param jumpHostId the value to set + * @return this builder + */ + public Builder jumpHostId(String jumpHostId) { + this.jumpHostId = jumpHostId; + this.__explicitlySet__.add("jumpHostId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupLocation") + private CreateOkeBackupLocationDetails backupLocation; + + public Builder backupLocation(CreateOkeBackupLocationDetails backupLocation) { + this.backupLocation = backupLocation; + this.__explicitlySet__.add("backupLocation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private CreateOkeClusterBackupConfigDetails backupConfig; + + public Builder backupConfig(CreateOkeClusterBackupConfigDetails backupConfig) { + this.backupConfig = backupConfig; + this.__explicitlySet__.add("backupConfig"); + return this; + } + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerMappings") + private java.util.List loadBalancerMappings; + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @param loadBalancerMappings the value to set + * @return this builder + */ + public Builder loadBalancerMappings( + java.util.List loadBalancerMappings) { + this.loadBalancerMappings = loadBalancerMappings; + this.__explicitlySet__.add("loadBalancerMappings"); + return this; + } + /** + * The list of source-to-destination network load balancer mappings required for DR + * operations. This property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkLoadBalancerMappings") + private java.util.List + networkLoadBalancerMappings; + + /** + * The list of source-to-destination network load balancer mappings required for DR + * operations. This property applies to the OKE cluster member in primary region. + * + * @param networkLoadBalancerMappings the value to set + * @return this builder + */ + public Builder networkLoadBalancerMappings( + java.util.List + networkLoadBalancerMappings) { + this.networkLoadBalancerMappings = networkLoadBalancerMappings; + this.__explicitlySet__.add("networkLoadBalancerMappings"); + return this; + } + /** + * The list of source-to-destination vault mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultMappings") + private java.util.List vaultMappings; + + /** + * The list of source-to-destination vault mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @param vaultMappings the value to set + * @return this builder + */ + public Builder vaultMappings( + java.util.List vaultMappings) { + this.vaultMappings = vaultMappings; + this.__explicitlySet__.add("vaultMappings"); + return this; + } + /** + * The list of managed node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedNodePoolConfigs") + private java.util.List + managedNodePoolConfigs; + + /** + * The list of managed node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + * + * @param managedNodePoolConfigs the value to set + * @return this builder + */ + public Builder managedNodePoolConfigs( + java.util.List + managedNodePoolConfigs) { + this.managedNodePoolConfigs = managedNodePoolConfigs; + this.__explicitlySet__.add("managedNodePoolConfigs"); + return this; + } + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolConfigs") + private java.util.List + virtualNodePoolConfigs; + + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + * + * @param virtualNodePoolConfigs the value to set + * @return this builder + */ + public Builder virtualNodePoolConfigs( + java.util.List + virtualNodePoolConfigs) { + this.virtualNodePoolConfigs = virtualNodePoolConfigs; + this.__explicitlySet__.add("virtualNodePoolConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDrProtectionGroupMemberOkeClusterDetails build() { + CreateDrProtectionGroupMemberOkeClusterDetails model = + new CreateDrProtectionGroupMemberOkeClusterDetails( + this.memberId, + this.peerClusterId, + this.jumpHostId, + this.backupLocation, + this.backupConfig, + this.loadBalancerMappings, + this.networkLoadBalancerMappings, + this.vaultMappings, + this.managedNodePoolConfigs, + this.virtualNodePoolConfigs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDrProtectionGroupMemberOkeClusterDetails model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("peerClusterId")) { + this.peerClusterId(model.getPeerClusterId()); + } + if (model.wasPropertyExplicitlySet("jumpHostId")) { + this.jumpHostId(model.getJumpHostId()); + } + if (model.wasPropertyExplicitlySet("backupLocation")) { + this.backupLocation(model.getBackupLocation()); + } + if (model.wasPropertyExplicitlySet("backupConfig")) { + this.backupConfig(model.getBackupConfig()); + } + if (model.wasPropertyExplicitlySet("loadBalancerMappings")) { + this.loadBalancerMappings(model.getLoadBalancerMappings()); + } + if (model.wasPropertyExplicitlySet("networkLoadBalancerMappings")) { + this.networkLoadBalancerMappings(model.getNetworkLoadBalancerMappings()); + } + if (model.wasPropertyExplicitlySet("vaultMappings")) { + this.vaultMappings(model.getVaultMappings()); + } + if (model.wasPropertyExplicitlySet("managedNodePoolConfigs")) { + this.managedNodePoolConfigs(model.getManagedNodePoolConfigs()); + } + if (model.wasPropertyExplicitlySet("virtualNodePoolConfigs")) { + this.virtualNodePoolConfigs(model.getVirtualNodePoolConfigs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDrProtectionGroupMemberOkeClusterDetails( + String memberId, + String peerClusterId, + String jumpHostId, + CreateOkeBackupLocationDetails backupLocation, + CreateOkeClusterBackupConfigDetails backupConfig, + java.util.List loadBalancerMappings, + java.util.List + networkLoadBalancerMappings, + java.util.List vaultMappings, + java.util.List + managedNodePoolConfigs, + java.util.List + virtualNodePoolConfigs) { + super(memberId); + this.peerClusterId = peerClusterId; + this.jumpHostId = jumpHostId; + this.backupLocation = backupLocation; + this.backupConfig = backupConfig; + this.loadBalancerMappings = loadBalancerMappings; + this.networkLoadBalancerMappings = networkLoadBalancerMappings; + this.vaultMappings = vaultMappings; + this.managedNodePoolConfigs = managedNodePoolConfigs; + this.virtualNodePoolConfigs = virtualNodePoolConfigs; + } + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both the + * primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerClusterId") + private final String peerClusterId; + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both the + * primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + * + * @return the value + */ + public String getPeerClusterId() { + return peerClusterId; + } + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's Run + * Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("jumpHostId") + private final String jumpHostId; + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's Run + * Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + * + * @return the value + */ + public String getJumpHostId() { + return jumpHostId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupLocation") + private final CreateOkeBackupLocationDetails backupLocation; + + public CreateOkeBackupLocationDetails getBackupLocation() { + return backupLocation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private final CreateOkeClusterBackupConfigDetails backupConfig; + + public CreateOkeClusterBackupConfigDetails getBackupConfig() { + return backupConfig; + } + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerMappings") + private final java.util.List loadBalancerMappings; + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getLoadBalancerMappings() { + return loadBalancerMappings; + } + + /** + * The list of source-to-destination network load balancer mappings required for DR operations. + * This property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkLoadBalancerMappings") + private final java.util.List + networkLoadBalancerMappings; + + /** + * The list of source-to-destination network load balancer mappings required for DR operations. + * This property applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List + getNetworkLoadBalancerMappings() { + return networkLoadBalancerMappings; + } + + /** + * The list of source-to-destination vault mappings required for DR operations. This property + * applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultMappings") + private final java.util.List vaultMappings; + + /** + * The list of source-to-destination vault mappings required for DR operations. This property + * applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getVaultMappings() { + return vaultMappings; + } + + /** + * The list of managed node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedNodePoolConfigs") + private final java.util.List + managedNodePoolConfigs; + + /** + * The list of managed node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public java.util.List + getManagedNodePoolConfigs() { + return managedNodePoolConfigs; + } + + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolConfigs") + private final java.util.List + virtualNodePoolConfigs; + + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public java.util.List + getVirtualNodePoolConfigs() { + return virtualNodePoolConfigs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDrProtectionGroupMemberOkeClusterDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", peerClusterId=").append(String.valueOf(this.peerClusterId)); + sb.append(", jumpHostId=").append(String.valueOf(this.jumpHostId)); + sb.append(", backupLocation=").append(String.valueOf(this.backupLocation)); + sb.append(", backupConfig=").append(String.valueOf(this.backupConfig)); + sb.append(", loadBalancerMappings=").append(String.valueOf(this.loadBalancerMappings)); + sb.append(", networkLoadBalancerMappings=") + .append(String.valueOf(this.networkLoadBalancerMappings)); + sb.append(", vaultMappings=").append(String.valueOf(this.vaultMappings)); + sb.append(", managedNodePoolConfigs=").append(String.valueOf(this.managedNodePoolConfigs)); + sb.append(", virtualNodePoolConfigs=").append(String.valueOf(this.virtualNodePoolConfigs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDrProtectionGroupMemberOkeClusterDetails)) { + return false; + } + + CreateDrProtectionGroupMemberOkeClusterDetails other = + (CreateDrProtectionGroupMemberOkeClusterDetails) o; + return java.util.Objects.equals(this.peerClusterId, other.peerClusterId) + && java.util.Objects.equals(this.jumpHostId, other.jumpHostId) + && java.util.Objects.equals(this.backupLocation, other.backupLocation) + && java.util.Objects.equals(this.backupConfig, other.backupConfig) + && java.util.Objects.equals(this.loadBalancerMappings, other.loadBalancerMappings) + && java.util.Objects.equals( + this.networkLoadBalancerMappings, other.networkLoadBalancerMappings) + && java.util.Objects.equals(this.vaultMappings, other.vaultMappings) + && java.util.Objects.equals( + this.managedNodePoolConfigs, other.managedNodePoolConfigs) + && java.util.Objects.equals( + this.virtualNodePoolConfigs, other.virtualNodePoolConfigs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.peerClusterId == null ? 43 : this.peerClusterId.hashCode()); + result = (result * PRIME) + (this.jumpHostId == null ? 43 : this.jumpHostId.hashCode()); + result = + (result * PRIME) + + (this.backupLocation == null ? 43 : this.backupLocation.hashCode()); + result = (result * PRIME) + (this.backupConfig == null ? 43 : this.backupConfig.hashCode()); + result = + (result * PRIME) + + (this.loadBalancerMappings == null + ? 43 + : this.loadBalancerMappings.hashCode()); + result = + (result * PRIME) + + (this.networkLoadBalancerMappings == null + ? 43 + : this.networkLoadBalancerMappings.hashCode()); + result = + (result * PRIME) + + (this.vaultMappings == null ? 43 : this.vaultMappings.hashCode()); + result = + (result * PRIME) + + (this.managedNodePoolConfigs == null + ? 43 + : this.managedNodePoolConfigs.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolConfigs == null + ? 43 + : this.virtualNodePoolConfigs.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeBackupLocationDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeBackupLocationDetails.java new file mode 100644 index 00000000000..c84834c952b --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeBackupLocationDetails.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The details for creating the backup location of an OKE Cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeBackupLocationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeBackupLocationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "bucket"}) + public CreateOkeBackupLocationDetails(String namespace, String bucket) { + super(); + this.namespace = namespace; + this.bucket = bucket; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The namespace in the object storage bucket location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The namespace in the object storage bucket location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + * + * @param bucket the value to set + * @return this builder + */ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeBackupLocationDetails build() { + CreateOkeBackupLocationDetails model = + new CreateOkeBackupLocationDetails(this.namespace, this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeBackupLocationDetails model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The namespace in the object storage bucket location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The namespace in the object storage bucket location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + * + * @return the value + */ + public String getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeBackupLocationDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeBackupLocationDetails)) { + return false; + } + + CreateOkeBackupLocationDetails other = (CreateOkeBackupLocationDetails) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.bucket, other.bucket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterBackupConfigDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterBackupConfigDetails.java new file mode 100644 index 00000000000..15cafa80c9b --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterBackupConfigDetails.java @@ -0,0 +1,447 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create backup configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeClusterBackupConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeClusterBackupConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "namespaces", + "backupSchedule", + "replicateImages", + "maxNumberOfBackupsRetained", + "imageReplicationVaultSecretId" + }) + public CreateOkeClusterBackupConfigDetails( + java.util.List namespaces, + String backupSchedule, + OkeClusterImageReplication replicateImages, + Integer maxNumberOfBackupsRetained, + String imageReplicationVaultSecretId) { + super(); + this.namespaces = namespaces; + this.backupSchedule = backupSchedule; + this.replicateImages = replicateImages; + this.maxNumberOfBackupsRetained = maxNumberOfBackupsRetained; + this.imageReplicationVaultSecretId = imageReplicationVaultSecretId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to + * the OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaces") + private java.util.List namespaces; + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to + * the OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + * + * @param namespaces the value to set + * @return this builder + */ + public Builder namespaces(java.util.List namespaces) { + this.namespaces = namespaces; + this.__explicitlySet__.add("namespaces"); + return this; + } + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is + * not specified, only a single backup will be created. This format of the string specifying + * the backup schedule must conform with RFC-5545 (see examples below). This schedule will + * use the UTC timezone. This property applies to the OKE cluster member in primary region. + * + *

The backup frequency can be HOURLY, DAILY, WEEKLY or MONTHLY, and the upper and lower + * interval bounds are as follows HOURLY - Minimum = 1 - Maximum = 24 DAILY - Minimum = 1 - + * Maximum = 30 WEEKLY - Minimum = 1 - Maximum = 1 MONTHLY - Minimum = 1 - Maximum = 12 + * + *

Examples: FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=1 -> Run a backup every week on + * monday and wednesday at 10:00 AM. FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=2 -> Invalid + * configuration (can not specify interval of 2). + * + *

FREQ=HOURLY;INTERVAL=25 -> Invalid configuration (can not specify interval of 25). + * FREQ=HOURLY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=HOURLY;INTERVAL=24 -> Run a backup every 24 hours. FREQ=HOURLY;INTERVAL=1 -> Run a + * backup every hour. FREQ=HOURLY;BYMINUTE=30;INTERVAL=15 -> Run a backup every 15 hours at + * the 30th minute. + * + *

FREQ=DAILY;INTERVAL=31 -> Invalid configuration (can not specify interval of 31). + * FREQ=DAILY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=DAILY;INTERVAL=30 -> Run a backup every 30 days at 12:00 midnight. + * FREQ=DAILY;BYHOUR=17;BYMINUTE=10;INTERVAL=1 -> Run a backup every day at 05:10 PM. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSchedule") + private String backupSchedule; + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is + * not specified, only a single backup will be created. This format of the string specifying + * the backup schedule must conform with RFC-5545 (see examples below). This schedule will + * use the UTC timezone. This property applies to the OKE cluster member in primary region. + * + *

The backup frequency can be HOURLY, DAILY, WEEKLY or MONTHLY, and the upper and lower + * interval bounds are as follows HOURLY - Minimum = 1 - Maximum = 24 DAILY - Minimum = 1 - + * Maximum = 30 WEEKLY - Minimum = 1 - Maximum = 1 MONTHLY - Minimum = 1 - Maximum = 12 + * + *

Examples: FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=1 -> Run a backup every week on + * monday and wednesday at 10:00 AM. FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=2 -> Invalid + * configuration (can not specify interval of 2). + * + *

FREQ=HOURLY;INTERVAL=25 -> Invalid configuration (can not specify interval of 25). + * FREQ=HOURLY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=HOURLY;INTERVAL=24 -> Run a backup every 24 hours. FREQ=HOURLY;INTERVAL=1 -> Run a + * backup every hour. FREQ=HOURLY;BYMINUTE=30;INTERVAL=15 -> Run a backup every 15 hours at + * the 30th minute. + * + *

FREQ=DAILY;INTERVAL=31 -> Invalid configuration (can not specify interval of 31). + * FREQ=DAILY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=DAILY;INTERVAL=30 -> Run a backup every 30 days at 12:00 midnight. + * FREQ=DAILY;BYHOUR=17;BYMINUTE=10;INTERVAL=1 -> Run a backup every day at 05:10 PM. + * + * @param backupSchedule the value to set + * @return this builder + */ + public Builder backupSchedule(String backupSchedule) { + this.backupSchedule = backupSchedule; + this.__explicitlySet__.add("backupSchedule"); + return this; + } + /** + * Controls the behaviour of image replication across regions. Image replication is enabled + * by default for DR Protection Groups with a primary role. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicateImages") + private OkeClusterImageReplication replicateImages; + + /** + * Controls the behaviour of image replication across regions. Image replication is enabled + * by default for DR Protection Groups with a primary role. This property applies to the OKE + * cluster member in primary region. + * + * @param replicateImages the value to set + * @return this builder + */ + public Builder replicateImages(OkeClusterImageReplication replicateImages) { + this.replicateImages = replicateImages; + this.__explicitlySet__.add("replicateImages"); + return this; + } + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxNumberOfBackupsRetained") + private Integer maxNumberOfBackupsRetained; + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + * + * @param maxNumberOfBackupsRetained the value to set + * @return this builder + */ + public Builder maxNumberOfBackupsRetained(Integer maxNumberOfBackupsRetained) { + this.maxNumberOfBackupsRetained = maxNumberOfBackupsRetained; + this.__explicitlySet__.add("maxNumberOfBackupsRetained"); + return this; + } + /** + * The OCID of the vault secret that stores the image credential. This property applies to + * the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageReplicationVaultSecretId") + private String imageReplicationVaultSecretId; + + /** + * The OCID of the vault secret that stores the image credential. This property applies to + * the OKE cluster member in both the primary and standby region. + * + * @param imageReplicationVaultSecretId the value to set + * @return this builder + */ + public Builder imageReplicationVaultSecretId(String imageReplicationVaultSecretId) { + this.imageReplicationVaultSecretId = imageReplicationVaultSecretId; + this.__explicitlySet__.add("imageReplicationVaultSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeClusterBackupConfigDetails build() { + CreateOkeClusterBackupConfigDetails model = + new CreateOkeClusterBackupConfigDetails( + this.namespaces, + this.backupSchedule, + this.replicateImages, + this.maxNumberOfBackupsRetained, + this.imageReplicationVaultSecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeClusterBackupConfigDetails model) { + if (model.wasPropertyExplicitlySet("namespaces")) { + this.namespaces(model.getNamespaces()); + } + if (model.wasPropertyExplicitlySet("backupSchedule")) { + this.backupSchedule(model.getBackupSchedule()); + } + if (model.wasPropertyExplicitlySet("replicateImages")) { + this.replicateImages(model.getReplicateImages()); + } + if (model.wasPropertyExplicitlySet("maxNumberOfBackupsRetained")) { + this.maxNumberOfBackupsRetained(model.getMaxNumberOfBackupsRetained()); + } + if (model.wasPropertyExplicitlySet("imageReplicationVaultSecretId")) { + this.imageReplicationVaultSecretId(model.getImageReplicationVaultSecretId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to the + * OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaces") + private final java.util.List namespaces; + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to the + * OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + * + * @return the value + */ + public java.util.List getNamespaces() { + return namespaces; + } + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is not + * specified, only a single backup will be created. This format of the string specifying the + * backup schedule must conform with RFC-5545 (see examples below). This schedule will use the + * UTC timezone. This property applies to the OKE cluster member in primary region. + * + *

The backup frequency can be HOURLY, DAILY, WEEKLY or MONTHLY, and the upper and lower + * interval bounds are as follows HOURLY - Minimum = 1 - Maximum = 24 DAILY - Minimum = 1 - + * Maximum = 30 WEEKLY - Minimum = 1 - Maximum = 1 MONTHLY - Minimum = 1 - Maximum = 12 + * + *

Examples: FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=1 -> Run a backup every week on + * monday and wednesday at 10:00 AM. FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=2 -> Invalid + * configuration (can not specify interval of 2). + * + *

FREQ=HOURLY;INTERVAL=25 -> Invalid configuration (can not specify interval of 25). + * FREQ=HOURLY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=HOURLY;INTERVAL=24 -> Run a backup every 24 hours. FREQ=HOURLY;INTERVAL=1 -> Run a + * backup every hour. FREQ=HOURLY;BYMINUTE=30;INTERVAL=15 -> Run a backup every 15 hours at the + * 30th minute. + * + *

FREQ=DAILY;INTERVAL=31 -> Invalid configuration (can not specify interval of 31). + * FREQ=DAILY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=DAILY;INTERVAL=30 -> Run a backup every 30 days at 12:00 midnight. + * FREQ=DAILY;BYHOUR=17;BYMINUTE=10;INTERVAL=1 -> Run a backup every day at 05:10 PM. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSchedule") + private final String backupSchedule; + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is not + * specified, only a single backup will be created. This format of the string specifying the + * backup schedule must conform with RFC-5545 (see examples below). This schedule will use the + * UTC timezone. This property applies to the OKE cluster member in primary region. + * + *

The backup frequency can be HOURLY, DAILY, WEEKLY or MONTHLY, and the upper and lower + * interval bounds are as follows HOURLY - Minimum = 1 - Maximum = 24 DAILY - Minimum = 1 - + * Maximum = 30 WEEKLY - Minimum = 1 - Maximum = 1 MONTHLY - Minimum = 1 - Maximum = 12 + * + *

Examples: FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=1 -> Run a backup every week on + * monday and wednesday at 10:00 AM. FREQ=WEEKLY;BYDAY=MO,WE;BYHOUR=10;INTERVAL=2 -> Invalid + * configuration (can not specify interval of 2). + * + *

FREQ=HOURLY;INTERVAL=25 -> Invalid configuration (can not specify interval of 25). + * FREQ=HOURLY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=HOURLY;INTERVAL=24 -> Run a backup every 24 hours. FREQ=HOURLY;INTERVAL=1 -> Run a + * backup every hour. FREQ=HOURLY;BYMINUTE=30;INTERVAL=15 -> Run a backup every 15 hours at the + * 30th minute. + * + *

FREQ=DAILY;INTERVAL=31 -> Invalid configuration (can not specify interval of 31). + * FREQ=DAILY;INTERVAL=0 -> Invalid configuration (can not specify interval of 0). + * FREQ=DAILY;INTERVAL=30 -> Run a backup every 30 days at 12:00 midnight. + * FREQ=DAILY;BYHOUR=17;BYMINUTE=10;INTERVAL=1 -> Run a backup every day at 05:10 PM. + * + * @return the value + */ + public String getBackupSchedule() { + return backupSchedule; + } + + /** + * Controls the behaviour of image replication across regions. Image replication is enabled by + * default for DR Protection Groups with a primary role. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicateImages") + private final OkeClusterImageReplication replicateImages; + + /** + * Controls the behaviour of image replication across regions. Image replication is enabled by + * default for DR Protection Groups with a primary role. This property applies to the OKE + * cluster member in primary region. + * + * @return the value + */ + public OkeClusterImageReplication getReplicateImages() { + return replicateImages; + } + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxNumberOfBackupsRetained") + private final Integer maxNumberOfBackupsRetained; + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + * + * @return the value + */ + public Integer getMaxNumberOfBackupsRetained() { + return maxNumberOfBackupsRetained; + } + + /** + * The OCID of the vault secret that stores the image credential. This property applies to the + * OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageReplicationVaultSecretId") + private final String imageReplicationVaultSecretId; + + /** + * The OCID of the vault secret that stores the image credential. This property applies to the + * OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public String getImageReplicationVaultSecretId() { + return imageReplicationVaultSecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeClusterBackupConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespaces=").append(String.valueOf(this.namespaces)); + sb.append(", backupSchedule=").append(String.valueOf(this.backupSchedule)); + sb.append(", replicateImages=").append(String.valueOf(this.replicateImages)); + sb.append(", maxNumberOfBackupsRetained=") + .append(String.valueOf(this.maxNumberOfBackupsRetained)); + sb.append(", imageReplicationVaultSecretId=") + .append(String.valueOf(this.imageReplicationVaultSecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeClusterBackupConfigDetails)) { + return false; + } + + CreateOkeClusterBackupConfigDetails other = (CreateOkeClusterBackupConfigDetails) o; + return java.util.Objects.equals(this.namespaces, other.namespaces) + && java.util.Objects.equals(this.backupSchedule, other.backupSchedule) + && java.util.Objects.equals(this.replicateImages, other.replicateImages) + && java.util.Objects.equals( + this.maxNumberOfBackupsRetained, other.maxNumberOfBackupsRetained) + && java.util.Objects.equals( + this.imageReplicationVaultSecretId, other.imageReplicationVaultSecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespaces == null ? 43 : this.namespaces.hashCode()); + result = + (result * PRIME) + + (this.backupSchedule == null ? 43 : this.backupSchedule.hashCode()); + result = + (result * PRIME) + + (this.replicateImages == null ? 43 : this.replicateImages.hashCode()); + result = + (result * PRIME) + + (this.maxNumberOfBackupsRetained == null + ? 43 + : this.maxNumberOfBackupsRetained.hashCode()); + result = + (result * PRIME) + + (this.imageReplicationVaultSecretId == null + ? 43 + : this.imageReplicationVaultSecretId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterLoadBalancerMappingDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterLoadBalancerMappingDetails.java new file mode 100644 index 00000000000..d08ef29d2f7 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterLoadBalancerMappingDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create source-to-destination mapping for a load balancer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeClusterLoadBalancerMappingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeClusterLoadBalancerMappingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceLoadBalancerId", "destinationLoadBalancerId"}) + public CreateOkeClusterLoadBalancerMappingDetails( + String sourceLoadBalancerId, String destinationLoadBalancerId) { + super(); + this.sourceLoadBalancerId = sourceLoadBalancerId; + this.destinationLoadBalancerId = destinationLoadBalancerId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceLoadBalancerId") + private String sourceLoadBalancerId; + + /** + * The OCID of the source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @param sourceLoadBalancerId the value to set + * @return this builder + */ + public Builder sourceLoadBalancerId(String sourceLoadBalancerId) { + this.sourceLoadBalancerId = sourceLoadBalancerId; + this.__explicitlySet__.add("sourceLoadBalancerId"); + return this; + } + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationLoadBalancerId") + private String destinationLoadBalancerId; + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @param destinationLoadBalancerId the value to set + * @return this builder + */ + public Builder destinationLoadBalancerId(String destinationLoadBalancerId) { + this.destinationLoadBalancerId = destinationLoadBalancerId; + this.__explicitlySet__.add("destinationLoadBalancerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeClusterLoadBalancerMappingDetails build() { + CreateOkeClusterLoadBalancerMappingDetails model = + new CreateOkeClusterLoadBalancerMappingDetails( + this.sourceLoadBalancerId, this.destinationLoadBalancerId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeClusterLoadBalancerMappingDetails model) { + if (model.wasPropertyExplicitlySet("sourceLoadBalancerId")) { + this.sourceLoadBalancerId(model.getSourceLoadBalancerId()); + } + if (model.wasPropertyExplicitlySet("destinationLoadBalancerId")) { + this.destinationLoadBalancerId(model.getDestinationLoadBalancerId()); + } + 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 source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceLoadBalancerId") + private final String sourceLoadBalancerId; + + /** + * The OCID of the source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getSourceLoadBalancerId() { + return sourceLoadBalancerId; + } + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationLoadBalancerId") + private final String destinationLoadBalancerId; + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationLoadBalancerId() { + return destinationLoadBalancerId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeClusterLoadBalancerMappingDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceLoadBalancerId=").append(String.valueOf(this.sourceLoadBalancerId)); + sb.append(", destinationLoadBalancerId=") + .append(String.valueOf(this.destinationLoadBalancerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeClusterLoadBalancerMappingDetails)) { + return false; + } + + CreateOkeClusterLoadBalancerMappingDetails other = + (CreateOkeClusterLoadBalancerMappingDetails) o; + return java.util.Objects.equals(this.sourceLoadBalancerId, other.sourceLoadBalancerId) + && java.util.Objects.equals( + this.destinationLoadBalancerId, other.destinationLoadBalancerId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceLoadBalancerId == null + ? 43 + : this.sourceLoadBalancerId.hashCode()); + result = + (result * PRIME) + + (this.destinationLoadBalancerId == null + ? 43 + : this.destinationLoadBalancerId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterManagedNodePoolConfigurationDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterManagedNodePoolConfigurationDetails.java new file mode 100644 index 00000000000..a056165d33f --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterManagedNodePoolConfigurationDetails.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create managed node pool configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeClusterManagedNodePoolConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeClusterManagedNodePoolConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "minimum", "maximum"}) + public CreateOkeClusterManagedNodePoolConfigurationDetails( + String id, Integer minimum, Integer maximum) { + super(); + this.id = id; + this.minimum = minimum; + this.maximum = maximum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the managed node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the managed node pool in OKE cluster. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The minimum number to which nodes in the managed node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Integer minimum; + + /** + * The minimum number to which nodes in the managed node pool could be scaled down. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Integer minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** The maximum number to which nodes in the managed node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Integer maximum; + + /** + * The maximum number to which nodes in the managed node pool could be scaled up. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Integer maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeClusterManagedNodePoolConfigurationDetails build() { + CreateOkeClusterManagedNodePoolConfigurationDetails model = + new CreateOkeClusterManagedNodePoolConfigurationDetails( + this.id, this.minimum, this.maximum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeClusterManagedNodePoolConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + 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 managed node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the managed node pool in OKE cluster. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The minimum number to which nodes in the managed node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Integer minimum; + + /** + * The minimum number to which nodes in the managed node pool could be scaled down. + * + * @return the value + */ + public Integer getMinimum() { + return minimum; + } + + /** The maximum number to which nodes in the managed node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Integer maximum; + + /** + * The maximum number to which nodes in the managed node pool could be scaled up. + * + * @return the value + */ + public Integer getMaximum() { + return maximum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeClusterManagedNodePoolConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeClusterManagedNodePoolConfigurationDetails)) { + return false; + } + + CreateOkeClusterManagedNodePoolConfigurationDetails other = + (CreateOkeClusterManagedNodePoolConfigurationDetails) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && 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.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterNetworkLoadBalancerMappingDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterNetworkLoadBalancerMappingDetails.java new file mode 100644 index 00000000000..2bd489bec91 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterNetworkLoadBalancerMappingDetails.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create source-to-destination mapping for a network load balancer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeClusterNetworkLoadBalancerMappingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeClusterNetworkLoadBalancerMappingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceNetworkLoadBalancerId", + "destinationNetworkLoadBalancerId" + }) + public CreateOkeClusterNetworkLoadBalancerMappingDetails( + String sourceNetworkLoadBalancerId, String destinationNetworkLoadBalancerId) { + super(); + this.sourceNetworkLoadBalancerId = sourceNetworkLoadBalancerId; + this.destinationNetworkLoadBalancerId = destinationNetworkLoadBalancerId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceNetworkLoadBalancerId") + private String sourceNetworkLoadBalancerId; + + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @param sourceNetworkLoadBalancerId the value to set + * @return this builder + */ + public Builder sourceNetworkLoadBalancerId(String sourceNetworkLoadBalancerId) { + this.sourceNetworkLoadBalancerId = sourceNetworkLoadBalancerId; + this.__explicitlySet__.add("sourceNetworkLoadBalancerId"); + return this; + } + /** + * The OCID of the Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationNetworkLoadBalancerId") + private String destinationNetworkLoadBalancerId; + + /** + * The OCID of the Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @param destinationNetworkLoadBalancerId the value to set + * @return this builder + */ + public Builder destinationNetworkLoadBalancerId(String destinationNetworkLoadBalancerId) { + this.destinationNetworkLoadBalancerId = destinationNetworkLoadBalancerId; + this.__explicitlySet__.add("destinationNetworkLoadBalancerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeClusterNetworkLoadBalancerMappingDetails build() { + CreateOkeClusterNetworkLoadBalancerMappingDetails model = + new CreateOkeClusterNetworkLoadBalancerMappingDetails( + this.sourceNetworkLoadBalancerId, + this.destinationNetworkLoadBalancerId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeClusterNetworkLoadBalancerMappingDetails model) { + if (model.wasPropertyExplicitlySet("sourceNetworkLoadBalancerId")) { + this.sourceNetworkLoadBalancerId(model.getSourceNetworkLoadBalancerId()); + } + if (model.wasPropertyExplicitlySet("destinationNetworkLoadBalancerId")) { + this.destinationNetworkLoadBalancerId(model.getDestinationNetworkLoadBalancerId()); + } + 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 source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceNetworkLoadBalancerId") + private final String sourceNetworkLoadBalancerId; + + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getSourceNetworkLoadBalancerId() { + return sourceNetworkLoadBalancerId; + } + + /** + * The OCID of the Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationNetworkLoadBalancerId") + private final String destinationNetworkLoadBalancerId; + + /** + * The OCID of the Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationNetworkLoadBalancerId() { + return destinationNetworkLoadBalancerId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeClusterNetworkLoadBalancerMappingDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceNetworkLoadBalancerId=") + .append(String.valueOf(this.sourceNetworkLoadBalancerId)); + sb.append(", destinationNetworkLoadBalancerId=") + .append(String.valueOf(this.destinationNetworkLoadBalancerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeClusterNetworkLoadBalancerMappingDetails)) { + return false; + } + + CreateOkeClusterNetworkLoadBalancerMappingDetails other = + (CreateOkeClusterNetworkLoadBalancerMappingDetails) o; + return java.util.Objects.equals( + this.sourceNetworkLoadBalancerId, other.sourceNetworkLoadBalancerId) + && java.util.Objects.equals( + this.destinationNetworkLoadBalancerId, + other.destinationNetworkLoadBalancerId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceNetworkLoadBalancerId == null + ? 43 + : this.sourceNetworkLoadBalancerId.hashCode()); + result = + (result * PRIME) + + (this.destinationNetworkLoadBalancerId == null + ? 43 + : this.destinationNetworkLoadBalancerId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVaultMappingDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVaultMappingDetails.java new file mode 100644 index 00000000000..b11ec776d7f --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVaultMappingDetails.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create source-to-destination mapping for a vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeClusterVaultMappingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeClusterVaultMappingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceVaultId", "destinationVaultId"}) + public CreateOkeClusterVaultMappingDetails(String sourceVaultId, String destinationVaultId) { + super(); + this.sourceVaultId = sourceVaultId; + this.destinationVaultId = destinationVaultId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVaultId") + private String sourceVaultId; + + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @param sourceVaultId the value to set + * @return this builder + */ + public Builder sourceVaultId(String sourceVaultId) { + this.sourceVaultId = sourceVaultId; + this.__explicitlySet__.add("sourceVaultId"); + return this; + } + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationVaultId") + private String destinationVaultId; + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @param destinationVaultId the value to set + * @return this builder + */ + public Builder destinationVaultId(String destinationVaultId) { + this.destinationVaultId = destinationVaultId; + this.__explicitlySet__.add("destinationVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeClusterVaultMappingDetails build() { + CreateOkeClusterVaultMappingDetails model = + new CreateOkeClusterVaultMappingDetails( + this.sourceVaultId, this.destinationVaultId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeClusterVaultMappingDetails model) { + if (model.wasPropertyExplicitlySet("sourceVaultId")) { + this.sourceVaultId(model.getSourceVaultId()); + } + if (model.wasPropertyExplicitlySet("destinationVaultId")) { + this.destinationVaultId(model.getDestinationVaultId()); + } + 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 source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVaultId") + private final String sourceVaultId; + + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @return the value + */ + public String getSourceVaultId() { + return sourceVaultId; + } + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationVaultId") + private final String destinationVaultId; + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationVaultId() { + return destinationVaultId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeClusterVaultMappingDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceVaultId=").append(String.valueOf(this.sourceVaultId)); + sb.append(", destinationVaultId=").append(String.valueOf(this.destinationVaultId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeClusterVaultMappingDetails)) { + return false; + } + + CreateOkeClusterVaultMappingDetails other = (CreateOkeClusterVaultMappingDetails) o; + return java.util.Objects.equals(this.sourceVaultId, other.sourceVaultId) + && java.util.Objects.equals(this.destinationVaultId, other.destinationVaultId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceVaultId == null ? 43 : this.sourceVaultId.hashCode()); + result = + (result * PRIME) + + (this.destinationVaultId == null + ? 43 + : this.destinationVaultId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVirtualNodePoolConfigurationDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVirtualNodePoolConfigurationDetails.java new file mode 100644 index 00000000000..df0522d78c2 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateOkeClusterVirtualNodePoolConfigurationDetails.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create virtual node pool configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOkeClusterVirtualNodePoolConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOkeClusterVirtualNodePoolConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "minimum", "maximum"}) + public CreateOkeClusterVirtualNodePoolConfigurationDetails( + String id, Integer minimum, Integer maximum) { + super(); + this.id = id; + this.minimum = minimum; + this.maximum = maximum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the virtual node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the virtual node pool in OKE cluster. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The minimum number to which nodes in the virtual node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Integer minimum; + + /** + * The minimum number to which nodes in the virtual node pool could be scaled down. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Integer minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** The maximum number to which nodes in the virtual node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Integer maximum; + + /** + * The maximum number to which nodes in the virtual node pool could be scaled up. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Integer maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOkeClusterVirtualNodePoolConfigurationDetails build() { + CreateOkeClusterVirtualNodePoolConfigurationDetails model = + new CreateOkeClusterVirtualNodePoolConfigurationDetails( + this.id, this.minimum, this.maximum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOkeClusterVirtualNodePoolConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + 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 virtual node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the virtual node pool in OKE cluster. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The minimum number to which nodes in the virtual node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Integer minimum; + + /** + * The minimum number to which nodes in the virtual node pool could be scaled down. + * + * @return the value + */ + public Integer getMinimum() { + return minimum; + } + + /** The maximum number to which nodes in the virtual node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Integer maximum; + + /** + * The maximum number to which nodes in the virtual node pool could be scaled up. + * + * @return the value + */ + public Integer getMaximum() { + return maximum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOkeClusterVirtualNodePoolConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOkeClusterVirtualNodePoolConfigurationDetails)) { + return false; + } + + CreateOkeClusterVirtualNodePoolConfigurationDetails other = + (CreateOkeClusterVirtualNodePoolConfigurationDetails) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && 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.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java index 7d45a265e47..ff639c2787f 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java @@ -110,6 +110,33 @@ * COMPUTE_CAPACITY_AVAILABILITY_SWITCHOVER_PRECHECK - A precheck step for validating a compute * capacity availability during a switchover. - COMPUTE_CAPACITY_AVAILABILITY_FAILOVER_PRECHECK - A * precheck step for validating a compute capacity availability during a failover. - + * OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY_PRECHECK - A precheck step for validating clean up of an + * OKE cluster in the primary region during a switchover. - + * OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY_PRECHECK - A precheck step for validating restoration of + * an OKE cluster in the standby region during a switchover. - + * OKE_CLUSTER_FAILOVER_RESTORE_STANDBY_PRECHECK - A precheck step for validating restoration of an + * OKE cluster in the standby region during a failover. - + * OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY_PRECHECK - A precheck step for validating clean up of an + * OKE cluster in the standby region during a stop drill. - + * OKE_CLUSTER_START_DRILL_RESTORE_STANDBY_PRECHECK - A precheck step for validating restoration of + * an OKE cluster in the standby region during a start drill. - + * OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY - A DR plan step to clean up an OKE cluster in the primary + * region during a switchover. - OKE_CLUSTER_SWITCHOVER_SCALE_UP_STANDBY - A DR plan step to scale + * up the node pool of an OKE cluster in the standby during a switchover. - + * OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY - A DR plan step to restore an OKE cluster in the standby + * region during a switchover. - OKE_CLUSTER_SWITCHOVER_REVERSE_BACKUP_STANDBY - A DR plan step to + * reverse an OKE cluster backup in the standby during a switchover. - + * OKE_CLUSTER_SWITCHOVER_SCALE_DOWN_PRIMARY - A DR plan step to scale down the node pool of an OKE + * cluster in the primary during a switchover. - OKE_CLUSTER_FAILOVER_RESTORE_STANDBY - A DR plan + * step to restore an OKE cluster in the standby region during a failover. - + * OKE_CLUSTER_FAILOVER_SCALE_UP_STANDBY - A DR plan step to scale up the node pool of an OKE + * cluster in the standby region during a failover. - OKE_CLUSTER_START_DRILL_RESTORE_STANDBY - A DR + * plan step to restore an OKE cluster in the standby region during a start drill. - + * OKE_CLUSTER_START_DRILL_SCALE_UP_STANDBY - A DR plan step to scale up the node pool of an OKE + * cluster in the standby region during a start drill. - OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY - A + * DR plan step to clean up an OKE cluster in the standby region during a stop drill. - + * OKE_CLUSTER_STOP_DRILL_SCALE_DOWN_STANDBY - A DR plan step to scale down the node pool of an OKE + * cluster in the standby region during a stop drill. - * OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY_PRECHECK - A precheck step for * validating the deletion of an object storage bucket replication in the primary region during a * switchover. - OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK - A @@ -234,6 +261,22 @@ public enum DrPlanStepType implements com.oracle.bmc.http.internal.BmcEnum { ComputeCapacityAvailabilitySwitchoverPrecheck( "COMPUTE_CAPACITY_AVAILABILITY_SWITCHOVER_PRECHECK"), ComputeCapacityAvailabilityFailoverPrecheck("COMPUTE_CAPACITY_AVAILABILITY_FAILOVER_PRECHECK"), + OkeClusterSwitchoverCleanupPrimaryPrecheck("OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY_PRECHECK"), + OkeClusterSwitchoverRestoreStandbyPrecheck("OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY_PRECHECK"), + OkeClusterFailoverRestoreStandbyPrecheck("OKE_CLUSTER_FAILOVER_RESTORE_STANDBY_PRECHECK"), + OkeClusterStopDrillCleanupStandbyPrecheck("OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY_PRECHECK"), + OkeClusterStartDrillRestoreStandbyPrecheck("OKE_CLUSTER_START_DRILL_RESTORE_STANDBY_PRECHECK"), + OkeClusterSwitchoverCleanupPrimary("OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY"), + OkeClusterSwitchoverScaleUpStandby("OKE_CLUSTER_SWITCHOVER_SCALE_UP_STANDBY"), + OkeClusterSwitchoverRestoreStandby("OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY"), + OkeClusterSwitchoverReverseBackupStandby("OKE_CLUSTER_SWITCHOVER_REVERSE_BACKUP_STANDBY"), + OkeClusterSwitchoverScaleDownPrimary("OKE_CLUSTER_SWITCHOVER_SCALE_DOWN_PRIMARY"), + OkeClusterFailoverRestoreStandby("OKE_CLUSTER_FAILOVER_RESTORE_STANDBY"), + OkeClusterFailoverScaleUpStandby("OKE_CLUSTER_FAILOVER_SCALE_UP_STANDBY"), + OkeClusterStartDrillRestoreStandby("OKE_CLUSTER_START_DRILL_RESTORE_STANDBY"), + OkeClusterStartDrillScaleUpStandby("OKE_CLUSTER_START_DRILL_SCALE_UP_STANDBY"), + OkeClusterStopDrillCleanupStandby("OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY"), + OkeClusterStopDrillScaleDownStandby("OKE_CLUSTER_STOP_DRILL_SCALE_DOWN_STANDBY"), ObjectStorageBucketSwitchoverDeleteReplicationPrimaryPrecheck( "OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY_PRECHECK"), ObjectStorageBucketSwitchoverSetupReverseReplicationStandbyPrecheck( diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java index 22b771ba313..42ecd1dbb98 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java @@ -54,7 +54,10 @@ name = "AUTONOMOUS_CONTAINER_DATABASE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DrProtectionGroupMemberDatabase.class, - name = "DATABASE") + name = "DATABASE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DrProtectionGroupMemberOkeCluster.class, + name = "OKE_CLUSTER") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberOkeCluster.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberOkeCluster.java new file mode 100644 index 00000000000..acea49d5cd0 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberOkeCluster.java @@ -0,0 +1,529 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Properties for a OKE Cluster member of a DR Protection Group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DrProtectionGroupMemberOkeCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DrProtectionGroupMemberOkeCluster extends DrProtectionGroupMember { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both + * the primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1.uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerClusterId") + private String peerClusterId; + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both + * the primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1.uniqueID} + * + * @param peerClusterId the value to set + * @return this builder + */ + public Builder peerClusterId(String peerClusterId) { + this.peerClusterId = peerClusterId; + this.__explicitlySet__.add("peerClusterId"); + return this; + } + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's + * Run Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("jumpHostId") + private String jumpHostId; + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's + * Run Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + * + * @param jumpHostId the value to set + * @return this builder + */ + public Builder jumpHostId(String jumpHostId) { + this.jumpHostId = jumpHostId; + this.__explicitlySet__.add("jumpHostId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupLocation") + private OkeBackupLocation backupLocation; + + public Builder backupLocation(OkeBackupLocation backupLocation) { + this.backupLocation = backupLocation; + this.__explicitlySet__.add("backupLocation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private OkeClusterBackupConfig backupConfig; + + public Builder backupConfig(OkeClusterBackupConfig backupConfig) { + this.backupConfig = backupConfig; + this.__explicitlySet__.add("backupConfig"); + return this; + } + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerMappings") + private java.util.List loadBalancerMappings; + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @param loadBalancerMappings the value to set + * @return this builder + */ + public Builder loadBalancerMappings( + java.util.List loadBalancerMappings) { + this.loadBalancerMappings = loadBalancerMappings; + this.__explicitlySet__.add("loadBalancerMappings"); + return this; + } + /** + * The list of source-to-destination network load balancer mappings required for DR + * operations. This property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkLoadBalancerMappings") + private java.util.List networkLoadBalancerMappings; + + /** + * The list of source-to-destination network load balancer mappings required for DR + * operations. This property applies to the OKE cluster member in primary region. + * + * @param networkLoadBalancerMappings the value to set + * @return this builder + */ + public Builder networkLoadBalancerMappings( + java.util.List networkLoadBalancerMappings) { + this.networkLoadBalancerMappings = networkLoadBalancerMappings; + this.__explicitlySet__.add("networkLoadBalancerMappings"); + return this; + } + /** + * The list of source-to-destination vault mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultMappings") + private java.util.List vaultMappings; + + /** + * The list of source-to-destination vault mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @param vaultMappings the value to set + * @return this builder + */ + public Builder vaultMappings(java.util.List vaultMappings) { + this.vaultMappings = vaultMappings; + this.__explicitlySet__.add("vaultMappings"); + return this; + } + /** + * The list of node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedNodePoolConfigs") + private java.util.List managedNodePoolConfigs; + + /** + * The list of node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + * + * @param managedNodePoolConfigs the value to set + * @return this builder + */ + public Builder managedNodePoolConfigs( + java.util.List managedNodePoolConfigs) { + this.managedNodePoolConfigs = managedNodePoolConfigs; + this.__explicitlySet__.add("managedNodePoolConfigs"); + return this; + } + /** + * The list of node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolConfigs") + private java.util.List virtualNodePoolConfigs; + + /** + * The list of node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + * + * @param virtualNodePoolConfigs the value to set + * @return this builder + */ + public Builder virtualNodePoolConfigs( + java.util.List virtualNodePoolConfigs) { + this.virtualNodePoolConfigs = virtualNodePoolConfigs; + this.__explicitlySet__.add("virtualNodePoolConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DrProtectionGroupMemberOkeCluster build() { + DrProtectionGroupMemberOkeCluster model = + new DrProtectionGroupMemberOkeCluster( + this.memberId, + this.peerClusterId, + this.jumpHostId, + this.backupLocation, + this.backupConfig, + this.loadBalancerMappings, + this.networkLoadBalancerMappings, + this.vaultMappings, + this.managedNodePoolConfigs, + this.virtualNodePoolConfigs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DrProtectionGroupMemberOkeCluster model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("peerClusterId")) { + this.peerClusterId(model.getPeerClusterId()); + } + if (model.wasPropertyExplicitlySet("jumpHostId")) { + this.jumpHostId(model.getJumpHostId()); + } + if (model.wasPropertyExplicitlySet("backupLocation")) { + this.backupLocation(model.getBackupLocation()); + } + if (model.wasPropertyExplicitlySet("backupConfig")) { + this.backupConfig(model.getBackupConfig()); + } + if (model.wasPropertyExplicitlySet("loadBalancerMappings")) { + this.loadBalancerMappings(model.getLoadBalancerMappings()); + } + if (model.wasPropertyExplicitlySet("networkLoadBalancerMappings")) { + this.networkLoadBalancerMappings(model.getNetworkLoadBalancerMappings()); + } + if (model.wasPropertyExplicitlySet("vaultMappings")) { + this.vaultMappings(model.getVaultMappings()); + } + if (model.wasPropertyExplicitlySet("managedNodePoolConfigs")) { + this.managedNodePoolConfigs(model.getManagedNodePoolConfigs()); + } + if (model.wasPropertyExplicitlySet("virtualNodePoolConfigs")) { + this.virtualNodePoolConfigs(model.getVirtualNodePoolConfigs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DrProtectionGroupMemberOkeCluster( + String memberId, + String peerClusterId, + String jumpHostId, + OkeBackupLocation backupLocation, + OkeClusterBackupConfig backupConfig, + java.util.List loadBalancerMappings, + java.util.List networkLoadBalancerMappings, + java.util.List vaultMappings, + java.util.List managedNodePoolConfigs, + java.util.List virtualNodePoolConfigs) { + super(memberId); + this.peerClusterId = peerClusterId; + this.jumpHostId = jumpHostId; + this.backupLocation = backupLocation; + this.backupConfig = backupConfig; + this.loadBalancerMappings = loadBalancerMappings; + this.networkLoadBalancerMappings = networkLoadBalancerMappings; + this.vaultMappings = vaultMappings; + this.managedNodePoolConfigs = managedNodePoolConfigs; + this.virtualNodePoolConfigs = virtualNodePoolConfigs; + } + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both the + * primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1.uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerClusterId") + private final String peerClusterId; + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both the + * primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1.uniqueID} + * + * @return the value + */ + public String getPeerClusterId() { + return peerClusterId; + } + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's Run + * Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("jumpHostId") + private final String jumpHostId; + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's Run + * Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + * + * @return the value + */ + public String getJumpHostId() { + return jumpHostId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupLocation") + private final OkeBackupLocation backupLocation; + + public OkeBackupLocation getBackupLocation() { + return backupLocation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private final OkeClusterBackupConfig backupConfig; + + public OkeClusterBackupConfig getBackupConfig() { + return backupConfig; + } + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerMappings") + private final java.util.List loadBalancerMappings; + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getLoadBalancerMappings() { + return loadBalancerMappings; + } + + /** + * The list of source-to-destination network load balancer mappings required for DR operations. + * This property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkLoadBalancerMappings") + private final java.util.List networkLoadBalancerMappings; + + /** + * The list of source-to-destination network load balancer mappings required for DR operations. + * This property applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getNetworkLoadBalancerMappings() { + return networkLoadBalancerMappings; + } + + /** + * The list of source-to-destination vault mappings required for DR operations. This property + * applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultMappings") + private final java.util.List vaultMappings; + + /** + * The list of source-to-destination vault mappings required for DR operations. This property + * applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getVaultMappings() { + return vaultMappings; + } + + /** + * The list of node pools with configurations for minimum and maximum node counts. This property + * applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedNodePoolConfigs") + private final java.util.List managedNodePoolConfigs; + + /** + * The list of node pools with configurations for minimum and maximum node counts. This property + * applies to the OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public java.util.List getManagedNodePoolConfigs() { + return managedNodePoolConfigs; + } + + /** + * The list of node pools with configurations for minimum and maximum node counts. This property + * applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolConfigs") + private final java.util.List virtualNodePoolConfigs; + + /** + * The list of node pools with configurations for minimum and maximum node counts. This property + * applies to the OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public java.util.List getVirtualNodePoolConfigs() { + return virtualNodePoolConfigs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DrProtectionGroupMemberOkeCluster("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", peerClusterId=").append(String.valueOf(this.peerClusterId)); + sb.append(", jumpHostId=").append(String.valueOf(this.jumpHostId)); + sb.append(", backupLocation=").append(String.valueOf(this.backupLocation)); + sb.append(", backupConfig=").append(String.valueOf(this.backupConfig)); + sb.append(", loadBalancerMappings=").append(String.valueOf(this.loadBalancerMappings)); + sb.append(", networkLoadBalancerMappings=") + .append(String.valueOf(this.networkLoadBalancerMappings)); + sb.append(", vaultMappings=").append(String.valueOf(this.vaultMappings)); + sb.append(", managedNodePoolConfigs=").append(String.valueOf(this.managedNodePoolConfigs)); + sb.append(", virtualNodePoolConfigs=").append(String.valueOf(this.virtualNodePoolConfigs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DrProtectionGroupMemberOkeCluster)) { + return false; + } + + DrProtectionGroupMemberOkeCluster other = (DrProtectionGroupMemberOkeCluster) o; + return java.util.Objects.equals(this.peerClusterId, other.peerClusterId) + && java.util.Objects.equals(this.jumpHostId, other.jumpHostId) + && java.util.Objects.equals(this.backupLocation, other.backupLocation) + && java.util.Objects.equals(this.backupConfig, other.backupConfig) + && java.util.Objects.equals(this.loadBalancerMappings, other.loadBalancerMappings) + && java.util.Objects.equals( + this.networkLoadBalancerMappings, other.networkLoadBalancerMappings) + && java.util.Objects.equals(this.vaultMappings, other.vaultMappings) + && java.util.Objects.equals( + this.managedNodePoolConfigs, other.managedNodePoolConfigs) + && java.util.Objects.equals( + this.virtualNodePoolConfigs, other.virtualNodePoolConfigs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.peerClusterId == null ? 43 : this.peerClusterId.hashCode()); + result = (result * PRIME) + (this.jumpHostId == null ? 43 : this.jumpHostId.hashCode()); + result = + (result * PRIME) + + (this.backupLocation == null ? 43 : this.backupLocation.hashCode()); + result = (result * PRIME) + (this.backupConfig == null ? 43 : this.backupConfig.hashCode()); + result = + (result * PRIME) + + (this.loadBalancerMappings == null + ? 43 + : this.loadBalancerMappings.hashCode()); + result = + (result * PRIME) + + (this.networkLoadBalancerMappings == null + ? 43 + : this.networkLoadBalancerMappings.hashCode()); + result = + (result * PRIME) + + (this.vaultMappings == null ? 43 : this.vaultMappings.hashCode()); + result = + (result * PRIME) + + (this.managedNodePoolConfigs == null + ? 43 + : this.managedNodePoolConfigs.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolConfigs == null + ? 43 + : this.virtualNodePoolConfigs.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java index 43ecb121936..e00434a0070 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java @@ -12,8 +12,8 @@ * DR. - VOLUME_GROUP - A volume group. - DATABASE - An Oracle Database instance from Base Database * service, or Exadata Database service. - AUTONOMOUS_DATABASE - An Oracle Autonomous Database * Serverless. - AUTONOMOUS_CONTAINER_DATABASE - An Oracle Autonomous Container Database. - - * LOAD_BALANCER - A load balancer. - NETWORK_LOAD_BALANCER - A network load balancer. - FILE_SYSTEM - * - A file system. + * OKE_CLUSTER - OCI Container Engine for Kubernetes(OKE) cluster. - LOAD_BALANCER - A load + * balancer. - NETWORK_LOAD_BALANCER - A network load balancer. - FILE_SYSTEM - A file system. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") public enum DrProtectionGroupMemberType implements com.oracle.bmc.http.internal.BmcEnum { @@ -27,6 +27,7 @@ public enum DrProtectionGroupMemberType implements com.oracle.bmc.http.internal. LoadBalancer("LOAD_BALANCER"), NetworkLoadBalancer("NETWORK_LOAD_BALANCER"), FileSystem("FILE_SYSTEM"), + OkeCluster("OKE_CLUSTER"), ObjectStorageBucket("OBJECT_STORAGE_BUCKET"), /** diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeBackupLocation.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeBackupLocation.java new file mode 100644 index 00000000000..a4ede5de103 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeBackupLocation.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The details for object storage backup location of an OKE Cluster
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeBackupLocation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeBackupLocation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "bucket", "object"}) + public OkeBackupLocation(String namespace, String bucket, String object) { + super(); + this.namespace = namespace; + this.bucket = bucket; + this.object = object; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The namespace in object storage backup location(Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The namespace in object storage backup location(Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + * + * @param bucket the value to set + * @return this builder + */ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + /** + * The object name inside the object storage bucket. + * + *

Example: {@code switchover_plan_executions} + */ + @com.fasterxml.jackson.annotation.JsonProperty("object") + private String object; + + /** + * The object name inside the object storage bucket. + * + *

Example: {@code switchover_plan_executions} + * + * @param object the value to set + * @return this builder + */ + public Builder object(String object) { + this.object = object; + this.__explicitlySet__.add("object"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeBackupLocation build() { + OkeBackupLocation model = + new OkeBackupLocation(this.namespace, this.bucket, this.object); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeBackupLocation model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + if (model.wasPropertyExplicitlySet("object")) { + this.object(model.getObject()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The namespace in object storage backup location(Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The namespace in object storage backup location(Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + * + * @return the value + */ + public String getBucket() { + return bucket; + } + + /** + * The object name inside the object storage bucket. + * + *

Example: {@code switchover_plan_executions} + */ + @com.fasterxml.jackson.annotation.JsonProperty("object") + private final String object; + + /** + * The object name inside the object storage bucket. + * + *

Example: {@code switchover_plan_executions} + * + * @return the value + */ + public String getObject() { + return object; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeBackupLocation("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(", object=").append(String.valueOf(this.object)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeBackupLocation)) { + return false; + } + + OkeBackupLocation other = (OkeBackupLocation) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.bucket, other.bucket) + && java.util.Objects.equals(this.object, other.object) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + result = (result * PRIME) + (this.object == null ? 43 : this.object.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterBackupConfig.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterBackupConfig.java new file mode 100644 index 00000000000..a1d53f2148e --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterBackupConfig.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The details of backup performed on OKE Cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeClusterBackupConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeClusterBackupConfig + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "namespaces", + "backupSchedule", + "replicateImages", + "maxNumberOfBackupsRetained", + "imageReplicationVaultSecretId" + }) + public OkeClusterBackupConfig( + java.util.List namespaces, + String backupSchedule, + OkeClusterImageReplication replicateImages, + Integer maxNumberOfBackupsRetained, + String imageReplicationVaultSecretId) { + super(); + this.namespaces = namespaces; + this.backupSchedule = backupSchedule; + this.replicateImages = replicateImages; + this.maxNumberOfBackupsRetained = maxNumberOfBackupsRetained; + this.imageReplicationVaultSecretId = imageReplicationVaultSecretId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to + * the OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaces") + private java.util.List namespaces; + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to + * the OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + * + * @param namespaces the value to set + * @return this builder + */ + public Builder namespaces(java.util.List namespaces) { + this.namespaces = namespaces; + this.__explicitlySet__.add("namespaces"); + return this; + } + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is + * not specified, only a single backup will be created. This format of the string specifying + * the backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. + * This property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSchedule") + private String backupSchedule; + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is + * not specified, only a single backup will be created. This format of the string specifying + * the backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. + * This property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + * + * @param backupSchedule the value to set + * @return this builder + */ + public Builder backupSchedule(String backupSchedule) { + this.backupSchedule = backupSchedule; + this.__explicitlySet__.add("backupSchedule"); + return this; + } + /** + * Controls the behaviour of image replication across regions. This property applies to the + * OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicateImages") + private OkeClusterImageReplication replicateImages; + + /** + * Controls the behaviour of image replication across regions. This property applies to the + * OKE cluster member in primary region. + * + * @param replicateImages the value to set + * @return this builder + */ + public Builder replicateImages(OkeClusterImageReplication replicateImages) { + this.replicateImages = replicateImages; + this.__explicitlySet__.add("replicateImages"); + return this; + } + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxNumberOfBackupsRetained") + private Integer maxNumberOfBackupsRetained; + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + * + * @param maxNumberOfBackupsRetained the value to set + * @return this builder + */ + public Builder maxNumberOfBackupsRetained(Integer maxNumberOfBackupsRetained) { + this.maxNumberOfBackupsRetained = maxNumberOfBackupsRetained; + this.__explicitlySet__.add("maxNumberOfBackupsRetained"); + return this; + } + /** + * The OCID of the vault secret that stores the image credential. This property applies to + * the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageReplicationVaultSecretId") + private String imageReplicationVaultSecretId; + + /** + * The OCID of the vault secret that stores the image credential. This property applies to + * the OKE cluster member in both the primary and standby region. + * + * @param imageReplicationVaultSecretId the value to set + * @return this builder + */ + public Builder imageReplicationVaultSecretId(String imageReplicationVaultSecretId) { + this.imageReplicationVaultSecretId = imageReplicationVaultSecretId; + this.__explicitlySet__.add("imageReplicationVaultSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeClusterBackupConfig build() { + OkeClusterBackupConfig model = + new OkeClusterBackupConfig( + this.namespaces, + this.backupSchedule, + this.replicateImages, + this.maxNumberOfBackupsRetained, + this.imageReplicationVaultSecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeClusterBackupConfig model) { + if (model.wasPropertyExplicitlySet("namespaces")) { + this.namespaces(model.getNamespaces()); + } + if (model.wasPropertyExplicitlySet("backupSchedule")) { + this.backupSchedule(model.getBackupSchedule()); + } + if (model.wasPropertyExplicitlySet("replicateImages")) { + this.replicateImages(model.getReplicateImages()); + } + if (model.wasPropertyExplicitlySet("maxNumberOfBackupsRetained")) { + this.maxNumberOfBackupsRetained(model.getMaxNumberOfBackupsRetained()); + } + if (model.wasPropertyExplicitlySet("imageReplicationVaultSecretId")) { + this.imageReplicationVaultSecretId(model.getImageReplicationVaultSecretId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to the + * OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaces") + private final java.util.List namespaces; + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to the + * OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + * + * @return the value + */ + public java.util.List getNamespaces() { + return namespaces; + } + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is not + * specified, only a single backup will be created. This format of the string specifying the + * backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. This + * property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSchedule") + private final String backupSchedule; + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is not + * specified, only a single backup will be created. This format of the string specifying the + * backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. This + * property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + * + * @return the value + */ + public String getBackupSchedule() { + return backupSchedule; + } + + /** + * Controls the behaviour of image replication across regions. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicateImages") + private final OkeClusterImageReplication replicateImages; + + /** + * Controls the behaviour of image replication across regions. This property applies to the OKE + * cluster member in primary region. + * + * @return the value + */ + public OkeClusterImageReplication getReplicateImages() { + return replicateImages; + } + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxNumberOfBackupsRetained") + private final Integer maxNumberOfBackupsRetained; + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + * + * @return the value + */ + public Integer getMaxNumberOfBackupsRetained() { + return maxNumberOfBackupsRetained; + } + + /** + * The OCID of the vault secret that stores the image credential. This property applies to the + * OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageReplicationVaultSecretId") + private final String imageReplicationVaultSecretId; + + /** + * The OCID of the vault secret that stores the image credential. This property applies to the + * OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public String getImageReplicationVaultSecretId() { + return imageReplicationVaultSecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeClusterBackupConfig("); + sb.append("super=").append(super.toString()); + sb.append("namespaces=").append(String.valueOf(this.namespaces)); + sb.append(", backupSchedule=").append(String.valueOf(this.backupSchedule)); + sb.append(", replicateImages=").append(String.valueOf(this.replicateImages)); + sb.append(", maxNumberOfBackupsRetained=") + .append(String.valueOf(this.maxNumberOfBackupsRetained)); + sb.append(", imageReplicationVaultSecretId=") + .append(String.valueOf(this.imageReplicationVaultSecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeClusterBackupConfig)) { + return false; + } + + OkeClusterBackupConfig other = (OkeClusterBackupConfig) o; + return java.util.Objects.equals(this.namespaces, other.namespaces) + && java.util.Objects.equals(this.backupSchedule, other.backupSchedule) + && java.util.Objects.equals(this.replicateImages, other.replicateImages) + && java.util.Objects.equals( + this.maxNumberOfBackupsRetained, other.maxNumberOfBackupsRetained) + && java.util.Objects.equals( + this.imageReplicationVaultSecretId, other.imageReplicationVaultSecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespaces == null ? 43 : this.namespaces.hashCode()); + result = + (result * PRIME) + + (this.backupSchedule == null ? 43 : this.backupSchedule.hashCode()); + result = + (result * PRIME) + + (this.replicateImages == null ? 43 : this.replicateImages.hashCode()); + result = + (result * PRIME) + + (this.maxNumberOfBackupsRetained == null + ? 43 + : this.maxNumberOfBackupsRetained.hashCode()); + result = + (result * PRIME) + + (this.imageReplicationVaultSecretId == null + ? 43 + : this.imageReplicationVaultSecretId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterImageReplication.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterImageReplication.java new file mode 100644 index 00000000000..6c8cf4c7ad5 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterImageReplication.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Controls the behavior of image replication across regions. Image replication is enabled by + * default for DR Protection Groups with a primary role. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public enum OkeClusterImageReplication implements com.oracle.bmc.http.internal.BmcEnum { + Enable("ENABLE"), + Disable("DISABLE"), + + /** + * 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(OkeClusterImageReplication.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OkeClusterImageReplication v : OkeClusterImageReplication.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OkeClusterImageReplication(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OkeClusterImageReplication create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OkeClusterImageReplication', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterLoadBalancerMapping.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterLoadBalancerMapping.java new file mode 100644 index 00000000000..9cd7a8ff803 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterLoadBalancerMapping.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Source-to-destination mapping for a load balancer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeClusterLoadBalancerMapping.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeClusterLoadBalancerMapping + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceLoadBalancerId", "destinationLoadBalancerId"}) + public OkeClusterLoadBalancerMapping( + String sourceLoadBalancerId, String destinationLoadBalancerId) { + super(); + this.sourceLoadBalancerId = sourceLoadBalancerId; + this.destinationLoadBalancerId = destinationLoadBalancerId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceLoadBalancerId") + private String sourceLoadBalancerId; + + /** + * The OCID of the source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @param sourceLoadBalancerId the value to set + * @return this builder + */ + public Builder sourceLoadBalancerId(String sourceLoadBalancerId) { + this.sourceLoadBalancerId = sourceLoadBalancerId; + this.__explicitlySet__.add("sourceLoadBalancerId"); + return this; + } + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationLoadBalancerId") + private String destinationLoadBalancerId; + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @param destinationLoadBalancerId the value to set + * @return this builder + */ + public Builder destinationLoadBalancerId(String destinationLoadBalancerId) { + this.destinationLoadBalancerId = destinationLoadBalancerId; + this.__explicitlySet__.add("destinationLoadBalancerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeClusterLoadBalancerMapping build() { + OkeClusterLoadBalancerMapping model = + new OkeClusterLoadBalancerMapping( + this.sourceLoadBalancerId, this.destinationLoadBalancerId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeClusterLoadBalancerMapping model) { + if (model.wasPropertyExplicitlySet("sourceLoadBalancerId")) { + this.sourceLoadBalancerId(model.getSourceLoadBalancerId()); + } + if (model.wasPropertyExplicitlySet("destinationLoadBalancerId")) { + this.destinationLoadBalancerId(model.getDestinationLoadBalancerId()); + } + 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 source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceLoadBalancerId") + private final String sourceLoadBalancerId; + + /** + * The OCID of the source Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getSourceLoadBalancerId() { + return sourceLoadBalancerId; + } + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationLoadBalancerId") + private final String destinationLoadBalancerId; + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationLoadBalancerId() { + return destinationLoadBalancerId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeClusterLoadBalancerMapping("); + sb.append("super=").append(super.toString()); + sb.append("sourceLoadBalancerId=").append(String.valueOf(this.sourceLoadBalancerId)); + sb.append(", destinationLoadBalancerId=") + .append(String.valueOf(this.destinationLoadBalancerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeClusterLoadBalancerMapping)) { + return false; + } + + OkeClusterLoadBalancerMapping other = (OkeClusterLoadBalancerMapping) o; + return java.util.Objects.equals(this.sourceLoadBalancerId, other.sourceLoadBalancerId) + && java.util.Objects.equals( + this.destinationLoadBalancerId, other.destinationLoadBalancerId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceLoadBalancerId == null + ? 43 + : this.sourceLoadBalancerId.hashCode()); + result = + (result * PRIME) + + (this.destinationLoadBalancerId == null + ? 43 + : this.destinationLoadBalancerId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterManagedNodePoolConfiguration.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterManagedNodePoolConfiguration.java new file mode 100644 index 00000000000..3471d88d9b8 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterManagedNodePoolConfiguration.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The managed node pool configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeClusterManagedNodePoolConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeClusterManagedNodePoolConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "minimum", "maximum"}) + public OkeClusterManagedNodePoolConfiguration(String id, Integer minimum, Integer maximum) { + super(); + this.id = id; + this.minimum = minimum; + this.maximum = maximum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the managed node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the managed node pool in OKE cluster. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The minimum number to which nodes in the managed node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Integer minimum; + + /** + * The minimum number to which nodes in the managed node pool could be scaled down. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Integer minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** The maximum number to which nodes in the managed node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Integer maximum; + + /** + * The maximum number to which nodes in the managed node pool could be scaled up. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Integer maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeClusterManagedNodePoolConfiguration build() { + OkeClusterManagedNodePoolConfiguration model = + new OkeClusterManagedNodePoolConfiguration(this.id, this.minimum, this.maximum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeClusterManagedNodePoolConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + 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 managed node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the managed node pool in OKE cluster. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The minimum number to which nodes in the managed node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Integer minimum; + + /** + * The minimum number to which nodes in the managed node pool could be scaled down. + * + * @return the value + */ + public Integer getMinimum() { + return minimum; + } + + /** The maximum number to which nodes in the managed node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Integer maximum; + + /** + * The maximum number to which nodes in the managed node pool could be scaled up. + * + * @return the value + */ + public Integer getMaximum() { + return maximum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeClusterManagedNodePoolConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeClusterManagedNodePoolConfiguration)) { + return false; + } + + OkeClusterManagedNodePoolConfiguration other = (OkeClusterManagedNodePoolConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && 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.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterNetworkLoadBalancerMapping.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterNetworkLoadBalancerMapping.java new file mode 100644 index 00000000000..235233c959e --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterNetworkLoadBalancerMapping.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Source-to-destination mapping for a network load balancer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeClusterNetworkLoadBalancerMapping.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeClusterNetworkLoadBalancerMapping + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceNetworkLoadBalancerId", + "destinationNetworkLoadBalancerId" + }) + public OkeClusterNetworkLoadBalancerMapping( + String sourceNetworkLoadBalancerId, String destinationNetworkLoadBalancerId) { + super(); + this.sourceNetworkLoadBalancerId = sourceNetworkLoadBalancerId; + this.destinationNetworkLoadBalancerId = destinationNetworkLoadBalancerId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceNetworkLoadBalancerId") + private String sourceNetworkLoadBalancerId; + + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @param sourceNetworkLoadBalancerId the value to set + * @return this builder + */ + public Builder sourceNetworkLoadBalancerId(String sourceNetworkLoadBalancerId) { + this.sourceNetworkLoadBalancerId = sourceNetworkLoadBalancerId; + this.__explicitlySet__.add("sourceNetworkLoadBalancerId"); + return this; + } + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationNetworkLoadBalancerId") + private String destinationNetworkLoadBalancerId; + + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @param destinationNetworkLoadBalancerId the value to set + * @return this builder + */ + public Builder destinationNetworkLoadBalancerId(String destinationNetworkLoadBalancerId) { + this.destinationNetworkLoadBalancerId = destinationNetworkLoadBalancerId; + this.__explicitlySet__.add("destinationNetworkLoadBalancerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeClusterNetworkLoadBalancerMapping build() { + OkeClusterNetworkLoadBalancerMapping model = + new OkeClusterNetworkLoadBalancerMapping( + this.sourceNetworkLoadBalancerId, + this.destinationNetworkLoadBalancerId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeClusterNetworkLoadBalancerMapping model) { + if (model.wasPropertyExplicitlySet("sourceNetworkLoadBalancerId")) { + this.sourceNetworkLoadBalancerId(model.getSourceNetworkLoadBalancerId()); + } + if (model.wasPropertyExplicitlySet("destinationNetworkLoadBalancerId")) { + this.destinationNetworkLoadBalancerId(model.getDestinationNetworkLoadBalancerId()); + } + 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 source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceNetworkLoadBalancerId") + private final String sourceNetworkLoadBalancerId; + + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getSourceNetworkLoadBalancerId() { + return sourceNetworkLoadBalancerId; + } + + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationNetworkLoadBalancerId") + private final String destinationNetworkLoadBalancerId; + + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationNetworkLoadBalancerId() { + return destinationNetworkLoadBalancerId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeClusterNetworkLoadBalancerMapping("); + sb.append("super=").append(super.toString()); + sb.append("sourceNetworkLoadBalancerId=") + .append(String.valueOf(this.sourceNetworkLoadBalancerId)); + sb.append(", destinationNetworkLoadBalancerId=") + .append(String.valueOf(this.destinationNetworkLoadBalancerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeClusterNetworkLoadBalancerMapping)) { + return false; + } + + OkeClusterNetworkLoadBalancerMapping other = (OkeClusterNetworkLoadBalancerMapping) o; + return java.util.Objects.equals( + this.sourceNetworkLoadBalancerId, other.sourceNetworkLoadBalancerId) + && java.util.Objects.equals( + this.destinationNetworkLoadBalancerId, + other.destinationNetworkLoadBalancerId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceNetworkLoadBalancerId == null + ? 43 + : this.sourceNetworkLoadBalancerId.hashCode()); + result = + (result * PRIME) + + (this.destinationNetworkLoadBalancerId == null + ? 43 + : this.destinationNetworkLoadBalancerId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVaultMapping.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVaultMapping.java new file mode 100644 index 00000000000..fefd80fb1b5 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVaultMapping.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Source-to-destination mapping for a vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeClusterVaultMapping.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeClusterVaultMapping + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceVaultId", "destinationVaultId"}) + public OkeClusterVaultMapping(String sourceVaultId, String destinationVaultId) { + super(); + this.sourceVaultId = sourceVaultId; + this.destinationVaultId = destinationVaultId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVaultId") + private String sourceVaultId; + + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @param sourceVaultId the value to set + * @return this builder + */ + public Builder sourceVaultId(String sourceVaultId) { + this.sourceVaultId = sourceVaultId; + this.__explicitlySet__.add("sourceVaultId"); + return this; + } + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationVaultId") + private String destinationVaultId; + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @param destinationVaultId the value to set + * @return this builder + */ + public Builder destinationVaultId(String destinationVaultId) { + this.destinationVaultId = destinationVaultId; + this.__explicitlySet__.add("destinationVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeClusterVaultMapping build() { + OkeClusterVaultMapping model = + new OkeClusterVaultMapping(this.sourceVaultId, this.destinationVaultId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeClusterVaultMapping model) { + if (model.wasPropertyExplicitlySet("sourceVaultId")) { + this.sourceVaultId(model.getSourceVaultId()); + } + if (model.wasPropertyExplicitlySet("destinationVaultId")) { + this.destinationVaultId(model.getDestinationVaultId()); + } + 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 source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVaultId") + private final String sourceVaultId; + + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @return the value + */ + public String getSourceVaultId() { + return sourceVaultId; + } + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationVaultId") + private final String destinationVaultId; + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationVaultId() { + return destinationVaultId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeClusterVaultMapping("); + sb.append("super=").append(super.toString()); + sb.append("sourceVaultId=").append(String.valueOf(this.sourceVaultId)); + sb.append(", destinationVaultId=").append(String.valueOf(this.destinationVaultId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeClusterVaultMapping)) { + return false; + } + + OkeClusterVaultMapping other = (OkeClusterVaultMapping) o; + return java.util.Objects.equals(this.sourceVaultId, other.sourceVaultId) + && java.util.Objects.equals(this.destinationVaultId, other.destinationVaultId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceVaultId == null ? 43 : this.sourceVaultId.hashCode()); + result = + (result * PRIME) + + (this.destinationVaultId == null + ? 43 + : this.destinationVaultId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVirtualNodePoolConfiguration.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVirtualNodePoolConfiguration.java new file mode 100644 index 00000000000..0e724fecb53 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/OkeClusterVirtualNodePoolConfiguration.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The virtual node pool configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OkeClusterVirtualNodePoolConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OkeClusterVirtualNodePoolConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "minimum", "maximum"}) + public OkeClusterVirtualNodePoolConfiguration(String id, Integer minimum, Integer maximum) { + super(); + this.id = id; + this.minimum = minimum; + this.maximum = maximum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the virtual node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the virtual node pool in OKE cluster. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The minimum number to which nodes in the virtual node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Integer minimum; + + /** + * The minimum number to which nodes in the virtual node pool could be scaled down. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Integer minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** The maximum number to which nodes in the virtual node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Integer maximum; + + /** + * The maximum number to which nodes in the virtual node pool could be scaled up. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Integer maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OkeClusterVirtualNodePoolConfiguration build() { + OkeClusterVirtualNodePoolConfiguration model = + new OkeClusterVirtualNodePoolConfiguration(this.id, this.minimum, this.maximum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OkeClusterVirtualNodePoolConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + 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 virtual node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the virtual node pool in OKE cluster. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The minimum number to which nodes in the virtual node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Integer minimum; + + /** + * The minimum number to which nodes in the virtual node pool could be scaled down. + * + * @return the value + */ + public Integer getMinimum() { + return minimum; + } + + /** The maximum number to which nodes in the virtual node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Integer maximum; + + /** + * The maximum number to which nodes in the virtual node pool could be scaled up. + * + * @return the value + */ + public Integer getMaximum() { + return maximum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OkeClusterVirtualNodePoolConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OkeClusterVirtualNodePoolConfiguration)) { + return false; + } + + OkeClusterVirtualNodePoolConfiguration other = (OkeClusterVirtualNodePoolConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && 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.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java index 9db8cc5a637..8bc5fb89479 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java @@ -28,6 +28,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateDrProtectionGroupMemberNetworkLoadBalancerDetails.class, name = "NETWORK_LOAD_BALANCER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDrProtectionGroupMemberOkeClusterDetails.class, + name = "OKE_CLUSTER"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateDrProtectionGroupMemberAutonomousDatabaseDetails.class, name = "AUTONOMOUS_DATABASE"), diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberOkeClusterDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberOkeClusterDetails.java new file mode 100644 index 00000000000..7fdf431467f --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberOkeClusterDetails.java @@ -0,0 +1,547 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDrProtectionGroupMemberOkeClusterDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDrProtectionGroupMemberOkeClusterDetails + extends UpdateDrProtectionGroupMemberDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both + * the primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerClusterId") + private String peerClusterId; + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both + * the primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + * + * @param peerClusterId the value to set + * @return this builder + */ + public Builder peerClusterId(String peerClusterId) { + this.peerClusterId = peerClusterId; + this.__explicitlySet__.add("peerClusterId"); + return this; + } + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's + * Run Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("jumpHostId") + private String jumpHostId; + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's + * Run Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + * + * @param jumpHostId the value to set + * @return this builder + */ + public Builder jumpHostId(String jumpHostId) { + this.jumpHostId = jumpHostId; + this.__explicitlySet__.add("jumpHostId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupLocation") + private UpdateOkeBackupLocationDetails backupLocation; + + public Builder backupLocation(UpdateOkeBackupLocationDetails backupLocation) { + this.backupLocation = backupLocation; + this.__explicitlySet__.add("backupLocation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private UpdateOkeClusterBackupConfigDetails backupConfig; + + public Builder backupConfig(UpdateOkeClusterBackupConfigDetails backupConfig) { + this.backupConfig = backupConfig; + this.__explicitlySet__.add("backupConfig"); + return this; + } + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerMappings") + private java.util.List loadBalancerMappings; + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @param loadBalancerMappings the value to set + * @return this builder + */ + public Builder loadBalancerMappings( + java.util.List loadBalancerMappings) { + this.loadBalancerMappings = loadBalancerMappings; + this.__explicitlySet__.add("loadBalancerMappings"); + return this; + } + /** + * The list of source-to-destination network load balancer mappings required for DR + * operations. This property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkLoadBalancerMappings") + private java.util.List + networkLoadBalancerMappings; + + /** + * The list of source-to-destination network load balancer mappings required for DR + * operations. This property applies to the OKE cluster member in primary region. + * + * @param networkLoadBalancerMappings the value to set + * @return this builder + */ + public Builder networkLoadBalancerMappings( + java.util.List + networkLoadBalancerMappings) { + this.networkLoadBalancerMappings = networkLoadBalancerMappings; + this.__explicitlySet__.add("networkLoadBalancerMappings"); + return this; + } + /** + * The list of source-to-destination vault mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultMappings") + private java.util.List vaultMappings; + + /** + * The list of source-to-destination vault mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @param vaultMappings the value to set + * @return this builder + */ + public Builder vaultMappings( + java.util.List vaultMappings) { + this.vaultMappings = vaultMappings; + this.__explicitlySet__.add("vaultMappings"); + return this; + } + /** + * The list of managed node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedNodePoolConfigs") + private java.util.List + managedNodePoolConfigs; + + /** + * The list of managed node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + * + * @param managedNodePoolConfigs the value to set + * @return this builder + */ + public Builder managedNodePoolConfigs( + java.util.List + managedNodePoolConfigs) { + this.managedNodePoolConfigs = managedNodePoolConfigs; + this.__explicitlySet__.add("managedNodePoolConfigs"); + return this; + } + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolConfigs") + private java.util.List + virtualNodePoolConfigs; + + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. + * This property applies to the OKE cluster member in both the primary and standby region. + * + * @param virtualNodePoolConfigs the value to set + * @return this builder + */ + public Builder virtualNodePoolConfigs( + java.util.List + virtualNodePoolConfigs) { + this.virtualNodePoolConfigs = virtualNodePoolConfigs; + this.__explicitlySet__.add("virtualNodePoolConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDrProtectionGroupMemberOkeClusterDetails build() { + UpdateDrProtectionGroupMemberOkeClusterDetails model = + new UpdateDrProtectionGroupMemberOkeClusterDetails( + this.memberId, + this.peerClusterId, + this.jumpHostId, + this.backupLocation, + this.backupConfig, + this.loadBalancerMappings, + this.networkLoadBalancerMappings, + this.vaultMappings, + this.managedNodePoolConfigs, + this.virtualNodePoolConfigs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDrProtectionGroupMemberOkeClusterDetails model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("peerClusterId")) { + this.peerClusterId(model.getPeerClusterId()); + } + if (model.wasPropertyExplicitlySet("jumpHostId")) { + this.jumpHostId(model.getJumpHostId()); + } + if (model.wasPropertyExplicitlySet("backupLocation")) { + this.backupLocation(model.getBackupLocation()); + } + if (model.wasPropertyExplicitlySet("backupConfig")) { + this.backupConfig(model.getBackupConfig()); + } + if (model.wasPropertyExplicitlySet("loadBalancerMappings")) { + this.loadBalancerMappings(model.getLoadBalancerMappings()); + } + if (model.wasPropertyExplicitlySet("networkLoadBalancerMappings")) { + this.networkLoadBalancerMappings(model.getNetworkLoadBalancerMappings()); + } + if (model.wasPropertyExplicitlySet("vaultMappings")) { + this.vaultMappings(model.getVaultMappings()); + } + if (model.wasPropertyExplicitlySet("managedNodePoolConfigs")) { + this.managedNodePoolConfigs(model.getManagedNodePoolConfigs()); + } + if (model.wasPropertyExplicitlySet("virtualNodePoolConfigs")) { + this.virtualNodePoolConfigs(model.getVirtualNodePoolConfigs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDrProtectionGroupMemberOkeClusterDetails( + String memberId, + String peerClusterId, + String jumpHostId, + UpdateOkeBackupLocationDetails backupLocation, + UpdateOkeClusterBackupConfigDetails backupConfig, + java.util.List loadBalancerMappings, + java.util.List + networkLoadBalancerMappings, + java.util.List vaultMappings, + java.util.List + managedNodePoolConfigs, + java.util.List + virtualNodePoolConfigs) { + super(memberId); + this.peerClusterId = peerClusterId; + this.jumpHostId = jumpHostId; + this.backupLocation = backupLocation; + this.backupConfig = backupConfig; + this.loadBalancerMappings = loadBalancerMappings; + this.networkLoadBalancerMappings = networkLoadBalancerMappings; + this.vaultMappings = vaultMappings; + this.managedNodePoolConfigs = managedNodePoolConfigs; + this.virtualNodePoolConfigs = virtualNodePoolConfigs; + } + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both the + * primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerClusterId") + private final String peerClusterId; + + /** + * The OCID of the peer OKE cluster. This property applies to the OKE cluster member in both the + * primary and standby region. + * + *

Example: {@code ocid1.cluster.oc1..uniqueID} + * + * @return the value + */ + public String getPeerClusterId() { + return peerClusterId; + } + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's Run + * Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("jumpHostId") + private final String jumpHostId; + + /** + * The OCID of the compute instance member that is designated as a jump host. This compute + * instance will be used to perform DR operations on the cluster using Oracle Cloud Agent's Run + * Command feature. + * + *

Example: {@code ocid1.instance.oc1..uniqueID} + * + * @return the value + */ + public String getJumpHostId() { + return jumpHostId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupLocation") + private final UpdateOkeBackupLocationDetails backupLocation; + + public UpdateOkeBackupLocationDetails getBackupLocation() { + return backupLocation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private final UpdateOkeClusterBackupConfigDetails backupConfig; + + public UpdateOkeClusterBackupConfigDetails getBackupConfig() { + return backupConfig; + } + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerMappings") + private final java.util.List loadBalancerMappings; + + /** + * The list of source-to-destination load balancer mappings required for DR operations. This + * property applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getLoadBalancerMappings() { + return loadBalancerMappings; + } + + /** + * The list of source-to-destination network load balancer mappings required for DR operations. + * This property applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("networkLoadBalancerMappings") + private final java.util.List + networkLoadBalancerMappings; + + /** + * The list of source-to-destination network load balancer mappings required for DR operations. + * This property applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List + getNetworkLoadBalancerMappings() { + return networkLoadBalancerMappings; + } + + /** + * The list of source-to-destination vault mappings required for DR operations. This property + * applies to the OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultMappings") + private final java.util.List vaultMappings; + + /** + * The list of source-to-destination vault mappings required for DR operations. This property + * applies to the OKE cluster member in primary region. + * + * @return the value + */ + public java.util.List getVaultMappings() { + return vaultMappings; + } + + /** + * The list of managed node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedNodePoolConfigs") + private final java.util.List + managedNodePoolConfigs; + + /** + * The list of managed node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public java.util.List + getManagedNodePoolConfigs() { + return managedNodePoolConfigs; + } + + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolConfigs") + private final java.util.List + virtualNodePoolConfigs; + + /** + * The list of virtual node pools with configurations for minimum and maximum node counts. This + * property applies to the OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public java.util.List + getVirtualNodePoolConfigs() { + return virtualNodePoolConfigs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDrProtectionGroupMemberOkeClusterDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", peerClusterId=").append(String.valueOf(this.peerClusterId)); + sb.append(", jumpHostId=").append(String.valueOf(this.jumpHostId)); + sb.append(", backupLocation=").append(String.valueOf(this.backupLocation)); + sb.append(", backupConfig=").append(String.valueOf(this.backupConfig)); + sb.append(", loadBalancerMappings=").append(String.valueOf(this.loadBalancerMappings)); + sb.append(", networkLoadBalancerMappings=") + .append(String.valueOf(this.networkLoadBalancerMappings)); + sb.append(", vaultMappings=").append(String.valueOf(this.vaultMappings)); + sb.append(", managedNodePoolConfigs=").append(String.valueOf(this.managedNodePoolConfigs)); + sb.append(", virtualNodePoolConfigs=").append(String.valueOf(this.virtualNodePoolConfigs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDrProtectionGroupMemberOkeClusterDetails)) { + return false; + } + + UpdateDrProtectionGroupMemberOkeClusterDetails other = + (UpdateDrProtectionGroupMemberOkeClusterDetails) o; + return java.util.Objects.equals(this.peerClusterId, other.peerClusterId) + && java.util.Objects.equals(this.jumpHostId, other.jumpHostId) + && java.util.Objects.equals(this.backupLocation, other.backupLocation) + && java.util.Objects.equals(this.backupConfig, other.backupConfig) + && java.util.Objects.equals(this.loadBalancerMappings, other.loadBalancerMappings) + && java.util.Objects.equals( + this.networkLoadBalancerMappings, other.networkLoadBalancerMappings) + && java.util.Objects.equals(this.vaultMappings, other.vaultMappings) + && java.util.Objects.equals( + this.managedNodePoolConfigs, other.managedNodePoolConfigs) + && java.util.Objects.equals( + this.virtualNodePoolConfigs, other.virtualNodePoolConfigs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.peerClusterId == null ? 43 : this.peerClusterId.hashCode()); + result = (result * PRIME) + (this.jumpHostId == null ? 43 : this.jumpHostId.hashCode()); + result = + (result * PRIME) + + (this.backupLocation == null ? 43 : this.backupLocation.hashCode()); + result = (result * PRIME) + (this.backupConfig == null ? 43 : this.backupConfig.hashCode()); + result = + (result * PRIME) + + (this.loadBalancerMappings == null + ? 43 + : this.loadBalancerMappings.hashCode()); + result = + (result * PRIME) + + (this.networkLoadBalancerMappings == null + ? 43 + : this.networkLoadBalancerMappings.hashCode()); + result = + (result * PRIME) + + (this.vaultMappings == null ? 43 : this.vaultMappings.hashCode()); + result = + (result * PRIME) + + (this.managedNodePoolConfigs == null + ? 43 + : this.managedNodePoolConfigs.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolConfigs == null + ? 43 + : this.virtualNodePoolConfigs.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeBackupLocationDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeBackupLocationDetails.java new file mode 100644 index 00000000000..d85897c2cc2 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeBackupLocationDetails.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The details for updating the backup location of an OKE Cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeBackupLocationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeBackupLocationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "bucket"}) + public UpdateOkeBackupLocationDetails(String namespace, String bucket) { + super(); + this.namespace = namespace; + this.bucket = bucket; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The namespace in the object storage backup location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The namespace in the object storage backup location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + * + * @param bucket the value to set + * @return this builder + */ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeBackupLocationDetails build() { + UpdateOkeBackupLocationDetails model = + new UpdateOkeBackupLocationDetails(this.namespace, this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeBackupLocationDetails model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The namespace in the object storage backup location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The namespace in the object storage backup location (Note - this is usually the tenancy + * name). + * + *

Example: {@code myocitenancy} + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code operation_logs} + * + * @return the value + */ + public String getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeBackupLocationDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeBackupLocationDetails)) { + return false; + } + + UpdateOkeBackupLocationDetails other = (UpdateOkeBackupLocationDetails) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.bucket, other.bucket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterBackupConfigDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterBackupConfigDetails.java new file mode 100644 index 00000000000..09395fc17d4 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterBackupConfigDetails.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update backup configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeClusterBackupConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeClusterBackupConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "namespaces", + "backupSchedule", + "replicateImages", + "maxNumberOfBackupsRetained", + "imageReplicationVaultSecretId" + }) + public UpdateOkeClusterBackupConfigDetails( + java.util.List namespaces, + String backupSchedule, + OkeClusterImageReplication replicateImages, + Integer maxNumberOfBackupsRetained, + String imageReplicationVaultSecretId) { + super(); + this.namespaces = namespaces; + this.backupSchedule = backupSchedule; + this.replicateImages = replicateImages; + this.maxNumberOfBackupsRetained = maxNumberOfBackupsRetained; + this.imageReplicationVaultSecretId = imageReplicationVaultSecretId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to + * the OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaces") + private java.util.List namespaces; + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to + * the OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + * + * @param namespaces the value to set + * @return this builder + */ + public Builder namespaces(java.util.List namespaces) { + this.namespaces = namespaces; + this.__explicitlySet__.add("namespaces"); + return this; + } + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is + * not specified, only a single backup will be created. This format of the string specifying + * the backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. + * This property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSchedule") + private String backupSchedule; + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is + * not specified, only a single backup will be created. This format of the string specifying + * the backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. + * This property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + * + * @param backupSchedule the value to set + * @return this builder + */ + public Builder backupSchedule(String backupSchedule) { + this.backupSchedule = backupSchedule; + this.__explicitlySet__.add("backupSchedule"); + return this; + } + /** + * Controls the behaviour of image replication across regions. This property applies to the + * OKE cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicateImages") + private OkeClusterImageReplication replicateImages; + + /** + * Controls the behaviour of image replication across regions. This property applies to the + * OKE cluster member in primary region. + * + * @param replicateImages the value to set + * @return this builder + */ + public Builder replicateImages(OkeClusterImageReplication replicateImages) { + this.replicateImages = replicateImages; + this.__explicitlySet__.add("replicateImages"); + return this; + } + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxNumberOfBackupsRetained") + private Integer maxNumberOfBackupsRetained; + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + * + * @param maxNumberOfBackupsRetained the value to set + * @return this builder + */ + public Builder maxNumberOfBackupsRetained(Integer maxNumberOfBackupsRetained) { + this.maxNumberOfBackupsRetained = maxNumberOfBackupsRetained; + this.__explicitlySet__.add("maxNumberOfBackupsRetained"); + return this; + } + /** + * The OCID of the vault secret that stores the image credential. This property applies to + * the OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageReplicationVaultSecretId") + private String imageReplicationVaultSecretId; + + /** + * The OCID of the vault secret that stores the image credential. This property applies to + * the OKE cluster member in both the primary and standby region. + * + * @param imageReplicationVaultSecretId the value to set + * @return this builder + */ + public Builder imageReplicationVaultSecretId(String imageReplicationVaultSecretId) { + this.imageReplicationVaultSecretId = imageReplicationVaultSecretId; + this.__explicitlySet__.add("imageReplicationVaultSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeClusterBackupConfigDetails build() { + UpdateOkeClusterBackupConfigDetails model = + new UpdateOkeClusterBackupConfigDetails( + this.namespaces, + this.backupSchedule, + this.replicateImages, + this.maxNumberOfBackupsRetained, + this.imageReplicationVaultSecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeClusterBackupConfigDetails model) { + if (model.wasPropertyExplicitlySet("namespaces")) { + this.namespaces(model.getNamespaces()); + } + if (model.wasPropertyExplicitlySet("backupSchedule")) { + this.backupSchedule(model.getBackupSchedule()); + } + if (model.wasPropertyExplicitlySet("replicateImages")) { + this.replicateImages(model.getReplicateImages()); + } + if (model.wasPropertyExplicitlySet("maxNumberOfBackupsRetained")) { + this.maxNumberOfBackupsRetained(model.getMaxNumberOfBackupsRetained()); + } + if (model.wasPropertyExplicitlySet("imageReplicationVaultSecretId")) { + this.imageReplicationVaultSecretId(model.getImageReplicationVaultSecretId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to the + * OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaces") + private final java.util.List namespaces; + + /** + * A list of namespaces that need to be backed up. The default value is null. If a list of + * namespaces is not provided, all namespaces will be backed up. This property applies to the + * OKE cluster member in primary region. + * + *

Example: ["default", "pv-nginx"] + * + * @return the value + */ + public java.util.List getNamespaces() { + return namespaces; + } + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is not + * specified, only a single backup will be created. This format of the string specifying the + * backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. This + * property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSchedule") + private final String backupSchedule; + + /** + * The schedule for backing up namespaces to the destination region. If a backup schedule is not + * specified, only a single backup will be created. This format of the string specifying the + * backup schedule must conform with RFC-5545. This schedule will use the UTC timezone. This + * property applies to the OKE cluster member in primary region. + * + *

Example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH;BYHOUR=10;INTERVAL=1 + * + * @return the value + */ + public String getBackupSchedule() { + return backupSchedule; + } + + /** + * Controls the behaviour of image replication across regions. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicateImages") + private final OkeClusterImageReplication replicateImages; + + /** + * Controls the behaviour of image replication across regions. This property applies to the OKE + * cluster member in primary region. + * + * @return the value + */ + public OkeClusterImageReplication getReplicateImages() { + return replicateImages; + } + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxNumberOfBackupsRetained") + private final Integer maxNumberOfBackupsRetained; + + /** + * The maximum number of backups that should be retained. This property applies to the OKE + * cluster member in primary region. + * + * @return the value + */ + public Integer getMaxNumberOfBackupsRetained() { + return maxNumberOfBackupsRetained; + } + + /** + * The OCID of the vault secret that stores the image credential. This property applies to the + * OKE cluster member in both the primary and standby region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageReplicationVaultSecretId") + private final String imageReplicationVaultSecretId; + + /** + * The OCID of the vault secret that stores the image credential. This property applies to the + * OKE cluster member in both the primary and standby region. + * + * @return the value + */ + public String getImageReplicationVaultSecretId() { + return imageReplicationVaultSecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeClusterBackupConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespaces=").append(String.valueOf(this.namespaces)); + sb.append(", backupSchedule=").append(String.valueOf(this.backupSchedule)); + sb.append(", replicateImages=").append(String.valueOf(this.replicateImages)); + sb.append(", maxNumberOfBackupsRetained=") + .append(String.valueOf(this.maxNumberOfBackupsRetained)); + sb.append(", imageReplicationVaultSecretId=") + .append(String.valueOf(this.imageReplicationVaultSecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeClusterBackupConfigDetails)) { + return false; + } + + UpdateOkeClusterBackupConfigDetails other = (UpdateOkeClusterBackupConfigDetails) o; + return java.util.Objects.equals(this.namespaces, other.namespaces) + && java.util.Objects.equals(this.backupSchedule, other.backupSchedule) + && java.util.Objects.equals(this.replicateImages, other.replicateImages) + && java.util.Objects.equals( + this.maxNumberOfBackupsRetained, other.maxNumberOfBackupsRetained) + && java.util.Objects.equals( + this.imageReplicationVaultSecretId, other.imageReplicationVaultSecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.namespaces == null ? 43 : this.namespaces.hashCode()); + result = + (result * PRIME) + + (this.backupSchedule == null ? 43 : this.backupSchedule.hashCode()); + result = + (result * PRIME) + + (this.replicateImages == null ? 43 : this.replicateImages.hashCode()); + result = + (result * PRIME) + + (this.maxNumberOfBackupsRetained == null + ? 43 + : this.maxNumberOfBackupsRetained.hashCode()); + result = + (result * PRIME) + + (this.imageReplicationVaultSecretId == null + ? 43 + : this.imageReplicationVaultSecretId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterLoadBalancerMappingDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterLoadBalancerMappingDetails.java new file mode 100644 index 00000000000..c8d4b5f4170 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterLoadBalancerMappingDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update source-to-destination mapping for a load balancer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeClusterLoadBalancerMappingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeClusterLoadBalancerMappingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceLoadBalancerId", "destinationLoadBalancerId"}) + public UpdateOkeClusterLoadBalancerMappingDetails( + String sourceLoadBalancerId, String destinationLoadBalancerId) { + super(); + this.sourceLoadBalancerId = sourceLoadBalancerId; + this.destinationLoadBalancerId = destinationLoadBalancerId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Load Balancer . + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceLoadBalancerId") + private String sourceLoadBalancerId; + + /** + * The OCID of the source Load Balancer . + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @param sourceLoadBalancerId the value to set + * @return this builder + */ + public Builder sourceLoadBalancerId(String sourceLoadBalancerId) { + this.sourceLoadBalancerId = sourceLoadBalancerId; + this.__explicitlySet__.add("sourceLoadBalancerId"); + return this; + } + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationLoadBalancerId") + private String destinationLoadBalancerId; + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @param destinationLoadBalancerId the value to set + * @return this builder + */ + public Builder destinationLoadBalancerId(String destinationLoadBalancerId) { + this.destinationLoadBalancerId = destinationLoadBalancerId; + this.__explicitlySet__.add("destinationLoadBalancerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeClusterLoadBalancerMappingDetails build() { + UpdateOkeClusterLoadBalancerMappingDetails model = + new UpdateOkeClusterLoadBalancerMappingDetails( + this.sourceLoadBalancerId, this.destinationLoadBalancerId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeClusterLoadBalancerMappingDetails model) { + if (model.wasPropertyExplicitlySet("sourceLoadBalancerId")) { + this.sourceLoadBalancerId(model.getSourceLoadBalancerId()); + } + if (model.wasPropertyExplicitlySet("destinationLoadBalancerId")) { + this.destinationLoadBalancerId(model.getDestinationLoadBalancerId()); + } + 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 source Load Balancer . + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceLoadBalancerId") + private final String sourceLoadBalancerId; + + /** + * The OCID of the source Load Balancer . + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getSourceLoadBalancerId() { + return sourceLoadBalancerId; + } + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationLoadBalancerId") + private final String destinationLoadBalancerId; + + /** + * The OCID of the destination Load Balancer. + * + *

Example: {@code ocid1.loadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationLoadBalancerId() { + return destinationLoadBalancerId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeClusterLoadBalancerMappingDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceLoadBalancerId=").append(String.valueOf(this.sourceLoadBalancerId)); + sb.append(", destinationLoadBalancerId=") + .append(String.valueOf(this.destinationLoadBalancerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeClusterLoadBalancerMappingDetails)) { + return false; + } + + UpdateOkeClusterLoadBalancerMappingDetails other = + (UpdateOkeClusterLoadBalancerMappingDetails) o; + return java.util.Objects.equals(this.sourceLoadBalancerId, other.sourceLoadBalancerId) + && java.util.Objects.equals( + this.destinationLoadBalancerId, other.destinationLoadBalancerId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceLoadBalancerId == null + ? 43 + : this.sourceLoadBalancerId.hashCode()); + result = + (result * PRIME) + + (this.destinationLoadBalancerId == null + ? 43 + : this.destinationLoadBalancerId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterManagedNodePoolConfigurationDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterManagedNodePoolConfigurationDetails.java new file mode 100644 index 00000000000..ee48e650f1c --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterManagedNodePoolConfigurationDetails.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update managed node pool configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeClusterManagedNodePoolConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeClusterManagedNodePoolConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "minimum", "maximum"}) + public UpdateOkeClusterManagedNodePoolConfigurationDetails( + String id, Integer minimum, Integer maximum) { + super(); + this.id = id; + this.minimum = minimum; + this.maximum = maximum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the managed node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the managed node pool in OKE cluster. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The minimum number to which nodes in the managed node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Integer minimum; + + /** + * The minimum number to which nodes in the managed node pool could be scaled down. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Integer minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** The maximum number to which nodes in the managed node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Integer maximum; + + /** + * The maximum number to which nodes in the managed node pool could be scaled up. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Integer maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeClusterManagedNodePoolConfigurationDetails build() { + UpdateOkeClusterManagedNodePoolConfigurationDetails model = + new UpdateOkeClusterManagedNodePoolConfigurationDetails( + this.id, this.minimum, this.maximum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeClusterManagedNodePoolConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + 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 managed node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the managed node pool in OKE cluster. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The minimum number to which nodes in the managed node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Integer minimum; + + /** + * The minimum number to which nodes in the managed node pool could be scaled down. + * + * @return the value + */ + public Integer getMinimum() { + return minimum; + } + + /** The maximum number to which nodes in the managed node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Integer maximum; + + /** + * The maximum number to which nodes in the managed node pool could be scaled up. + * + * @return the value + */ + public Integer getMaximum() { + return maximum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeClusterManagedNodePoolConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeClusterManagedNodePoolConfigurationDetails)) { + return false; + } + + UpdateOkeClusterManagedNodePoolConfigurationDetails other = + (UpdateOkeClusterManagedNodePoolConfigurationDetails) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && 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.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterNetworkLoadBalancerMappingDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterNetworkLoadBalancerMappingDetails.java new file mode 100644 index 00000000000..d6106fe60c5 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterNetworkLoadBalancerMappingDetails.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update source-to-destination mapping for a network load balancer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeClusterNetworkLoadBalancerMappingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeClusterNetworkLoadBalancerMappingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceNetworkLoadBalancerId", + "destinationNetworkLoadBalancerId" + }) + public UpdateOkeClusterNetworkLoadBalancerMappingDetails( + String sourceNetworkLoadBalancerId, String destinationNetworkLoadBalancerId) { + super(); + this.sourceNetworkLoadBalancerId = sourceNetworkLoadBalancerId; + this.destinationNetworkLoadBalancerId = destinationNetworkLoadBalancerId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceNetworkLoadBalancerId") + private String sourceNetworkLoadBalancerId; + + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @param sourceNetworkLoadBalancerId the value to set + * @return this builder + */ + public Builder sourceNetworkLoadBalancerId(String sourceNetworkLoadBalancerId) { + this.sourceNetworkLoadBalancerId = sourceNetworkLoadBalancerId; + this.__explicitlySet__.add("sourceNetworkLoadBalancerId"); + return this; + } + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationNetworkLoadBalancerId") + private String destinationNetworkLoadBalancerId; + + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @param destinationNetworkLoadBalancerId the value to set + * @return this builder + */ + public Builder destinationNetworkLoadBalancerId(String destinationNetworkLoadBalancerId) { + this.destinationNetworkLoadBalancerId = destinationNetworkLoadBalancerId; + this.__explicitlySet__.add("destinationNetworkLoadBalancerId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeClusterNetworkLoadBalancerMappingDetails build() { + UpdateOkeClusterNetworkLoadBalancerMappingDetails model = + new UpdateOkeClusterNetworkLoadBalancerMappingDetails( + this.sourceNetworkLoadBalancerId, + this.destinationNetworkLoadBalancerId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeClusterNetworkLoadBalancerMappingDetails model) { + if (model.wasPropertyExplicitlySet("sourceNetworkLoadBalancerId")) { + this.sourceNetworkLoadBalancerId(model.getSourceNetworkLoadBalancerId()); + } + if (model.wasPropertyExplicitlySet("destinationNetworkLoadBalancerId")) { + this.destinationNetworkLoadBalancerId(model.getDestinationNetworkLoadBalancerId()); + } + 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 source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceNetworkLoadBalancerId") + private final String sourceNetworkLoadBalancerId; + + /** + * The OCID of the source Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getSourceNetworkLoadBalancerId() { + return sourceNetworkLoadBalancerId; + } + + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationNetworkLoadBalancerId") + private final String destinationNetworkLoadBalancerId; + + /** + * The OCID of the destination Network Load Balancer. + * + *

Example: {@code ocid1.networkloadbalancer.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationNetworkLoadBalancerId() { + return destinationNetworkLoadBalancerId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeClusterNetworkLoadBalancerMappingDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceNetworkLoadBalancerId=") + .append(String.valueOf(this.sourceNetworkLoadBalancerId)); + sb.append(", destinationNetworkLoadBalancerId=") + .append(String.valueOf(this.destinationNetworkLoadBalancerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeClusterNetworkLoadBalancerMappingDetails)) { + return false; + } + + UpdateOkeClusterNetworkLoadBalancerMappingDetails other = + (UpdateOkeClusterNetworkLoadBalancerMappingDetails) o; + return java.util.Objects.equals( + this.sourceNetworkLoadBalancerId, other.sourceNetworkLoadBalancerId) + && java.util.Objects.equals( + this.destinationNetworkLoadBalancerId, + other.destinationNetworkLoadBalancerId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceNetworkLoadBalancerId == null + ? 43 + : this.sourceNetworkLoadBalancerId.hashCode()); + result = + (result * PRIME) + + (this.destinationNetworkLoadBalancerId == null + ? 43 + : this.destinationNetworkLoadBalancerId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVaultMappingDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVaultMappingDetails.java new file mode 100644 index 00000000000..97799c56f1d --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVaultMappingDetails.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update source-to-destination mapping for a vault.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeClusterVaultMappingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeClusterVaultMappingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceVaultId", "destinationVaultId"}) + public UpdateOkeClusterVaultMappingDetails(String sourceVaultId, String destinationVaultId) { + super(); + this.sourceVaultId = sourceVaultId; + this.destinationVaultId = destinationVaultId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVaultId") + private String sourceVaultId; + + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @param sourceVaultId the value to set + * @return this builder + */ + public Builder sourceVaultId(String sourceVaultId) { + this.sourceVaultId = sourceVaultId; + this.__explicitlySet__.add("sourceVaultId"); + return this; + } + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationVaultId") + private String destinationVaultId; + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @param destinationVaultId the value to set + * @return this builder + */ + public Builder destinationVaultId(String destinationVaultId) { + this.destinationVaultId = destinationVaultId; + this.__explicitlySet__.add("destinationVaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeClusterVaultMappingDetails build() { + UpdateOkeClusterVaultMappingDetails model = + new UpdateOkeClusterVaultMappingDetails( + this.sourceVaultId, this.destinationVaultId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeClusterVaultMappingDetails model) { + if (model.wasPropertyExplicitlySet("sourceVaultId")) { + this.sourceVaultId(model.getSourceVaultId()); + } + if (model.wasPropertyExplicitlySet("destinationVaultId")) { + this.destinationVaultId(model.getDestinationVaultId()); + } + 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 source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVaultId") + private final String sourceVaultId; + + /** + * The OCID of the source Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @return the value + */ + public String getSourceVaultId() { + return sourceVaultId; + } + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("destinationVaultId") + private final String destinationVaultId; + + /** + * The OCID of the destination Vault. + * + *

Example: {@code ocid1.vault.oc1..uniqueID} + * + * @return the value + */ + public String getDestinationVaultId() { + return destinationVaultId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeClusterVaultMappingDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceVaultId=").append(String.valueOf(this.sourceVaultId)); + sb.append(", destinationVaultId=").append(String.valueOf(this.destinationVaultId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeClusterVaultMappingDetails)) { + return false; + } + + UpdateOkeClusterVaultMappingDetails other = (UpdateOkeClusterVaultMappingDetails) o; + return java.util.Objects.equals(this.sourceVaultId, other.sourceVaultId) + && java.util.Objects.equals(this.destinationVaultId, other.destinationVaultId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceVaultId == null ? 43 : this.sourceVaultId.hashCode()); + result = + (result * PRIME) + + (this.destinationVaultId == null + ? 43 + : this.destinationVaultId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVirtualNodePoolConfigurationDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVirtualNodePoolConfigurationDetails.java new file mode 100644 index 00000000000..16230226747 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateOkeClusterVirtualNodePoolConfigurationDetails.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update virtual node pool configuration properties for an OKE member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOkeClusterVirtualNodePoolConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOkeClusterVirtualNodePoolConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "minimum", "maximum"}) + public UpdateOkeClusterVirtualNodePoolConfigurationDetails( + String id, Integer minimum, Integer maximum) { + super(); + this.id = id; + this.minimum = minimum; + this.maximum = maximum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the virtual node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the virtual node pool in OKE cluster. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The minimum number to which nodes in the virtual node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Integer minimum; + + /** + * The minimum number to which nodes in the virtual node pool could be scaled down. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Integer minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** The maximum number to which nodes in the virtual node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Integer maximum; + + /** + * The maximum number to which nodes in the virtual node pool could be scaled up. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Integer maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOkeClusterVirtualNodePoolConfigurationDetails build() { + UpdateOkeClusterVirtualNodePoolConfigurationDetails model = + new UpdateOkeClusterVirtualNodePoolConfigurationDetails( + this.id, this.minimum, this.maximum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOkeClusterVirtualNodePoolConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + 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 virtual node pool in OKE cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the virtual node pool in OKE cluster. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The minimum number to which nodes in the virtual node pool could be scaled down. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Integer minimum; + + /** + * The minimum number to which nodes in the virtual node pool could be scaled down. + * + * @return the value + */ + public Integer getMinimum() { + return minimum; + } + + /** The maximum number to which nodes in the virtual node pool could be scaled up. */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Integer maximum; + + /** + * The maximum number to which nodes in the virtual node pool could be scaled up. + * + * @return the value + */ + public Integer getMaximum() { + return maximum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOkeClusterVirtualNodePoolConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOkeClusterVirtualNodePoolConfigurationDetails)) { + return false; + } + + UpdateOkeClusterVirtualNodePoolConfigurationDetails other = + (UpdateOkeClusterVirtualNodePoolConfigurationDetails) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && 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.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json b/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json index 6237520190f..e550cb17992 100644 --- a/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json +++ b/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json @@ -444,6 +444,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberOkeClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberOkeClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberVolumeGroupDetails", @@ -500,6 +514,104 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeBackupLocationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeBackupLocationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterBackupConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterBackupConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterLoadBalancerMappingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterLoadBalancerMappingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterManagedNodePoolConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterManagedNodePoolConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterNetworkLoadBalancerMappingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterNetworkLoadBalancerMappingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterVaultMappingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterVaultMappingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterVirtualNodePoolConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateOkeClusterVirtualNodePoolConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.DisassociateDrProtectionGroupDefaultDetails", @@ -978,6 +1090,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberOkeCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberOkeCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberType", @@ -1284,6 +1410,110 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeBackupLocation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeBackupLocation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterBackupConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterBackupConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterImageReplication", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterLoadBalancerMapping", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterLoadBalancerMapping$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterManagedNodePoolConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterManagedNodePoolConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterNetworkLoadBalancerMapping", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterNetworkLoadBalancerMapping$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterVaultMapping", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterVaultMapping$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterVirtualNodePoolConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.OkeClusterVirtualNodePoolConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.OperationStatus", @@ -1867,6 +2097,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberOkeClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberOkeClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberVolumeGroupDetails", @@ -2007,6 +2251,104 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeBackupLocationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeBackupLocationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterBackupConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterBackupConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterLoadBalancerMappingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterLoadBalancerMappingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterManagedNodePoolConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterManagedNodePoolConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterNetworkLoadBalancerMappingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterNetworkLoadBalancerMappingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterVaultMappingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterVaultMappingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterVirtualNodePoolConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateOkeClusterVirtualNodePoolConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.UpdateRunLocalScriptUserDefinedStepDetails", diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 163147d9d09..a9cb3b757c5 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.3 + 3.56.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index cd66d48c290..bd85ad2f71d 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index f608f31bcc3..eec7331b964 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 7039235e541..a9dd43d2d8c 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index e34d4645142..75b7f1da8e0 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 163d7cc4949..fba5a101998 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.55.3 + 3.56.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 8f1d76909e8..ae87c0b36dd 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.55.3 + 3.56.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index b5949d93983..3dc012827e1 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 0c71e05d0ca..5f26014cc8a 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 6dd32a3d834..58b8c1eed25 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index abd7513206b..c9e9e4ce1a0 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 7f35249183c..f32bcca4761 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index fc6816e2e3a..c27314cb092 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 7e7076b03f8..6be55661c13 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index b22e81117ae..30198fa02c8 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 03669af7e4f..bb58ec90dae 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 8eeb9eab698..a501b3d5bc7 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 37521e23a3a..08ea5e16000 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 7231afcff63..06883619e29 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 83bcbf4006a..ccd56171b90 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index 7845448d411..ca6c97ac53c 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index e9fae46a246..5f37d8fc168 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index b9f03699a85..9c29ae4c5c9 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index d4b8fedc3e5..c2726cd347b 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 95b0d485473..913b6ac4269 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index eb96efb1474..ccb6fd16ad6 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index b058cf74e3c..dd16800e622 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 39c7b76ebde..d1dd5117ce9 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index d4faf1047b3..498efa4d62f 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 40da71e5d8e..43bc54e7412 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index b168640e651..da078a145a6 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 14b57a0e700..05f79151074 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index e592bb7106f..5fe12891473 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 6b1e31e099c..9a4c85a0fef 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index d6380049f48..b7dd6a8299c 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 9d38933356e..a07d6ee9331 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 5a3633f2bb2..0f09244c3a7 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index d60fc519ebd..769614986b4 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 46f586126a3..5afca42dbb1 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index b62cf94734f..5830255b5cd 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index dd74bac5407..9506a809d14 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 3b06579c039..18935e2d356 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 8bfe96493d6..c2b67f3cc6e 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index b6ad6d25172..ca8846559ed 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 976f9b3d190..b15310dd38d 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 2841e7301a1..4e30c722dd6 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 1d58bcabee0..fc85104a302 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 72f4ad4f89e..72d577b3a5f 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index e9b940c87e6..556652f0231 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index cf2aa6ea76c..10a2497202c 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 4d49e887c07..cbbf982fdb0 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.55.3 + 3.56.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.55.3 + 3.56.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 792fd8a84e0..ee5b73b30f8 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.55.3 + 3.56.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.55.3 + 3.56.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index e212ec21d55..4e7748bb3b8 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.55.3 + 3.56.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 3e357574089..830c188dab5 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 1e2a6d8df1a..bede40b6b99 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 14d4e84c261..018aae50c0f 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 72e6e1afbfd..c8af78e0329 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 776e3b2789c..c96e9df6152 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 53690a18d6f..9c7b01944cc 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index cfa6a663430..e467d36ed21 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 32a5fea2363..58e73fbb9f6 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 108ffa756c3..d573ea3d3f8 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index e9c17628034..d35e01c664a 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index a918bf3fc92..a6c6b932b3a 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsights.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsights.java index e144929f841..5f5252cec9a 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsights.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsights.java @@ -175,6 +175,25 @@ ChangeEnterpriseManagerBridgeCompartmentResponse changeEnterpriseManagerBridgeCo ChangeExadataInsightCompartmentResponse changeExadataInsightCompartment( ChangeExadataInsightCompartmentRequest request); + /** + * Change the connection details of an External MySQL database insight. When provided, If-Match + * is checked against ETag values of the resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeExternalMysqlDatabaseInsightConnection API. + */ + ChangeExternalMysqlDatabaseInsightConnectionResponse + changeExternalMysqlDatabaseInsightConnection( + ChangeExternalMysqlDatabaseInsightConnectionRequest request); + /** * Moves a HostInsight resource from one compartment identifier to another. When provided, * If-Match is checked against ETag values of the resource. diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsync.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsync.java index 13096a95a49..80df9eb5662 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsync.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsync.java @@ -175,6 +175,25 @@ java.util.concurrent.Future addExadataInsightM ChangeExadataInsightCompartmentResponse> handler); + /** + * Change the connection details of an External MySQL database insight. When provided, If-Match + * is checked against ETag values of the resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeExternalMysqlDatabaseInsightConnection( + ChangeExternalMysqlDatabaseInsightConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalMysqlDatabaseInsightConnectionRequest, + ChangeExternalMysqlDatabaseInsightConnectionResponse> + handler); + /** * Moves a HostInsight resource from one compartment identifier to another. When provided, * If-Match is checked against ETag values of the resource. diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java index d95cc86bfb0..fcfd14249b2 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java @@ -370,6 +370,48 @@ public java.util.concurrent.Future addExadataI .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeExternalMysqlDatabaseInsightConnection( + ChangeExternalMysqlDatabaseInsightConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeExternalMysqlDatabaseInsightConnectionRequest, + ChangeExternalMysqlDatabaseInsightConnectionResponse> + handler) { + + Validate.notBlank(request.getDatabaseInsightId(), "databaseInsightId must not be blank"); + Objects.requireNonNull( + request.getChangeExternalMysqlDatabaseInsightConnectionDetails(), + "changeExternalMysqlDatabaseInsightConnectionDetails is required"); + + return clientCall(request, ChangeExternalMysqlDatabaseInsightConnectionResponse::builder) + .logger(LOG, "changeExternalMysqlDatabaseInsightConnection") + .serviceDetails( + "OperationsInsights", + "ChangeExternalMysqlDatabaseInsightConnection", + "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeExternalMysqlDatabaseInsightConnection") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeExternalMysqlDatabaseInsightConnectionRequest::builder) + .basePath("/20200630") + .appendPathParam("databaseInsights") + .appendPathParam(request.getDatabaseInsightId()) + .appendPathParam("actions") + .appendPathParam("changeExternalMysqlDatabaseInsightConnectionDetails") + .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", + ChangeExternalMysqlDatabaseInsightConnectionResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeExternalMysqlDatabaseInsightConnectionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeHostInsightCompartment( @@ -7443,6 +7485,8 @@ public java.util.concurrent.Future summarizeA request.getFreeformTagExists(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("highUtilizationThreshold", request.getHighUtilizationThreshold()) + .appendQueryParam("lowUtilizationThreshold", request.getLowUtilizationThreshold()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsClient.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsClient.java index 6acc41d34b5..3617c6ad8cc 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsClient.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsClient.java @@ -376,6 +376,45 @@ public ChangeExadataInsightCompartmentResponse changeExadataInsightCompartment( .callSync(); } + @Override + public ChangeExternalMysqlDatabaseInsightConnectionResponse + changeExternalMysqlDatabaseInsightConnection( + ChangeExternalMysqlDatabaseInsightConnectionRequest request) { + + Validate.notBlank(request.getDatabaseInsightId(), "databaseInsightId must not be blank"); + Objects.requireNonNull( + request.getChangeExternalMysqlDatabaseInsightConnectionDetails(), + "changeExternalMysqlDatabaseInsightConnectionDetails is required"); + + return clientCall(request, ChangeExternalMysqlDatabaseInsightConnectionResponse::builder) + .logger(LOG, "changeExternalMysqlDatabaseInsightConnection") + .serviceDetails( + "OperationsInsights", + "ChangeExternalMysqlDatabaseInsightConnection", + "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeExternalMysqlDatabaseInsightConnection") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeExternalMysqlDatabaseInsightConnectionRequest::builder) + .basePath("/20200630") + .appendPathParam("databaseInsights") + .appendPathParam(request.getDatabaseInsightId()) + .appendPathParam("actions") + .appendPathParam("changeExternalMysqlDatabaseInsightConnectionDetails") + .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", + ChangeExternalMysqlDatabaseInsightConnectionResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeExternalMysqlDatabaseInsightConnectionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeHostInsightCompartmentResponse changeHostInsightCompartment( ChangeHostInsightCompartmentRequest request) { @@ -7002,6 +7041,8 @@ public SummarizeExadataInsightResourceUsageResponse summarizeExadataInsightResou request.getFreeformTagExists(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendQueryParam("highUtilizationThreshold", request.getHighUtilizationThreshold()) + .appendQueryParam("lowUtilizationThreshold", request.getLowUtilizationThreshold()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ActionableInsightsContentTypesResource.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ActionableInsightsContentTypesResource.java new file mode 100644 index 00000000000..578931e0418 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ActionableInsightsContentTypesResource.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** Supported resources for actionable insights content type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public enum ActionableInsightsContentTypesResource implements com.oracle.bmc.http.internal.BmcEnum { + NewHighs("NEW_HIGHS"), + BigChanges("BIG_CHANGES"), + CurrentInventory("CURRENT_INVENTORY"), + InventoryChanges("INVENTORY_CHANGES"), + FleetStatistics("FLEET_STATISTICS"), + FleetAnalysisSummaryDbCount("FLEET_ANALYSIS_SUMMARY_DB_COUNT"), + FleetAnalysisSummarySqlAnalyzedCount("FLEET_ANALYSIS_SUMMARY_SQL_ANALYZED_COUNT"), + FleetAnalysisSummaryNewSqlCount("FLEET_ANALYSIS_SUMMARY_NEW_SQL_COUNT"), + FleetAnalysisSummaryBusiestDb("FLEET_ANALYSIS_SUMMARY_BUSIEST_DB"), + FleetAnalysisDegradingSqlCount("FLEET_ANALYSIS_DEGRADING_SQL_COUNT"), + FleetAnalysisDegradingSqlByDb("FLEET_ANALYSIS_DEGRADING_SQL_BY_DB"), + FleetAnalysisDegradingSqlBySqlId("FLEET_ANALYSIS_DEGRADING_SQL_BY_SQL_ID"), + FleetAnalysisPlanChangesCount("FLEET_ANALYSIS_PLAN_CHANGES_COUNT"), + FleetAnalysisPlanChangesDbMostChanges("FLEET_ANALYSIS_PLAN_CHANGES_DB_MOST_CHANGES"), + FleetAnalysisPlanChangesBySqlIdImproved("FLEET_ANALYSIS_PLAN_CHANGES_BY_SQL_ID_IMPROVED"), + FleetAnalysisPlanChangesBySqlIdDegraded("FLEET_ANALYSIS_PLAN_CHANGES_BY_SQL_ID_DEGRADED"), + FleetAnalysisInvalidationStormsCount("FLEET_ANALYSIS_INVALIDATION_STORMS_COUNT"), + FleetAnalysisInvalidationStormsHighest("FLEET_ANALYSIS_INVALIDATION_STORMS_HIGHEST"), + FleetAnalysisCursorSharingIssuesCount("FLEET_ANALYSIS_CURSOR_SHARING_ISSUES_COUNT"), + FleetAnalysisCursorSharingIssuesByDb("FLEET_ANALYSIS_CURSOR_SHARING_ISSUES_BY_DB"), + FleetAnalysisCursorSharingIssuesBySql("FLEET_ANALYSIS_CURSOR_SHARING_ISSUES_BY_SQL"), + PerformanceDegradationSummaryDbCount("PERFORMANCE_DEGRADATION_SUMMARY_DB_COUNT"), + PerformanceDegradationSummarySqlAnalyzedCount( + "PERFORMANCE_DEGRADATION_SUMMARY_SQL_ANALYZED_COUNT"), + PerformanceDegradationSummarySqlPerformanceTrendsCount( + "PERFORMANCE_DEGRADATION_SUMMARY_SQL_PERFORMANCE_TRENDS_COUNT"), + PerformanceDegradationSummaryDegradedSqlCount( + "PERFORMANCE_DEGRADATION_SUMMARY_DEGRADED_SQL_COUNT"), + PerformanceDegradationSummaryImprovedSqlCount( + "PERFORMANCE_DEGRADATION_SUMMARY_IMPROVED_SQL_COUNT"), + PerformanceDegradationDbDegradedCount("PERFORMANCE_DEGRADATION_DB_DEGRADED_COUNT"), + PerformanceDegradationSqlDegradedTable("PERFORMANCE_DEGRADATION_SQL_DEGRADED_TABLE"), + PlanChangesSummaryDbCount("PLAN_CHANGES_SUMMARY_DB_COUNT"), + PlanChangesSummarySqlAnalyzedCount("PLAN_CHANGES_SUMMARY_SQL_ANALYZED_COUNT"), + PlanChangesSummaryPlanChangesCount("PLAN_CHANGES_SUMMARY_PLAN_CHANGES_COUNT"), + PlanChangesSummaryImprovementsCount("PLAN_CHANGES_SUMMARY_IMPROVEMENTS_COUNT"), + PlanChangesSummaryDegradationCount("PLAN_CHANGES_SUMMARY_DEGRADATION_COUNT"), + PlanChangesTopPlanChangesTable("PLAN_CHANGES_TOP_PLAN_CHANGES_TABLE"), + TopDbSummaryDbCount("TOP_DB_SUMMARY_DB_COUNT"), + TopDbSummarySqlAnalyzedCount("TOP_DB_SUMMARY_SQL_ANALYZED_COUNT"), + TopDbSummaryBusiestDb("TOP_DB_SUMMARY_BUSIEST_DB"), + TopTable("TOP_TABLE"), + CollectionDelayCount("COLLECTION_DELAY_COUNT"), + CollectionDelayPreviousWeekCount("COLLECTION_DELAY_PREVIOUS_WEEK_COUNT"), + + /** + * 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(ActionableInsightsContentTypesResource.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionableInsightsContentTypesResource v : + ActionableInsightsContentTypesResource.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionableInsightsContentTypesResource(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionableInsightsContentTypesResource create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionableInsightsContentTypesResource', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ChangeExternalMysqlDatabaseInsightConnectionDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ChangeExternalMysqlDatabaseInsightConnectionDetails.java new file mode 100644 index 00000000000..3634e9bf912 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ChangeExternalMysqlDatabaseInsightConnectionDetails.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * Connection details of an External MySQL database insight.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeExternalMysqlDatabaseInsightConnectionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeExternalMysqlDatabaseInsightConnectionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"databaseConnectorId"}) + public ChangeExternalMysqlDatabaseInsightConnectionDetails(String databaseConnectorId) { + super(); + this.databaseConnectorId = databaseConnectorId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @param databaseConnectorId the value to set + * @return this builder + */ + public Builder databaseConnectorId(String databaseConnectorId) { + this.databaseConnectorId = databaseConnectorId; + this.__explicitlySet__.add("databaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeExternalMysqlDatabaseInsightConnectionDetails build() { + ChangeExternalMysqlDatabaseInsightConnectionDetails model = + new ChangeExternalMysqlDatabaseInsightConnectionDetails( + this.databaseConnectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeExternalMysqlDatabaseInsightConnectionDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectorId")) { + this.databaseConnectorId(model.getDatabaseConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private final String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @return the value + */ + public String getDatabaseConnectorId() { + return databaseConnectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeExternalMysqlDatabaseInsightConnectionDetails("); + sb.append("super=").append(super.toString()); + sb.append("databaseConnectorId=").append(String.valueOf(this.databaseConnectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeExternalMysqlDatabaseInsightConnectionDetails)) { + return false; + } + + ChangeExternalMysqlDatabaseInsightConnectionDetails other = + (ChangeExternalMysqlDatabaseInsightConnectionDetails) o; + return java.util.Objects.equals(this.databaseConnectorId, other.databaseConnectorId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseConnectorId == null + ? 43 + : this.databaseConnectorId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateDatabaseInsightDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateDatabaseInsightDetails.java index 68afd018c98..07feadbb47e 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateDatabaseInsightDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateDatabaseInsightDetails.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateMacsManagedCloudDatabaseInsightDetails.class, name = "MACS_MANAGED_CLOUD_DATABASE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateExternalMysqlDatabaseInsightDetails.class, + name = "EXTERNAL_MYSQL_DATABASE_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAutonomousDatabaseInsightDetails.class, name = "AUTONOMOUS_DATABASE"), diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateExternalMysqlDatabaseInsightDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateExternalMysqlDatabaseInsightDetails.java new file mode 100644 index 00000000000..3a98123de38 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateExternalMysqlDatabaseInsightDetails.java @@ -0,0 +1,242 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * The information about database to be analyzed.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateExternalMysqlDatabaseInsightDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "entitySource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateExternalMysqlDatabaseInsightDetails extends CreateDatabaseInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the database. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @param databaseConnectorId the value to set + * @return this builder + */ + public Builder databaseConnectorId(String databaseConnectorId) { + this.databaseConnectorId = databaseConnectorId; + this.__explicitlySet__.add("databaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalMysqlDatabaseInsightDetails build() { + CreateExternalMysqlDatabaseInsightDetails model = + new CreateExternalMysqlDatabaseInsightDetails( + this.compartmentId, + this.freeformTags, + this.definedTags, + this.databaseId, + this.databaseConnectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalMysqlDatabaseInsightDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("databaseConnectorId")) { + this.databaseConnectorId(model.getDatabaseConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateExternalMysqlDatabaseInsightDetails( + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String databaseId, + String databaseConnectorId) { + super(compartmentId, freeformTags, definedTags); + this.databaseId = databaseId; + this.databaseConnectorId = databaseConnectorId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the database. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private final String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @return the value + */ + public String getDatabaseConnectorId() { + return databaseConnectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateExternalMysqlDatabaseInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", databaseConnectorId=").append(String.valueOf(this.databaseConnectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExternalMysqlDatabaseInsightDetails)) { + return false; + } + + CreateExternalMysqlDatabaseInsightDetails other = + (CreateExternalMysqlDatabaseInsightDetails) o; + return java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.databaseConnectorId, other.databaseConnectorId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = + (result * PRIME) + + (this.databaseConnectorId == null + ? 43 + : this.databaseConnectorId.hashCode()); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateNewsReportDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateNewsReportDetails.java index 433e3d5db98..c1aaa918040 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateNewsReportDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateNewsReportDetails.java @@ -35,7 +35,9 @@ public final class CreateNewsReportDetails "locale", "status", "dayOfWeek", - "areChildCompartmentsIncluded" + "areChildCompartmentsIncluded", + "tagFilters", + "matchRule" }) public CreateNewsReportDetails( String name, @@ -49,7 +51,9 @@ public CreateNewsReportDetails( NewsLocale locale, ResourceStatus status, DayOfWeek dayOfWeek, - Boolean areChildCompartmentsIncluded) { + Boolean areChildCompartmentsIncluded, + java.util.List tagFilters, + MatchRule matchRule) { super(); this.name = name; this.newsFrequency = newsFrequency; @@ -63,6 +67,8 @@ public CreateNewsReportDetails( this.status = status; this.dayOfWeek = dayOfWeek; this.areChildCompartmentsIncluded = areChildCompartmentsIncluded; + this.tagFilters = tagFilters; + this.matchRule = matchRule; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -256,6 +262,42 @@ public Builder areChildCompartmentsIncluded(Boolean areChildCompartmentsIncluded this.__explicitlySet__.add("areChildCompartmentsIncluded"); return this; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.='. Example for freeform tags - + * '=' + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.='. Example for freeform tags - + * '=' + * + * @param tagFilters the value to set + * @return this builder + */ + public Builder tagFilters(java.util.List tagFilters) { + this.tagFilters = tagFilters; + this.__explicitlySet__.add("tagFilters"); + return this; + } + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @param matchRule the value to set + * @return this builder + */ + public Builder matchRule(MatchRule matchRule) { + this.matchRule = matchRule; + this.__explicitlySet__.add("matchRule"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -274,7 +316,9 @@ public CreateNewsReportDetails build() { this.locale, this.status, this.dayOfWeek, - this.areChildCompartmentsIncluded); + this.areChildCompartmentsIncluded, + this.tagFilters, + this.matchRule); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -319,6 +363,12 @@ public Builder copy(CreateNewsReportDetails model) { if (model.wasPropertyExplicitlySet("areChildCompartmentsIncluded")) { this.areChildCompartmentsIncluded(model.getAreChildCompartmentsIncluded()); } + if (model.wasPropertyExplicitlySet("tagFilters")) { + this.tagFilters(model.getTagFilters()); + } + if (model.wasPropertyExplicitlySet("matchRule")) { + this.matchRule(model.getMatchRule()); + } return this; } } @@ -494,6 +544,38 @@ public Boolean getAreChildCompartmentsIncluded() { return areChildCompartmentsIncluded; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.='. Example for freeform tags - + * '=' + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private final java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.='. Example for freeform tags - + * '=' + * + * @return the value + */ + public java.util.List getTagFilters() { + return tagFilters; + } + + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private final MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @return the value + */ + public MatchRule getMatchRule() { + return matchRule; + } + @Override public String toString() { return this.toString(true); @@ -522,6 +604,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", areChildCompartmentsIncluded=") .append(String.valueOf(this.areChildCompartmentsIncluded)); + sb.append(", tagFilters=").append(String.valueOf(this.tagFilters)); + sb.append(", matchRule=").append(String.valueOf(this.matchRule)); sb.append(")"); return sb.toString(); } @@ -549,6 +633,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals( this.areChildCompartmentsIncluded, other.areChildCompartmentsIncluded) + && java.util.Objects.equals(this.tagFilters, other.tagFilters) + && java.util.Objects.equals(this.matchRule, other.matchRule) && super.equals(other); } @@ -576,6 +662,8 @@ public int hashCode() { + (this.areChildCompartmentsIncluded == null ? 43 : this.areChildCompartmentsIncluded.hashCode()); + result = (result * PRIME) + (this.tagFilters == null ? 43 : this.tagFilters.hashCode()); + result = (result * PRIME) + (this.matchRule == null ? 43 : this.matchRule.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseConfigurationSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseConfigurationSummary.java index c03e9702f87..889739152c6 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseConfigurationSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseConfigurationSummary.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = EmManagedExternalDatabaseConfigurationSummary.class, name = "EM_MANAGED_EXTERNAL_DATABASE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalMysqlDatabaseConfigurationSummary.class, + name = "EXTERNAL_MYSQL_DATABASE_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AutonomousDatabaseConfigurationSummary.class, name = "AUTONOMOUS_DATABASE"), diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySource.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySource.java index 9a08402df55..15ad5389707 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySource.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySource.java @@ -13,6 +13,7 @@ public enum DatabaseEntitySource implements com.oracle.bmc.http.internal.BmcEnum EmManagedExternalDatabase("EM_MANAGED_EXTERNAL_DATABASE"), PeComanagedDatabase("PE_COMANAGED_DATABASE"), MdsMysqlDatabaseSystem("MDS_MYSQL_DATABASE_SYSTEM"), + ExternalMysqlDatabaseSystem("EXTERNAL_MYSQL_DATABASE_SYSTEM"), MacsManagedCloudDatabase("MACS_MANAGED_CLOUD_DATABASE"), ; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySourceAll.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySourceAll.java index 0898c99cfb7..f7d71219226 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySourceAll.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseEntitySourceAll.java @@ -12,6 +12,7 @@ public enum DatabaseEntitySourceAll implements com.oracle.bmc.http.internal.BmcE MacsManagedExternalDatabase("MACS_MANAGED_EXTERNAL_DATABASE"), PeComanagedDatabase("PE_COMANAGED_DATABASE"), MdsMysqlDatabaseSystem("MDS_MYSQL_DATABASE_SYSTEM"), + ExternalMysqlDatabaseSystem("EXTERNAL_MYSQL_DATABASE_SYSTEM"), MacsManagedCloudDatabase("MACS_MANAGED_CLOUD_DATABASE"), /** diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsight.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsight.java index 9de950a2529..827c877e204 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsight.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsight.java @@ -34,6 +34,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = MacsManagedCloudDatabaseInsight.class, name = "MACS_MANAGED_CLOUD_DATABASE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalMysqlDatabaseInsight.class, + name = "EXTERNAL_MYSQL_DATABASE_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AutonomousDatabaseInsight.class, name = "AUTONOMOUS_DATABASE"), diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsightSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsightSummary.java index 9301188d6f0..98f2b8ede22 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsightSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DatabaseInsightSummary.java @@ -39,7 +39,10 @@ name = "PE_COMANAGED_DATABASE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = EmManagedExternalDatabaseInsightSummary.class, - name = "EM_MANAGED_EXTERNAL_DATABASE") + name = "EM_MANAGED_EXTERNAL_DATABASE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalMysqlDatabaseInsightSummary.class, + name = "EXTERNAL_MYSQL_DATABASE_SYSTEM") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableDatabaseInsightDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableDatabaseInsightDetails.java index 22a544e20af..d2e2619eb51 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableDatabaseInsightDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableDatabaseInsightDetails.java @@ -28,6 +28,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = EnableMdsMySqlDatabaseInsightDetails.class, name = "MDS_MYSQL_DATABASE_SYSTEM"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EnableExternalMysqlDatabaseInsightDetails.class, + name = "EXTERNAL_MYSQL_DATABASE_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = EnableAutonomousDatabaseInsightDetails.class, name = "AUTONOMOUS_DATABASE"), diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableExternalMysqlDatabaseInsightDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableExternalMysqlDatabaseInsightDetails.java new file mode 100644 index 00000000000..6554bd50ee9 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/EnableExternalMysqlDatabaseInsightDetails.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * The information about database to be analyzed.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableExternalMysqlDatabaseInsightDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "entitySource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableExternalMysqlDatabaseInsightDetails extends EnableDatabaseInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @param databaseConnectorId the value to set + * @return this builder + */ + public Builder databaseConnectorId(String databaseConnectorId) { + this.databaseConnectorId = databaseConnectorId; + this.__explicitlySet__.add("databaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalMysqlDatabaseInsightDetails build() { + EnableExternalMysqlDatabaseInsightDetails model = + new EnableExternalMysqlDatabaseInsightDetails(this.databaseConnectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalMysqlDatabaseInsightDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectorId")) { + this.databaseConnectorId(model.getDatabaseConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EnableExternalMysqlDatabaseInsightDetails(String databaseConnectorId) { + super(); + this.databaseConnectorId = databaseConnectorId; + } + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private final String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @return the value + */ + public String getDatabaseConnectorId() { + return databaseConnectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableExternalMysqlDatabaseInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseConnectorId=").append(String.valueOf(this.databaseConnectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalMysqlDatabaseInsightDetails)) { + return false; + } + + EnableExternalMysqlDatabaseInsightDetails other = + (EnableExternalMysqlDatabaseInsightDetails) o; + return java.util.Objects.equals(this.databaseConnectorId, other.databaseConnectorId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseConnectorId == null + ? 43 + : this.databaseConnectorId.hashCode()); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseConfigurationSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseConfigurationSummary.java new file mode 100644 index 00000000000..2a1038f5aff --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseConfigurationSummary.java @@ -0,0 +1,395 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * Configuration Summary of a External MySQL 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: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMysqlDatabaseConfigurationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "entitySource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMysqlDatabaseConfigurationSummary extends DatabaseConfigurationSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseInsightId") + private String databaseInsightId; + + public Builder databaseInsightId(String databaseInsightId) { + this.databaseInsightId = databaseInsightId; + this.__explicitlySet__.add("databaseInsightId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseDisplayName") + private String databaseDisplayName; + + public Builder databaseDisplayName(String databaseDisplayName) { + this.databaseDisplayName = databaseDisplayName; + this.__explicitlySet__.add("databaseDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private String databaseType; + + public Builder databaseType(String databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cdbName") + private String cdbName; + + public Builder cdbName(String cdbName) { + this.cdbName = cdbName; + this.__explicitlySet__.add("cdbName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processorCount") + private Integer processorCount; + + public Builder processorCount(Integer processorCount) { + this.processorCount = processorCount; + this.__explicitlySet__.add("processorCount"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the database. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the Management Agent + */ + @com.fasterxml.jackson.annotation.JsonProperty("agentId") + private String agentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the Management Agent + * + * @param agentId the value to set + * @return this builder + */ + public Builder agentId(String agentId) { + this.agentId = agentId; + this.__explicitlySet__.add("agentId"); + return this; + } + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @param databaseConnectorId the value to set + * @return this builder + */ + public Builder databaseConnectorId(String databaseConnectorId) { + this.databaseConnectorId = databaseConnectorId; + this.__explicitlySet__.add("databaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMysqlDatabaseConfigurationSummary build() { + ExternalMysqlDatabaseConfigurationSummary model = + new ExternalMysqlDatabaseConfigurationSummary( + this.databaseInsightId, + this.compartmentId, + this.databaseName, + this.databaseDisplayName, + this.databaseType, + this.databaseVersion, + this.cdbName, + this.definedTags, + this.freeformTags, + this.processorCount, + this.databaseId, + this.agentId, + this.databaseConnectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMysqlDatabaseConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("databaseInsightId")) { + this.databaseInsightId(model.getDatabaseInsightId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseDisplayName")) { + this.databaseDisplayName(model.getDatabaseDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("cdbName")) { + this.cdbName(model.getCdbName()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("processorCount")) { + this.processorCount(model.getProcessorCount()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("agentId")) { + this.agentId(model.getAgentId()); + } + if (model.wasPropertyExplicitlySet("databaseConnectorId")) { + this.databaseConnectorId(model.getDatabaseConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalMysqlDatabaseConfigurationSummary( + String databaseInsightId, + String compartmentId, + String databaseName, + String databaseDisplayName, + String databaseType, + String databaseVersion, + String cdbName, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer processorCount, + String databaseId, + String agentId, + String databaseConnectorId) { + super( + databaseInsightId, + compartmentId, + databaseName, + databaseDisplayName, + databaseType, + databaseVersion, + cdbName, + definedTags, + freeformTags, + processorCount); + this.databaseId = databaseId; + this.agentId = agentId; + this.databaseConnectorId = databaseConnectorId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the database. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the Management Agent + */ + @com.fasterxml.jackson.annotation.JsonProperty("agentId") + private final String agentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the Management Agent + * + * @return the value + */ + public String getAgentId() { + return agentId; + } + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private final String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @return the value + */ + public String getDatabaseConnectorId() { + return databaseConnectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalMysqlDatabaseConfigurationSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", agentId=").append(String.valueOf(this.agentId)); + sb.append(", databaseConnectorId=").append(String.valueOf(this.databaseConnectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalMysqlDatabaseConfigurationSummary)) { + return false; + } + + ExternalMysqlDatabaseConfigurationSummary other = + (ExternalMysqlDatabaseConfigurationSummary) o; + return java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.agentId, other.agentId) + && java.util.Objects.equals(this.databaseConnectorId, other.databaseConnectorId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); + result = + (result * PRIME) + + (this.databaseConnectorId == null + ? 43 + : this.databaseConnectorId.hashCode()); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsight.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsight.java new file mode 100644 index 00000000000..f211e9aecdd --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsight.java @@ -0,0 +1,434 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * Database insight resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMysqlDatabaseInsight.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "entitySource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMysqlDatabaseInsight extends DatabaseInsight { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ResourceStatus status; + + public Builder status(ResourceStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private String databaseType; + + public Builder databaseType(String databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processorCount") + private Integer processorCount; + + public Builder processorCount(Integer processorCount) { + this.processorCount = processorCount; + this.__explicitlySet__.add("processorCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionStatusDetails") + private String databaseConnectionStatusDetails; + + public Builder databaseConnectionStatusDetails(String databaseConnectionStatusDetails) { + this.databaseConnectionStatusDetails = databaseConnectionStatusDetails; + this.__explicitlySet__.add("databaseConnectionStatusDetails"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the database. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** Name of database */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * Name of database + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** Display name of database */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseDisplayName") + private String databaseDisplayName; + + /** + * Display name of database + * + * @param databaseDisplayName the value to set + * @return this builder + */ + public Builder databaseDisplayName(String databaseDisplayName) { + this.databaseDisplayName = databaseDisplayName; + this.__explicitlySet__.add("databaseDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMysqlDatabaseInsight build() { + ExternalMysqlDatabaseInsight model = + new ExternalMysqlDatabaseInsight( + this.id, + this.compartmentId, + this.status, + this.databaseType, + this.databaseVersion, + this.processorCount, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.databaseConnectionStatusDetails, + this.databaseId, + this.databaseName, + this.databaseDisplayName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMysqlDatabaseInsight model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("processorCount")) { + this.processorCount(model.getProcessorCount()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("databaseConnectionStatusDetails")) { + this.databaseConnectionStatusDetails(model.getDatabaseConnectionStatusDetails()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseDisplayName")) { + this.databaseDisplayName(model.getDatabaseDisplayName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalMysqlDatabaseInsight( + String id, + String compartmentId, + ResourceStatus status, + String databaseType, + String databaseVersion, + Integer processorCount, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + String databaseConnectionStatusDetails, + String databaseId, + String databaseName, + String databaseDisplayName) { + super( + id, + compartmentId, + status, + databaseType, + databaseVersion, + processorCount, + freeformTags, + definedTags, + systemTags, + timeCreated, + timeUpdated, + lifecycleState, + lifecycleDetails, + databaseConnectionStatusDetails); + this.databaseId = databaseId; + this.databaseName = databaseName; + this.databaseDisplayName = databaseDisplayName; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the database. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** Name of database */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * Name of database + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** Display name of database */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseDisplayName") + private final String databaseDisplayName; + + /** + * Display name of database + * + * @return the value + */ + public String getDatabaseDisplayName() { + return databaseDisplayName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalMysqlDatabaseInsight("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseDisplayName=").append(String.valueOf(this.databaseDisplayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalMysqlDatabaseInsight)) { + return false; + } + + ExternalMysqlDatabaseInsight other = (ExternalMysqlDatabaseInsight) o; + return java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseDisplayName, other.databaseDisplayName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = + (result * PRIME) + + (this.databaseDisplayName == null + ? 43 + : this.databaseDisplayName.hashCode()); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsightSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsightSummary.java new file mode 100644 index 00000000000..016fd079887 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/ExternalMysqlDatabaseInsightSummary.java @@ -0,0 +1,510 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * Summary of a database insight resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMysqlDatabaseInsightSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "entitySource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalMysqlDatabaseInsightSummary extends DatabaseInsightSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseDisplayName") + private String databaseDisplayName; + + public Builder databaseDisplayName(String databaseDisplayName) { + this.databaseDisplayName = databaseDisplayName; + this.__explicitlySet__.add("databaseDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseType") + private String databaseType; + + public Builder databaseType(String databaseType) { + this.databaseType = databaseType; + this.__explicitlySet__.add("databaseType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseHostNames") + private java.util.List databaseHostNames; + + public Builder databaseHostNames(java.util.List databaseHostNames) { + this.databaseHostNames = databaseHostNames; + this.__explicitlySet__.add("databaseHostNames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processorCount") + private Integer processorCount; + + public Builder processorCount(Integer processorCount) { + this.processorCount = processorCount; + this.__explicitlySet__.add("processorCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ResourceStatus status; + + public Builder status(ResourceStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionStatusDetails") + private String databaseConnectionStatusDetails; + + public Builder databaseConnectionStatusDetails(String databaseConnectionStatusDetails) { + this.databaseConnectionStatusDetails = databaseConnectionStatusDetails; + this.__explicitlySet__.add("databaseConnectionStatusDetails"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the Management Agent + */ + @com.fasterxml.jackson.annotation.JsonProperty("agentId") + private String agentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the Management Agent + * + * @param agentId the value to set + * @return this builder + */ + public Builder agentId(String agentId) { + this.agentId = agentId; + this.__explicitlySet__.add("agentId"); + return this; + } + /** OCI database resource type */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseResourceType") + private String databaseResourceType; + + /** + * OCI database resource type + * + * @param databaseResourceType the value to set + * @return this builder + */ + public Builder databaseResourceType(String databaseResourceType) { + this.databaseResourceType = databaseResourceType; + this.__explicitlySet__.add("databaseResourceType"); + return this; + } + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @param databaseConnectorId the value to set + * @return this builder + */ + public Builder databaseConnectorId(String databaseConnectorId) { + this.databaseConnectorId = databaseConnectorId; + this.__explicitlySet__.add("databaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMysqlDatabaseInsightSummary build() { + ExternalMysqlDatabaseInsightSummary model = + new ExternalMysqlDatabaseInsightSummary( + this.id, + this.databaseId, + this.compartmentId, + this.databaseName, + this.databaseDisplayName, + this.databaseType, + this.databaseVersion, + this.databaseHostNames, + this.freeformTags, + this.definedTags, + this.systemTags, + this.processorCount, + this.status, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.databaseConnectionStatusDetails, + this.agentId, + this.databaseResourceType, + this.databaseConnectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMysqlDatabaseInsightSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseDisplayName")) { + this.databaseDisplayName(model.getDatabaseDisplayName()); + } + if (model.wasPropertyExplicitlySet("databaseType")) { + this.databaseType(model.getDatabaseType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("databaseHostNames")) { + this.databaseHostNames(model.getDatabaseHostNames()); + } + 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("processorCount")) { + this.processorCount(model.getProcessorCount()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("databaseConnectionStatusDetails")) { + this.databaseConnectionStatusDetails(model.getDatabaseConnectionStatusDetails()); + } + if (model.wasPropertyExplicitlySet("agentId")) { + this.agentId(model.getAgentId()); + } + if (model.wasPropertyExplicitlySet("databaseResourceType")) { + this.databaseResourceType(model.getDatabaseResourceType()); + } + if (model.wasPropertyExplicitlySet("databaseConnectorId")) { + this.databaseConnectorId(model.getDatabaseConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalMysqlDatabaseInsightSummary( + String id, + String databaseId, + String compartmentId, + String databaseName, + String databaseDisplayName, + String databaseType, + String databaseVersion, + java.util.List databaseHostNames, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Integer processorCount, + ResourceStatus status, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + String databaseConnectionStatusDetails, + String agentId, + String databaseResourceType, + String databaseConnectorId) { + super( + id, + databaseId, + compartmentId, + databaseName, + databaseDisplayName, + databaseType, + databaseVersion, + databaseHostNames, + freeformTags, + definedTags, + systemTags, + processorCount, + status, + timeCreated, + timeUpdated, + lifecycleState, + lifecycleDetails, + databaseConnectionStatusDetails); + this.agentId = agentId; + this.databaseResourceType = databaseResourceType; + this.databaseConnectorId = databaseConnectorId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the Management Agent + */ + @com.fasterxml.jackson.annotation.JsonProperty("agentId") + private final String agentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the Management Agent + * + * @return the value + */ + public String getAgentId() { + return agentId; + } + + /** OCI database resource type */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseResourceType") + private final String databaseResourceType; + + /** + * OCI database resource type + * + * @return the value + */ + public String getDatabaseResourceType() { + return databaseResourceType; + } + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private final String databaseConnectorId; + + /** + * The DBM owned database connector + * [OCID](https://docs.cloud.oracle.com/iaas/database-management/doc/view-connector-details.html) + * mapping to the database credentials and connection details. + * + * @return the value + */ + public String getDatabaseConnectorId() { + return databaseConnectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalMysqlDatabaseInsightSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", agentId=").append(String.valueOf(this.agentId)); + sb.append(", databaseResourceType=").append(String.valueOf(this.databaseResourceType)); + sb.append(", databaseConnectorId=").append(String.valueOf(this.databaseConnectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalMysqlDatabaseInsightSummary)) { + return false; + } + + ExternalMysqlDatabaseInsightSummary other = (ExternalMysqlDatabaseInsightSummary) o; + return java.util.Objects.equals(this.agentId, other.agentId) + && java.util.Objects.equals(this.databaseResourceType, other.databaseResourceType) + && java.util.Objects.equals(this.databaseConnectorId, other.databaseConnectorId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); + result = + (result * PRIME) + + (this.databaseResourceType == null + ? 43 + : this.databaseResourceType.hashCode()); + result = + (result * PRIME) + + (this.databaseConnectorId == null + ? 43 + : this.databaseConnectorId.hashCode()); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/MatchRule.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/MatchRule.java new file mode 100644 index 00000000000..32f6f8d6272 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/MatchRule.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** Match rule used for tag filters. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public enum MatchRule implements com.oracle.bmc.http.internal.BmcEnum { + MatchAny("MATCH_ANY"), + MatchAll("MATCH_ALL"), + MatchNone("MATCH_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(MatchRule.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MatchRule v : MatchRule.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MatchRule(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MatchRule create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MatchRule', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsContentTypes.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsContentTypes.java index e883ebd6b7b..b0422e1afb7 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsContentTypes.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsContentTypes.java @@ -29,7 +29,8 @@ public final class NewsContentTypes "sqlInsightsTopDatabasesResources", "sqlInsightsTopSqlByInsightsResources", "sqlInsightsTopSqlResources", - "sqlInsightsPerformanceDegradationResources" + "sqlInsightsPerformanceDegradationResources", + "actionableInsightsResources" }) public NewsContentTypes( java.util.List capacityPlanningResources, @@ -40,7 +41,8 @@ public NewsContentTypes( sqlInsightsTopSqlByInsightsResources, java.util.List sqlInsightsTopSqlResources, java.util.List - sqlInsightsPerformanceDegradationResources) { + sqlInsightsPerformanceDegradationResources, + java.util.List actionableInsightsResources) { super(); this.capacityPlanningResources = capacityPlanningResources; this.sqlInsightsFleetAnalysisResources = sqlInsightsFleetAnalysisResources; @@ -50,6 +52,7 @@ public NewsContentTypes( this.sqlInsightsTopSqlResources = sqlInsightsTopSqlResources; this.sqlInsightsPerformanceDegradationResources = sqlInsightsPerformanceDegradationResources; + this.actionableInsightsResources = actionableInsightsResources; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -176,6 +179,23 @@ public Builder sqlInsightsPerformanceDegradationResources( this.__explicitlySet__.add("sqlInsightsPerformanceDegradationResources"); return this; } + /** Supported resources for actionable insights content type. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionableInsightsResources") + private java.util.List actionableInsightsResources; + + /** + * Supported resources for actionable insights content type. + * + * @param actionableInsightsResources the value to set + * @return this builder + */ + public Builder actionableInsightsResources( + java.util.List + actionableInsightsResources) { + this.actionableInsightsResources = actionableInsightsResources; + this.__explicitlySet__.add("actionableInsightsResources"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -189,7 +209,8 @@ public NewsContentTypes build() { this.sqlInsightsTopDatabasesResources, this.sqlInsightsTopSqlByInsightsResources, this.sqlInsightsTopSqlResources, - this.sqlInsightsPerformanceDegradationResources); + this.sqlInsightsPerformanceDegradationResources, + this.actionableInsightsResources); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -222,6 +243,9 @@ public Builder copy(NewsContentTypes model) { this.sqlInsightsPerformanceDegradationResources( model.getSqlInsightsPerformanceDegradationResources()); } + if (model.wasPropertyExplicitlySet("actionableInsightsResources")) { + this.actionableInsightsResources(model.getActionableInsightsResources()); + } return this; } } @@ -336,6 +360,20 @@ public java.util.List getSqlInsightsTopSqlR return sqlInsightsPerformanceDegradationResources; } + /** Supported resources for actionable insights content type. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionableInsightsResources") + private final java.util.List + actionableInsightsResources; + + /** + * Supported resources for actionable insights content type. + * + * @return the value + */ + public java.util.List getActionableInsightsResources() { + return actionableInsightsResources; + } + @Override public String toString() { return this.toString(true); @@ -365,6 +403,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.sqlInsightsTopSqlResources)); sb.append(", sqlInsightsPerformanceDegradationResources=") .append(String.valueOf(this.sqlInsightsPerformanceDegradationResources)); + sb.append(", actionableInsightsResources=") + .append(String.valueOf(this.actionableInsightsResources)); sb.append(")"); return sb.toString(); } @@ -397,6 +437,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.sqlInsightsPerformanceDegradationResources, other.sqlInsightsPerformanceDegradationResources) + && java.util.Objects.equals( + this.actionableInsightsResources, other.actionableInsightsResources) && super.equals(other); } @@ -439,6 +481,11 @@ public int hashCode() { + (this.sqlInsightsPerformanceDegradationResources == null ? 43 : this.sqlInsightsPerformanceDegradationResources.hashCode()); + result = + (result * PRIME) + + (this.actionableInsightsResources == null + ? 43 + : this.actionableInsightsResources.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsFrequency.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsFrequency.java index d8235edecd8..41c3319ad52 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsFrequency.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsFrequency.java @@ -6,10 +6,14 @@ /** * Frequency in which the news report will be sent. WEEKLY: Receive an OPSI news report every week. + * DAILY: Receive an OPSI news report every day. HOURLY: Receive an actionable insights report every + * hour if there are significant changes to the customer's resources. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public enum NewsFrequency implements com.oracle.bmc.http.internal.BmcEnum { Weekly("WEEKLY"), + Daily("DAILY"), + Hourly("HOURLY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReport.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReport.java index 46aa1a0700c..6cba51e90fe 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReport.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReport.java @@ -39,7 +39,9 @@ public final class NewsReport extends com.oracle.bmc.http.client.internal.Explic "lifecycleState", "lifecycleDetails", "dayOfWeek", - "areChildCompartmentsIncluded" + "areChildCompartmentsIncluded", + "tagFilters", + "matchRule" }) public NewsReport( NewsFrequency newsFrequency, @@ -59,7 +61,9 @@ public NewsReport( LifecycleState lifecycleState, String lifecycleDetails, DayOfWeek dayOfWeek, - Boolean areChildCompartmentsIncluded) { + Boolean areChildCompartmentsIncluded, + java.util.List tagFilters, + MatchRule matchRule) { super(); this.newsFrequency = newsFrequency; this.contentTypes = contentTypes; @@ -79,6 +83,8 @@ public NewsReport( this.lifecycleDetails = lifecycleDetails; this.dayOfWeek = dayOfWeek; this.areChildCompartmentsIncluded = areChildCompartmentsIncluded; + this.tagFilters = tagFilters; + this.matchRule = matchRule; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -378,6 +384,42 @@ public Builder areChildCompartmentsIncluded(Boolean areChildCompartmentsIncluded this.__explicitlySet__.add("areChildCompartmentsIncluded"); return this; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.='. Example for freeform tags - + * '='. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.='. Example for freeform tags - + * '='. + * + * @param tagFilters the value to set + * @return this builder + */ + public Builder tagFilters(java.util.List tagFilters) { + this.tagFilters = tagFilters; + this.__explicitlySet__.add("tagFilters"); + return this; + } + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @param matchRule the value to set + * @return this builder + */ + public Builder matchRule(MatchRule matchRule) { + this.matchRule = matchRule; + this.__explicitlySet__.add("matchRule"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -402,7 +444,9 @@ public NewsReport build() { this.lifecycleState, this.lifecycleDetails, this.dayOfWeek, - this.areChildCompartmentsIncluded); + this.areChildCompartmentsIncluded, + this.tagFilters, + this.matchRule); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -465,6 +509,12 @@ public Builder copy(NewsReport model) { if (model.wasPropertyExplicitlySet("areChildCompartmentsIncluded")) { this.areChildCompartmentsIncluded(model.getAreChildCompartmentsIncluded()); } + if (model.wasPropertyExplicitlySet("tagFilters")) { + this.tagFilters(model.getTagFilters()); + } + if (model.wasPropertyExplicitlySet("matchRule")) { + this.matchRule(model.getMatchRule()); + } return this; } } @@ -734,6 +784,38 @@ public Boolean getAreChildCompartmentsIncluded() { return areChildCompartmentsIncluded; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.='. Example for freeform tags - + * '='. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private final java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.='. Example for freeform tags - + * '='. + * + * @return the value + */ + public java.util.List getTagFilters() { + return tagFilters; + } + + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private final MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @return the value + */ + public MatchRule getMatchRule() { + return matchRule; + } + @Override public String toString() { return this.toString(true); @@ -768,6 +850,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", areChildCompartmentsIncluded=") .append(String.valueOf(this.areChildCompartmentsIncluded)); + sb.append(", tagFilters=").append(String.valueOf(this.tagFilters)); + sb.append(", matchRule=").append(String.valueOf(this.matchRule)); sb.append(")"); return sb.toString(); } @@ -801,6 +885,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals( this.areChildCompartmentsIncluded, other.areChildCompartmentsIncluded) + && java.util.Objects.equals(this.tagFilters, other.tagFilters) + && java.util.Objects.equals(this.matchRule, other.matchRule) && super.equals(other); } @@ -838,6 +924,8 @@ public int hashCode() { + (this.areChildCompartmentsIncluded == null ? 43 : this.areChildCompartmentsIncluded.hashCode()); + result = (result * PRIME) + (this.tagFilters == null ? 43 : this.tagFilters.hashCode()); + result = (result * PRIME) + (this.matchRule == null ? 43 : this.matchRule.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReportSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReportSummary.java index f3a4c37b122..3fe7929ceef 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReportSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/NewsReportSummary.java @@ -41,7 +41,9 @@ public final class NewsReportSummary "lifecycleState", "lifecycleDetails", "dayOfWeek", - "areChildCompartmentsIncluded" + "areChildCompartmentsIncluded", + "tagFilters", + "matchRule" }) public NewsReportSummary( NewsFrequency newsFrequency, @@ -61,7 +63,9 @@ public NewsReportSummary( LifecycleState lifecycleState, String lifecycleDetails, DayOfWeek dayOfWeek, - Boolean areChildCompartmentsIncluded) { + Boolean areChildCompartmentsIncluded, + java.util.List tagFilters, + MatchRule matchRule) { super(); this.newsFrequency = newsFrequency; this.contentTypes = contentTypes; @@ -81,6 +85,8 @@ public NewsReportSummary( this.lifecycleDetails = lifecycleDetails; this.dayOfWeek = dayOfWeek; this.areChildCompartmentsIncluded = areChildCompartmentsIncluded; + this.tagFilters = tagFilters; + this.matchRule = matchRule; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -380,6 +386,42 @@ public Builder areChildCompartmentsIncluded(Boolean areChildCompartmentsIncluded this.__explicitlySet__.add("areChildCompartmentsIncluded"); return this; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.='. Example for freeform tags - + * '='. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.='. Example for freeform tags - + * '='. + * + * @param tagFilters the value to set + * @return this builder + */ + public Builder tagFilters(java.util.List tagFilters) { + this.tagFilters = tagFilters; + this.__explicitlySet__.add("tagFilters"); + return this; + } + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @param matchRule the value to set + * @return this builder + */ + public Builder matchRule(MatchRule matchRule) { + this.matchRule = matchRule; + this.__explicitlySet__.add("matchRule"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -404,7 +446,9 @@ public NewsReportSummary build() { this.lifecycleState, this.lifecycleDetails, this.dayOfWeek, - this.areChildCompartmentsIncluded); + this.areChildCompartmentsIncluded, + this.tagFilters, + this.matchRule); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -467,6 +511,12 @@ public Builder copy(NewsReportSummary model) { if (model.wasPropertyExplicitlySet("areChildCompartmentsIncluded")) { this.areChildCompartmentsIncluded(model.getAreChildCompartmentsIncluded()); } + if (model.wasPropertyExplicitlySet("tagFilters")) { + this.tagFilters(model.getTagFilters()); + } + if (model.wasPropertyExplicitlySet("matchRule")) { + this.matchRule(model.getMatchRule()); + } return this; } } @@ -736,6 +786,38 @@ public Boolean getAreChildCompartmentsIncluded() { return areChildCompartmentsIncluded; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.='. Example for freeform tags - + * '='. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private final java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.='. Example for freeform tags - + * '='. + * + * @return the value + */ + public java.util.List getTagFilters() { + return tagFilters; + } + + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private final MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @return the value + */ + public MatchRule getMatchRule() { + return matchRule; + } + @Override public String toString() { return this.toString(true); @@ -770,6 +852,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", areChildCompartmentsIncluded=") .append(String.valueOf(this.areChildCompartmentsIncluded)); + sb.append(", tagFilters=").append(String.valueOf(this.tagFilters)); + sb.append(", matchRule=").append(String.valueOf(this.matchRule)); sb.append(")"); return sb.toString(); } @@ -803,6 +887,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals( this.areChildCompartmentsIncluded, other.areChildCompartmentsIncluded) + && java.util.Objects.equals(this.tagFilters, other.tagFilters) + && java.util.Objects.equals(this.matchRule, other.matchRule) && super.equals(other); } @@ -840,6 +926,8 @@ public int hashCode() { + (this.areChildCompartmentsIncluded == null ? 43 : this.areChildCompartmentsIncluded.hashCode()); + result = (result * PRIME) + (this.tagFilters == null ? 43 : this.tagFilters.hashCode()); + result = (result * PRIME) + (this.matchRule == null ? 43 : this.matchRule.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationType.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationType.java index e0d216ef900..f4e710a9bd3 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationType.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationType.java @@ -72,6 +72,8 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { "CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS"), TestMacsManagedCloudDatabaseInsightConnectionDetails( "TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS"), + ChangeExternalMysqlDatabaseInsightConnectionDetails( + "CHANGE_EXTERNAL_MYSQL_DATABASE_INSIGHT_CONNECTION_DETAILS"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/SummarizeExadataInsightResourceUtilizationInsightAggregation.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/SummarizeExadataInsightResourceUtilizationInsightAggregation.java index e1555b3e9dc..6da8254bbe3 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/SummarizeExadataInsightResourceUtilizationInsightAggregation.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/SummarizeExadataInsightResourceUtilizationInsightAggregation.java @@ -26,6 +26,8 @@ public final class SummarizeExadataInsightResourceUtilizationInsightAggregation @java.beans.ConstructorProperties({ "timeIntervalStart", "timeIntervalEnd", + "highUtilizationThreshold", + "lowUtilizationThreshold", "exadataResourceMetric", "exadataResourceType", "utilization" @@ -33,12 +35,16 @@ public final class SummarizeExadataInsightResourceUtilizationInsightAggregation public SummarizeExadataInsightResourceUtilizationInsightAggregation( java.util.Date timeIntervalStart, java.util.Date timeIntervalEnd, + Integer highUtilizationThreshold, + Integer lowUtilizationThreshold, ExadataResourceMetric exadataResourceMetric, ExadataResourceType exadataResourceType, java.util.List utilization) { super(); this.timeIntervalStart = timeIntervalStart; this.timeIntervalEnd = timeIntervalEnd; + this.highUtilizationThreshold = highUtilizationThreshold; + this.lowUtilizationThreshold = lowUtilizationThreshold; this.exadataResourceMetric = exadataResourceMetric; this.exadataResourceType = exadataResourceType; this.utilization = utilization; @@ -76,6 +82,36 @@ public Builder timeIntervalEnd(java.util.Date timeIntervalEnd) { this.__explicitlySet__.add("timeIntervalEnd"); return this; } + /** Percent value in which a resource metric is considered highly utilized. */ + @com.fasterxml.jackson.annotation.JsonProperty("highUtilizationThreshold") + private Integer highUtilizationThreshold; + + /** + * Percent value in which a resource metric is considered highly utilized. + * + * @param highUtilizationThreshold the value to set + * @return this builder + */ + public Builder highUtilizationThreshold(Integer highUtilizationThreshold) { + this.highUtilizationThreshold = highUtilizationThreshold; + this.__explicitlySet__.add("highUtilizationThreshold"); + return this; + } + /** Percent value in which a resource metric is considered lowly utilized. */ + @com.fasterxml.jackson.annotation.JsonProperty("lowUtilizationThreshold") + private Integer lowUtilizationThreshold; + + /** + * Percent value in which a resource metric is considered lowly utilized. + * + * @param lowUtilizationThreshold the value to set + * @return this builder + */ + public Builder lowUtilizationThreshold(Integer lowUtilizationThreshold) { + this.lowUtilizationThreshold = lowUtilizationThreshold; + this.__explicitlySet__.add("lowUtilizationThreshold"); + return this; + } /** Defines the type of exadata resource metric (example: CPU, STORAGE) */ @com.fasterxml.jackson.annotation.JsonProperty("exadataResourceMetric") private ExadataResourceMetric exadataResourceMetric; @@ -135,6 +171,8 @@ public SummarizeExadataInsightResourceUtilizationInsightAggregation build() { new SummarizeExadataInsightResourceUtilizationInsightAggregation( this.timeIntervalStart, this.timeIntervalEnd, + this.highUtilizationThreshold, + this.lowUtilizationThreshold, this.exadataResourceMetric, this.exadataResourceType, this.utilization); @@ -152,6 +190,12 @@ public Builder copy(SummarizeExadataInsightResourceUtilizationInsightAggregation if (model.wasPropertyExplicitlySet("timeIntervalEnd")) { this.timeIntervalEnd(model.getTimeIntervalEnd()); } + if (model.wasPropertyExplicitlySet("highUtilizationThreshold")) { + this.highUtilizationThreshold(model.getHighUtilizationThreshold()); + } + if (model.wasPropertyExplicitlySet("lowUtilizationThreshold")) { + this.lowUtilizationThreshold(model.getLowUtilizationThreshold()); + } if (model.wasPropertyExplicitlySet("exadataResourceMetric")) { this.exadataResourceMetric(model.getExadataResourceMetric()); } @@ -200,6 +244,32 @@ public java.util.Date getTimeIntervalEnd() { return timeIntervalEnd; } + /** Percent value in which a resource metric is considered highly utilized. */ + @com.fasterxml.jackson.annotation.JsonProperty("highUtilizationThreshold") + private final Integer highUtilizationThreshold; + + /** + * Percent value in which a resource metric is considered highly utilized. + * + * @return the value + */ + public Integer getHighUtilizationThreshold() { + return highUtilizationThreshold; + } + + /** Percent value in which a resource metric is considered lowly utilized. */ + @com.fasterxml.jackson.annotation.JsonProperty("lowUtilizationThreshold") + private final Integer lowUtilizationThreshold; + + /** + * Percent value in which a resource metric is considered lowly utilized. + * + * @return the value + */ + public Integer getLowUtilizationThreshold() { + return lowUtilizationThreshold; + } + /** Defines the type of exadata resource metric (example: CPU, STORAGE) */ public enum ExadataResourceMetric implements com.oracle.bmc.http.internal.BmcEnum { Cpu("CPU"), @@ -358,6 +428,10 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("timeIntervalStart=").append(String.valueOf(this.timeIntervalStart)); sb.append(", timeIntervalEnd=").append(String.valueOf(this.timeIntervalEnd)); + sb.append(", highUtilizationThreshold=") + .append(String.valueOf(this.highUtilizationThreshold)); + sb.append(", lowUtilizationThreshold=") + .append(String.valueOf(this.lowUtilizationThreshold)); sb.append(", exadataResourceMetric=").append(String.valueOf(this.exadataResourceMetric)); sb.append(", exadataResourceType=").append(String.valueOf(this.exadataResourceType)); sb.append(", utilization=").append(String.valueOf(this.utilization)); @@ -378,6 +452,10 @@ public boolean equals(Object o) { (SummarizeExadataInsightResourceUtilizationInsightAggregation) o; return java.util.Objects.equals(this.timeIntervalStart, other.timeIntervalStart) && java.util.Objects.equals(this.timeIntervalEnd, other.timeIntervalEnd) + && java.util.Objects.equals( + this.highUtilizationThreshold, other.highUtilizationThreshold) + && java.util.Objects.equals( + this.lowUtilizationThreshold, other.lowUtilizationThreshold) && java.util.Objects.equals(this.exadataResourceMetric, other.exadataResourceMetric) && java.util.Objects.equals(this.exadataResourceType, other.exadataResourceType) && java.util.Objects.equals(this.utilization, other.utilization) @@ -394,6 +472,16 @@ public int hashCode() { result = (result * PRIME) + (this.timeIntervalEnd == null ? 43 : this.timeIntervalEnd.hashCode()); + result = + (result * PRIME) + + (this.highUtilizationThreshold == null + ? 43 + : this.highUtilizationThreshold.hashCode()); + result = + (result * PRIME) + + (this.lowUtilizationThreshold == null + ? 43 + : this.lowUtilizationThreshold.hashCode()); result = (result * PRIME) + (this.exadataResourceMetric == null diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateDatabaseInsightDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateDatabaseInsightDetails.java index d545b14580a..0fb2e125010 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateDatabaseInsightDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateDatabaseInsightDetails.java @@ -39,7 +39,10 @@ name = "MDS_MYSQL_DATABASE_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateMacsManagedCloudDatabaseInsightDetails.class, - name = "MACS_MANAGED_CLOUD_DATABASE") + name = "MACS_MANAGED_CLOUD_DATABASE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateExternalMysqlDatabaseInsightDetails.class, + name = "EXTERNAL_MYSQL_DATABASE_SYSTEM") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateExternalMysqlDatabaseInsightDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateExternalMysqlDatabaseInsightDetails.java new file mode 100644 index 00000000000..8d22795d83d --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateExternalMysqlDatabaseInsightDetails.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.model; + +/** + * Database insight resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateExternalMysqlDatabaseInsightDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "entitySource") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateExternalMysqlDatabaseInsightDetails extends UpdateDatabaseInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalMysqlDatabaseInsightDetails build() { + UpdateExternalMysqlDatabaseInsightDetails model = + new UpdateExternalMysqlDatabaseInsightDetails( + this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalMysqlDatabaseInsightDetails model) { + 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); + } + + @Deprecated + public UpdateExternalMysqlDatabaseInsightDetails( + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(freeformTags, 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("UpdateExternalMysqlDatabaseInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExternalMysqlDatabaseInsightDetails)) { + return false; + } + + UpdateExternalMysqlDatabaseInsightDetails other = + (UpdateExternalMysqlDatabaseInsightDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateNewsReportDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateNewsReportDetails.java index d6de92b26ec..54ad0cd44df 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateNewsReportDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateNewsReportDetails.java @@ -34,7 +34,9 @@ public final class UpdateNewsReportDetails "name", "description", "dayOfWeek", - "areChildCompartmentsIncluded" + "areChildCompartmentsIncluded", + "tagFilters", + "matchRule" }) public UpdateNewsReportDetails( ResourceStatus status, @@ -47,7 +49,9 @@ public UpdateNewsReportDetails( String name, String description, DayOfWeek dayOfWeek, - Boolean areChildCompartmentsIncluded) { + Boolean areChildCompartmentsIncluded, + java.util.List tagFilters, + MatchRule matchRule) { super(); this.status = status; this.newsFrequency = newsFrequency; @@ -60,6 +64,8 @@ public UpdateNewsReportDetails( this.description = description; this.dayOfWeek = dayOfWeek; this.areChildCompartmentsIncluded = areChildCompartmentsIncluded; + this.tagFilters = tagFilters; + this.matchRule = matchRule; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -238,6 +244,42 @@ public Builder areChildCompartmentsIncluded(Boolean areChildCompartmentsIncluded this.__explicitlySet__.add("areChildCompartmentsIncluded"); return this; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.=' Example for freeform tags - + * '=' + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for + * defined tags - '.=' Example for freeform tags - + * '=' + * + * @param tagFilters the value to set + * @return this builder + */ + public Builder tagFilters(java.util.List tagFilters) { + this.tagFilters = tagFilters; + this.__explicitlySet__.add("tagFilters"); + return this; + } + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @param matchRule the value to set + * @return this builder + */ + public Builder matchRule(MatchRule matchRule) { + this.matchRule = matchRule; + this.__explicitlySet__.add("matchRule"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -255,7 +297,9 @@ public UpdateNewsReportDetails build() { this.name, this.description, this.dayOfWeek, - this.areChildCompartmentsIncluded); + this.areChildCompartmentsIncluded, + this.tagFilters, + this.matchRule); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -297,6 +341,12 @@ public Builder copy(UpdateNewsReportDetails model) { if (model.wasPropertyExplicitlySet("areChildCompartmentsIncluded")) { this.areChildCompartmentsIncluded(model.getAreChildCompartmentsIncluded()); } + if (model.wasPropertyExplicitlySet("tagFilters")) { + this.tagFilters(model.getTagFilters()); + } + if (model.wasPropertyExplicitlySet("matchRule")) { + this.matchRule(model.getMatchRule()); + } return this; } } @@ -459,6 +509,36 @@ public Boolean getAreChildCompartmentsIncluded() { return areChildCompartmentsIncluded; } + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.=' Example for freeform tags - '=' + */ + @com.fasterxml.jackson.annotation.JsonProperty("tagFilters") + private final java.util.List tagFilters; + + /** + * List of tag filters; each filter composed by a namespace, key, and value. Example for defined + * tags - '.=' Example for freeform tags - '=' + * + * @return the value + */ + public java.util.List getTagFilters() { + return tagFilters; + } + + /** Match rule used for tag filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchRule") + private final MatchRule matchRule; + + /** + * Match rule used for tag filters. + * + * @return the value + */ + public MatchRule getMatchRule() { + return matchRule; + } + @Override public String toString() { return this.toString(true); @@ -486,6 +566,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", areChildCompartmentsIncluded=") .append(String.valueOf(this.areChildCompartmentsIncluded)); + sb.append(", tagFilters=").append(String.valueOf(this.tagFilters)); + sb.append(", matchRule=").append(String.valueOf(this.matchRule)); sb.append(")"); return sb.toString(); } @@ -512,6 +594,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals( this.areChildCompartmentsIncluded, other.areChildCompartmentsIncluded) + && java.util.Objects.equals(this.tagFilters, other.tagFilters) + && java.util.Objects.equals(this.matchRule, other.matchRule) && super.equals(other); } @@ -536,6 +620,8 @@ public int hashCode() { + (this.areChildCompartmentsIncluded == null ? 43 : this.areChildCompartmentsIncluded.hashCode()); + result = (result * PRIME) + (this.tagFilters == null ? 43 : this.tagFilters.hashCode()); + result = (result * PRIME) + (this.matchRule == null ? 43 : this.matchRule.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/VmClusterSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/VmClusterSummary.java index dfd2ee4c6dd..3d786e03608 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/VmClusterSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/VmClusterSummary.java @@ -42,12 +42,12 @@ public VmClusterSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The name of the vm cluster. */ + /** The name of the VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("vmclusterName") private String vmclusterName; /** - * The name of the vm cluster. + * The name of the VM Cluster. * * @param vmclusterName the value to set * @return this builder @@ -57,12 +57,12 @@ public Builder vmclusterName(String vmclusterName) { this.__explicitlySet__.add("vmclusterName"); return this; } - /** The memory allocated on a vm cluster. */ + /** The memory allocated on a VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("memoryAllocatedInGBs") private Integer memoryAllocatedInGBs; /** - * The memory allocated on a vm cluster. + * The memory allocated on a VM Cluster. * * @param memoryAllocatedInGBs the value to set * @return this builder @@ -72,12 +72,12 @@ public Builder memoryAllocatedInGBs(Integer memoryAllocatedInGBs) { this.__explicitlySet__.add("memoryAllocatedInGBs"); return this; } - /** The cpu allocated on a vm cluster. */ + /** The CPU allocated on a VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("cpuAllocated") private Integer cpuAllocated; /** - * The cpu allocated on a vm cluster. + * The CPU allocated on a VM Cluster. * * @param cpuAllocated the value to set * @return this builder @@ -87,12 +87,12 @@ public Builder cpuAllocated(Integer cpuAllocated) { this.__explicitlySet__.add("cpuAllocated"); return this; } - /** The number of DB nodes on a vm cluster. */ + /** The number of DB nodes on a VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("dbNodesCount") private Integer dbNodesCount; /** - * The number of DB nodes on a vm cluster. + * The number of DB nodes on a VM Cluster. * * @param dbNodesCount the value to set * @return this builder @@ -146,12 +146,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The name of the vm cluster. */ + /** The name of the VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("vmclusterName") private final String vmclusterName; /** - * The name of the vm cluster. + * The name of the VM Cluster. * * @return the value */ @@ -159,12 +159,12 @@ public String getVmclusterName() { return vmclusterName; } - /** The memory allocated on a vm cluster. */ + /** The memory allocated on a VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("memoryAllocatedInGBs") private final Integer memoryAllocatedInGBs; /** - * The memory allocated on a vm cluster. + * The memory allocated on a VM Cluster. * * @return the value */ @@ -172,12 +172,12 @@ public Integer getMemoryAllocatedInGBs() { return memoryAllocatedInGBs; } - /** The cpu allocated on a vm cluster. */ + /** The CPU allocated on a VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("cpuAllocated") private final Integer cpuAllocated; /** - * The cpu allocated on a vm cluster. + * The CPU allocated on a VM Cluster. * * @return the value */ @@ -185,12 +185,12 @@ public Integer getCpuAllocated() { return cpuAllocated; } - /** The number of DB nodes on a vm cluster. */ + /** The number of DB nodes on a VM Cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("dbNodesCount") private final Integer dbNodesCount; /** - * The number of DB nodes on a vm cluster. + * The number of DB nodes on a VM Cluster. * * @return the value */ diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ChangeExternalMysqlDatabaseInsightConnectionRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ChangeExternalMysqlDatabaseInsightConnectionRequest.java new file mode 100644 index 00000000000..eaadf27128f --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ChangeExternalMysqlDatabaseInsightConnectionRequest.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.requests; + +import com.oracle.bmc.opsi.model.*; +/** + * Example: Click here to see how to use + * ChangeExternalMysqlDatabaseInsightConnectionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public class ChangeExternalMysqlDatabaseInsightConnectionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails> { + + /** Unique database insight identifier */ + private String databaseInsightId; + + /** Unique database insight identifier */ + public String getDatabaseInsightId() { + return databaseInsightId; + } + /** The information to be updated. */ + private com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails + changeExternalMysqlDatabaseInsightConnectionDetails; + + /** The information to be updated. */ + public com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails + getChangeExternalMysqlDatabaseInsightConnectionDetails() { + return changeExternalMysqlDatabaseInsightConnectionDetails; + } + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous get, create, or update + * 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; + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous get, create, or update + * response for that resource. The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned 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 that can be retried in case of a timeout or server + * error without risk of executing the same action again. Retry tokens expire after 24 hours. + * + *

Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting + * operations, such as a resource being deleted or purged from the system. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request that can be retried in case of a timeout or server + * error without risk of executing the same action again. Retry tokens expire after 24 hours. + * + *

Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting + * operations, such as a resource being deleted or purged from the system. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails + getBody$() { + return changeExternalMysqlDatabaseInsightConnectionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeExternalMysqlDatabaseInsightConnectionRequest, + com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique database insight identifier */ + private String databaseInsightId = null; + + /** + * Unique database insight identifier + * + * @param databaseInsightId the value to set + * @return this builder instance + */ + public Builder databaseInsightId(String databaseInsightId) { + this.databaseInsightId = databaseInsightId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails + changeExternalMysqlDatabaseInsightConnectionDetails = null; + + /** + * The information to be updated. + * + * @param changeExternalMysqlDatabaseInsightConnectionDetails the value to set + * @return this builder instance + */ + public Builder changeExternalMysqlDatabaseInsightConnectionDetails( + com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails + changeExternalMysqlDatabaseInsightConnectionDetails) { + this.changeExternalMysqlDatabaseInsightConnectionDetails = + changeExternalMysqlDatabaseInsightConnectionDetails; + return this; + } + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set + * the {@code if-match} parameter to the value of the etag from a previous get, create, or + * update 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; + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set + * the {@code if-match} parameter to the value of the etag from a previous get, create, or + * update response for that resource. The resource will be updated or deleted only if the + * etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @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 that can be retried in case of a timeout or + * server error without risk of executing the same action again. Retry tokens expire after + * 24 hours. + * + *

Note:* Retry tokens can be invalidated before the 24 hour time limit due to + * conflicting operations, such as a resource being deleted or purged from the system. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request that can be retried in case of a timeout or + * server error without risk of executing the same action again. Retry tokens expire after + * 24 hours. + * + *

Note:* Retry tokens can be invalidated before the 24 hour time limit due to + * conflicting operations, such as a resource being deleted or purged from the system. + * + * @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(ChangeExternalMysqlDatabaseInsightConnectionRequest o) { + databaseInsightId(o.getDatabaseInsightId()); + changeExternalMysqlDatabaseInsightConnectionDetails( + o.getChangeExternalMysqlDatabaseInsightConnectionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeExternalMysqlDatabaseInsightConnectionRequest 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 ChangeExternalMysqlDatabaseInsightConnectionRequest + */ + public ChangeExternalMysqlDatabaseInsightConnectionRequest build() { + ChangeExternalMysqlDatabaseInsightConnectionRequest 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.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails + body) { + changeExternalMysqlDatabaseInsightConnectionDetails(body); + return this; + } + + /** + * Build the instance of ChangeExternalMysqlDatabaseInsightConnectionRequest 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 ChangeExternalMysqlDatabaseInsightConnectionRequest + */ + public ChangeExternalMysqlDatabaseInsightConnectionRequest + buildWithoutInvocationCallback() { + ChangeExternalMysqlDatabaseInsightConnectionRequest request = + new ChangeExternalMysqlDatabaseInsightConnectionRequest(); + request.databaseInsightId = databaseInsightId; + request.changeExternalMysqlDatabaseInsightConnectionDetails = + changeExternalMysqlDatabaseInsightConnectionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeExternalMysqlDatabaseInsightConnectionRequest(databaseInsightId, + // changeExternalMysqlDatabaseInsightConnectionDetails, 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() + .databaseInsightId(databaseInsightId) + .changeExternalMysqlDatabaseInsightConnectionDetails( + changeExternalMysqlDatabaseInsightConnectionDetails) + .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(",databaseInsightId=").append(String.valueOf(this.databaseInsightId)); + sb.append(",changeExternalMysqlDatabaseInsightConnectionDetails=") + .append(String.valueOf(this.changeExternalMysqlDatabaseInsightConnectionDetails)); + 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 ChangeExternalMysqlDatabaseInsightConnectionRequest)) { + return false; + } + + ChangeExternalMysqlDatabaseInsightConnectionRequest other = + (ChangeExternalMysqlDatabaseInsightConnectionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.databaseInsightId, other.databaseInsightId) + && java.util.Objects.equals( + this.changeExternalMysqlDatabaseInsightConnectionDetails, + other.changeExternalMysqlDatabaseInsightConnectionDetails) + && 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.databaseInsightId == null ? 43 : this.databaseInsightId.hashCode()); + result = + (result * PRIME) + + (this.changeExternalMysqlDatabaseInsightConnectionDetails == null + ? 43 + : this.changeExternalMysqlDatabaseInsightConnectionDetails + .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-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseConfigurationsRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseConfigurationsRequest.java index 4e45621c52e..438d09d29eb 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseConfigurationsRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseConfigurationsRequest.java @@ -113,6 +113,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseInsightsRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseInsightsRequest.java index e77f6afb6bb..a6a960bed65 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseInsightsRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/ListDatabaseInsightsRequest.java @@ -91,6 +91,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceCapacityTrendRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceCapacityTrendRequest.java index a70efe180ca..97d0354fc5e 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceCapacityTrendRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceCapacityTrendRequest.java @@ -114,6 +114,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceForecastTrendRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceForecastTrendRequest.java index e5e37481184..3b42d6adc27 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceForecastTrendRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceForecastTrendRequest.java @@ -114,6 +114,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceStatisticsRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceStatisticsRequest.java index 9d48f0bbfad..1d8d0d832f8 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceStatisticsRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceStatisticsRequest.java @@ -114,6 +114,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageRequest.java index 6a87586b65b..14c85b42bde 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageRequest.java @@ -114,6 +114,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageTrendRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageTrendRequest.java index 72b4e0eebda..ebe4cd831ed 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageTrendRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUsageTrendRequest.java @@ -114,6 +114,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUtilizationInsightRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUtilizationInsightRequest.java index 14072ee83bb..f48ed248db1 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUtilizationInsightRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeDatabaseInsightResourceUtilizationInsightRequest.java @@ -114,6 +114,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeExadataInsightResourceUtilizationInsightRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeExadataInsightResourceUtilizationInsightRequest.java index f070dad093b..26f7f4593cb 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeExadataInsightResourceUtilizationInsightRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeExadataInsightResourceUtilizationInsightRequest.java @@ -273,6 +273,20 @@ public Boolean getCompartmentIdInSubtree() { public String getOpcRequestId() { return opcRequestId; } + /** Percent value in which a resource metric is considered highly utilized. */ + private Integer highUtilizationThreshold; + + /** Percent value in which a resource metric is considered highly utilized. */ + public Integer getHighUtilizationThreshold() { + return highUtilizationThreshold; + } + /** Percent value in which a resource metric is considered low utilized. */ + private Integer lowUtilizationThreshold; + + /** Percent value in which a resource metric is considered low utilized. */ + public Integer getLowUtilizationThreshold() { + return lowUtilizationThreshold; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -758,6 +772,34 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Percent value in which a resource metric is considered highly utilized. */ + private Integer highUtilizationThreshold = null; + + /** + * Percent value in which a resource metric is considered highly utilized. + * + * @param highUtilizationThreshold the value to set + * @return this builder instance + */ + public Builder highUtilizationThreshold(Integer highUtilizationThreshold) { + this.highUtilizationThreshold = highUtilizationThreshold; + return this; + } + + /** Percent value in which a resource metric is considered low utilized. */ + private Integer lowUtilizationThreshold = null; + + /** + * Percent value in which a resource metric is considered low utilized. + * + * @param lowUtilizationThreshold the value to set + * @return this builder instance + */ + public Builder lowUtilizationThreshold(Integer lowUtilizationThreshold) { + this.lowUtilizationThreshold = lowUtilizationThreshold; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -808,6 +850,8 @@ public Builder copy(SummarizeExadataInsightResourceUtilizationInsightRequest o) freeformTagExists(o.getFreeformTagExists()); compartmentIdInSubtree(o.getCompartmentIdInSubtree()); opcRequestId(o.getOpcRequestId()); + highUtilizationThreshold(o.getHighUtilizationThreshold()); + lowUtilizationThreshold(o.getLowUtilizationThreshold()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -867,12 +911,15 @@ public SummarizeExadataInsightResourceUtilizationInsightRequest build() { request.freeformTagExists = freeformTagExists; request.compartmentIdInSubtree = compartmentIdInSubtree; request.opcRequestId = opcRequestId; + request.highUtilizationThreshold = highUtilizationThreshold; + request.lowUtilizationThreshold = lowUtilizationThreshold; return request; // new SummarizeExadataInsightResourceUtilizationInsightRequest(compartmentId, // resourceType, resourceMetric, analysisTimeInterval, timeIntervalStart, // timeIntervalEnd, exadataInsightId, exadataType, forecastStartDay, forecastDays, // cdbName, hostName, limit, page, definedTagEquals, freeformTagEquals, - // definedTagExists, freeformTagExists, compartmentIdInSubtree, opcRequestId); + // definedTagExists, freeformTagExists, compartmentIdInSubtree, opcRequestId, + // highUtilizationThreshold, lowUtilizationThreshold); } } @@ -902,7 +949,9 @@ public Builder toBuilder() { .definedTagExists(definedTagExists) .freeformTagExists(freeformTagExists) .compartmentIdInSubtree(compartmentIdInSubtree) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .highUtilizationThreshold(highUtilizationThreshold) + .lowUtilizationThreshold(lowUtilizationThreshold); } /** @@ -939,6 +988,9 @@ public String toString() { sb.append(",freeformTagExists=").append(String.valueOf(this.freeformTagExists)); sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",highUtilizationThreshold=") + .append(String.valueOf(this.highUtilizationThreshold)); + sb.append(",lowUtilizationThreshold=").append(String.valueOf(this.lowUtilizationThreshold)); sb.append(")"); return sb.toString(); } @@ -975,7 +1027,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTagExists, other.freeformTagExists) && java.util.Objects.equals( this.compartmentIdInSubtree, other.compartmentIdInSubtree) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.highUtilizationThreshold, other.highUtilizationThreshold) + && java.util.Objects.equals( + this.lowUtilizationThreshold, other.lowUtilizationThreshold); } @Override @@ -1030,6 +1086,16 @@ public int hashCode() { ? 43 : this.compartmentIdInSubtree.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.highUtilizationThreshold == null + ? 43 + : this.highUtilizationThreshold.hashCode()); + result = + (result * PRIME) + + (this.lowUtilizationThreshold == null + ? 43 + : this.lowUtilizationThreshold.hashCode()); return result; } } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlInsightsRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlInsightsRequest.java index cb62e3e5c2f..1e599db208b 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlInsightsRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlInsightsRequest.java @@ -57,6 +57,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlStatisticsRequest.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlStatisticsRequest.java index 89a61f22438..9c1e1042e5e 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlStatisticsRequest.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/requests/SummarizeSqlStatisticsRequest.java @@ -58,6 +58,7 @@ public enum DatabaseType implements com.oracle.bmc.http.internal.BmcEnum { ComanagedExaccPdb("COMANAGED-EXACC-PDB"), ComanagedExaccNoncdb("COMANAGED-EXACC-NONCDB"), MdsMysql("MDS-MYSQL"), + ExternalMysql("EXTERNAL-MYSQL"), ; private final String value; diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/responses/ChangeExternalMysqlDatabaseInsightConnectionResponse.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/responses/ChangeExternalMysqlDatabaseInsightConnectionResponse.java new file mode 100644 index 00000000000..3e724a11257 --- /dev/null +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/responses/ChangeExternalMysqlDatabaseInsightConnectionResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.opsi.responses; + +import com.oracle.bmc.opsi.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public class ChangeExternalMysqlDatabaseInsightConnectionResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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 ChangeExternalMysqlDatabaseInsightConnectionResponse( + 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< + ChangeExternalMysqlDatabaseInsightConnectionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private 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(ChangeExternalMysqlDatabaseInsightConnectionResponse 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 ChangeExternalMysqlDatabaseInsightConnectionResponse build() { + return new ChangeExternalMysqlDatabaseInsightConnectionResponse( + __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 ChangeExternalMysqlDatabaseInsightConnectionResponse)) { + return false; + } + + ChangeExternalMysqlDatabaseInsightConnectionResponse other = + (ChangeExternalMysqlDatabaseInsightConnectionResponse) 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-opsi/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opsi/reflect-config.json b/bmc-opsi/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opsi/reflect-config.json index 90ab373b645..be71ce9f45b 100644 --- a/bmc-opsi/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opsi/reflect-config.json +++ b/bmc-opsi/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opsi/reflect-config.json @@ -5,6 +5,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ActionableInsightsContentTypesResource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.AddEmManagedExternalExadataInsightMembersDetails", @@ -1123,6 +1129,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ChangeExternalMysqlDatabaseInsightConnectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.ChangeHostInsightCompartmentDetails", @@ -1510,6 +1530,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.CreateExternalMysqlDatabaseInsightDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.CreateExternalMysqlDatabaseInsightDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.CreateHostInsightDetails", @@ -2564,6 +2598,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.EnableExternalMysqlDatabaseInsightDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.EnableExternalMysqlDatabaseInsightDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.EnableHostInsightDetails", @@ -3115,6 +3163,48 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ExternalMysqlDatabaseConfigurationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ExternalMysqlDatabaseConfigurationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ExternalMysqlDatabaseInsight", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ExternalMysqlDatabaseInsight$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ExternalMysqlDatabaseInsightSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.ExternalMysqlDatabaseInsightSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.HistoricalDataItem", @@ -4528,6 +4618,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.MatchRule", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.MdsMySqlDatabaseInsight", @@ -6965,6 +7061,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.UpdateExternalMysqlDatabaseInsightDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opsi.model.UpdateExternalMysqlDatabaseInsightDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opsi.model.UpdateHostInsightDetails", diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index f5c2fd5ca11..62c9b429356 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index b059c6bac05..2981d79a967 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index d8c35be1cec..b821b831643 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index cbfa27f036d..6827bdfd20a 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index c80e1c7e396..ea63fda3fa3 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index d4fafe68aae..4a6980b6db5 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 2a98c80c650..bbe20b77ac3 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 99d944b5b10..87c6b215cc0 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index c226aa173a1..090ddbb5ccc 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.55.3 + 3.56.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.55.3 + 3.56.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 79aaf683312..340ad698b7e 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.55.3 + 3.56.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.55.3 + 3.56.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.3 + 3.56.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index a38403c9e05..d06d83b9333 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.55.3 + 3.56.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.3 + 3.56.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.3 + 3.56.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 10d7570e085..7e96ba641c1 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.55.3 + 3.56.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 586c86318f6..566f21f96f1 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 89c2c55d862..0705bb9f6b0 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index e93752544bb..f6858f93ae8 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 694d9d61a74..cc4a7df318c 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 06929f7a3a9..b244f73456b 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index d838203edcd..3ed5dbe36c6 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index ab04e088163..8f0bd48336b 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 2b64a3b5311..7f990a10619 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 1a3babe9966..69daed9718a 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 23ca7bc2a6b..25f8f149b91 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index b43a2ea8394..b2b5e240527 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 510cac6754f..7bf6cc02c5e 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index ba3a32affd2..f5095de5333 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 3490840dc01..d8ef1d7529b 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 46ef78dfbf3..41f0b5763b8 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.55.3 + 3.56.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 8e8ab4e1fbe..5abd8ef9c2c 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 9cf62d98c4b..7c1bd20a77b 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 1fd14753e86..bb061167083 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 4249c7633ad..798d6af61ac 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionLineItemSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionLineItemSummary.java index b51d1734a65..8e6c1d3dee9 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionLineItemSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionLineItemSummary.java @@ -29,7 +29,8 @@ public final class AssignedSubscriptionLineItemSummary "quantity", "billingModel", "timeStarted", - "timeEnded" + "timeEnded", + "systemTags" }) public AssignedSubscriptionLineItemSummary( String id, @@ -37,7 +38,8 @@ public AssignedSubscriptionLineItemSummary( Float quantity, BillingModel billingModel, java.util.Date timeStarted, - java.util.Date timeEnded) { + java.util.Date timeEnded, + java.util.Map> systemTags) { super(); this.id = id; this.productCode = productCode; @@ -45,6 +47,7 @@ public AssignedSubscriptionLineItemSummary( this.billingModel = billingModel; this.timeStarted = timeStarted; this.timeEnded = timeEnded; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -147,6 +150,25 @@ public Builder timeEnded(java.util.Date timeEnded) { this.__explicitlySet__.add("timeEnded"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -159,7 +181,8 @@ public AssignedSubscriptionLineItemSummary build() { this.quantity, this.billingModel, this.timeStarted, - this.timeEnded); + this.timeEnded, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -186,6 +209,9 @@ public Builder copy(AssignedSubscriptionLineItemSummary model) { if (model.wasPropertyExplicitlySet("timeEnded")) { this.timeEnded(model.getTimeEnded()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -285,6 +311,23 @@ public java.util.Date getTimeEnded() { return timeEnded; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -306,6 +349,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", billingModel=").append(String.valueOf(this.billingModel)); sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -326,6 +370,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.billingModel, other.billingModel) && java.util.Objects.equals(this.timeStarted, other.timeStarted) && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -339,6 +384,7 @@ public int hashCode() { result = (result * PRIME) + (this.billingModel == null ? 43 : this.billingModel.hashCode()); result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionSummary.java index 0cc339e632f..067b4546c38 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AssignedSubscriptionSummary.java @@ -42,7 +42,8 @@ public class AssignedSubscriptionSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) protected AssignedSubscriptionSummary( String id, @@ -51,7 +52,8 @@ protected AssignedSubscriptionSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -60,6 +62,7 @@ protected AssignedSubscriptionSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -181,6 +184,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -203,6 +223,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -224,6 +245,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -240,6 +262,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AvailableRegionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AvailableRegionSummary.java index 0a3c5bd7b80..2bd971e2e73 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AvailableRegionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/AvailableRegionSummary.java @@ -23,10 +23,12 @@ public final class AvailableRegionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"regionName"}) - public AvailableRegionSummary(String regionName) { + @java.beans.ConstructorProperties({"regionName", "systemTags"}) + public AvailableRegionSummary( + String regionName, java.util.Map> systemTags) { super(); this.regionName = regionName; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,12 +48,32 @@ public Builder regionName(String regionName) { this.__explicitlySet__.add("regionName"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AvailableRegionSummary build() { - AvailableRegionSummary model = new AvailableRegionSummary(this.regionName); + AvailableRegionSummary model = + new AvailableRegionSummary(this.regionName, this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,6 +85,9 @@ public Builder copy(AvailableRegionSummary model) { if (model.wasPropertyExplicitlySet("regionName")) { this.regionName(model.getRegionName()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -89,6 +114,23 @@ public String getRegionName() { return regionName; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -105,6 +147,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("AvailableRegionSummary("); sb.append("super=").append(super.toString()); sb.append("regionName=").append(String.valueOf(this.regionName)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -119,7 +162,9 @@ public boolean equals(Object o) { } AvailableRegionSummary other = (AvailableRegionSummary) o; - return java.util.Objects.equals(this.regionName, other.regionName) && super.equals(other); + return java.util.Objects.equals(this.regionName, other.regionName) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); } @Override @@ -127,6 +172,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.regionName == null ? 43 : this.regionName.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscription.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscription.java index 99e35452812..d78ea407808 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscription.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscription.java @@ -332,6 +332,21 @@ public Builder endDate(java.util.Date endDate) { this.__explicitlySet__.add("endDate"); return this; } + /** Service or component which is used to provision and manage the subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedBy") + private ClassicSubscriptionManagedBy managedBy; + + /** + * Service or component which is used to provision and manage the subscription. + * + * @param managedBy the value to set + * @return this builder + */ + public Builder managedBy(ClassicSubscriptionManagedBy managedBy) { + this.managedBy = managedBy; + this.__explicitlySet__.add("managedBy"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -361,7 +376,8 @@ public ClassicAssignedSubscription build() { this.promotion, this.purchaseEntitlementId, this.startDate, - this.endDate); + this.endDate, + this.managedBy); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -439,6 +455,9 @@ public Builder copy(ClassicAssignedSubscription model) { if (model.wasPropertyExplicitlySet("endDate")) { this.endDate(model.getEndDate()); } + if (model.wasPropertyExplicitlySet("managedBy")) { + this.managedBy(model.getManagedBy()); + } return this; } } @@ -476,7 +495,8 @@ public ClassicAssignedSubscription( java.util.List promotion, String purchaseEntitlementId, java.util.Date startDate, - java.util.Date endDate) { + java.util.Date endDate, + ClassicSubscriptionManagedBy managedBy) { super(id, compartmentId, serviceName, timeCreated, timeUpdated, freeformTags, definedTags); this.lifecycleState = lifecycleState; this.classicSubscriptionId = classicSubscriptionId; @@ -494,6 +514,7 @@ public ClassicAssignedSubscription( this.purchaseEntitlementId = purchaseEntitlementId; this.startDate = startDate; this.endDate = endDate; + this.managedBy = managedBy; } /** Lifecycle state of the subscription. */ @@ -704,6 +725,19 @@ public java.util.Date getEndDate() { return endDate; } + /** Service or component which is used to provision and manage the subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedBy") + private final ClassicSubscriptionManagedBy managedBy; + + /** + * Service or component which is used to provision and manage the subscription. + * + * @return the value + */ + public ClassicSubscriptionManagedBy getManagedBy() { + return managedBy; + } + @Override public String toString() { return this.toString(true); @@ -736,6 +770,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", purchaseEntitlementId=").append(String.valueOf(this.purchaseEntitlementId)); sb.append(", startDate=").append(String.valueOf(this.startDate)); sb.append(", endDate=").append(String.valueOf(this.endDate)); + sb.append(", managedBy=").append(String.valueOf(this.managedBy)); sb.append(")"); return sb.toString(); } @@ -767,6 +802,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.purchaseEntitlementId, other.purchaseEntitlementId) && java.util.Objects.equals(this.startDate, other.startDate) && java.util.Objects.equals(this.endDate, other.endDate) + && java.util.Objects.equals(this.managedBy, other.managedBy) && super.equals(other); } @@ -820,6 +856,7 @@ public int hashCode() { : this.purchaseEntitlementId.hashCode()); result = (result * PRIME) + (this.startDate == null ? 43 : this.startDate.hashCode()); result = (result * PRIME) + (this.endDate == null ? 43 : this.endDate.hashCode()); + result = (result * PRIME) + (this.managedBy == null ? 43 : this.managedBy.hashCode()); return result; } } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscriptionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscriptionSummary.java index 0407fc509db..9e4caefb8c1 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscriptionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicAssignedSubscriptionSummary.java @@ -90,6 +90,15 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** Lifecycle state of the subscription. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private ClassicSubscriptionLifecycleState lifecycleState; @@ -195,6 +204,21 @@ public Builder csiNumber(String csiNumber) { this.__explicitlySet__.add("csiNumber"); return this; } + /** Service or component which is used to provision and manage the subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedBy") + private ClassicSubscriptionManagedBy managedBy; + + /** + * Service or component which is used to provision and manage the subscription. + * + * @param managedBy the value to set + * @return this builder + */ + public Builder managedBy(ClassicSubscriptionManagedBy managedBy) { + this.managedBy = managedBy; + this.__explicitlySet__.add("managedBy"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -209,13 +233,15 @@ public ClassicAssignedSubscriptionSummary build() { this.timeUpdated, this.freeformTags, this.definedTags, + this.systemTags, this.lifecycleState, this.classicSubscriptionId, this.isClassicSubscription, this.regionAssignment, this.startDate, this.endDate, - this.csiNumber); + this.csiNumber, + this.managedBy); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -245,6 +271,9 @@ public Builder copy(ClassicAssignedSubscriptionSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -266,6 +295,9 @@ public Builder copy(ClassicAssignedSubscriptionSummary model) { if (model.wasPropertyExplicitlySet("csiNumber")) { this.csiNumber(model.getCsiNumber()); } + if (model.wasPropertyExplicitlySet("managedBy")) { + this.managedBy(model.getManagedBy()); + } return this; } } @@ -288,14 +320,24 @@ public ClassicAssignedSubscriptionSummary( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, ClassicSubscriptionLifecycleState lifecycleState, String classicSubscriptionId, Boolean isClassicSubscription, String regionAssignment, java.util.Date startDate, java.util.Date endDate, - String csiNumber) { - super(id, compartmentId, serviceName, timeCreated, timeUpdated, freeformTags, definedTags); + String csiNumber, + ClassicSubscriptionManagedBy managedBy) { + super( + id, + compartmentId, + serviceName, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); this.lifecycleState = lifecycleState; this.classicSubscriptionId = classicSubscriptionId; this.isClassicSubscription = isClassicSubscription; @@ -303,6 +345,7 @@ public ClassicAssignedSubscriptionSummary( this.startDate = startDate; this.endDate = endDate; this.csiNumber = csiNumber; + this.managedBy = managedBy; } /** Lifecycle state of the subscription. */ @@ -396,6 +439,19 @@ public String getCsiNumber() { return csiNumber; } + /** Service or component which is used to provision and manage the subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedBy") + private final ClassicSubscriptionManagedBy managedBy; + + /** + * Service or component which is used to provision and manage the subscription. + * + * @return the value + */ + public ClassicSubscriptionManagedBy getManagedBy() { + return managedBy; + } + @Override public String toString() { return this.toString(true); @@ -418,6 +474,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", startDate=").append(String.valueOf(this.startDate)); sb.append(", endDate=").append(String.valueOf(this.endDate)); sb.append(", csiNumber=").append(String.valueOf(this.csiNumber)); + sb.append(", managedBy=").append(String.valueOf(this.managedBy)); sb.append(")"); return sb.toString(); } @@ -439,6 +496,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.startDate, other.startDate) && java.util.Objects.equals(this.endDate, other.endDate) && java.util.Objects.equals(this.csiNumber, other.csiNumber) + && java.util.Objects.equals(this.managedBy, other.managedBy) && super.equals(other); } @@ -465,6 +523,7 @@ public int hashCode() { result = (result * PRIME) + (this.startDate == null ? 43 : this.startDate.hashCode()); result = (result * PRIME) + (this.endDate == null ? 43 : this.endDate.hashCode()); result = (result * PRIME) + (this.csiNumber == null ? 43 : this.csiNumber.hashCode()); + result = (result * PRIME) + (this.managedBy == null ? 43 : this.managedBy.hashCode()); return result; } } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionEnvironmentName.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionEnvironmentName.java deleted file mode 100644 index 3ccb85ede5e..00000000000 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionEnvironmentName.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.tenantmanagercontrolplane.model; - -/** TAS (Tenant Automation System) legacy environment this order orginated from. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") -public enum ClassicSubscriptionEnvironmentName implements com.oracle.bmc.http.internal.BmcEnum { - Prod("PROD"), - Preprod("PREPROD"), - Preprod1("PREPROD1"), - Pintlab("PINTLAB"), - Miglab("MIGLAB"), - Pool2("POOL2"), - Pintlab2("PINTLAB2"), - Mylab0("MYLAB0"), - Mylab1("MYLAB1"), - Mylab2("MYLAB2"), - Mylab3("MYLAB3"), - Mylab4("MYLAB4"), - Mylab5("MYLAB5"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ClassicSubscriptionEnvironmentName v : ClassicSubscriptionEnvironmentName.values()) { - map.put(v.getValue(), v); - } - } - - ClassicSubscriptionEnvironmentName(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ClassicSubscriptionEnvironmentName create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid ClassicSubscriptionEnvironmentName: " + key); - } -} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionManagedBy.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionManagedBy.java new file mode 100644 index 00000000000..a16d7137519 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionManagedBy.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.tenantmanagercontrolplane.model; + +/** Service or component which is used to provision and manage the subscription. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public enum ClassicSubscriptionManagedBy implements com.oracle.bmc.http.internal.BmcEnum { + Appsmanager("APPSMANAGER"), + Servicemanagerproxy("SERVICEMANAGERPROXY"), + Fusionapps("FUSIONAPPS"), + Myservices("MYSERVICES"), + + /** + * 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(ClassicSubscriptionManagedBy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ClassicSubscriptionManagedBy v : ClassicSubscriptionManagedBy.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ClassicSubscriptionManagedBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ClassicSubscriptionManagedBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ClassicSubscriptionManagedBy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionSummary.java index 265558635e8..9fbaa4ae10b 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ClassicSubscriptionSummary.java @@ -90,6 +90,15 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** Classic subscription ID. */ @com.fasterxml.jackson.annotation.JsonProperty("classicSubscriptionId") private String classicSubscriptionId; @@ -209,6 +218,7 @@ public ClassicSubscriptionSummary build() { this.timeUpdated, this.freeformTags, this.definedTags, + this.systemTags, this.classicSubscriptionId, this.isClassicSubscription, this.paymentModel, @@ -245,6 +255,9 @@ public Builder copy(ClassicSubscriptionSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("classicSubscriptionId")) { this.classicSubscriptionId(model.getClassicSubscriptionId()); } @@ -288,6 +301,7 @@ public ClassicSubscriptionSummary( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, String classicSubscriptionId, Boolean isClassicSubscription, String paymentModel, @@ -295,7 +309,15 @@ public ClassicSubscriptionSummary( ClassicSubscriptionLifecycleState lifecycleState, java.util.Date startDate, java.util.Date endDate) { - super(id, compartmentId, serviceName, timeCreated, timeUpdated, freeformTags, definedTags); + super( + id, + compartmentId, + serviceName, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); this.classicSubscriptionId = classicSubscriptionId; this.isClassicSubscription = isClassicSubscription; this.paymentModel = paymentModel; diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudAssignedSubscriptionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudAssignedSubscriptionSummary.java index 4444ef322ec..2967c1b144f 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudAssignedSubscriptionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudAssignedSubscriptionSummary.java @@ -90,6 +90,15 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** Unique Oracle Cloud Subscriptions identifier that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionNumber") private String subscriptionNumber; @@ -149,6 +158,7 @@ public CloudAssignedSubscriptionSummary build() { this.timeUpdated, this.freeformTags, this.definedTags, + this.systemTags, this.subscriptionNumber, this.currencyCode, this.lifecycleState); @@ -181,6 +191,9 @@ public Builder copy(CloudAssignedSubscriptionSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("subscriptionNumber")) { this.subscriptionNumber(model.getSubscriptionNumber()); } @@ -212,10 +225,19 @@ public CloudAssignedSubscriptionSummary( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, String subscriptionNumber, String currencyCode, SubscriptionLifecycleState lifecycleState) { - super(id, compartmentId, serviceName, timeCreated, timeUpdated, freeformTags, definedTags); + super( + id, + compartmentId, + serviceName, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); this.subscriptionNumber = subscriptionNumber; this.currencyCode = currencyCode; this.lifecycleState = lifecycleState; diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudSubscriptionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudSubscriptionSummary.java index 34aa5c7ff2f..e585d10c111 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudSubscriptionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CloudSubscriptionSummary.java @@ -90,6 +90,15 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** Unique Oracle Cloud Subscriptions identifier that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionNumber") private String subscriptionNumber; @@ -149,6 +158,7 @@ public CloudSubscriptionSummary build() { this.timeUpdated, this.freeformTags, this.definedTags, + this.systemTags, this.subscriptionNumber, this.currencyCode, this.lifecycleState); @@ -181,6 +191,9 @@ public Builder copy(CloudSubscriptionSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("subscriptionNumber")) { this.subscriptionNumber(model.getSubscriptionNumber()); } @@ -212,10 +225,19 @@ public CloudSubscriptionSummary( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, String subscriptionNumber, String currencyCode, SubscriptionLifecycleState lifecycleState) { - super(id, compartmentId, serviceName, timeCreated, timeUpdated, freeformTags, definedTags); + super( + id, + compartmentId, + serviceName, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); this.subscriptionNumber = subscriptionNumber; this.currencyCode = currencyCode; this.lifecycleState = lifecycleState; diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java index ad22ac3f867..be65b326c20 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java @@ -29,7 +29,8 @@ public final class CreateChildTenancyDetails "homeRegion", "adminEmail", "policyName", - "governanceStatus" + "governanceStatus", + "subscriptionId" }) public CreateChildTenancyDetails( String compartmentId, @@ -37,7 +38,8 @@ public CreateChildTenancyDetails( String homeRegion, String adminEmail, String policyName, - GovernanceStatus governanceStatus) { + GovernanceStatus governanceStatus, + String subscriptionId) { super(); this.compartmentId = compartmentId; this.tenancyName = tenancyName; @@ -45,6 +47,7 @@ public CreateChildTenancyDetails( this.adminEmail = adminEmail; this.policyName = policyName; this.governanceStatus = governanceStatus; + this.subscriptionId = subscriptionId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -147,6 +150,21 @@ public Builder governanceStatus(GovernanceStatus governanceStatus) { this.__explicitlySet__.add("governanceStatus"); return this; } + /** OCID of the subscription that needs to be assigned to the child tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * OCID of the subscription that needs to be assigned to the child tenancy. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -159,7 +177,8 @@ public CreateChildTenancyDetails build() { this.homeRegion, this.adminEmail, this.policyName, - this.governanceStatus); + this.governanceStatus, + this.subscriptionId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -186,6 +205,9 @@ public Builder copy(CreateChildTenancyDetails model) { if (model.wasPropertyExplicitlySet("governanceStatus")) { this.governanceStatus(model.getGovernanceStatus()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } return this; } } @@ -285,6 +307,19 @@ public GovernanceStatus getGovernanceStatus() { return governanceStatus; } + /** OCID of the subscription that needs to be assigned to the child tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * OCID of the subscription that needs to be assigned to the child tenancy. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + @Override public String toString() { return this.toString(true); @@ -306,6 +341,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminEmail=").append(String.valueOf(this.adminEmail)); sb.append(", policyName=").append(String.valueOf(this.policyName)); sb.append(", governanceStatus=").append(String.valueOf(this.governanceStatus)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(")"); return sb.toString(); } @@ -326,6 +362,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.adminEmail, other.adminEmail) && java.util.Objects.equals(this.policyName, other.policyName) && java.util.Objects.equals(this.governanceStatus, other.governanceStatus) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && super.equals(other); } @@ -343,6 +380,9 @@ public int hashCode() { result = (result * PRIME) + (this.governanceStatus == null ? 43 : this.governanceStatus.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java index 85bff6e9aa2..254a931454b 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java @@ -28,7 +28,8 @@ public final class LinkSummary extends com.oracle.bmc.http.client.internal.Expli "lifecycleState", "timeCreated", "timeUpdated", - "timeTerminated" + "timeTerminated", + "systemTags" }) public LinkSummary( String id, @@ -37,7 +38,8 @@ public LinkSummary( LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, - java.util.Date timeTerminated) { + java.util.Date timeTerminated, + java.util.Map> systemTags) { super(); this.id = id; this.parentTenancyId = parentTenancyId; @@ -46,6 +48,7 @@ public LinkSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeTerminated = timeTerminated; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -155,6 +158,25 @@ public Builder timeTerminated(java.util.Date timeTerminated) { this.__explicitlySet__.add("timeTerminated"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -168,7 +190,8 @@ public LinkSummary build() { this.lifecycleState, this.timeCreated, this.timeUpdated, - this.timeTerminated); + this.timeTerminated, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -198,6 +221,9 @@ public Builder copy(LinkSummary model) { if (model.wasPropertyExplicitlySet("timeTerminated")) { this.timeTerminated(model.getTimeTerminated()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -302,6 +328,23 @@ public java.util.Date getTimeTerminated() { return timeTerminated; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -324,6 +367,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -345,6 +389,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -367,6 +412,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OperationType.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OperationType.java index fab105bc78e..ef44503a251 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OperationType.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OperationType.java @@ -23,8 +23,13 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { HardTerminateTenancy("HARD_TERMINATE_TENANCY"), RestoreTenancy("RESTORE_TENANCY"), LogTenancyTerminationRequest("LOG_TENANCY_TERMINATION_REQUEST"), + StandaloneTenancyTerminationRequest("STANDALONE_TENANCY_TERMINATION_REQUEST"), SelfOptIn("SELF_OPT_IN"), SelfOptOut("SELF_OPT_OUT"), + OrderPayloadsBackfillEtl("ORDER_PAYLOADS_BACKFILL_ETL"), + PublishToTopic("PUBLISH_TO_TOPIC"), + TerminateLink("TERMINATE_LINK"), + TransferSubscription("TRANSFER_SUBSCRIPTION"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationSummary.java index 4e236269746..e475ad8c0f2 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationSummary.java @@ -31,7 +31,8 @@ public final class OrganizationSummary "defaultUcmSubscriptionId", "lifecycleState", "timeCreated", - "timeUpdated" + "timeUpdated", + "systemTags" }) public OrganizationSummary( String id, @@ -41,7 +42,8 @@ public OrganizationSummary( String defaultUcmSubscriptionId, Organization.LifecycleState lifecycleState, java.util.Date timeCreated, - java.util.Date timeUpdated) { + java.util.Date timeUpdated, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -51,6 +53,7 @@ public OrganizationSummary( this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -181,6 +184,25 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -195,7 +217,8 @@ public OrganizationSummary build() { this.defaultUcmSubscriptionId, this.lifecycleState, this.timeCreated, - this.timeUpdated); + this.timeUpdated, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -228,6 +251,9 @@ public Builder copy(OrganizationSummary model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -351,6 +377,23 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -375,6 +418,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -398,6 +442,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -421,6 +466,7 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationTenancySummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationTenancySummary.java index 8af221174a1..bf30db1f461 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationTenancySummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/OrganizationTenancySummary.java @@ -31,7 +31,8 @@ public final class OrganizationTenancySummary "timeJoined", "timeLeft", "isApprovedForTransfer", - "governanceStatus" + "governanceStatus", + "systemTags" }) public OrganizationTenancySummary( String tenancyId, @@ -41,7 +42,8 @@ public OrganizationTenancySummary( java.util.Date timeJoined, java.util.Date timeLeft, Boolean isApprovedForTransfer, - GovernanceStatus governanceStatus) { + GovernanceStatus governanceStatus, + java.util.Map> systemTags) { super(); this.tenancyId = tenancyId; this.name = name; @@ -51,6 +53,7 @@ public OrganizationTenancySummary( this.timeLeft = timeLeft; this.isApprovedForTransfer = isApprovedForTransfer; this.governanceStatus = governanceStatus; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -175,6 +178,25 @@ public Builder governanceStatus(GovernanceStatus governanceStatus) { this.__explicitlySet__.add("governanceStatus"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -189,7 +211,8 @@ public OrganizationTenancySummary build() { this.timeJoined, this.timeLeft, this.isApprovedForTransfer, - this.governanceStatus); + this.governanceStatus, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -222,6 +245,9 @@ public Builder copy(OrganizationTenancySummary model) { if (model.wasPropertyExplicitlySet("governanceStatus")) { this.governanceStatus(model.getGovernanceStatus()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -339,6 +365,23 @@ public GovernanceStatus getGovernanceStatus() { return governanceStatus; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -362,6 +405,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeLeft=").append(String.valueOf(this.timeLeft)); sb.append(", isApprovedForTransfer=").append(String.valueOf(this.isApprovedForTransfer)); sb.append(", governanceStatus=").append(String.valueOf(this.governanceStatus)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -384,6 +428,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeLeft, other.timeLeft) && java.util.Objects.equals(this.isApprovedForTransfer, other.isApprovedForTransfer) && java.util.Objects.equals(this.governanceStatus, other.governanceStatus) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -407,6 +452,7 @@ public int hashCode() { result = (result * PRIME) + (this.governanceStatus == null ? 43 : this.governanceStatus.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionLineItemSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionLineItemSummary.java index f23e805d4d3..34d63a1be02 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionLineItemSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionLineItemSummary.java @@ -29,7 +29,8 @@ public final class SubscriptionLineItemSummary "quantity", "billingModel", "timeStarted", - "timeEnded" + "timeEnded", + "systemTags" }) public SubscriptionLineItemSummary( String id, @@ -37,7 +38,8 @@ public SubscriptionLineItemSummary( Float quantity, BillingModel billingModel, java.util.Date timeStarted, - java.util.Date timeEnded) { + java.util.Date timeEnded, + java.util.Map> systemTags) { super(); this.id = id; this.productCode = productCode; @@ -45,6 +47,7 @@ public SubscriptionLineItemSummary( this.billingModel = billingModel; this.timeStarted = timeStarted; this.timeEnded = timeEnded; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -147,6 +150,25 @@ public Builder timeEnded(java.util.Date timeEnded) { this.__explicitlySet__.add("timeEnded"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -159,7 +181,8 @@ public SubscriptionLineItemSummary build() { this.quantity, this.billingModel, this.timeStarted, - this.timeEnded); + this.timeEnded, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -186,6 +209,9 @@ public Builder copy(SubscriptionLineItemSummary model) { if (model.wasPropertyExplicitlySet("timeEnded")) { this.timeEnded(model.getTimeEnded()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -285,6 +311,23 @@ public java.util.Date getTimeEnded() { return timeEnded; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -306,6 +349,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", billingModel=").append(String.valueOf(this.billingModel)); sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -326,6 +370,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.billingModel, other.billingModel) && java.util.Objects.equals(this.timeStarted, other.timeStarted) && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -339,6 +384,7 @@ public int hashCode() { result = (result * PRIME) + (this.billingModel == null ? 43 : this.billingModel.hashCode()); result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionMappingSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionMappingSummary.java index d0527386e15..c8805c01289 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionMappingSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionMappingSummary.java @@ -31,7 +31,8 @@ public final class SubscriptionMappingSummary "lifecycleState", "timeTerminated", "timeCreated", - "timeUpdated" + "timeUpdated", + "systemTags" }) public SubscriptionMappingSummary( String id, @@ -41,7 +42,8 @@ public SubscriptionMappingSummary( SubscriptionMapping.LifecycleState lifecycleState, java.util.Date timeTerminated, java.util.Date timeCreated, - java.util.Date timeUpdated) { + java.util.Date timeUpdated, + java.util.Map> systemTags) { super(); this.id = id; this.subscriptionId = subscriptionId; @@ -51,6 +53,7 @@ public SubscriptionMappingSummary( this.timeTerminated = timeTerminated; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -175,6 +178,25 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -189,7 +211,8 @@ public SubscriptionMappingSummary build() { this.lifecycleState, this.timeTerminated, this.timeCreated, - this.timeUpdated); + this.timeUpdated, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -222,6 +245,9 @@ public Builder copy(SubscriptionMappingSummary model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -339,6 +365,23 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -362,6 +405,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -384,6 +428,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -411,6 +456,7 @@ public int hashCode() { + (this.timeTerminated == null ? 43 : this.timeTerminated.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.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionSummary.java index 74be5e78932..fa04e724fe8 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SubscriptionSummary.java @@ -41,7 +41,8 @@ public class SubscriptionSummary extends com.oracle.bmc.http.client.internal.Exp "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) protected SubscriptionSummary( String id, @@ -50,7 +51,8 @@ protected SubscriptionSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -59,6 +61,7 @@ protected SubscriptionSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -99,12 +102,12 @@ public String getCompartmentId() { return compartmentId; } - /** The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'. */ + /** The type of subscription, such as 'CLOUDCM', 'AUTOANALYTICS', 'ERP', 'CRM'. */ @com.fasterxml.jackson.annotation.JsonProperty("serviceName") private final String serviceName; /** - * The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'. + * The type of subscription, such as 'CLOUDCM', 'AUTOANALYTICS', 'ERP', 'CRM'. * * @return the value */ @@ -180,6 +183,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -202,6 +222,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -223,6 +244,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -239,6 +261,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json b/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json index d51ef469b68..9957cebecf9 100644 --- a/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json +++ b/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json @@ -165,13 +165,13 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscriptionEnvironmentName", + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscriptionLifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscriptionLifecycleState", + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscriptionManagedBy", "allDeclaredFields": true, "allDeclaredMethods": true }, diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 286d1f35670..410a8dfb66c 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 5e322275d95..f4a46ef5397 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index f69c60f7202..b0b46a5190a 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 2ea09157e8c..825de8e5db9 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.3 + 3.56.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 1190ee9f04d..694891d3578 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index d5a0af07b2c..27566b78603 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index fbe5ff84d60..3154bc44a78 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index ac56c9eedd3..aca4f53ee05 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 49bf5557b4b..131e5557f7b 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 95300518815..987851fe814 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index c00d2a1df2e..adf3b3a75e0 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index da75370a1d8..0333291ec35 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index dcf859a8981..4920a62be1a 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.3 + 3.56.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index eff3b9b9afe..a6660e3cdf1 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.55.3 + 3.56.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure