Class DBCluster
- java.lang.Object
-
- com.amazonaws.services.rds.model.DBCluster
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DBCluster extends Object implements Serializable, Cloneable
Contains the result of a successful invocation of the following actions:
This data type is used as a response element in the DescribeDBClusters action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DBCluster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBClusterclone()booleanequals(Object obj)IntegergetAllocatedStorage()Specifies the allocated storage size in gigabytes (GB).List<String>getAvailabilityZones()Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.IntegergetBackupRetentionPeriod()Specifies the number of days for which automatic DB snapshots are retained.StringgetCharacterSetName()If present, specifies the name of the character set that this cluster is associated with.StringgetDatabaseName()Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created.StringgetDBClusterIdentifier()Contains a user-supplied DB cluster identifier.List<DBClusterMember>getDBClusterMembers()Provides the list of instances that make up the DB cluster.List<DBClusterOptionGroupStatus>getDBClusterOptionGroupMemberships()Provides the list of option group memberships for this DB cluster.StringgetDBClusterParameterGroup()Specifies the name of the DB cluster parameter group for the DB cluster.StringgetDbClusterResourceId()The region-unique, immutable identifier for the DB cluster.StringgetDBSubnetGroup()Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.DategetEarliestRestorableTime()Specifies the earliest time to which a database can be restored with point-in-time restore.StringgetEndpoint()Specifies the connection endpoint for the primary instance of the DB cluster.StringgetEngine()Provides the name of the database engine to be used for this DB cluster.StringgetEngineVersion()Indicates the database engine version.StringgetHostedZoneId()Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.StringgetKmsKeyId()IfStorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.DategetLatestRestorableTime()Specifies the latest time to which a database can be restored with point-in-time restore.StringgetMasterUsername()Contains the master username for the DB cluster.StringgetPercentProgress()Specifies the progress of the operation as a percentage.IntegergetPort()Specifies the port that the database engine is listening on.StringgetPreferredBackupWindow()Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.StringgetPreferredMaintenanceWindow()Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).StringgetStatus()Specifies the current state of this DB cluster.BooleangetStorageEncrypted()Specifies whether the DB cluster is encrypted.List<VpcSecurityGroupMembership>getVpcSecurityGroups()Provides a list of VPC security groups that the DB cluster belongs to.inthashCode()BooleanisStorageEncrypted()Specifies whether the DB cluster is encrypted.voidsetAllocatedStorage(Integer allocatedStorage)Specifies the allocated storage size in gigabytes (GB).voidsetAvailabilityZones(Collection<String> availabilityZones)Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.voidsetBackupRetentionPeriod(Integer backupRetentionPeriod)Specifies the number of days for which automatic DB snapshots are retained.voidsetCharacterSetName(String characterSetName)If present, specifies the name of the character set that this cluster is associated with.voidsetDatabaseName(String databaseName)Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created.voidsetDBClusterIdentifier(String dBClusterIdentifier)Contains a user-supplied DB cluster identifier.voidsetDBClusterMembers(Collection<DBClusterMember> dBClusterMembers)Provides the list of instances that make up the DB cluster.voidsetDBClusterOptionGroupMemberships(Collection<DBClusterOptionGroupStatus> dBClusterOptionGroupMemberships)Provides the list of option group memberships for this DB cluster.voidsetDBClusterParameterGroup(String dBClusterParameterGroup)Specifies the name of the DB cluster parameter group for the DB cluster.voidsetDbClusterResourceId(String dbClusterResourceId)The region-unique, immutable identifier for the DB cluster.voidsetDBSubnetGroup(String dBSubnetGroup)Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.voidsetEarliestRestorableTime(Date earliestRestorableTime)Specifies the earliest time to which a database can be restored with point-in-time restore.voidsetEndpoint(String endpoint)Specifies the connection endpoint for the primary instance of the DB cluster.voidsetEngine(String engine)Provides the name of the database engine to be used for this DB cluster.voidsetEngineVersion(String engineVersion)Indicates the database engine version.voidsetHostedZoneId(String hostedZoneId)Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.voidsetKmsKeyId(String kmsKeyId)IfStorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.voidsetLatestRestorableTime(Date latestRestorableTime)Specifies the latest time to which a database can be restored with point-in-time restore.voidsetMasterUsername(String masterUsername)Contains the master username for the DB cluster.voidsetPercentProgress(String percentProgress)Specifies the progress of the operation as a percentage.voidsetPort(Integer port)Specifies the port that the database engine is listening on.voidsetPreferredBackupWindow(String preferredBackupWindow)Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.voidsetPreferredMaintenanceWindow(String preferredMaintenanceWindow)Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).voidsetStatus(String status)Specifies the current state of this DB cluster.voidsetStorageEncrypted(Boolean storageEncrypted)Specifies whether the DB cluster is encrypted.voidsetVpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)Provides a list of VPC security groups that the DB cluster belongs to.StringtoString()Returns a string representation of this object; useful for testing and debugging.DBClusterwithAllocatedStorage(Integer allocatedStorage)Specifies the allocated storage size in gigabytes (GB).DBClusterwithAvailabilityZones(String... availabilityZones)Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.DBClusterwithAvailabilityZones(Collection<String> availabilityZones)Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.DBClusterwithBackupRetentionPeriod(Integer backupRetentionPeriod)Specifies the number of days for which automatic DB snapshots are retained.DBClusterwithCharacterSetName(String characterSetName)If present, specifies the name of the character set that this cluster is associated with.DBClusterwithDatabaseName(String databaseName)Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created.DBClusterwithDBClusterIdentifier(String dBClusterIdentifier)Contains a user-supplied DB cluster identifier.DBClusterwithDBClusterMembers(DBClusterMember... dBClusterMembers)Provides the list of instances that make up the DB cluster.DBClusterwithDBClusterMembers(Collection<DBClusterMember> dBClusterMembers)Provides the list of instances that make up the DB cluster.DBClusterwithDBClusterOptionGroupMemberships(DBClusterOptionGroupStatus... dBClusterOptionGroupMemberships)Provides the list of option group memberships for this DB cluster.DBClusterwithDBClusterOptionGroupMemberships(Collection<DBClusterOptionGroupStatus> dBClusterOptionGroupMemberships)Provides the list of option group memberships for this DB cluster.DBClusterwithDBClusterParameterGroup(String dBClusterParameterGroup)Specifies the name of the DB cluster parameter group for the DB cluster.DBClusterwithDbClusterResourceId(String dbClusterResourceId)The region-unique, immutable identifier for the DB cluster.DBClusterwithDBSubnetGroup(String dBSubnetGroup)Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.DBClusterwithEarliestRestorableTime(Date earliestRestorableTime)Specifies the earliest time to which a database can be restored with point-in-time restore.DBClusterwithEndpoint(String endpoint)Specifies the connection endpoint for the primary instance of the DB cluster.DBClusterwithEngine(String engine)Provides the name of the database engine to be used for this DB cluster.DBClusterwithEngineVersion(String engineVersion)Indicates the database engine version.DBClusterwithHostedZoneId(String hostedZoneId)Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.DBClusterwithKmsKeyId(String kmsKeyId)IfStorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.DBClusterwithLatestRestorableTime(Date latestRestorableTime)Specifies the latest time to which a database can be restored with point-in-time restore.DBClusterwithMasterUsername(String masterUsername)Contains the master username for the DB cluster.DBClusterwithPercentProgress(String percentProgress)Specifies the progress of the operation as a percentage.DBClusterwithPort(Integer port)Specifies the port that the database engine is listening on.DBClusterwithPreferredBackupWindow(String preferredBackupWindow)Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.DBClusterwithPreferredMaintenanceWindow(String preferredMaintenanceWindow)Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).DBClusterwithStatus(String status)Specifies the current state of this DB cluster.DBClusterwithStorageEncrypted(Boolean storageEncrypted)Specifies whether the DB cluster is encrypted.DBClusterwithVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups)Provides a list of VPC security groups that the DB cluster belongs to.DBClusterwithVpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)Provides a list of VPC security groups that the DB cluster belongs to.
-
-
-
Method Detail
-
setAllocatedStorage
public void setAllocatedStorage(Integer allocatedStorage)
Specifies the allocated storage size in gigabytes (GB).
- Parameters:
allocatedStorage- Specifies the allocated storage size in gigabytes (GB).
-
getAllocatedStorage
public Integer getAllocatedStorage()
Specifies the allocated storage size in gigabytes (GB).
- Returns:
- Specifies the allocated storage size in gigabytes (GB).
-
withAllocatedStorage
public DBCluster withAllocatedStorage(Integer allocatedStorage)
Specifies the allocated storage size in gigabytes (GB).
- Parameters:
allocatedStorage- Specifies the allocated storage size in gigabytes (GB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAvailabilityZones
public List<String> getAvailabilityZones()
Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- Returns:
- Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
-
setAvailabilityZones
public void setAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- Parameters:
availabilityZones- Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
-
withAvailabilityZones
public DBCluster withAvailabilityZones(String... availabilityZones)
Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)orwithAvailabilityZones(java.util.Collection)if you want to override the existing values.- Parameters:
availabilityZones- Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAvailabilityZones
public DBCluster withAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- Parameters:
availabilityZones- Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBackupRetentionPeriod
public void setBackupRetentionPeriod(Integer backupRetentionPeriod)
Specifies the number of days for which automatic DB snapshots are retained.
- Parameters:
backupRetentionPeriod- Specifies the number of days for which automatic DB snapshots are retained.
-
getBackupRetentionPeriod
public Integer getBackupRetentionPeriod()
Specifies the number of days for which automatic DB snapshots are retained.
- Returns:
- Specifies the number of days for which automatic DB snapshots are retained.
-
withBackupRetentionPeriod
public DBCluster withBackupRetentionPeriod(Integer backupRetentionPeriod)
Specifies the number of days for which automatic DB snapshots are retained.
- Parameters:
backupRetentionPeriod- Specifies the number of days for which automatic DB snapshots are retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCharacterSetName
public void setCharacterSetName(String characterSetName)
If present, specifies the name of the character set that this cluster is associated with.
- Parameters:
characterSetName- If present, specifies the name of the character set that this cluster is associated with.
-
getCharacterSetName
public String getCharacterSetName()
If present, specifies the name of the character set that this cluster is associated with.
- Returns:
- If present, specifies the name of the character set that this cluster is associated with.
-
withCharacterSetName
public DBCluster withCharacterSetName(String characterSetName)
If present, specifies the name of the character set that this cluster is associated with.
- Parameters:
characterSetName- If present, specifies the name of the character set that this cluster is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatabaseName
public void setDatabaseName(String databaseName)
Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.
- Parameters:
databaseName- Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.
-
getDatabaseName
public String getDatabaseName()
Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.
- Returns:
- Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.
-
withDatabaseName
public DBCluster withDatabaseName(String databaseName)
Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.
- Parameters:
databaseName- Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDBClusterIdentifier
public void setDBClusterIdentifier(String dBClusterIdentifier)
Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.
- Parameters:
dBClusterIdentifier- Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.
-
getDBClusterIdentifier
public String getDBClusterIdentifier()
Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.
- Returns:
- Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.
-
withDBClusterIdentifier
public DBCluster withDBClusterIdentifier(String dBClusterIdentifier)
Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.
- Parameters:
dBClusterIdentifier- Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDBClusterParameterGroup
public void setDBClusterParameterGroup(String dBClusterParameterGroup)
Specifies the name of the DB cluster parameter group for the DB cluster.
- Parameters:
dBClusterParameterGroup- Specifies the name of the DB cluster parameter group for the DB cluster.
-
getDBClusterParameterGroup
public String getDBClusterParameterGroup()
Specifies the name of the DB cluster parameter group for the DB cluster.
- Returns:
- Specifies the name of the DB cluster parameter group for the DB cluster.
-
withDBClusterParameterGroup
public DBCluster withDBClusterParameterGroup(String dBClusterParameterGroup)
Specifies the name of the DB cluster parameter group for the DB cluster.
- Parameters:
dBClusterParameterGroup- Specifies the name of the DB cluster parameter group for the DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDBSubnetGroup
public void setDBSubnetGroup(String dBSubnetGroup)
Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- Parameters:
dBSubnetGroup- Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
-
getDBSubnetGroup
public String getDBSubnetGroup()
Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- Returns:
- Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
-
withDBSubnetGroup
public DBCluster withDBSubnetGroup(String dBSubnetGroup)
Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- Parameters:
dBSubnetGroup- Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
Specifies the current state of this DB cluster.
- Parameters:
status- Specifies the current state of this DB cluster.
-
getStatus
public String getStatus()
Specifies the current state of this DB cluster.
- Returns:
- Specifies the current state of this DB cluster.
-
withStatus
public DBCluster withStatus(String status)
Specifies the current state of this DB cluster.
- Parameters:
status- Specifies the current state of this DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPercentProgress
public void setPercentProgress(String percentProgress)
Specifies the progress of the operation as a percentage.
- Parameters:
percentProgress- Specifies the progress of the operation as a percentage.
-
getPercentProgress
public String getPercentProgress()
Specifies the progress of the operation as a percentage.
- Returns:
- Specifies the progress of the operation as a percentage.
-
withPercentProgress
public DBCluster withPercentProgress(String percentProgress)
Specifies the progress of the operation as a percentage.
- Parameters:
percentProgress- Specifies the progress of the operation as a percentage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEarliestRestorableTime
public void setEarliestRestorableTime(Date earliestRestorableTime)
Specifies the earliest time to which a database can be restored with point-in-time restore.
- Parameters:
earliestRestorableTime- Specifies the earliest time to which a database can be restored with point-in-time restore.
-
getEarliestRestorableTime
public Date getEarliestRestorableTime()
Specifies the earliest time to which a database can be restored with point-in-time restore.
- Returns:
- Specifies the earliest time to which a database can be restored with point-in-time restore.
-
withEarliestRestorableTime
public DBCluster withEarliestRestorableTime(Date earliestRestorableTime)
Specifies the earliest time to which a database can be restored with point-in-time restore.
- Parameters:
earliestRestorableTime- Specifies the earliest time to which a database can be restored with point-in-time restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndpoint
public void setEndpoint(String endpoint)
Specifies the connection endpoint for the primary instance of the DB cluster.
- Parameters:
endpoint- Specifies the connection endpoint for the primary instance of the DB cluster.
-
getEndpoint
public String getEndpoint()
Specifies the connection endpoint for the primary instance of the DB cluster.
- Returns:
- Specifies the connection endpoint for the primary instance of the DB cluster.
-
withEndpoint
public DBCluster withEndpoint(String endpoint)
Specifies the connection endpoint for the primary instance of the DB cluster.
- Parameters:
endpoint- Specifies the connection endpoint for the primary instance of the DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEngine
public void setEngine(String engine)
Provides the name of the database engine to be used for this DB cluster.
- Parameters:
engine- Provides the name of the database engine to be used for this DB cluster.
-
getEngine
public String getEngine()
Provides the name of the database engine to be used for this DB cluster.
- Returns:
- Provides the name of the database engine to be used for this DB cluster.
-
withEngine
public DBCluster withEngine(String engine)
Provides the name of the database engine to be used for this DB cluster.
- Parameters:
engine- Provides the name of the database engine to be used for this DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEngineVersion
public void setEngineVersion(String engineVersion)
Indicates the database engine version.
- Parameters:
engineVersion- Indicates the database engine version.
-
getEngineVersion
public String getEngineVersion()
Indicates the database engine version.
- Returns:
- Indicates the database engine version.
-
withEngineVersion
public DBCluster withEngineVersion(String engineVersion)
Indicates the database engine version.
- Parameters:
engineVersion- Indicates the database engine version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLatestRestorableTime
public void setLatestRestorableTime(Date latestRestorableTime)
Specifies the latest time to which a database can be restored with point-in-time restore.
- Parameters:
latestRestorableTime- Specifies the latest time to which a database can be restored with point-in-time restore.
-
getLatestRestorableTime
public Date getLatestRestorableTime()
Specifies the latest time to which a database can be restored with point-in-time restore.
- Returns:
- Specifies the latest time to which a database can be restored with point-in-time restore.
-
withLatestRestorableTime
public DBCluster withLatestRestorableTime(Date latestRestorableTime)
Specifies the latest time to which a database can be restored with point-in-time restore.
- Parameters:
latestRestorableTime- Specifies the latest time to which a database can be restored with point-in-time restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPort
public void setPort(Integer port)
Specifies the port that the database engine is listening on.
- Parameters:
port- Specifies the port that the database engine is listening on.
-
getPort
public Integer getPort()
Specifies the port that the database engine is listening on.
- Returns:
- Specifies the port that the database engine is listening on.
-
withPort
public DBCluster withPort(Integer port)
Specifies the port that the database engine is listening on.
- Parameters:
port- Specifies the port that the database engine is listening on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMasterUsername
public void setMasterUsername(String masterUsername)
Contains the master username for the DB cluster.
- Parameters:
masterUsername- Contains the master username for the DB cluster.
-
getMasterUsername
public String getMasterUsername()
Contains the master username for the DB cluster.
- Returns:
- Contains the master username for the DB cluster.
-
withMasterUsername
public DBCluster withMasterUsername(String masterUsername)
Contains the master username for the DB cluster.
- Parameters:
masterUsername- Contains the master username for the DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDBClusterOptionGroupMemberships
public List<DBClusterOptionGroupStatus> getDBClusterOptionGroupMemberships()
Provides the list of option group memberships for this DB cluster.
- Returns:
- Provides the list of option group memberships for this DB cluster.
-
setDBClusterOptionGroupMemberships
public void setDBClusterOptionGroupMemberships(Collection<DBClusterOptionGroupStatus> dBClusterOptionGroupMemberships)
Provides the list of option group memberships for this DB cluster.
- Parameters:
dBClusterOptionGroupMemberships- Provides the list of option group memberships for this DB cluster.
-
withDBClusterOptionGroupMemberships
public DBCluster withDBClusterOptionGroupMemberships(DBClusterOptionGroupStatus... dBClusterOptionGroupMemberships)
Provides the list of option group memberships for this DB cluster.
NOTE: This method appends the values to the existing list (if any). Use
setDBClusterOptionGroupMemberships(java.util.Collection)orwithDBClusterOptionGroupMemberships(java.util.Collection)if you want to override the existing values.- Parameters:
dBClusterOptionGroupMemberships- Provides the list of option group memberships for this DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDBClusterOptionGroupMemberships
public DBCluster withDBClusterOptionGroupMemberships(Collection<DBClusterOptionGroupStatus> dBClusterOptionGroupMemberships)
Provides the list of option group memberships for this DB cluster.
- Parameters:
dBClusterOptionGroupMemberships- Provides the list of option group memberships for this DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreferredBackupWindow
public void setPreferredBackupWindow(String preferredBackupWindow)
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the
BackupRetentionPeriod.- Parameters:
preferredBackupWindow- Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.
-
getPreferredBackupWindow
public String getPreferredBackupWindow()
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the
BackupRetentionPeriod.- Returns:
- Specifies the daily time range during which automated backups are
created if automated backups are enabled, as determined by the
BackupRetentionPeriod.
-
withPreferredBackupWindow
public DBCluster withPreferredBackupWindow(String preferredBackupWindow)
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the
BackupRetentionPeriod.- Parameters:
preferredBackupWindow- Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreferredMaintenanceWindow
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Parameters:
preferredMaintenanceWindow- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
-
getPreferredMaintenanceWindow
public String getPreferredMaintenanceWindow()
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Returns:
- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
-
withPreferredMaintenanceWindow
public DBCluster withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Parameters:
preferredMaintenanceWindow- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDBClusterMembers
public List<DBClusterMember> getDBClusterMembers()
Provides the list of instances that make up the DB cluster.
- Returns:
- Provides the list of instances that make up the DB cluster.
-
setDBClusterMembers
public void setDBClusterMembers(Collection<DBClusterMember> dBClusterMembers)
Provides the list of instances that make up the DB cluster.
- Parameters:
dBClusterMembers- Provides the list of instances that make up the DB cluster.
-
withDBClusterMembers
public DBCluster withDBClusterMembers(DBClusterMember... dBClusterMembers)
Provides the list of instances that make up the DB cluster.
NOTE: This method appends the values to the existing list (if any). Use
setDBClusterMembers(java.util.Collection)orwithDBClusterMembers(java.util.Collection)if you want to override the existing values.- Parameters:
dBClusterMembers- Provides the list of instances that make up the DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDBClusterMembers
public DBCluster withDBClusterMembers(Collection<DBClusterMember> dBClusterMembers)
Provides the list of instances that make up the DB cluster.
- Parameters:
dBClusterMembers- Provides the list of instances that make up the DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getVpcSecurityGroups
public List<VpcSecurityGroupMembership> getVpcSecurityGroups()
Provides a list of VPC security groups that the DB cluster belongs to.
- Returns:
- Provides a list of VPC security groups that the DB cluster belongs to.
-
setVpcSecurityGroups
public void setVpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)
Provides a list of VPC security groups that the DB cluster belongs to.
- Parameters:
vpcSecurityGroups- Provides a list of VPC security groups that the DB cluster belongs to.
-
withVpcSecurityGroups
public DBCluster withVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups)
Provides a list of VPC security groups that the DB cluster belongs to.
NOTE: This method appends the values to the existing list (if any). Use
setVpcSecurityGroups(java.util.Collection)orwithVpcSecurityGroups(java.util.Collection)if you want to override the existing values.- Parameters:
vpcSecurityGroups- Provides a list of VPC security groups that the DB cluster belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVpcSecurityGroups
public DBCluster withVpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)
Provides a list of VPC security groups that the DB cluster belongs to.
- Parameters:
vpcSecurityGroups- Provides a list of VPC security groups that the DB cluster belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostedZoneId
public void setHostedZoneId(String hostedZoneId)
Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Parameters:
hostedZoneId- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
-
getHostedZoneId
public String getHostedZoneId()
Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Returns:
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
-
withHostedZoneId
public DBCluster withHostedZoneId(String hostedZoneId)
Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Parameters:
hostedZoneId- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStorageEncrypted
public void setStorageEncrypted(Boolean storageEncrypted)
Specifies whether the DB cluster is encrypted.
- Parameters:
storageEncrypted- Specifies whether the DB cluster is encrypted.
-
getStorageEncrypted
public Boolean getStorageEncrypted()
Specifies whether the DB cluster is encrypted.
- Returns:
- Specifies whether the DB cluster is encrypted.
-
withStorageEncrypted
public DBCluster withStorageEncrypted(Boolean storageEncrypted)
Specifies whether the DB cluster is encrypted.
- Parameters:
storageEncrypted- Specifies whether the DB cluster is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isStorageEncrypted
public Boolean isStorageEncrypted()
Specifies whether the DB cluster is encrypted.
- Returns:
- Specifies whether the DB cluster is encrypted.
-
setKmsKeyId
public void setKmsKeyId(String kmsKeyId)
If
StorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.- Parameters:
kmsKeyId- IfStorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.
-
getKmsKeyId
public String getKmsKeyId()
If
StorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.- Returns:
- If
StorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.
-
withKmsKeyId
public DBCluster withKmsKeyId(String kmsKeyId)
If
StorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.- Parameters:
kmsKeyId- IfStorageEncryptedis true, the KMS key identifier for the encrypted DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDbClusterResourceId
public void setDbClusterResourceId(String dbClusterResourceId)
The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.
- Parameters:
dbClusterResourceId- The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.
-
getDbClusterResourceId
public String getDbClusterResourceId()
The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.
- Returns:
- The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.
-
withDbClusterResourceId
public DBCluster withDbClusterResourceId(String dbClusterResourceId)
The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.
- Parameters:
dbClusterResourceId- The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-