Interface CfnNetworkInterface.PrivateIpAddressSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnNetworkInterface
@Stability(Stable)
public static interface CfnNetworkInterface.PrivateIpAddressSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Describes a secondary private IPv4 address for a network interface.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; PrivateIpAddressSpecificationProperty privateIpAddressSpecificationProperty = PrivateIpAddressSpecificationProperty.builder() .primary(false) .privateIpAddress("privateIpAddress") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnNetworkInterface.PrivateIpAddressSpecificationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Sets the private IP address as the primary private address.The private IP address of the network interface.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPrimary
Sets the private IP address as the primary private address.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.
- See Also:
-
getPrivateIpAddress
The private IP address of the network interface.- See Also:
-
builder
@Stability(Stable) static CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder builder()
-