Class CfnNetworkInterfaceAttachmentPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnNetworkInterfaceAttachmentPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInterfaceAttachmentPropsMixin>
- Enclosing class:
CfnNetworkInterfaceAttachmentPropsMixin
@Stability(Stable)
public static final class CfnNetworkInterfaceAttachmentPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInterfaceAttachmentPropsMixin>
A fluent builder for
CfnNetworkInterfaceAttachmentPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) deleteOnTermination(Boolean deleteOnTermination) Whether to delete the network interface when the instance terminates.deleteOnTermination(IResolvable deleteOnTermination) Whether to delete the network interface when the instance terminates.deviceIndex(String deviceIndex) The network interface's position in the attachment order.enaQueueCount(Number enaQueueCount) The number of ENA queues created with the instance.enaSrdSpecification(CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.enaSrdSpecification(IResolvable enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.instanceId(String instanceId) The ID of the instance to which you will attach the ENI.networkInterfaceId(String networkInterfaceId) The ID of the ENI that you want to attach.
-
Method Details
-
create
@Stability(Stable) public static CfnNetworkInterfaceAttachmentPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnNetworkInterfaceAttachmentPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnNetworkInterfaceAttachmentPropsMixin.Builder.
-
deleteOnTermination
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder deleteOnTermination(Boolean deleteOnTermination) Whether to delete the network interface when the instance terminates.By default, this value is set to
true.Default: - true
- Parameters:
deleteOnTermination- Whether to delete the network interface when the instance terminates. This parameter is required.- Returns:
this- See Also:
-
deleteOnTermination
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder deleteOnTermination(IResolvable deleteOnTermination) Whether to delete the network interface when the instance terminates.By default, this value is set to
true.Default: - true
- Parameters:
deleteOnTermination- Whether to delete the network interface when the instance terminates. This parameter is required.- Returns:
this- See Also:
-
deviceIndex
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder deviceIndex(String deviceIndex) The network interface's position in the attachment order.For example, the first attached network interface has a
DeviceIndexof 0.- Parameters:
deviceIndex- The network interface's position in the attachment order. This parameter is required.- Returns:
this- See Also:
-
enaQueueCount
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder enaQueueCount(Number enaQueueCount) The number of ENA queues created with the instance.- Parameters:
enaQueueCount- The number of ENA queues created with the instance. This parameter is required.- Returns:
this- See Also:
-
enaSrdSpecification
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder enaSrdSpecification(IResolvable enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.- Parameters:
enaSrdSpecification- Configures ENA Express for the network interface that this action attaches to the instance. This parameter is required.- Returns:
this- See Also:
-
enaSrdSpecification
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder enaSrdSpecification(CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty enaSrdSpecification) Configures ENA Express for the network interface that this action attaches to the instance.- Parameters:
enaSrdSpecification- Configures ENA Express for the network interface that this action attaches to the instance. This parameter is required.- Returns:
this- See Also:
-
instanceId
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder instanceId(String instanceId) The ID of the instance to which you will attach the ENI.- Parameters:
instanceId- The ID of the instance to which you will attach the ENI. This parameter is required.- Returns:
this- See Also:
-
networkInterfaceId
@Stability(Stable) public CfnNetworkInterfaceAttachmentPropsMixin.Builder networkInterfaceId(String networkInterfaceId) The ID of the ENI that you want to attach.- Parameters:
networkInterfaceId- The ID of the ENI that you want to attach. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInterfaceAttachmentPropsMixin>- Returns:
- a newly built instance of
CfnNetworkInterfaceAttachmentPropsMixin.
-