Interface Disk.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Disk.Builder,,- Disk> - SdkBuilder<Disk.Builder,,- Disk> - SdkPojo
- Enclosing class:
- Disk
- 
Method SummaryModifier 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.Builderlocation(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
nameThe 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.
 
- 
arnThe 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.
 
- 
supportCodeThe 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.
 
- 
createdAtThe 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.
 
- 
locationThe 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.
 
- 
locationThe AWS Region and Availability Zone where the disk is located. 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 on- ResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceTypeThe 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:
 
- 
resourceTypeThe 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:
 
- 
tagsThe 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.
 
- 
tagsThe 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.
 
- 
tagsThe 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 totags(List<Tag>).- Parameters:
- tags- a consumer that will call methods on- Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
addOnsAn 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.
 
- 
addOnsAn 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.
 
- 
addOnsAn array of objects representing the add-ons enabled on the disk. This is a convenience method that creates an instance of theAddOn.Builderavoiding the need to create one manually viaAddOn.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddOns(List<AddOn>).- Parameters:
- addOns- a consumer that will call methods on- AddOn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
sizeInGbThe 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.
 
- 
isSystemDiskA 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.
 
- 
iopsThe 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.
 
- 
pathThe disk path. - Parameters:
- path- The disk path.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
stateDescribes 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:
 
- 
stateDescribes 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:
 
- 
attachedToThe 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.
 
- 
isAttachedA 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.
 
- 
attachmentStateDeprecated.(Discontinued) The attachment state of the disk. In releases prior to November 14, 2017, this parameter returned attachedfor system disks in the API response. It is now discontinued, but still included in the response. UseisAttachedinstead.- Parameters:
- attachmentState- (Discontinued) The attachment state of the disk.- In releases prior to November 14, 2017, this parameter returned - attachedfor system disks in the API response. It is now discontinued, but still included in the response. Use- isAttachedinstead.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
gbInUseDeprecated.(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.
 
- 
autoMountStatusThe 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:
 
- 
autoMountStatusThe 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:
 
 
-