@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDBInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input to CreateDBInstance.
NOOP
Constructor and Description |
---|
CreateDBInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDBInstanceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getAutoMinorVersionUpgrade()
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
|
String |
getAvailabilityZone()
The Amazon EC2 Availability Zone that the instance is created in.
|
String |
getDBClusterIdentifier()
The identifier of the cluster that the instance will belong to.
|
String |
getDBInstanceClass()
The compute and memory capacity of the instance; for example,
db.r5.large . |
String |
getDBInstanceIdentifier()
The instance identifier.
|
String |
getEngine()
The name of the database engine to be used for this instance.
|
String |
getPreferredMaintenanceWindow()
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
Integer |
getPromotionTier()
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after
a failure of the existing primary instance.
|
List<Tag> |
getTags()
The tags to be assigned to the instance.
|
int |
hashCode() |
Boolean |
isAutoMinorVersionUpgrade()
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
|
void |
setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
|
void |
setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone that the instance is created in.
|
void |
setDBClusterIdentifier(String dBClusterIdentifier)
The identifier of the cluster that the instance will belong to.
|
void |
setDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the instance; for example,
db.r5.large . |
void |
setDBInstanceIdentifier(String dBInstanceIdentifier)
The instance identifier.
|
void |
setEngine(String engine)
The name of the database engine to be used for this instance.
|
void |
setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
void |
setPromotionTier(Integer promotionTier)
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after
a failure of the existing primary instance.
|
void |
setTags(Collection<Tag> tags)
The tags to be assigned to the instance.
|
String |
toString()
Returns a string representation of this object.
|
CreateDBInstanceRequest |
withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
|
CreateDBInstanceRequest |
withAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone that the instance is created in.
|
CreateDBInstanceRequest |
withDBClusterIdentifier(String dBClusterIdentifier)
The identifier of the cluster that the instance will belong to.
|
CreateDBInstanceRequest |
withDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the instance; for example,
db.r5.large . |
CreateDBInstanceRequest |
withDBInstanceIdentifier(String dBInstanceIdentifier)
The instance identifier.
|
CreateDBInstanceRequest |
withEngine(String engine)
The name of the database engine to be used for this instance.
|
CreateDBInstanceRequest |
withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
CreateDBInstanceRequest |
withPromotionTier(Integer promotionTier)
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after
a failure of the existing primary instance.
|
CreateDBInstanceRequest |
withTags(Collection<Tag> tags)
The tags to be assigned to the instance.
|
CreateDBInstanceRequest |
withTags(Tag... tags)
The tags to be assigned to the instance.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDBInstanceIdentifier(String dBInstanceIdentifier)
The instance identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
dBInstanceIdentifier
- The instance identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
public String getDBInstanceIdentifier()
The instance identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
public CreateDBInstanceRequest withDBInstanceIdentifier(String dBInstanceIdentifier)
The instance identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
dBInstanceIdentifier
- The instance identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
public void setDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the instance; for example, db.r5.large
.
dBInstanceClass
- The compute and memory capacity of the instance; for example, db.r5.large
.public String getDBInstanceClass()
The compute and memory capacity of the instance; for example, db.r5.large
.
db.r5.large
.public CreateDBInstanceRequest withDBInstanceClass(String dBInstanceClass)
The compute and memory capacity of the instance; for example, db.r5.large
.
dBInstanceClass
- The compute and memory capacity of the instance; for example, db.r5.large
.public void setEngine(String engine)
The name of the database engine to be used for this instance.
Valid value: docdb
engine
- The name of the database engine to be used for this instance.
Valid value: docdb
public String getEngine()
The name of the database engine to be used for this instance.
Valid value: docdb
Valid value: docdb
public CreateDBInstanceRequest withEngine(String engine)
The name of the database engine to be used for this instance.
Valid value: docdb
engine
- The name of the database engine to be used for this instance.
Valid value: docdb
public void setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
Constraint: The AvailabilityZone
parameter can't be specified if the MultiAZ
parameter
is set to true
. The specified Availability Zone must be in the same AWS Region as the current
endpoint.
availabilityZone
- The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
Constraint: The AvailabilityZone
parameter can't be specified if the MultiAZ
parameter is set to true
. The specified Availability Zone must be in the same AWS Region as
the current endpoint.
public String getAvailabilityZone()
The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
Constraint: The AvailabilityZone
parameter can't be specified if the MultiAZ
parameter
is set to true
. The specified Availability Zone must be in the same AWS Region as the current
endpoint.
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
Constraint: The AvailabilityZone
parameter can't be specified if the MultiAZ
parameter is set to true
. The specified Availability Zone must be in the same AWS Region as
the current endpoint.
public CreateDBInstanceRequest withAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
Constraint: The AvailabilityZone
parameter can't be specified if the MultiAZ
parameter
is set to true
. The specified Availability Zone must be in the same AWS Region as the current
endpoint.
availabilityZone
- The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
Constraint: The AvailabilityZone
parameter can't be specified if the MultiAZ
parameter is set to true
. The specified Availability Zone must be in the same AWS Region as
the current endpoint.
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
preferredMaintenanceWindow
- The time range each week during which system maintenance can occur, in Universal Coordinated Time
(UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
public String getPreferredMaintenanceWindow()
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
public CreateDBInstanceRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
preferredMaintenanceWindow
- The time range each week during which system maintenance can occur, in Universal Coordinated Time
(UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
Default: true
autoMinorVersionUpgrade
- Indicates that minor engine upgrades are applied automatically to the instance during the maintenance
window.
Default: true
public Boolean getAutoMinorVersionUpgrade()
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
Default: true
Default: true
public CreateDBInstanceRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
Default: true
autoMinorVersionUpgrade
- Indicates that minor engine upgrades are applied automatically to the instance during the maintenance
window.
Default: true
public Boolean isAutoMinorVersionUpgrade()
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
Default: true
Default: true
public List<Tag> getTags()
The tags to be assigned to the instance. You can assign up to 10 tags to an instance.
public void setTags(Collection<Tag> tags)
The tags to be assigned to the instance. You can assign up to 10 tags to an instance.
tags
- The tags to be assigned to the instance. You can assign up to 10 tags to an instance.public CreateDBInstanceRequest withTags(Tag... tags)
The tags to be assigned to the instance. You can assign up to 10 tags to an instance.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to be assigned to the instance. You can assign up to 10 tags to an instance.public CreateDBInstanceRequest withTags(Collection<Tag> tags)
The tags to be assigned to the instance. You can assign up to 10 tags to an instance.
tags
- The tags to be assigned to the instance. You can assign up to 10 tags to an instance.public void setDBClusterIdentifier(String dBClusterIdentifier)
The identifier of the cluster that the instance will belong to.
dBClusterIdentifier
- The identifier of the cluster that the instance will belong to.public String getDBClusterIdentifier()
The identifier of the cluster that the instance will belong to.
public CreateDBInstanceRequest withDBClusterIdentifier(String dBClusterIdentifier)
The identifier of the cluster that the instance will belong to.
dBClusterIdentifier
- The identifier of the cluster that the instance will belong to.public void setPromotionTier(Integer promotionTier)
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after a failure of the existing primary instance.
Default: 1
Valid values: 0-15
promotionTier
- A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance
after a failure of the existing primary instance.
Default: 1
Valid values: 0-15
public Integer getPromotionTier()
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after a failure of the existing primary instance.
Default: 1
Valid values: 0-15
Default: 1
Valid values: 0-15
public CreateDBInstanceRequest withPromotionTier(Integer promotionTier)
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after a failure of the existing primary instance.
Default: 1
Valid values: 0-15
promotionTier
- A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance
after a failure of the existing primary instance.
Default: 1
Valid values: 0-15
public String toString()
toString
in class Object
Object.toString()
public CreateDBInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.