/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes an instance snapshot. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InstanceSnapshotInfo implements Serializable, Cloneable, StructuredPojo { /** *
* The bundle ID from which the source instance was created (e.g., micro_1_0
).
*
* The blueprint ID from which the source instance (e.g., os_debian_8_3
).
*
* A list of objects describing the disks that were attached to the source instance. *
*/ private java.util.List
* The bundle ID from which the source instance was created (e.g., micro_1_0
).
*
micro_1_0
).
*/
public void setFromBundleId(String fromBundleId) {
this.fromBundleId = fromBundleId;
}
/**
*
* The bundle ID from which the source instance was created (e.g., micro_1_0
).
*
micro_1_0
).
*/
public String getFromBundleId() {
return this.fromBundleId;
}
/**
*
* The bundle ID from which the source instance was created (e.g., micro_1_0
).
*
micro_1_0
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InstanceSnapshotInfo withFromBundleId(String fromBundleId) {
setFromBundleId(fromBundleId);
return this;
}
/**
*
* The blueprint ID from which the source instance (e.g., os_debian_8_3
).
*
os_debian_8_3
).
*/
public void setFromBlueprintId(String fromBlueprintId) {
this.fromBlueprintId = fromBlueprintId;
}
/**
*
* The blueprint ID from which the source instance (e.g., os_debian_8_3
).
*
os_debian_8_3
).
*/
public String getFromBlueprintId() {
return this.fromBlueprintId;
}
/**
*
* The blueprint ID from which the source instance (e.g., os_debian_8_3
).
*
os_debian_8_3
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InstanceSnapshotInfo withFromBlueprintId(String fromBlueprintId) {
setFromBlueprintId(fromBlueprintId);
return this;
}
/**
* * A list of objects describing the disks that were attached to the source instance. *
* * @return A list of objects describing the disks that were attached to the source instance. */ public java.util.List* A list of objects describing the disks that were attached to the source instance. *
* * @param fromDiskInfo * A list of objects describing the disks that were attached to the source instance. */ public void setFromDiskInfo(java.util.Collection* A list of objects describing the disks that were attached to the source instance. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFromDiskInfo(java.util.Collection)} or {@link #withFromDiskInfo(java.util.Collection)} if you want to * override the existing values. *
* * @param fromDiskInfo * A list of objects describing the disks that were attached to the source instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSnapshotInfo withFromDiskInfo(DiskInfo... fromDiskInfo) { if (this.fromDiskInfo == null) { setFromDiskInfo(new java.util.ArrayList* A list of objects describing the disks that were attached to the source instance. *
* * @param fromDiskInfo * A list of objects describing the disks that were attached to the source instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSnapshotInfo withFromDiskInfo(java.util.Collection