Interface InstanceSnapshotInfo.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceSnapshotInfo.Builder,,InstanceSnapshotInfo> SdkBuilder<InstanceSnapshotInfo.Builder,,InstanceSnapshotInfo> SdkPojo
- Enclosing class:
InstanceSnapshotInfo
@Mutable
@NotThreadSafe
public static interface InstanceSnapshotInfo.Builder
extends SdkPojo, CopyableBuilder<InstanceSnapshotInfo.Builder,InstanceSnapshotInfo>
-
Method Summary
Modifier and TypeMethodDescriptionfromBlueprintId(String fromBlueprintId) The blueprint ID from which the source instance (amazon_linux_2023).fromBundleId(String fromBundleId) The bundle ID from which the source instance was created (micro_x_x).fromDiskInfo(Collection<DiskInfo> fromDiskInfo) A list of objects describing the disks that were attached to the source instance.fromDiskInfo(Consumer<DiskInfo.Builder>... fromDiskInfo) A list of objects describing the disks that were attached to the source instance.fromDiskInfo(DiskInfo... fromDiskInfo) A list of objects describing the disks that were attached to the source instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
fromBundleId
The bundle ID from which the source instance was created (
micro_x_x).- Parameters:
fromBundleId- The bundle ID from which the source instance was created (micro_x_x).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromBlueprintId
The blueprint ID from which the source instance (
amazon_linux_2023).- Parameters:
fromBlueprintId- The blueprint ID from which the source instance (amazon_linux_2023).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromDiskInfo
A list of objects describing the disks that were attached to the source instance.
- Parameters:
fromDiskInfo- A list of objects describing the disks that were attached to the source instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromDiskInfo
A list of objects describing the disks that were attached to the source instance.
- Parameters:
fromDiskInfo- A list of objects describing the disks that were attached to the source instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromDiskInfo
A list of objects describing the disks that were attached to the source instance.
This is a convenience method that creates an instance of theDiskInfo.Builderavoiding the need to create one manually viaDiskInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofromDiskInfo(List<DiskInfo>).- Parameters:
fromDiskInfo- a consumer that will call methods onDiskInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-