Interface InstanceSnapshot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceSnapshot.Builder,InstanceSnapshot>,SdkBuilder<InstanceSnapshot.Builder,InstanceSnapshot>,SdkPojo
- Enclosing class:
- InstanceSnapshot
public static interface InstanceSnapshot.Builder extends SdkPojo, CopyableBuilder<InstanceSnapshot.Builder,InstanceSnapshot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceSnapshot.Builderarn(String arn)The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).InstanceSnapshot.BuildercreatedAt(Instant createdAt)The timestamp when the snapshot was created (1479907467.024).InstanceSnapshot.BuilderfromAttachedDisks(Collection<Disk> fromAttachedDisks)An array of disk objects containing information about all block storage disks.InstanceSnapshot.BuilderfromAttachedDisks(Consumer<Disk.Builder>... fromAttachedDisks)An array of disk objects containing information about all block storage disks.InstanceSnapshot.BuilderfromAttachedDisks(Disk... fromAttachedDisks)An array of disk objects containing information about all block storage disks.InstanceSnapshot.BuilderfromBlueprintId(String fromBlueprintId)The blueprint ID from which you created the snapshot (os_debian_8_3).InstanceSnapshot.BuilderfromBundleId(String fromBundleId)The bundle ID from which you created the snapshot (micro_1_0).InstanceSnapshot.BuilderfromInstanceArn(String fromInstanceArn)The Amazon Resource Name (ARN) of the instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).InstanceSnapshot.BuilderfromInstanceName(String fromInstanceName)The instance from which the snapshot was created.InstanceSnapshot.BuilderisFromAutoSnapshot(Boolean isFromAutoSnapshot)A Boolean value indicating whether the snapshot was created from an automatic snapshot.default InstanceSnapshot.Builderlocation(Consumer<ResourceLocation.Builder> location)The region name and Availability Zone where you created the snapshot.InstanceSnapshot.Builderlocation(ResourceLocation location)The region name and Availability Zone where you created the snapshot.InstanceSnapshot.Buildername(String name)The name of the snapshot.InstanceSnapshot.Builderprogress(String progress)The progress of the snapshot.InstanceSnapshot.BuilderresourceType(String resourceType)The type of resource (usuallyInstanceSnapshot).InstanceSnapshot.BuilderresourceType(ResourceType resourceType)The type of resource (usuallyInstanceSnapshot).InstanceSnapshot.BuildersizeInGb(Integer sizeInGb)The size in GB of the SSD.InstanceSnapshot.Builderstate(String state)The state the snapshot is in.InstanceSnapshot.Builderstate(InstanceSnapshotState state)The state the snapshot is in.InstanceSnapshot.BuildersupportCode(String supportCode)The support code.InstanceSnapshot.Buildertags(Collection<Tag> tags)The tag keys and optional values for the resource.InstanceSnapshot.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the resource.InstanceSnapshot.Buildertags(Tag... tags)The tag keys and optional values for the resource.-
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 Detail
-
name
InstanceSnapshot.Builder name(String name)
The name of the snapshot.
- Parameters:
name- The name of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
InstanceSnapshot.Builder arn(String arn)
The Amazon Resource Name (ARN) of the snapshot (
arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).- Parameters:
arn- The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportCode
InstanceSnapshot.Builder supportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
- Parameters:
supportCode- The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
InstanceSnapshot.Builder createdAt(Instant createdAt)
The timestamp when the snapshot was created (
1479907467.024).- Parameters:
createdAt- The timestamp when the snapshot was created (1479907467.024).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
InstanceSnapshot.Builder location(ResourceLocation location)
The region name and Availability Zone where you created the snapshot.
- Parameters:
location- The region name and Availability Zone where you created the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default InstanceSnapshot.Builder location(Consumer<ResourceLocation.Builder> location)
The region name and Availability Zone where you created the snapshot.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(ResourceLocation).- Parameters:
location- a consumer that will call methods onResourceLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
location(ResourceLocation)
-
resourceType
InstanceSnapshot.Builder resourceType(String resourceType)
The type of resource (usually
InstanceSnapshot).- Parameters:
resourceType- The type of resource (usuallyInstanceSnapshot).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
InstanceSnapshot.Builder resourceType(ResourceType resourceType)
The type of resource (usually
InstanceSnapshot).- Parameters:
resourceType- The type of resource (usuallyInstanceSnapshot).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
tags
InstanceSnapshot.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceSnapshot.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceSnapshot.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
state
InstanceSnapshot.Builder state(String state)
The state the snapshot is in.
- Parameters:
state- The state the snapshot is in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceSnapshotState,InstanceSnapshotState
-
state
InstanceSnapshot.Builder state(InstanceSnapshotState state)
The state the snapshot is in.
- Parameters:
state- The state the snapshot is in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceSnapshotState,InstanceSnapshotState
-
progress
InstanceSnapshot.Builder progress(String progress)
The progress of the snapshot.
This is populated only for disk snapshots, and is
nullfor instance snapshots.- Parameters:
progress- The progress of the snapshot.This is populated only for disk snapshots, and is
nullfor instance snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAttachedDisks
InstanceSnapshot.Builder fromAttachedDisks(Collection<Disk> fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
- Parameters:
fromAttachedDisks- An array of disk objects containing information about all block storage disks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAttachedDisks
InstanceSnapshot.Builder fromAttachedDisks(Disk... fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
- Parameters:
fromAttachedDisks- An array of disk objects containing information about all block storage disks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAttachedDisks
InstanceSnapshot.Builder fromAttachedDisks(Consumer<Disk.Builder>... fromAttachedDisks)
An array of disk objects containing information about all block storage disks.
This is a convenience method that creates an instance of theDisk.Builderavoiding the need to create one manually viaDisk.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fromAttachedDisks(List.) - Parameters:
fromAttachedDisks- a consumer that will call methods onDisk.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#fromAttachedDisks(java.util.Collection)
-
fromInstanceName
InstanceSnapshot.Builder fromInstanceName(String fromInstanceName)
The instance from which the snapshot was created.
- Parameters:
fromInstanceName- The instance from which the snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromInstanceArn
InstanceSnapshot.Builder fromInstanceArn(String fromInstanceArn)
The Amazon Resource Name (ARN) of the instance from which the snapshot was created (
arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).- Parameters:
fromInstanceArn- The Amazon Resource Name (ARN) of the instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromBlueprintId
InstanceSnapshot.Builder fromBlueprintId(String fromBlueprintId)
The blueprint ID from which you created the snapshot (
os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.- Parameters:
fromBlueprintId- The blueprint ID from which you created the snapshot (os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromBundleId
InstanceSnapshot.Builder fromBundleId(String fromBundleId)
The bundle ID from which you created the snapshot (
micro_1_0).- Parameters:
fromBundleId- The bundle ID from which you created the snapshot (micro_1_0).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isFromAutoSnapshot
InstanceSnapshot.Builder isFromAutoSnapshot(Boolean isFromAutoSnapshot)
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
- Parameters:
isFromAutoSnapshot- A Boolean value indicating whether the snapshot was created from an automatic snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sizeInGb
InstanceSnapshot.Builder sizeInGb(Integer sizeInGb)
The size in GB of the SSD.
- Parameters:
sizeInGb- The size in GB of the SSD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-