Interface RelationalDatabaseSnapshot.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RelationalDatabaseSnapshot.Builder,
,RelationalDatabaseSnapshot> SdkBuilder<RelationalDatabaseSnapshot.Builder,
,RelationalDatabaseSnapshot> SdkPojo
- Enclosing class:
RelationalDatabaseSnapshot
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the database snapshot.The timestamp when the database snapshot was created.The software of the database snapshot (for example,MySQL
)engineVersion
(String engineVersion) The database engine version for the database snapshot (for example,5.7.23
).fromRelationalDatabaseArn
(String fromRelationalDatabaseArn) The Amazon Resource Name (ARN) of the database from which the database snapshot was created.fromRelationalDatabaseBlueprintId
(String fromRelationalDatabaseBlueprintId) The blueprint ID of the database from which the database snapshot was created.fromRelationalDatabaseBundleId
(String fromRelationalDatabaseBundleId) The bundle ID of the database from which the database snapshot was created.fromRelationalDatabaseName
(String fromRelationalDatabaseName) The name of the source database from which the database snapshot was created.location
(Consumer<ResourceLocation.Builder> location) The Region name and Availability Zone where the database snapshot is located.location
(ResourceLocation location) The Region name and Availability Zone where the database snapshot is located.The name of the database snapshot.resourceType
(String resourceType) The Lightsail resource type.resourceType
(ResourceType resourceType) The Lightsail resource type.The size of the disk in GB (for example,32
) for the database snapshot.The state of the database snapshot.supportCode
(String supportCode) The support code for the database snapshot.tags
(Collection<Tag> tags) The tag keys and optional values for the resource.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the resource.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 Details
-
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
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
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
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
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
The Region name and Availability Zone where the database snapshot is located.
This is a convenience method that creates an instance of theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,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:
-
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
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:
-
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
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
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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-
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
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
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
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
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
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.
-