Interface InstanceSnapshotInfo.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceSnapshotInfo.Builder,
,InstanceSnapshotInfo> SdkBuilder<InstanceSnapshotInfo.Builder,
,InstanceSnapshotInfo> SdkPojo
- Enclosing class:
InstanceSnapshotInfo
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 (os_debian_8_3
).fromBundleId
(String fromBundleId) The bundle ID from which the source instance was created (micro_1_0
).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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
fromBundleId
The bundle ID from which the source instance was created (
micro_1_0
).- Parameters:
fromBundleId
- The bundle ID from which the source instance was created (micro_1_0
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromBlueprintId
The blueprint ID from which the source instance (
os_debian_8_3
).- Parameters:
fromBlueprintId
- The blueprint ID from which the source instance (os_debian_8_3
).- 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.Builder
avoiding the need to create one manually viaDiskInfo.builder()
.When the
Consumer
completes,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:
-