Interface Disk.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Disk.Builder,
,Disk> SdkBuilder<Disk.Builder,
,Disk> SdkPojo
- Enclosing class:
Disk
-
Method Summary
Modifier and TypeMethodDescriptionaddOns
(Collection<AddOn> addOns) An array of objects representing the add-ons enabled on the disk.addOns
(Consumer<AddOn.Builder>... addOns) An array of objects representing the add-ons enabled on the disk.An array of objects representing the add-ons enabled on the disk.The Amazon Resource Name (ARN) of the disk.attachedTo
(String attachedTo) The resources to which the disk is attached.attachmentState
(String attachmentState) Deprecated.autoMountStatus
(String autoMountStatus) The status of automatically mounting a storage disk to a virtual computer.autoMountStatus
(AutoMountStatus autoMountStatus) The status of automatically mounting a storage disk to a virtual computer.The date when the disk was created.Deprecated.The input/output operations per second (IOPS) of the disk.isAttached
(Boolean isAttached) A Boolean value indicating whether the disk is attached.isSystemDisk
(Boolean isSystemDisk) A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).default Disk.Builder
location
(Consumer<ResourceLocation.Builder> location) The AWS Region and Availability Zone where the disk is located.location
(ResourceLocation location) The AWS Region and Availability Zone where the disk is located.The unique name of the disk.The disk path.resourceType
(String resourceType) The Lightsail resource type (Disk
).resourceType
(ResourceType resourceType) The Lightsail resource type (Disk
).The size of the disk in GB.Describes the status of the disk.Describes the status of the disk.supportCode
(String supportCode) The support code.tags
(Collection<Tag> tags) The tag keys and optional values for the resource.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the resource.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 Details
-
name
The unique name of the disk.
- Parameters:
name
- The unique name of the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the disk.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The date when the disk was created.
- Parameters:
createdAt
- The date when the disk was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The AWS Region and Availability Zone where the disk is located.
- Parameters:
location
- The AWS Region and Availability Zone where the disk is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The AWS Region and Availability Zone where the disk is located.
This is a convenience method that creates an instance of theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,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:
-
resourceType
The Lightsail resource type (
Disk
).- Parameters:
resourceType
- The Lightsail resource type (Disk
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The Lightsail resource type (
Disk
).- Parameters:
resourceType
- The Lightsail resource type (Disk
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-
addOns
An array of objects representing the add-ons enabled on the disk.
- Parameters:
addOns
- An array of objects representing the add-ons enabled on the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons enabled on the disk.
- Parameters:
addOns
- An array of objects representing the add-ons enabled on the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons enabled on the disk.
This is a convenience method that creates an instance of theAddOn.Builder
avoiding the need to create one manually viaAddOn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddOns(List<AddOn>)
.- Parameters:
addOns
- a consumer that will call methods onAddOn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sizeInGb
The size of the disk in GB.
- Parameters:
sizeInGb
- The size of the disk in GB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSystemDisk
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
- Parameters:
isSystemDisk
- A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iops
The input/output operations per second (IOPS) of the disk.
- Parameters:
iops
- The input/output operations per second (IOPS) of the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The disk path.
- Parameters:
path
- The disk path.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Describes the status of the disk.
- Parameters:
state
- Describes the status of the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Describes the status of the disk.
- Parameters:
state
- Describes the status of the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachedTo
The resources to which the disk is attached.
- Parameters:
attachedTo
- The resources to which the disk is attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAttached
A Boolean value indicating whether the disk is attached.
- Parameters:
isAttached
- A Boolean value indicating whether the disk is attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachmentState
Deprecated.(Discontinued) The attachment state of the disk.
In releases prior to November 14, 2017, this parameter returned
attached
for system disks in the API response. It is now discontinued, but still included in the response. UseisAttached
instead.- Parameters:
attachmentState
- (Discontinued) The attachment state of the disk.In releases prior to November 14, 2017, this parameter returned
attached
for system disks in the API response. It is now discontinued, but still included in the response. UseisAttached
instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gbInUse
Deprecated.(Discontinued) The number of GB in use by the disk.
In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
- Parameters:
gbInUse
- (Discontinued) The number of GB in use by the disk.In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoMountStatus
The status of automatically mounting a storage disk to a virtual computer.
This parameter only applies to Lightsail for Research resources.
- Parameters:
autoMountStatus
- The status of automatically mounting a storage disk to a virtual computer.This parameter only applies to Lightsail for Research resources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoMountStatus
The status of automatically mounting a storage disk to a virtual computer.
This parameter only applies to Lightsail for Research resources.
- Parameters:
autoMountStatus
- The status of automatically mounting a storage disk to a virtual computer.This parameter only applies to Lightsail for Research resources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-