@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExportSnapshotRecordSourceInfo extends Object implements Serializable, Cloneable, StructuredPojo
Describes the source of an export snapshot record.
Constructor and Description |
---|
ExportSnapshotRecordSourceInfo() |
Modifier and Type | Method and Description |
---|---|
ExportSnapshotRecordSourceInfo |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
|
Date |
getCreatedAt()
The date when the source instance or disk snapshot was created.
|
DiskSnapshotInfo |
getDiskSnapshotInfo()
A list of objects describing a disk snapshot.
|
String |
getFromResourceArn()
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
|
String |
getFromResourceName()
The name of the snapshot's source instance or disk.
|
InstanceSnapshotInfo |
getInstanceSnapshotInfo()
A list of objects describing an instance snapshot.
|
String |
getName()
The name of the source instance or disk snapshot.
|
String |
getResourceType()
The Lightsail resource type (
InstanceSnapshot or DiskSnapshot ). |
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 source instance or disk snapshot.
|
void |
setCreatedAt(Date createdAt)
The date when the source instance or disk snapshot was created.
|
void |
setDiskSnapshotInfo(DiskSnapshotInfo diskSnapshotInfo)
A list of objects describing a disk snapshot.
|
void |
setFromResourceArn(String fromResourceArn)
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
|
void |
setFromResourceName(String fromResourceName)
The name of the snapshot's source instance or disk.
|
void |
setInstanceSnapshotInfo(InstanceSnapshotInfo instanceSnapshotInfo)
A list of objects describing an instance snapshot.
|
void |
setName(String name)
The name of the source instance or disk snapshot.
|
void |
setResourceType(String resourceType)
The Lightsail resource type (
InstanceSnapshot or DiskSnapshot ). |
String |
toString()
Returns a string representation of this object.
|
ExportSnapshotRecordSourceInfo |
withArn(String arn)
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
|
ExportSnapshotRecordSourceInfo |
withCreatedAt(Date createdAt)
The date when the source instance or disk snapshot was created.
|
ExportSnapshotRecordSourceInfo |
withDiskSnapshotInfo(DiskSnapshotInfo diskSnapshotInfo)
A list of objects describing a disk snapshot.
|
ExportSnapshotRecordSourceInfo |
withFromResourceArn(String fromResourceArn)
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
|
ExportSnapshotRecordSourceInfo |
withFromResourceName(String fromResourceName)
The name of the snapshot's source instance or disk.
|
ExportSnapshotRecordSourceInfo |
withInstanceSnapshotInfo(InstanceSnapshotInfo instanceSnapshotInfo)
A list of objects describing an instance snapshot.
|
ExportSnapshotRecordSourceInfo |
withName(String name)
The name of the source instance or disk snapshot.
|
ExportSnapshotRecordSourceInfo |
withResourceType(ExportSnapshotRecordSourceType resourceType)
The Lightsail resource type (
InstanceSnapshot or DiskSnapshot ). |
ExportSnapshotRecordSourceInfo |
withResourceType(String resourceType)
The Lightsail resource type (
InstanceSnapshot or DiskSnapshot ). |
public void setResourceType(String resourceType)
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
resourceType
- The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).ExportSnapshotRecordSourceType
public String getResourceType()
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
InstanceSnapshot
or DiskSnapshot
).ExportSnapshotRecordSourceType
public ExportSnapshotRecordSourceInfo withResourceType(String resourceType)
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
resourceType
- The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).ExportSnapshotRecordSourceType
public ExportSnapshotRecordSourceInfo withResourceType(ExportSnapshotRecordSourceType resourceType)
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
resourceType
- The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).ExportSnapshotRecordSourceType
public void setCreatedAt(Date createdAt)
The date when the source instance or disk snapshot was created.
createdAt
- The date when the source instance or disk snapshot was created.public Date getCreatedAt()
The date when the source instance or disk snapshot was created.
public ExportSnapshotRecordSourceInfo withCreatedAt(Date createdAt)
The date when the source instance or disk snapshot was created.
createdAt
- The date when the source instance or disk snapshot was created.public void setName(String name)
The name of the source instance or disk snapshot.
name
- The name of the source instance or disk snapshot.public String getName()
The name of the source instance or disk snapshot.
public ExportSnapshotRecordSourceInfo withName(String name)
The name of the source instance or disk snapshot.
name
- The name of the source instance or disk snapshot.public void setArn(String arn)
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
arn
- The Amazon Resource Name (ARN) of the source instance or disk snapshot.public String getArn()
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
public ExportSnapshotRecordSourceInfo withArn(String arn)
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
arn
- The Amazon Resource Name (ARN) of the source instance or disk snapshot.public void setFromResourceName(String fromResourceName)
The name of the snapshot's source instance or disk.
fromResourceName
- The name of the snapshot's source instance or disk.public String getFromResourceName()
The name of the snapshot's source instance or disk.
public ExportSnapshotRecordSourceInfo withFromResourceName(String fromResourceName)
The name of the snapshot's source instance or disk.
fromResourceName
- The name of the snapshot's source instance or disk.public void setFromResourceArn(String fromResourceArn)
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
fromResourceArn
- The Amazon Resource Name (ARN) of the snapshot's source instance or disk.public String getFromResourceArn()
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
public ExportSnapshotRecordSourceInfo withFromResourceArn(String fromResourceArn)
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
fromResourceArn
- The Amazon Resource Name (ARN) of the snapshot's source instance or disk.public void setInstanceSnapshotInfo(InstanceSnapshotInfo instanceSnapshotInfo)
A list of objects describing an instance snapshot.
instanceSnapshotInfo
- A list of objects describing an instance snapshot.public InstanceSnapshotInfo getInstanceSnapshotInfo()
A list of objects describing an instance snapshot.
public ExportSnapshotRecordSourceInfo withInstanceSnapshotInfo(InstanceSnapshotInfo instanceSnapshotInfo)
A list of objects describing an instance snapshot.
instanceSnapshotInfo
- A list of objects describing an instance snapshot.public void setDiskSnapshotInfo(DiskSnapshotInfo diskSnapshotInfo)
A list of objects describing a disk snapshot.
diskSnapshotInfo
- A list of objects describing a disk snapshot.public DiskSnapshotInfo getDiskSnapshotInfo()
A list of objects describing a disk snapshot.
public ExportSnapshotRecordSourceInfo withDiskSnapshotInfo(DiskSnapshotInfo diskSnapshotInfo)
A list of objects describing a disk snapshot.
diskSnapshotInfo
- A list of objects describing a disk snapshot.public String toString()
toString
in class Object
Object.toString()
public ExportSnapshotRecordSourceInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.