@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetAutoSnapshotsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetAutoSnapshotsResult() |
Modifier and Type | Method and Description |
---|---|
GetAutoSnapshotsResult |
clone() |
boolean |
equals(Object obj) |
List<AutoSnapshotDetails> |
getAutoSnapshots()
An array of objects that describe the automatic snapshots that are available for the specified source instance or
disk.
|
String |
getResourceName()
The name of the source instance or disk for the automatic snapshots.
|
String |
getResourceType()
The resource type of the automatic snapshot.
|
int |
hashCode() |
void |
setAutoSnapshots(Collection<AutoSnapshotDetails> autoSnapshots)
An array of objects that describe the automatic snapshots that are available for the specified source instance or
disk.
|
void |
setResourceName(String resourceName)
The name of the source instance or disk for the automatic snapshots.
|
void |
setResourceType(String resourceType)
The resource type of the automatic snapshot.
|
String |
toString()
Returns a string representation of this object.
|
GetAutoSnapshotsResult |
withAutoSnapshots(AutoSnapshotDetails... autoSnapshots)
An array of objects that describe the automatic snapshots that are available for the specified source instance or
disk.
|
GetAutoSnapshotsResult |
withAutoSnapshots(Collection<AutoSnapshotDetails> autoSnapshots)
An array of objects that describe the automatic snapshots that are available for the specified source instance or
disk.
|
GetAutoSnapshotsResult |
withResourceName(String resourceName)
The name of the source instance or disk for the automatic snapshots.
|
GetAutoSnapshotsResult |
withResourceType(ResourceType resourceType)
The resource type of the automatic snapshot.
|
GetAutoSnapshotsResult |
withResourceType(String resourceType)
The resource type of the automatic snapshot.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setResourceName(String resourceName)
The name of the source instance or disk for the automatic snapshots.
resourceName
- The name of the source instance or disk for the automatic snapshots.public String getResourceName()
The name of the source instance or disk for the automatic snapshots.
public GetAutoSnapshotsResult withResourceName(String resourceName)
The name of the source instance or disk for the automatic snapshots.
resourceName
- The name of the source instance or disk for the automatic snapshots.public void setResourceType(String resourceType)
The resource type of the automatic snapshot. The possible values are Instance
, and Disk
.
resourceType
- The resource type of the automatic snapshot. The possible values are Instance
, and
Disk
.ResourceType
public String getResourceType()
The resource type of the automatic snapshot. The possible values are Instance
, and Disk
.
Instance
, and
Disk
.ResourceType
public GetAutoSnapshotsResult withResourceType(String resourceType)
The resource type of the automatic snapshot. The possible values are Instance
, and Disk
.
resourceType
- The resource type of the automatic snapshot. The possible values are Instance
, and
Disk
.ResourceType
public GetAutoSnapshotsResult withResourceType(ResourceType resourceType)
The resource type of the automatic snapshot. The possible values are Instance
, and Disk
.
resourceType
- The resource type of the automatic snapshot. The possible values are Instance
, and
Disk
.ResourceType
public List<AutoSnapshotDetails> getAutoSnapshots()
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
public void setAutoSnapshots(Collection<AutoSnapshotDetails> autoSnapshots)
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
autoSnapshots
- An array of objects that describe the automatic snapshots that are available for the specified source
instance or disk.public GetAutoSnapshotsResult withAutoSnapshots(AutoSnapshotDetails... autoSnapshots)
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
NOTE: This method appends the values to the existing list (if any). Use
setAutoSnapshots(java.util.Collection)
or withAutoSnapshots(java.util.Collection)
if you want
to override the existing values.
autoSnapshots
- An array of objects that describe the automatic snapshots that are available for the specified source
instance or disk.public GetAutoSnapshotsResult withAutoSnapshots(Collection<AutoSnapshotDetails> autoSnapshots)
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
autoSnapshots
- An array of objects that describe the automatic snapshots that are available for the specified source
instance or disk.public String toString()
toString
in class Object
Object.toString()
public GetAutoSnapshotsResult clone()