public static interface Disk.Builder extends SdkPojo, CopyableBuilder<Disk.Builder,Disk>
Modifier and Type | Method and Description |
---|---|
Disk.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the disk.
|
Disk.Builder |
attachedTo(String attachedTo)
The resources to which the disk is attached.
|
Disk.Builder |
attachmentState(String attachmentState)
(Deprecated) The attachment state of the disk.
|
Disk.Builder |
createdAt(Instant createdAt)
The date when the disk was created.
|
Disk.Builder |
gbInUse(Integer gbInUse)
(Deprecated) The number of GB in use by the disk.
|
Disk.Builder |
iops(Integer iops)
The input/output operations per second (IOPS) of the disk.
|
Disk.Builder |
isAttached(Boolean isAttached)
A Boolean value indicating whether the disk is attached.
|
Disk.Builder |
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.
|
Disk.Builder |
location(ResourceLocation location)
The AWS Region and Availability Zone where the disk is located.
|
Disk.Builder |
name(String name)
The unique name of the disk.
|
Disk.Builder |
path(String path)
The disk path.
|
Disk.Builder |
resourceType(ResourceType resourceType)
The Lightsail resource type (e.g.,
Disk ). |
Disk.Builder |
resourceType(String resourceType)
The Lightsail resource type (e.g.,
Disk ). |
Disk.Builder |
sizeInGb(Integer sizeInGb)
The size of the disk in GB.
|
Disk.Builder |
state(DiskState state)
Describes the status of the disk.
|
Disk.Builder |
state(String state)
Describes the status of the disk.
|
Disk.Builder |
supportCode(String supportCode)
The support code.
|
Disk.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
Disk.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource.
|
Disk.Builder |
tags(Tag... tags)
The tag keys and optional values for the resource.
|
copy
applyMutation, build
Disk.Builder name(String name)
The unique name of the disk.
name
- The unique name of the disk.Disk.Builder arn(String arn)
The Amazon Resource Name (ARN) of the disk.
arn
- The Amazon Resource Name (ARN) of the disk.Disk.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.
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.Disk.Builder createdAt(Instant createdAt)
The date when the disk was created.
createdAt
- The date when the disk was created.Disk.Builder location(ResourceLocation location)
The AWS Region and Availability Zone where the disk is located.
location
- The AWS Region and Availability Zone where the disk is located.default Disk.Builder location(Consumer<ResourceLocation.Builder> location)
The AWS Region and Availability Zone where the disk is located.
This is a convenience that creates an instance of theResourceLocation.Builder
avoiding the need to
create one manually via ResourceLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to location(ResourceLocation)
.location
- a consumer that will call methods on ResourceLocation.Builder
location(ResourceLocation)
Disk.Builder resourceType(String resourceType)
The Lightsail resource type (e.g., Disk
).
resourceType
- The Lightsail resource type (e.g., Disk
).ResourceType
,
ResourceType
Disk.Builder resourceType(ResourceType resourceType)
The Lightsail resource type (e.g., Disk
).
resourceType
- The Lightsail resource type (e.g., Disk
).ResourceType
,
ResourceType
Disk.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Lightsail Dev
Guide.Disk.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Lightsail Dev
Guide.Disk.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Disk.Builder sizeInGb(Integer sizeInGb)
The size of the disk in GB.
sizeInGb
- The size of the disk in GB.Disk.Builder isSystemDisk(Boolean isSystemDisk)
A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).
isSystemDisk
- A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).Disk.Builder iops(Integer iops)
The input/output operations per second (IOPS) of the disk.
iops
- The input/output operations per second (IOPS) of the disk.Disk.Builder path(String path)
The disk path.
path
- The disk path.Disk.Builder state(String state)
Describes the status of the disk.
Disk.Builder state(DiskState state)
Describes the status of the disk.
Disk.Builder attachedTo(String attachedTo)
The resources to which the disk is attached.
attachedTo
- The resources to which the disk is attached.Disk.Builder isAttached(Boolean isAttached)
A Boolean value indicating whether the disk is attached.
isAttached
- A Boolean value indicating whether the disk is attached.Disk.Builder attachmentState(String attachmentState)
(Deprecated) 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 deprecated, but still included in the response. Use isAttached
instead.
attachmentState
- (Deprecated) 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 deprecated, but still included in the response. Use
isAttached
instead.
Disk.Builder gbInUse(Integer gbInUse)
(Deprecated) 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 deprecated.
gbInUse
- (Deprecated) 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 deprecated.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.