public class CreateSnapshotResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A JSON object containing the following fields:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
snapshotId
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots ) or creating a volume from a snapshot
(CreateStorediSCSIVolume). |
private java.lang.String |
volumeARN
The Amazon Resource Name (ARN) of the volume of which the snapshot was
taken.
|
Constructor and Description |
---|
CreateSnapshotResult() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSnapshotId()
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots ) or creating a volume from a snapshot
(CreateStorediSCSIVolume). |
java.lang.String |
getVolumeARN()
The Amazon Resource Name (ARN) of the volume of which the snapshot was
taken.
|
int |
hashCode() |
void |
setSnapshotId(java.lang.String snapshotId)
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots ) or creating a volume from a snapshot
(CreateStorediSCSIVolume). |
void |
setVolumeARN(java.lang.String volumeARN)
The Amazon Resource Name (ARN) of the volume of which the snapshot was
taken.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotResult |
withSnapshotId(java.lang.String snapshotId)
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots ) or creating a volume from a snapshot
(CreateStorediSCSIVolume). |
CreateSnapshotResult |
withVolumeARN(java.lang.String volumeARN)
The Amazon Resource Name (ARN) of the volume of which the snapshot was
taken.
|
private java.lang.String volumeARN
The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
private java.lang.String snapshotId
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots
) or creating a volume from a snapshot
(CreateStorediSCSIVolume).
public void setVolumeARN(java.lang.String volumeARN)
The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
volumeARN
- The Amazon Resource Name (ARN) of the volume of which the snapshot
was taken.public java.lang.String getVolumeARN()
The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
public CreateSnapshotResult withVolumeARN(java.lang.String volumeARN)
The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
volumeARN
- The Amazon Resource Name (ARN) of the volume of which the snapshot
was taken.public void setSnapshotId(java.lang.String snapshotId)
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots
) or creating a volume from a snapshot
(CreateStorediSCSIVolume).
snapshotId
- The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute
Cloud API DescribeSnapshots
) or creating a volume
from a snapshot (CreateStorediSCSIVolume).public java.lang.String getSnapshotId()
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots
) or creating a volume from a snapshot
(CreateStorediSCSIVolume).
DescribeSnapshots
) or creating a volume
from a snapshot (CreateStorediSCSIVolume).public CreateSnapshotResult withSnapshotId(java.lang.String snapshotId)
The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots
) or creating a volume from a snapshot
(CreateStorediSCSIVolume).
snapshotId
- The snapshot ID that is used to refer to the snapshot in future
operations such as describing snapshots (Amazon Elastic Compute
Cloud API DescribeSnapshots
) or creating a volume
from a snapshot (CreateStorediSCSIVolume).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateSnapshotResult clone()
clone
in class java.lang.Object