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 CreateDataGuardAssociationDetails
The 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
createDataGuardAssociationToExistingDbSystemDetails
subtype 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 class
CreateDataGuardAssociationWithNewDbSystemDetails.Builder
static class
CreateDataGuardAssociationWithNewDbSystemDetails.LicenseModel
The Oracle license model that applies to all the databases on the dataguard standby DB system.static class
CreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceMode
The 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, 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)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDataGuardAssociationWithNewDbSystemDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getAvailabilityDomain()
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.Integer
getCpuCoreCount()
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.DataCollectionOptions
getDataCollectionOptions()
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.String
getDisplayName()
The user-friendly name of the DB system that will contain the the standby database.String
getDomain()
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.String
getHostname()
The hostname for the DB node.CreateDataGuardAssociationWithNewDbSystemDetails.LicenseModel
getLicenseModel()
The Oracle license model that applies to all the databases on the dataguard standby DB system.Integer
getNodeCount()
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.String
getPrivateIp()
The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC.String
getPrivateIpV6()
The IPv6 address from the provided OCI subnet which needs to be assigned to the VNIC.String
getShape()
The virtual machine DB system shape to launch for the standby database in the Data Guard association.CreateDataGuardAssociationWithNewDbSystemDetails.StorageVolumePerformanceMode
getStorageVolumePerformanceMode()
The block storage volume performance level.String
getSubnetId()
The OCID of the subnet the DB system is associated with.String
getTimeZone()
The time zone of the dataguard standby DB system.int
hashCode()
CreateDataGuardAssociationWithNewDbSystemDetails.Builder
toBuilder()
String
toString()
String
toString(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, 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)
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
listDbSystemShapes
operation.- 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
-
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 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
listFaultDomains
operation 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 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()
-
toString
public String toString()
- Overrides:
toString
in classCreateDataGuardAssociationDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classCreateDataGuardAssociationDetails
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCreateDataGuardAssociationDetails
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCreateDataGuardAssociationDetails
-
-