Interface CfnInstance.PrivateIpAddressSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.PrivateIpAddressSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnInstance
@Stability(Stable)
public static interface CfnInstance.PrivateIpAddressSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.PrivateIpAddressSpecificationPropertystatic final classAn implementation forCfnInstance.PrivateIpAddressSpecificationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Indicates whether the private IPv4 address is the primary private IPv4 address.The private IPv4 address.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPrimary
Indicates whether the private IPv4 address is the primary private IPv4 address.Only one IPv4 address can be designated as primary.
Returns union: either
BooleanorIResolvable- See Also:
-
getPrivateIpAddress
The private IPv4 address.- See Also:
-
builder
-