public class CreateAndAttachNetworkInterfaceRequest extends AbstractModel
Constructor and Description |
---|
CreateAndAttachNetworkInterfaceRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getInstanceId()
Get The CVM instance ID.
|
String |
getNetworkInterfaceDescription()
Get The ENI description.
|
String |
getNetworkInterfaceName()
Get The name of the ENI.
|
PrivateIpAddressSpecification[] |
getPrivateIpAddresses()
Get The information of the specified private IPs.
|
Long |
getSecondaryPrivateIpAddressCount()
Get The number of private IP addresses you can apply for.
|
String[] |
getSecurityGroupIds()
Get The security group to be bound with, such as ['sg-1dd51d'].
|
String |
getSubnetId()
Get The subnet instance ID of the ENI, such as 'subnet-0ap8nwca'.
|
Tag[] |
getTags()
Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
String |
getVpcId()
Get The ID of the VPC instance.
|
void |
setInstanceId(String InstanceId)
Set The CVM instance ID.
|
void |
setNetworkInterfaceDescription(String NetworkInterfaceDescription)
Set The ENI description.
|
void |
setNetworkInterfaceName(String NetworkInterfaceName)
Set The name of the ENI.
|
void |
setPrivateIpAddresses(PrivateIpAddressSpecification[] PrivateIpAddresses)
Set The information of the specified private IPs.
|
void |
setSecondaryPrivateIpAddressCount(Long SecondaryPrivateIpAddressCount)
Set The number of private IP addresses you can apply for.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set The security group to be bound with, such as ['sg-1dd51d'].
|
void |
setSubnetId(String SubnetId)
Set The subnet instance ID of the ENI, such as 'subnet-0ap8nwca'.
|
void |
setTags(Tag[] Tags)
Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
void |
setVpcId(String VpcId)
Set The ID of the VPC instance.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateAndAttachNetworkInterfaceRequest()
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- The ID of the VPC instance. You can obtain the parameter value from the `VpcId` field in the returned result of the `DescribeVpcs` API.public String getNetworkInterfaceName()
public void setNetworkInterfaceName(String NetworkInterfaceName)
NetworkInterfaceName
- The name of the ENI. The maximum length is 60 bytes.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- The subnet instance ID of the ENI, such as 'subnet-0ap8nwca'.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- The CVM instance ID.public PrivateIpAddressSpecification[] getPrivateIpAddresses()
public void setPrivateIpAddresses(PrivateIpAddressSpecification[] PrivateIpAddresses)
PrivateIpAddresses
- The information of the specified private IPs. You can specify a maximum of 10 IPs each time.public Long getSecondaryPrivateIpAddressCount()
public void setSecondaryPrivateIpAddressCount(Long SecondaryPrivateIpAddressCount)
SecondaryPrivateIpAddressCount
- The number of private IP addresses you can apply for. The total number of private IP addresses cannot exceed the quota.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- The security group to be bound with, such as ['sg-1dd51d'].public String getNetworkInterfaceDescription()
public void setNetworkInterfaceDescription(String NetworkInterfaceDescription)
NetworkInterfaceDescription
- The ENI description. You can enter any information within 60 characters.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Bound tags, such as [{"Key": "city", "Value": "shanghai"}].Copyright © 2020. All rights reserved.