@Generated(value="software.amazon.awssdk:codegen") public final class CreateDbInstanceRequest extends DocDbRequest implements ToCopyableBuilder<CreateDbInstanceRequest.Builder,CreateDbInstanceRequest>
Represents the input to CreateDBInstance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateDbInstanceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
autoMinorVersionUpgrade()
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
|
String |
availabilityZone()
The Amazon EC2 Availability Zone that the instance is created in.
|
static CreateDbInstanceRequest.Builder |
builder() |
String |
dbClusterIdentifier()
The identifier of the cluster that the instance will belong to.
|
String |
dbInstanceClass()
The compute and memory capacity of the instance; for example,
db.r5.large. |
String |
dbInstanceIdentifier()
The instance identifier.
|
String |
engine()
The name of the database engine to be used for this instance.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
preferredMaintenanceWindow()
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateDbInstanceRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tags to be assigned to the instance.
|
CreateDbInstanceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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
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 final String dbInstanceClass()
The compute and memory capacity of the instance; for example, db.r5.large.
db.r5.large.public final String engine()
The name of the database engine to be used for this instance.
Valid value: docdb
Valid value: docdb
public final 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
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.
Example: us-east-1d
public final 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.
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 final Boolean autoMinorVersionUpgrade()
Indicates that minor engine upgrades are applied automatically to the instance during the maintenance window.
Default: true
Default: true
public final boolean hasTags()
public final List<Tag> tags()
The tags to be assigned to the instance. You can assign up to 10 tags to an instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final String dbClusterIdentifier()
The identifier of the cluster that the instance will belong to.
public final 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
Default: 1
Valid values: 0-15
public CreateDbInstanceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateDbInstanceRequest.Builder,CreateDbInstanceRequest>toBuilder in class DocDbRequestpublic static CreateDbInstanceRequest.Builder builder()
public static Class<? extends CreateDbInstanceRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.