@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RelationalDatabaseSnapshot extends Object implements Serializable, Cloneable, StructuredPojo
Describes a database snapshot.
Constructor and Description |
---|
RelationalDatabaseSnapshot() |
Modifier and Type | Method and Description |
---|---|
RelationalDatabaseSnapshot |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the database snapshot.
|
Date |
getCreatedAt()
The timestamp when the database snapshot was created.
|
String |
getEngine()
The software of the database snapshot (for example,
MySQL ) |
String |
getEngineVersion()
The database engine version for the database snapshot (for example,
5.7.23 ). |
String |
getFromRelationalDatabaseArn()
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
|
String |
getFromRelationalDatabaseBlueprintId()
The blueprint ID of the database from which the database snapshot was created.
|
String |
getFromRelationalDatabaseBundleId()
The bundle ID of the database from which the database snapshot was created.
|
String |
getFromRelationalDatabaseName()
The name of the source database from which the database snapshot was created.
|
ResourceLocation |
getLocation()
The Region name and Availability Zone where the database snapshot is located.
|
String |
getName()
The name of the database snapshot.
|
String |
getResourceType()
The Lightsail resource type.
|
Integer |
getSizeInGb()
The size of the disk in GB (for example,
32 ) for the database snapshot. |
String |
getState()
The state of the database snapshot.
|
String |
getSupportCode()
The support code for the database snapshot.
|
List<Tag> |
getTags()
The tag keys and optional values for the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the database snapshot.
|
void |
setCreatedAt(Date createdAt)
The timestamp when the database snapshot was created.
|
void |
setEngine(String engine)
The software of the database snapshot (for example,
MySQL ) |
void |
setEngineVersion(String engineVersion)
The database engine version for the database snapshot (for example,
5.7.23 ). |
void |
setFromRelationalDatabaseArn(String fromRelationalDatabaseArn)
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
|
void |
setFromRelationalDatabaseBlueprintId(String fromRelationalDatabaseBlueprintId)
The blueprint ID of the database from which the database snapshot was created.
|
void |
setFromRelationalDatabaseBundleId(String fromRelationalDatabaseBundleId)
The bundle ID of the database from which the database snapshot was created.
|
void |
setFromRelationalDatabaseName(String fromRelationalDatabaseName)
The name of the source database from which the database snapshot was created.
|
void |
setLocation(ResourceLocation location)
The Region name and Availability Zone where the database snapshot is located.
|
void |
setName(String name)
The name of the database snapshot.
|
void |
setResourceType(String resourceType)
The Lightsail resource type.
|
void |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB (for example,
32 ) for the database snapshot. |
void |
setState(String state)
The state of the database snapshot.
|
void |
setSupportCode(String supportCode)
The support code for the database snapshot.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
String |
toString()
Returns a string representation of this object.
|
RelationalDatabaseSnapshot |
withArn(String arn)
The Amazon Resource Name (ARN) of the database snapshot.
|
RelationalDatabaseSnapshot |
withCreatedAt(Date createdAt)
The timestamp when the database snapshot was created.
|
RelationalDatabaseSnapshot |
withEngine(String engine)
The software of the database snapshot (for example,
MySQL ) |
RelationalDatabaseSnapshot |
withEngineVersion(String engineVersion)
The database engine version for the database snapshot (for example,
5.7.23 ). |
RelationalDatabaseSnapshot |
withFromRelationalDatabaseArn(String fromRelationalDatabaseArn)
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
|
RelationalDatabaseSnapshot |
withFromRelationalDatabaseBlueprintId(String fromRelationalDatabaseBlueprintId)
The blueprint ID of the database from which the database snapshot was created.
|
RelationalDatabaseSnapshot |
withFromRelationalDatabaseBundleId(String fromRelationalDatabaseBundleId)
The bundle ID of the database from which the database snapshot was created.
|
RelationalDatabaseSnapshot |
withFromRelationalDatabaseName(String fromRelationalDatabaseName)
The name of the source database from which the database snapshot was created.
|
RelationalDatabaseSnapshot |
withLocation(ResourceLocation location)
The Region name and Availability Zone where the database snapshot is located.
|
RelationalDatabaseSnapshot |
withName(String name)
The name of the database snapshot.
|
RelationalDatabaseSnapshot |
withResourceType(ResourceType resourceType)
The Lightsail resource type.
|
RelationalDatabaseSnapshot |
withResourceType(String resourceType)
The Lightsail resource type.
|
RelationalDatabaseSnapshot |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB (for example,
32 ) for the database snapshot. |
RelationalDatabaseSnapshot |
withState(String state)
The state of the database snapshot.
|
RelationalDatabaseSnapshot |
withSupportCode(String supportCode)
The support code for the database snapshot.
|
RelationalDatabaseSnapshot |
withTags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
RelationalDatabaseSnapshot |
withTags(Tag... tags)
The tag keys and optional values for the resource.
|
public void setName(String name)
The name of the database snapshot.
name
- The name of the database snapshot.public String getName()
The name of the database snapshot.
public RelationalDatabaseSnapshot withName(String name)
The name of the database snapshot.
name
- The name of the database snapshot.public void setArn(String arn)
The Amazon Resource Name (ARN) of the database snapshot.
arn
- The Amazon Resource Name (ARN) of the database snapshot.public String getArn()
The Amazon Resource Name (ARN) of the database snapshot.
public RelationalDatabaseSnapshot withArn(String arn)
The Amazon Resource Name (ARN) of the database snapshot.
arn
- The Amazon Resource Name (ARN) of the database snapshot.public void setSupportCode(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.
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.public String getSupportCode()
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.
public RelationalDatabaseSnapshot withSupportCode(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.
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.public void setCreatedAt(Date createdAt)
The timestamp when the database snapshot was created.
createdAt
- The timestamp when the database snapshot was created.public Date getCreatedAt()
The timestamp when the database snapshot was created.
public RelationalDatabaseSnapshot withCreatedAt(Date createdAt)
The timestamp when the database snapshot was created.
createdAt
- The timestamp when the database snapshot was created.public void setLocation(ResourceLocation location)
The Region name and Availability Zone where the database snapshot is located.
location
- The Region name and Availability Zone where the database snapshot is located.public ResourceLocation getLocation()
The Region name and Availability Zone where the database snapshot is located.
public RelationalDatabaseSnapshot withLocation(ResourceLocation location)
The Region name and Availability Zone where the database snapshot is located.
location
- The Region name and Availability Zone where the database snapshot is located.public void setResourceType(String resourceType)
The Lightsail resource type.
resourceType
- The Lightsail resource type.ResourceType
public String getResourceType()
The Lightsail resource type.
ResourceType
public RelationalDatabaseSnapshot withResourceType(String resourceType)
The Lightsail resource type.
resourceType
- The Lightsail resource type.ResourceType
public RelationalDatabaseSnapshot withResourceType(ResourceType resourceType)
The Lightsail resource type.
resourceType
- The Lightsail resource type.ResourceType
public List<Tag> getTags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
public void setTags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Lightsail Dev
Guide.public RelationalDatabaseSnapshot withTags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
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 tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Lightsail Dev
Guide.public RelationalDatabaseSnapshot withTags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the
Lightsail Dev
Guide.public void setEngine(String engine)
The software of the database snapshot (for example, MySQL
)
engine
- The software of the database snapshot (for example, MySQL
)public String getEngine()
The software of the database snapshot (for example, MySQL
)
MySQL
)public RelationalDatabaseSnapshot withEngine(String engine)
The software of the database snapshot (for example, MySQL
)
engine
- The software of the database snapshot (for example, MySQL
)public void setEngineVersion(String engineVersion)
The database engine version for the database snapshot (for example, 5.7.23
).
engineVersion
- The database engine version for the database snapshot (for example, 5.7.23
).public String getEngineVersion()
The database engine version for the database snapshot (for example, 5.7.23
).
5.7.23
).public RelationalDatabaseSnapshot withEngineVersion(String engineVersion)
The database engine version for the database snapshot (for example, 5.7.23
).
engineVersion
- The database engine version for the database snapshot (for example, 5.7.23
).public void setSizeInGb(Integer sizeInGb)
The size of the disk in GB (for example, 32
) for the database snapshot.
sizeInGb
- The size of the disk in GB (for example, 32
) for the database snapshot.public Integer getSizeInGb()
The size of the disk in GB (for example, 32
) for the database snapshot.
32
) for the database snapshot.public RelationalDatabaseSnapshot withSizeInGb(Integer sizeInGb)
The size of the disk in GB (for example, 32
) for the database snapshot.
sizeInGb
- The size of the disk in GB (for example, 32
) for the database snapshot.public void setState(String state)
The state of the database snapshot.
state
- The state of the database snapshot.public String getState()
The state of the database snapshot.
public RelationalDatabaseSnapshot withState(String state)
The state of the database snapshot.
state
- The state of the database snapshot.public void setFromRelationalDatabaseName(String fromRelationalDatabaseName)
The name of the source database from which the database snapshot was created.
fromRelationalDatabaseName
- The name of the source database from which the database snapshot was created.public String getFromRelationalDatabaseName()
The name of the source database from which the database snapshot was created.
public RelationalDatabaseSnapshot withFromRelationalDatabaseName(String fromRelationalDatabaseName)
The name of the source database from which the database snapshot was created.
fromRelationalDatabaseName
- The name of the source database from which the database snapshot was created.public void setFromRelationalDatabaseArn(String fromRelationalDatabaseArn)
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
fromRelationalDatabaseArn
- The Amazon Resource Name (ARN) of the database from which the database snapshot was created.public String getFromRelationalDatabaseArn()
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
public RelationalDatabaseSnapshot withFromRelationalDatabaseArn(String fromRelationalDatabaseArn)
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
fromRelationalDatabaseArn
- The Amazon Resource Name (ARN) of the database from which the database snapshot was created.public void setFromRelationalDatabaseBundleId(String fromRelationalDatabaseBundleId)
The bundle ID of the database from which the database snapshot was created.
fromRelationalDatabaseBundleId
- The bundle ID of the database from which the database snapshot was created.public String getFromRelationalDatabaseBundleId()
The bundle ID of the database from which the database snapshot was created.
public RelationalDatabaseSnapshot withFromRelationalDatabaseBundleId(String fromRelationalDatabaseBundleId)
The bundle ID of the database from which the database snapshot was created.
fromRelationalDatabaseBundleId
- The bundle ID of the database from which the database snapshot was created.public void setFromRelationalDatabaseBlueprintId(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.
fromRelationalDatabaseBlueprintId
- The blueprint ID of the database from which the database snapshot was created. A blueprint describes the
major engine version of a database.public String getFromRelationalDatabaseBlueprintId()
The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.
public RelationalDatabaseSnapshot withFromRelationalDatabaseBlueprintId(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.
fromRelationalDatabaseBlueprintId
- The blueprint ID of the database from which the database snapshot was created. A blueprint describes the
major engine version of a database.public String toString()
toString
in class Object
Object.toString()
public RelationalDatabaseSnapshot clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.