Interface RelationalDatabaseSnapshot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RelationalDatabaseSnapshot.Builder,RelationalDatabaseSnapshot>,SdkBuilder<RelationalDatabaseSnapshot.Builder,RelationalDatabaseSnapshot>,SdkPojo
- Enclosing class:
- RelationalDatabaseSnapshot
public static interface RelationalDatabaseSnapshot.Builder extends SdkPojo, CopyableBuilder<RelationalDatabaseSnapshot.Builder,RelationalDatabaseSnapshot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RelationalDatabaseSnapshot.Builderarn(String arn)The Amazon Resource Name (ARN) of the database snapshot.RelationalDatabaseSnapshot.BuildercreatedAt(Instant createdAt)The timestamp when the database snapshot was created.RelationalDatabaseSnapshot.Builderengine(String engine)The software of the database snapshot (for example,MySQL)RelationalDatabaseSnapshot.BuilderengineVersion(String engineVersion)The database engine version for the database snapshot (for example,5.7.23).RelationalDatabaseSnapshot.BuilderfromRelationalDatabaseArn(String fromRelationalDatabaseArn)The Amazon Resource Name (ARN) of the database from which the database snapshot was created.RelationalDatabaseSnapshot.BuilderfromRelationalDatabaseBlueprintId(String fromRelationalDatabaseBlueprintId)The blueprint ID of the database from which the database snapshot was created.RelationalDatabaseSnapshot.BuilderfromRelationalDatabaseBundleId(String fromRelationalDatabaseBundleId)The bundle ID of the database from which the database snapshot was created.RelationalDatabaseSnapshot.BuilderfromRelationalDatabaseName(String fromRelationalDatabaseName)The name of the source database from which the database snapshot was created.default RelationalDatabaseSnapshot.Builderlocation(Consumer<ResourceLocation.Builder> location)The Region name and Availability Zone where the database snapshot is located.RelationalDatabaseSnapshot.Builderlocation(ResourceLocation location)The Region name and Availability Zone where the database snapshot is located.RelationalDatabaseSnapshot.Buildername(String name)The name of the database snapshot.RelationalDatabaseSnapshot.BuilderresourceType(String resourceType)The Lightsail resource type.RelationalDatabaseSnapshot.BuilderresourceType(ResourceType resourceType)The Lightsail resource type.RelationalDatabaseSnapshot.BuildersizeInGb(Integer sizeInGb)The size of the disk in GB (for example,32) for the database snapshot.RelationalDatabaseSnapshot.Builderstate(String state)The state of the database snapshot.RelationalDatabaseSnapshot.BuildersupportCode(String supportCode)The support code for the database snapshot.RelationalDatabaseSnapshot.Buildertags(Collection<Tag> tags)The tag keys and optional values for the resource.RelationalDatabaseSnapshot.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the resource.RelationalDatabaseSnapshot.Buildertags(Tag... tags)The tag keys and optional values for the resource.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
RelationalDatabaseSnapshot.Builder name(String name)
The name of the database snapshot.
- Parameters:
name- The name of the database snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
RelationalDatabaseSnapshot.Builder arn(String arn)
The Amazon Resource Name (ARN) of the database snapshot.
- Parameters:
arn- The Amazon Resource Name (ARN) of the database snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportCode
RelationalDatabaseSnapshot.Builder supportCode(String supportCode)
The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.
- Parameters:
supportCode- The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
RelationalDatabaseSnapshot.Builder createdAt(Instant createdAt)
The timestamp when the database snapshot was created.
- Parameters:
createdAt- The timestamp when the database snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
RelationalDatabaseSnapshot.Builder location(ResourceLocation location)
The Region name and Availability Zone where the database snapshot is located.
- Parameters:
location- The Region name and Availability Zone where the database snapshot is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default RelationalDatabaseSnapshot.Builder location(Consumer<ResourceLocation.Builder> location)
The Region name and Availability Zone where the database snapshot is located.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(ResourceLocation).- Parameters:
location- a consumer that will call methods onResourceLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
location(ResourceLocation)
-
resourceType
RelationalDatabaseSnapshot.Builder resourceType(String resourceType)
The Lightsail resource type.
- Parameters:
resourceType- The Lightsail resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
RelationalDatabaseSnapshot.Builder resourceType(ResourceType resourceType)
The Lightsail resource type.
- Parameters:
resourceType- The Lightsail resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
tags
RelationalDatabaseSnapshot.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
RelationalDatabaseSnapshot.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
RelationalDatabaseSnapshot.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
engine
RelationalDatabaseSnapshot.Builder engine(String engine)
The software of the database snapshot (for example,
MySQL)- Parameters:
engine- The software of the database snapshot (for example,MySQL)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
RelationalDatabaseSnapshot.Builder engineVersion(String engineVersion)
The database engine version for the database snapshot (for example,
5.7.23).- Parameters:
engineVersion- The database engine version for the database snapshot (for example,5.7.23).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sizeInGb
RelationalDatabaseSnapshot.Builder sizeInGb(Integer sizeInGb)
The size of the disk in GB (for example,
32) for the database snapshot.- Parameters:
sizeInGb- The size of the disk in GB (for example,32) for the database snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
RelationalDatabaseSnapshot.Builder state(String state)
The state of the database snapshot.
- Parameters:
state- The state of the database snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromRelationalDatabaseName
RelationalDatabaseSnapshot.Builder fromRelationalDatabaseName(String fromRelationalDatabaseName)
The name of the source database from which the database snapshot was created.
- Parameters:
fromRelationalDatabaseName- The name of the source database from which the database snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromRelationalDatabaseArn
RelationalDatabaseSnapshot.Builder fromRelationalDatabaseArn(String fromRelationalDatabaseArn)
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
- Parameters:
fromRelationalDatabaseArn- The Amazon Resource Name (ARN) of the database from which the database snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromRelationalDatabaseBundleId
RelationalDatabaseSnapshot.Builder fromRelationalDatabaseBundleId(String fromRelationalDatabaseBundleId)
The bundle ID of the database from which the database snapshot was created.
- Parameters:
fromRelationalDatabaseBundleId- The bundle ID of the database from which the database snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromRelationalDatabaseBlueprintId
RelationalDatabaseSnapshot.Builder fromRelationalDatabaseBlueprintId(String fromRelationalDatabaseBlueprintId)
The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.
- Parameters:
fromRelationalDatabaseBlueprintId- The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-