* The name of the source instance or disk for the automatic snapshots. *
*/ private String resourceName; /** *
* The resource type (e.g., Instance
or Disk
).
*
* An array of objects that describe the automatic snapshots that are available for the specified source instance or * disk. *
*/ private java.util.List* The name of the source instance or disk for the automatic snapshots. *
* * @param resourceName * The name of the source instance or disk for the automatic snapshots. */ public void setResourceName(String resourceName) { this.resourceName = resourceName; } /** ** The name of the source instance or disk for the automatic snapshots. *
* * @return The name of the source instance or disk for the automatic snapshots. */ public String getResourceName() { return this.resourceName; } /** ** The name of the source instance or disk for the automatic snapshots. *
* * @param resourceName * The name of the source instance or disk for the automatic snapshots. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAutoSnapshotsResult withResourceName(String resourceName) { setResourceName(resourceName); return this; } /** *
* The resource type (e.g., Instance
or Disk
).
*
Instance
or Disk
).
* @see ResourceType
*/
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* The resource type (e.g., Instance
or Disk
).
*
Instance
or Disk
).
* @see ResourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
*
* The resource type (e.g., Instance
or Disk
).
*
Instance
or Disk
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public GetAutoSnapshotsResult withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* The resource type (e.g., Instance
or Disk
).
*
Instance
or Disk
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public GetAutoSnapshotsResult withResourceType(ResourceType resourceType) {
this.resourceType = resourceType.toString();
return this;
}
/**
* * An array of objects that describe the automatic snapshots that are available for the specified source instance or * disk. *
* * @return An array of objects that describe the automatic snapshots that are available for the specified source * instance or disk. */ public java.util.List* An array of objects that describe the automatic snapshots that are available for the specified source instance or * disk. *
* * @param autoSnapshots * An array of objects that describe the automatic snapshots that are available for the specified source * instance or disk. */ public void setAutoSnapshots(java.util.Collection* 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 * {@link #setAutoSnapshots(java.util.Collection)} or {@link #withAutoSnapshots(java.util.Collection)} if you want * to override the existing values. *
* * @param autoSnapshots * An array of objects that describe the automatic snapshots that are available for the specified source * instance or disk. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAutoSnapshotsResult withAutoSnapshots(AutoSnapshotDetails... autoSnapshots) { if (this.autoSnapshots == null) { setAutoSnapshots(new java.util.ArrayList* An array of objects that describe the automatic snapshots that are available for the specified source instance or * disk. *
* * @param autoSnapshots * An array of objects that describe the automatic snapshots that are available for the specified source * instance or disk. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAutoSnapshotsResult withAutoSnapshots(java.util.Collection