Class CreateDataGuardAssociationWithNewDbSystemDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.CreateDataGuardAssociationDetails
-
- com.oracle.bmc.database.model.CreateDataGuardAssociationWithNewDbSystemDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CreateDataGuardAssociationWithNewDbSystemDetails extends CreateDataGuardAssociationDetailsThe configuration details for creating a Data Guard association for a virtual machine DB system database.For this type of DB system database, the creationType should be NewDbSystem. A new DB system will be launched to create the standby database.
To create a Data Guard association for a database in a bare metal or Exadata DB system, use the
createDataGuardAssociationToExistingDbSystemDetailssubtype instead.
Note: Objects should always be created or deserialized using theCreateDataGuardAssociationWithNewDbSystemDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theCreateDataGuardAssociationWithNewDbSystemDetails.Builder, which maintain a set of all explicitly set fields calledCreateDataGuardAssociationWithNewDbSystemDetails.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateDataGuardAssociationWithNewDbSystemDetails.Builderstatic classCreateDataGuardAssociationWithNewDbSystemDetails.ComputeModelThe compute model for Base Database Service.static classCreateDataGuardAssociationWithNewDbSystemDetails.LicenseModelThe Oracle license model that applies to all the databases on the dataguard standby DB system.static classCreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceModeThe block storage volume performance level.-
Nested classes/interfaces inherited from class com.oracle.bmc.database.model.CreateDataGuardAssociationDetails
CreateDataGuardAssociationDetails.ProtectionMode, CreateDataGuardAssociationDetails.TransportType
-
-
Constructor Summary
Constructors Constructor Description CreateDataGuardAssociationWithNewDbSystemDetails(String databaseSoftwareImageId, String databaseAdminPassword, EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, CreateDataGuardAssociationDetails.ProtectionMode protectionMode, CreateDataGuardAssociationDetails.TransportType transportType, Boolean isActiveDataGuardEnabled, String peerDbUniqueName, String peerSidPrefix, String displayName, String availabilityDomain, String shape, Integer cpuCoreCount, CreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceMode storageVolumePerformanceMode, CreateDataGuardAssociationWithNewDbSystemDetails.ComputeModel computeModel, Integer computeCount, Integer nodeCount, String subnetId, List<String> nsgIds, List<String> backupNetworkNsgIds, String hostname, String domain, String timeZone, List<String> faultDomains, String privateIp, String privateIpV6, CreateDataGuardAssociationWithNewDbSystemDetails.LicenseModel licenseModel, Map<String,String> dbSystemFreeformTags, Map<String,Map<String,Object>> dbSystemDefinedTags, Map<String,Map<String,Object>> dbSystemSecurityAttributes, Map<String,String> databaseFreeformTags, Map<String,Map<String,Object>> databaseDefinedTags, DataCollectionOptions dataCollectionOptions, String clusterPlacementGroupId, String subscriptionId)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDataGuardAssociationWithNewDbSystemDetails.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAvailabilityDomain()The name of the availability domain that the standby database DB system will be located in.List<String>getBackupNetworkNsgIds()A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to.StringgetClusterPlacementGroupId()The OCID of the cluster placement group of the Exadata Infrastructure or Db System.IntegergetComputeCount()The number of compute servers for the DB system.CreateDataGuardAssociationWithNewDbSystemDetails.ComputeModelgetComputeModel()The compute model for Base Database Service.IntegergetCpuCoreCount()The number of CPU cores available for AMD-based virtual machine DB systems.Map<String,Map<String,Object>>getDatabaseDefinedTags()Defined tags for this resource.Map<String,String>getDatabaseFreeformTags()Free-form tags for this resource.DataCollectionOptionsgetDataCollectionOptions()Map<String,Map<String,Object>>getDbSystemDefinedTags()Defined tags for this resource.Map<String,String>getDbSystemFreeformTags()Free-form tags for this resource.Map<String,Map<String,Object>>getDbSystemSecurityAttributes()Security Attributes for this resource.StringgetDisplayName()The user-friendly name of the DB system that will contain the the standby database.StringgetDomain()A domain name used for the DB system.List<String>getFaultDomains()A Fault Domain is a grouping of hardware and infrastructure within an availability domain.StringgetHostname()The hostname for the DB node.CreateDataGuardAssociationWithNewDbSystemDetails.LicenseModelgetLicenseModel()The Oracle license model that applies to all the databases on the dataguard standby DB system.IntegergetNodeCount()The number of nodes to launch for the DB system of the standby in the Data Guard association.List<String>getNsgIds()The list of OCIDs for the network security groups (NSGs) to which this resource belongs.StringgetPrivateIp()The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC.StringgetPrivateIpV6()The IPv6 address from the provided OCI subnet which needs to be assigned to the VNIC.StringgetShape()The virtual machine DB system shape to launch for the standby database in the Data Guard association.CreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceModegetStorageVolumePerformanceMode()The block storage volume performance level.StringgetSubnetId()The OCID of the subnet the DB system is associated with.StringgetSubscriptionId()The OCID of the subscription with which resource needs to be associated with.StringgetTimeZone()The time zone of the dataguard standby DB system.inthashCode()CreateDataGuardAssociationWithNewDbSystemDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.database.model.CreateDataGuardAssociationDetails
getDatabaseAdminPassword, getDatabaseSoftwareImageId, getIsActiveDataGuardEnabled, getPeerDbUniqueName, getPeerSidPrefix, getProtectionMode, getSourceEncryptionKeyLocationDetails, getTransportType
-
-
-
-
Constructor Detail
-
CreateDataGuardAssociationWithNewDbSystemDetails
@Deprecated public CreateDataGuardAssociationWithNewDbSystemDetails(String databaseSoftwareImageId, String databaseAdminPassword, EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, CreateDataGuardAssociationDetails.ProtectionMode protectionMode, CreateDataGuardAssociationDetails.TransportType transportType, Boolean isActiveDataGuardEnabled, String peerDbUniqueName, String peerSidPrefix, String displayName, String availabilityDomain, String shape, Integer cpuCoreCount, CreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceMode storageVolumePerformanceMode, CreateDataGuardAssociationWithNewDbSystemDetails.ComputeModel computeModel, Integer computeCount, Integer nodeCount, String subnetId, List<String> nsgIds, List<String> backupNetworkNsgIds, String hostname, String domain, String timeZone, List<String> faultDomains, String privateIp, String privateIpV6, CreateDataGuardAssociationWithNewDbSystemDetails.LicenseModel licenseModel, Map<String,String> dbSystemFreeformTags, Map<String,Map<String,Object>> dbSystemDefinedTags, Map<String,Map<String,Object>> dbSystemSecurityAttributes, Map<String,String> databaseFreeformTags, Map<String,Map<String,Object>> databaseDefinedTags, DataCollectionOptions dataCollectionOptions, String clusterPlacementGroupId, String subscriptionId)
Deprecated.
-
-
Method Detail
-
builder
public static CreateDataGuardAssociationWithNewDbSystemDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreateDataGuardAssociationWithNewDbSystemDetails.Builder toBuilder()
-
getDisplayName
public String getDisplayName()
The user-friendly name of the DB system that will contain the the standby database.The display name does not have to be unique.
- Returns:
- the value
-
getAvailabilityDomain
public String getAvailabilityDomain()
The name of the availability domain that the standby database DB system will be located in.For example- “Uocm:PHX-AD-1”.
- Returns:
- the value
-
getShape
public String getShape()
The virtual machine DB system shape to launch for the standby database in the Data Guard association.The shape determines the number of CPU cores and the amount of memory available for the DB system. Only virtual machine shapes are valid options. If you do not supply this parameter, the default shape is the shape of the primary DB system.
To get a list of all shapes, use the
listDbSystemShapesoperation.- Returns:
- the value
-
getCpuCoreCount
public Integer getCpuCoreCount()
The number of CPU cores available for AMD-based virtual machine DB systems.- Returns:
- the value
-
getStorageVolumePerformanceMode
public CreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceMode getStorageVolumePerformanceMode()
The block storage volume performance level.Valid values are BALANCED and HIGH_PERFORMANCE. See Block Volume Performance for more information.
- Returns:
- the value
-
getComputeModel
public CreateDataGuardAssociationWithNewDbSystemDetails.ComputeModel getComputeModel()
The compute model for Base Database Service.This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.
- Returns:
- the value
-
getComputeCount
public Integer getComputeCount()
The number of compute servers for the DB system.- Returns:
- the value
-
getNodeCount
public Integer getNodeCount()
The number of nodes to launch for the DB system of the standby in the Data Guard association.For a 2-node RAC virtual machine DB system, specify either 1 or 2. If you do not supply this parameter, the default is the node count of the primary DB system.
- Returns:
- the value
-
getSubnetId
public String getSubnetId()
The OCID of the subnet the DB system is associated with.Subnet Restrictions: - For 1- and 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.16.16/28
These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and backup subnet.
- Returns:
- the value
-
getNsgIds
public List<String> getNsgIds()
The list of OCIDs for the network security groups (NSGs) to which this resource belongs.Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules. NsgIds restrictions: - A network security group (NSG) is optional for Autonomous AI Databases with private access. The nsgIds list can be empty.
- Returns:
- the value
-
getBackupNetworkNsgIds
public List<String> getBackupNetworkNsgIds()
A list of the OCIDs of the network security groups (NSGs) that the backup network of this DB system belongs to.Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. Applicable only to Exadata systems.
- Returns:
- the value
-
getHostname
public String getHostname()
The hostname for the DB node.- Returns:
- the value
-
getDomain
public String getDomain()
A domain name used for the DB system.If the Oracle-provided Internet and VCN Resolver is enabled for the specified subnet, the domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted.
- Returns:
- the value
-
getTimeZone
public String getTimeZone()
The time zone of the dataguard standby DB system.For details, see DB System Time Zones.
- Returns:
- the value
-
getFaultDomains
public List<String> getFaultDomains()
A Fault Domain is a grouping of hardware and infrastructure within an availability domain.Fault Domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or maintenance that affects one Fault Domain does not affect DB systems in other Fault Domains.
If you do not specify the Fault Domain, the system selects one for you. To change the Fault Domain for a DB system, terminate it and launch a new DB system in the preferred Fault Domain.
If the node count is greater than 1, you can specify which Fault Domains these nodes will be distributed into. The system assigns your nodes automatically to the Fault Domains you specify so that no Fault Domain contains more than one node.
To get a list of Fault Domains, use the
listFaultDomainsoperation in the Identity and Access Management Service API.Example: FAULT-DOMAIN-1
- Returns:
- the value
-
getPrivateIp
public String getPrivateIp()
The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC.If not provided, it will be auto-assigned with an available IPv4 address from the subnet.
- Returns:
- the value
-
getPrivateIpV6
public String getPrivateIpV6()
The IPv6 address from the provided OCI subnet which needs to be assigned to the VNIC.If not provided, it will be auto-assigned with an available IPv6 address from the subnet.
- Returns:
- the value
-
getLicenseModel
public CreateDataGuardAssociationWithNewDbSystemDetails.LicenseModel getLicenseModel()
The Oracle license model that applies to all the databases on the dataguard standby DB system.The default is LICENSE_INCLUDED. Bring your own license (BYOL) allows you to select the DB edition using the optional parameter, for Autonomous AI Database Serverless.
- Returns:
- the value
-
getDbSystemFreeformTags
public Map<String,String> getDbSystemFreeformTags()
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Returns:
- the value
-
getDbSystemDefinedTags
public Map<String,Map<String,Object>> getDbSystemDefinedTags()
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Returns:
- the value
-
getDbSystemSecurityAttributes
public Map<String,Map<String,Object>> getDbSystemSecurityAttributes()
Security Attributes for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Oracle-ZPR”: {“MaxEgressCount”: {“value”: “42”, “mode”: “audit”}}}
- Returns:
- the value
-
getDatabaseFreeformTags
public Map<String,String> getDatabaseFreeformTags()
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Returns:
- the value
-
getDatabaseDefinedTags
public Map<String,Map<String,Object>> getDatabaseDefinedTags()
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Returns:
- the value
-
getDataCollectionOptions
public DataCollectionOptions getDataCollectionOptions()
-
getClusterPlacementGroupId
public String getClusterPlacementGroupId()
The OCID of the cluster placement group of the Exadata Infrastructure or Db System.- Returns:
- the value
-
getSubscriptionId
public String getSubscriptionId()
The OCID of the subscription with which resource needs to be associated with.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classCreateDataGuardAssociationDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classCreateDataGuardAssociationDetails- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCreateDataGuardAssociationDetails
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCreateDataGuardAssociationDetails
-
-