@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceSnapshot extends Object implements Serializable, Cloneable, StructuredPojo
Describes the snapshot of the virtual private server, or instance.
Constructor and Description |
---|
InstanceSnapshot() |
Modifier and Type | Method and Description |
---|---|
InstanceSnapshot |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE ). |
Date |
getCreatedAt()
The timestamp when the snapshot was created (e.g.,
1479907467.024 ). |
String |
getFromBlueprintId()
The blueprint ID from which you created the snapshot (e.g.,
os_debian_8_3 ). |
String |
getFromBundleId()
The bundle ID from which you created the snapshot (e.g.,
micro_1_0 ). |
String |
getFromInstanceArn()
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE ). |
String |
getFromInstanceName()
The instance from which the snapshot was created.
|
ResourceLocation |
getLocation()
The region name and availability zone where you created the snapshot.
|
String |
getName()
The name of the snapshot.
|
String |
getProgress()
The progress of the snapshot.
|
String |
getResourceType()
The type of resource (usually
InstanceSnapshot ). |
Integer |
getSizeInGb()
The size in GB of the SSD.
|
String |
getState()
The state the snapshot is in.
|
String |
getSupportCode()
The support code.
|
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 snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE ). |
void |
setCreatedAt(Date createdAt)
The timestamp when the snapshot was created (e.g.,
1479907467.024 ). |
void |
setFromBlueprintId(String fromBlueprintId)
The blueprint ID from which you created the snapshot (e.g.,
os_debian_8_3 ). |
void |
setFromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (e.g.,
micro_1_0 ). |
void |
setFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE ). |
void |
setFromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
|
void |
setLocation(ResourceLocation location)
The region name and availability zone where you created the snapshot.
|
void |
setName(String name)
The name of the snapshot.
|
void |
setProgress(String progress)
The progress of the snapshot.
|
void |
setResourceType(ResourceType resourceType)
The type of resource (usually
InstanceSnapshot ). |
void |
setResourceType(String resourceType)
The type of resource (usually
InstanceSnapshot ). |
void |
setSizeInGb(Integer sizeInGb)
The size in GB of the SSD.
|
void |
setState(InstanceSnapshotState state)
The state the snapshot is in.
|
void |
setState(String state)
The state the snapshot is in.
|
void |
setSupportCode(String supportCode)
The support code.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceSnapshot |
withArn(String arn)
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE ). |
InstanceSnapshot |
withCreatedAt(Date createdAt)
The timestamp when the snapshot was created (e.g.,
1479907467.024 ). |
InstanceSnapshot |
withFromBlueprintId(String fromBlueprintId)
The blueprint ID from which you created the snapshot (e.g.,
os_debian_8_3 ). |
InstanceSnapshot |
withFromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (e.g.,
micro_1_0 ). |
InstanceSnapshot |
withFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE ). |
InstanceSnapshot |
withFromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
|
InstanceSnapshot |
withLocation(ResourceLocation location)
The region name and availability zone where you created the snapshot.
|
InstanceSnapshot |
withName(String name)
The name of the snapshot.
|
InstanceSnapshot |
withProgress(String progress)
The progress of the snapshot.
|
InstanceSnapshot |
withResourceType(ResourceType resourceType)
The type of resource (usually
InstanceSnapshot ). |
InstanceSnapshot |
withResourceType(String resourceType)
The type of resource (usually
InstanceSnapshot ). |
InstanceSnapshot |
withSizeInGb(Integer sizeInGb)
The size in GB of the SSD.
|
InstanceSnapshot |
withState(InstanceSnapshotState state)
The state the snapshot is in.
|
InstanceSnapshot |
withState(String state)
The state the snapshot is in.
|
InstanceSnapshot |
withSupportCode(String supportCode)
The support code.
|
public void setName(String name)
The name of the snapshot.
name
- The name of the snapshot.public String getName()
The name of the snapshot.
public InstanceSnapshot withName(String name)
The name of the snapshot.
name
- The name of the snapshot.public void setArn(String arn)
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).public String getArn()
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).public InstanceSnapshot withArn(String arn)
The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the snapshot (e.g.,
arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).public void setSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public String getSupportCode()
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
public InstanceSnapshot withSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource 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 snapshot was created (e.g., 1479907467.024
).
createdAt
- The timestamp when the snapshot was created (e.g., 1479907467.024
).public Date getCreatedAt()
The timestamp when the snapshot was created (e.g., 1479907467.024
).
1479907467.024
).public InstanceSnapshot withCreatedAt(Date createdAt)
The timestamp when the snapshot was created (e.g., 1479907467.024
).
createdAt
- The timestamp when the snapshot was created (e.g., 1479907467.024
).public void setLocation(ResourceLocation location)
The region name and availability zone where you created the snapshot.
location
- The region name and availability zone where you created the snapshot.public ResourceLocation getLocation()
The region name and availability zone where you created the snapshot.
public InstanceSnapshot withLocation(ResourceLocation location)
The region name and availability zone where you created the snapshot.
location
- The region name and availability zone where you created the snapshot.public void setResourceType(String resourceType)
The type of resource (usually InstanceSnapshot
).
resourceType
- The type of resource (usually InstanceSnapshot
).ResourceType
public String getResourceType()
The type of resource (usually InstanceSnapshot
).
InstanceSnapshot
).ResourceType
public InstanceSnapshot withResourceType(String resourceType)
The type of resource (usually InstanceSnapshot
).
resourceType
- The type of resource (usually InstanceSnapshot
).ResourceType
public void setResourceType(ResourceType resourceType)
The type of resource (usually InstanceSnapshot
).
resourceType
- The type of resource (usually InstanceSnapshot
).ResourceType
public InstanceSnapshot withResourceType(ResourceType resourceType)
The type of resource (usually InstanceSnapshot
).
resourceType
- The type of resource (usually InstanceSnapshot
).ResourceType
public void setState(String state)
The state the snapshot is in.
state
- The state the snapshot is in.InstanceSnapshotState
public String getState()
The state the snapshot is in.
InstanceSnapshotState
public InstanceSnapshot withState(String state)
The state the snapshot is in.
state
- The state the snapshot is in.InstanceSnapshotState
public void setState(InstanceSnapshotState state)
The state the snapshot is in.
state
- The state the snapshot is in.InstanceSnapshotState
public InstanceSnapshot withState(InstanceSnapshotState state)
The state the snapshot is in.
state
- The state the snapshot is in.InstanceSnapshotState
public void setProgress(String progress)
The progress of the snapshot.
progress
- The progress of the snapshot.public String getProgress()
The progress of the snapshot.
public InstanceSnapshot withProgress(String progress)
The progress of the snapshot.
progress
- The progress of the snapshot.public void setFromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
fromInstanceName
- The instance from which the snapshot was created.public String getFromInstanceName()
The instance from which the snapshot was created.
public InstanceSnapshot withFromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
fromInstanceName
- The instance from which the snapshot was created.public void setFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
fromInstanceArn
- The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).public String getFromInstanceArn()
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).public InstanceSnapshot withFromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
fromInstanceArn
- The Amazon Resource Name (ARN) of the instance from which the snapshot was created (e.g.,
arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).public void setFromBlueprintId(String fromBlueprintId)
The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
). A blueprint is a virtual
private server (or instance) image used to create instances quickly.
fromBlueprintId
- The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
). A blueprint is a
virtual private server (or instance) image used to create instances quickly.public String getFromBlueprintId()
The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
). A blueprint is a virtual
private server (or instance) image used to create instances quickly.
os_debian_8_3
). A blueprint is a
virtual private server (or instance) image used to create instances quickly.public InstanceSnapshot withFromBlueprintId(String fromBlueprintId)
The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
). A blueprint is a virtual
private server (or instance) image used to create instances quickly.
fromBlueprintId
- The blueprint ID from which you created the snapshot (e.g., os_debian_8_3
). A blueprint is a
virtual private server (or instance) image used to create instances quickly.public void setFromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (e.g., micro_1_0
).
fromBundleId
- The bundle ID from which you created the snapshot (e.g., micro_1_0
).public String getFromBundleId()
The bundle ID from which you created the snapshot (e.g., micro_1_0
).
micro_1_0
).public InstanceSnapshot withFromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (e.g., micro_1_0
).
fromBundleId
- The bundle ID from which you created the snapshot (e.g., micro_1_0
).public void setSizeInGb(Integer sizeInGb)
The size in GB of the SSD.
sizeInGb
- The size in GB of the SSD.public Integer getSizeInGb()
The size in GB of the SSD.
public InstanceSnapshot withSizeInGb(Integer sizeInGb)
The size in GB of the SSD.
sizeInGb
- The size in GB of the SSD.public String toString()
toString
in class Object
Object.toString()
public InstanceSnapshot clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.