@Stability(value=Stable)
public static interface CfnNetworkInterface.PrivateIpAddressSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder
|
static class |
CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Jsii$Proxy
An implementation for
CfnNetworkInterface.PrivateIpAddressSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder |
builder() |
Object |
getPrimary()
Sets the private IP address as the primary private address.
|
String |
getPrivateIpAddress()
The private IP address of the network interface.
|
@Stability(value=Stable) @NotNull Object getPrimary()
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.
@Stability(value=Stable) @NotNull String getPrivateIpAddress()
@Stability(value=Stable) static CfnNetworkInterface.PrivateIpAddressSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.