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 Details

    • fromBundleId

      InstanceSnapshotInfo.Builder fromBundleId(String 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

      InstanceSnapshotInfo.Builder fromBlueprintId(String 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

      InstanceSnapshotInfo.Builder fromDiskInfo(Collection<DiskInfo> 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

      InstanceSnapshotInfo.Builder fromDiskInfo(DiskInfo... 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

      InstanceSnapshotInfo.Builder fromDiskInfo(Consumer<DiskInfo.Builder>... 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 the DiskInfo.Builder avoiding the need to create one manually via DiskInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fromDiskInfo(List<DiskInfo>).

      Parameters:
      fromDiskInfo - a consumer that will call methods on DiskInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: