public static final class CfnNetworkInterfaceAttachmentProps.Builder
extends java.lang.Object
CfnNetworkInterfaceAttachmentProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnNetworkInterfaceAttachmentProps |
build()
Builds the configured instance.
|
CfnNetworkInterfaceAttachmentProps.Builder |
deleteOnTermination(java.lang.Boolean deleteOnTermination)
Sets the value of
CfnNetworkInterfaceAttachmentProps.getDeleteOnTermination() |
CfnNetworkInterfaceAttachmentProps.Builder |
deleteOnTermination(IResolvable deleteOnTermination)
Sets the value of
CfnNetworkInterfaceAttachmentProps.getDeleteOnTermination() |
CfnNetworkInterfaceAttachmentProps.Builder |
deviceIndex(java.lang.String deviceIndex)
Sets the value of
CfnNetworkInterfaceAttachmentProps.getDeviceIndex() |
CfnNetworkInterfaceAttachmentProps.Builder |
instanceId(java.lang.String instanceId)
Sets the value of
CfnNetworkInterfaceAttachmentProps.getInstanceId() |
CfnNetworkInterfaceAttachmentProps.Builder |
networkInterfaceId(java.lang.String networkInterfaceId)
Sets the value of
CfnNetworkInterfaceAttachmentProps.getNetworkInterfaceId() |
public CfnNetworkInterfaceAttachmentProps.Builder deviceIndex(java.lang.String deviceIndex)
CfnNetworkInterfaceAttachmentProps.getDeviceIndex()
deviceIndex
- The network interface's position in the attachment order. This parameter is required.
For example, the first attached network interface has a DeviceIndex
of 0.this
public CfnNetworkInterfaceAttachmentProps.Builder instanceId(java.lang.String instanceId)
CfnNetworkInterfaceAttachmentProps.getInstanceId()
instanceId
- The ID of the instance to which you will attach the ENI. This parameter is required.this
public CfnNetworkInterfaceAttachmentProps.Builder networkInterfaceId(java.lang.String networkInterfaceId)
CfnNetworkInterfaceAttachmentProps.getNetworkInterfaceId()
networkInterfaceId
- The ID of the ENI that you want to attach. This parameter is required.this
public CfnNetworkInterfaceAttachmentProps.Builder deleteOnTermination(java.lang.Boolean deleteOnTermination)
CfnNetworkInterfaceAttachmentProps.getDeleteOnTermination()
deleteOnTermination
- Whether to delete the network interface when the instance terminates.
By default, this value is set to true
.this
public CfnNetworkInterfaceAttachmentProps.Builder deleteOnTermination(IResolvable deleteOnTermination)
CfnNetworkInterfaceAttachmentProps.getDeleteOnTermination()
deleteOnTermination
- Whether to delete the network interface when the instance terminates.
By default, this value is set to true
.this
public CfnNetworkInterfaceAttachmentProps build()
CfnNetworkInterfaceAttachmentProps
java.lang.NullPointerException
- if any required attribute was not provided