Class CfnNetworkInterfaceAttachmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnNetworkInterfaceAttachmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInterfaceAttachmentMixinProps>
- Enclosing interface:
CfnNetworkInterfaceAttachmentMixinProps
@Stability(Stable)
public static final class CfnNetworkInterfaceAttachmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInterfaceAttachmentMixinProps>
A builder for
CfnNetworkInterfaceAttachmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteOnTermination(Boolean deleteOnTermination) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getDeleteOnTermination()deleteOnTermination(IResolvable deleteOnTermination) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getDeleteOnTermination()deviceIndex(String deviceIndex) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getDeviceIndex()enaQueueCount(Number enaQueueCount) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getEnaQueueCount()enaSrdSpecification(CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty enaSrdSpecification) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getEnaSrdSpecification()enaSrdSpecification(IResolvable enaSrdSpecification) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getEnaSrdSpecification()instanceId(String instanceId) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getInstanceId()networkInterfaceId(String networkInterfaceId) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getNetworkInterfaceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteOnTermination
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder deleteOnTermination(Boolean deleteOnTermination) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getDeleteOnTermination()- Parameters:
deleteOnTermination- Whether to delete the network interface when the instance terminates. By default, this value is set totrue.- Returns:
this
-
deleteOnTermination
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder deleteOnTermination(IResolvable deleteOnTermination) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getDeleteOnTermination()- Parameters:
deleteOnTermination- Whether to delete the network interface when the instance terminates. By default, this value is set totrue.- Returns:
this
-
deviceIndex
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder deviceIndex(String deviceIndex) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getDeviceIndex()- Parameters:
deviceIndex- The network interface's position in the attachment order. For example, the first attached network interface has aDeviceIndexof 0.- Returns:
this
-
enaQueueCount
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder enaQueueCount(Number enaQueueCount) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getEnaQueueCount()- Parameters:
enaQueueCount- The number of ENA queues created with the instance.- Returns:
this
-
enaSrdSpecification
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder enaSrdSpecification(IResolvable enaSrdSpecification) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getEnaSrdSpecification()- Parameters:
enaSrdSpecification- Configures ENA Express for the network interface that this action attaches to the instance.- Returns:
this
-
enaSrdSpecification
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder enaSrdSpecification(CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty enaSrdSpecification) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getEnaSrdSpecification()- Parameters:
enaSrdSpecification- Configures ENA Express for the network interface that this action attaches to the instance.- Returns:
this
-
instanceId
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder instanceId(String instanceId) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getInstanceId()- Parameters:
instanceId- The ID of the instance to which you will attach the ENI.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnNetworkInterfaceAttachmentMixinProps.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnNetworkInterfaceAttachmentMixinProps.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The ID of the ENI that you want to attach.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInterfaceAttachmentMixinProps>- Returns:
- a new instance of
CfnNetworkInterfaceAttachmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-