public class AssignPrivateIpAddressesRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
List<String> |
ipv4Prefix
The IPv4 prefixes to assign to the ENI.
|
Integer |
ipv4PrefixCount
The number of IPv4 prefixes to be randomly generated for the ENI.
|
String |
networkInterfaceId
The ID of the ENI.
|
String |
ownerAccount |
Long |
ownerId |
List<String> |
privateIpAddress
Secondary private IP address N to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI.
|
String |
regionId
The region ID of the ENI.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
secondaryPrivateIpAddressCount
The number of private IP addresses to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI.
|
构造器和说明 |
---|
AssignPrivateIpAddressesRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Ipv4Prefix") public List<String> ipv4Prefix
The IPv4 prefixes to assign to the ENI. Valid values of N: 1 to 10.
To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
@NameInMap(value="Ipv4PrefixCount") public Integer ipv4PrefixCount
The number of IPv4 prefixes to be randomly generated for the ENI. Valid values: 1 to 10.
example:To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
hide
@NameInMap(value="NetworkInterfaceId") public String networkInterfaceId
The ID of the ENI.
This parameter is required.
example:eni-bp67acfmxazb4p****
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PrivateIpAddress") public List<String> privateIpAddress
Secondary private IP address N to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI. Valid values of N:
Available
) state, the valid values of N are 1 to 50.InUse
) state, the valid values of N are subject to the instance type. For more information, see Overview of instance families.To assign secondary private IP addresses to the ENI, you must specify PrivateIpAddress.N
or SecondaryPrivateIpAddressCount
but not both.
10.1.**.**
@NameInMap(value="RegionId") public String regionId
The region ID of the ENI. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecondaryPrivateIpAddressCount") public Integer 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.
1
public static AssignPrivateIpAddressesRequest build(Map<String,?> map) throws Exception
Exception
public AssignPrivateIpAddressesRequest setClientToken(String clientToken)
public String getClientToken()
public AssignPrivateIpAddressesRequest setIpv4Prefix(List<String> ipv4Prefix)
public AssignPrivateIpAddressesRequest setIpv4PrefixCount(Integer ipv4PrefixCount)
public Integer getIpv4PrefixCount()
public AssignPrivateIpAddressesRequest setNetworkInterfaceId(String networkInterfaceId)
public String getNetworkInterfaceId()
public AssignPrivateIpAddressesRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public AssignPrivateIpAddressesRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AssignPrivateIpAddressesRequest setPrivateIpAddress(List<String> privateIpAddress)
public AssignPrivateIpAddressesRequest setRegionId(String regionId)
public String getRegionId()
public AssignPrivateIpAddressesRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AssignPrivateIpAddressesRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AssignPrivateIpAddressesRequest setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
public Integer getSecondaryPrivateIpAddressCount()
Copyright © 2024. All rights reserved.