@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()
This parameter does not apply to Amazon DocumentDB.
|
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()
For responses, this returns true if the service returned a value for the Tags property.
|
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 Region.
Example: us-east-1d
Default: A random, system-chosen Availability Zone in the endpoint's 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 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 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()
This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
Default: false
Default: false
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
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 © 2022. All rights reserved.