EIPAssociationProps
Properties for defining a EIPAssociation
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-eipassociation
Initializer
import com.aliyun.ros.cdk.vpc.EIPAssociationProps;
EIPAssociationProps.builder()
.allocationId(java.lang.String)
.allocationId(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
// .mode(java.lang.String)
// .mode(IResolvable)
// .privateIpAddress(java.lang.String)
// .privateIpAddress(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
allocationId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property allocationId: EIP instance id to bind. |
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: ECS\/SLB\/NAT\/HaVip\/ENI instance id to bid the EIP. |
mode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property mode: The mode of association. |
privateIpAddress |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property privateIpAddress: An IP address in the CIDR block of the VSwitch. |
allocationId
Required
public java.lang.Object getAllocationId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property allocationId: EIP instance id to bind.
instanceId
Required
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: ECS\/SLB\/NAT\/HaVip\/ENI instance id to bid the EIP.
mode
Optional
public java.lang.Object getMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mode: The mode of association.
Valid values: NAT(Default): NAT mode. BINDED: Cut-through mode. MULTI_BINDED: Multi-EIP to ENI mode. This is required only when the value of InstanceType is NetworkInterface.
privateIpAddress
Optional
public java.lang.Object getPrivateIpAddress();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateIpAddress: An IP address in the CIDR block of the VSwitch.
If you leave the option empty, the system allocates a private IP address according to the VPC ID and VSwitch ID.