public static final class CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnNetworkInterface.PrivateIpAddressSpecificationProperty |
build()
Builds the configured instance.
|
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder |
primary(java.lang.Boolean primary)
Sets the value of
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.getPrimary() |
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder |
primary(IResolvable primary)
Sets the value of
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.getPrimary() |
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder |
privateIpAddress(java.lang.String privateIpAddress)
|
public CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder primary(java.lang.Boolean primary)
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.getPrimary()
primary
- Sets the private IP address as the primary private address. This parameter is required.
You can set only one primary private IP address. If you don't specify a primary private IP address, Amazon EC2 automatically assigns a primary private IP address.this
public CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder primary(IResolvable primary)
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.getPrimary()
primary
- Sets the private IP address as the primary private address. This parameter is required.
You can set only one primary private IP address. If you don't specify a primary private IP address, Amazon EC2 automatically assigns a primary private IP address.this
public CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder privateIpAddress(java.lang.String privateIpAddress)
privateIpAddress
- The private IP address of the network interface. This parameter is required.this
public CfnNetworkInterface.PrivateIpAddressSpecificationProperty build()
CfnNetworkInterface.PrivateIpAddressSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided