Class VolumeAttachmentReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VolumeAttachmentReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VolumeAttachmentReference>
- Enclosing interface:
VolumeAttachmentReference
@Stability(Stable)
public static final class VolumeAttachmentReference.Builder
extends Object
implements software.amazon.jsii.Builder<VolumeAttachmentReference>
A builder for
VolumeAttachmentReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceId
(String instanceId) Sets the value ofVolumeAttachmentReference.getInstanceId()
Sets the value ofVolumeAttachmentReference.getVolumeId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceId
Sets the value ofVolumeAttachmentReference.getInstanceId()
- Parameters:
instanceId
- The InstanceId of the VolumeAttachment resource. This parameter is required.- Returns:
this
-
volumeId
Sets the value ofVolumeAttachmentReference.getVolumeId()
- Parameters:
volumeId
- The VolumeId of the VolumeAttachment resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VolumeAttachmentReference>
- Returns:
- a new instance of
VolumeAttachmentReference
- Throws:
NullPointerException
- if any required attribute was not provided
-