Class CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty>
- Enclosing interface:
CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty
@Stability(Stable)
public static final class CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty>
A builder for
CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress(Boolean associatePublicIpAddress) associatePublicIpAddress(IResolvable associatePublicIpAddress) build()Builds the configured instance.deleteOnTermination(Boolean deleteOnTermination) deleteOnTermination(IResolvable deleteOnTermination) description(String description) deviceIndex(Number deviceIndex) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getGroups()interfaceType(String interfaceType) ipv6AddressCount(Number ipv6AddressCount) ipv6Addresses(List<? extends Object> ipv6Addresses) ipv6Addresses(IResolvable ipv6Addresses) networkCardIndex(Number networkCardIndex) networkInterfaceId(String networkInterfaceId) privateIpAddress(String privateIpAddress) privateIpAddresses(List<? extends Object> privateIpAddresses) privateIpAddresses(IResolvable privateIpAddresses) secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatePublicIpAddress
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getAssociatePublicIpAddress()- Parameters:
associatePublicIpAddress- the value to be set.- Returns:
this
-
associatePublicIpAddress
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder associatePublicIpAddress(IResolvable associatePublicIpAddress) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getAssociatePublicIpAddress()- Parameters:
associatePublicIpAddress- the value to be set.- Returns:
this
-
deleteOnTermination
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder deleteOnTermination(Boolean deleteOnTermination) - Parameters:
deleteOnTermination- the value to be set.- Returns:
this
-
deleteOnTermination
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder deleteOnTermination(IResolvable deleteOnTermination) - Parameters:
deleteOnTermination- the value to be set.- Returns:
this
-
description
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder description(String description) - Parameters:
description- the value to be set.- Returns:
this
-
deviceIndex
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder deviceIndex(Number deviceIndex) - Parameters:
deviceIndex- the value to be set.- Returns:
this
-
groups
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder groups(List<String> groups) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getGroups()- Parameters:
groups- the value to be set.- Returns:
this
-
interfaceType
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder interfaceType(String interfaceType) - Parameters:
interfaceType- the value to be set.- Returns:
this
-
ipv6AddressCount
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder ipv6AddressCount(Number ipv6AddressCount) - Parameters:
ipv6AddressCount- the value to be set.- Returns:
this
-
ipv6Addresses
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder ipv6Addresses(IResolvable ipv6Addresses) - Parameters:
ipv6Addresses- the value to be set.- Returns:
this
-
ipv6Addresses
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder ipv6Addresses(List<? extends Object> ipv6Addresses) - Parameters:
ipv6Addresses- the value to be set.- Returns:
this
-
networkCardIndex
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder networkCardIndex(Number networkCardIndex) - Parameters:
networkCardIndex- the value to be set.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder networkInterfaceId(String networkInterfaceId) - Parameters:
networkInterfaceId- the value to be set.- Returns:
this
-
privateIpAddress
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder privateIpAddress(String privateIpAddress) - Parameters:
privateIpAddress- the value to be set.- Returns:
this
-
privateIpAddresses
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder privateIpAddresses(IResolvable privateIpAddresses) - Parameters:
privateIpAddresses- the value to be set.- Returns:
this
-
privateIpAddresses
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder privateIpAddresses(List<? extends Object> privateIpAddresses) - Parameters:
privateIpAddresses- the value to be set.- Returns:
this
-
secondaryPrivateIpAddressCount
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getSecondaryPrivateIpAddressCount()- Parameters:
secondaryPrivateIpAddressCount- the value to be set.- Returns:
this
-
subnetId
@Stability(Stable) public CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.Builder subnetId(String subnetId) Sets the value ofCfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty.getSubnetId()- Parameters:
subnetId- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty>- Returns:
- a new instance of
CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-