Skip to content

AssignPrivateIpAddressesProps

Properties for defining a AssignPrivateIpAddresses.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-assignprivateipaddresses

Initializer

import com.aliyun.ros.cdk.ecs.AssignPrivateIpAddressesProps;
AssignPrivateIpAddressesProps.builder()
    .networkInterfaceId(java.lang.String)
    .networkInterfaceId(IResolvable)
//  .ipv4PrefixCount(java.lang.Number)
//  .ipv4PrefixCount(IResolvable)
//  .ipv4Prefixes(java.util.List<java.lang.Object>)
//  .ipv4Prefixes(IResolvable)
//  .privateIpAddresses(java.util.List<java.lang.Object>)
//  .privateIpAddresses(IResolvable)
//  .secondaryPrivateIpAddressCount(java.lang.Number)
//  .secondaryPrivateIpAddressCount(IResolvable)
    .build();

Properties

Name Type Description
networkInterfaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property networkInterfaceId: The ID of the ENI.
ipv4PrefixCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property ipv4PrefixCount: The number of IPv4 prefixes to be randomly generated for the ENI.
ipv4Prefixes java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property ipv4Prefixes: One or multiple IPv4 prefixes to be assigned to the ENI.
privateIpAddresses java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property privateIpAddresses: One or multiple secondary private IP addresses selected from the CIDR block of the VSwitch that hosts the ENI.
secondaryPrivateIpAddressCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property secondaryPrivateIpAddressCount: The number of private IP addresses to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI.

networkInterfaceIdRequired

public java.lang.Object getNetworkInterfaceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property networkInterfaceId: The ID of the ENI.


ipv4PrefixCountOptional

public java.lang.Object getIpv4PrefixCount();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property ipv4PrefixCount: The number of IPv4 prefixes to be randomly generated for the ENI.

Valid values: 1 to 10.

To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.


ipv4PrefixesOptional

public java.lang.Object getIpv4Prefixes();
  • Type: java.util.List OR com.aliyun.ros.cdk.core.IResolvable

Property ipv4Prefixes: One or multiple IPv4 prefixes to be assigned to the ENI.


privateIpAddressesOptional

public java.lang.Object getPrivateIpAddresses();
  • Type: java.util.List OR com.aliyun.ros.cdk.core.IResolvable

Property privateIpAddresses: One or multiple secondary private IP addresses selected from the CIDR block of the VSwitch that hosts the ENI.

Valid values of number of private ip addresses: When the ENI is in the Available state: 1 to 10. When the ENI is in the InUse state: limited by the instance type. For more information, see Instance type families. You must specify either the PrivateIpAddresses parameter or the SecondaryPrivateIpAddressCount parameter to assign secondary private IP addresses.


secondaryPrivateIpAddressCountOptional

public java.lang.Object getSecondaryPrivateIpAddressCount();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property secondaryPrivateIpAddressCount: The number of private IP addresses to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI.

To assign secondary private IP addresses to the ENI, you must specify PrivateIpAddress.N or SecondaryPrivateIpAddressCount but not both.