public class ModifyInstanceVpcAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
instanceId
The ID of the instance.
|
String |
ownerAccount |
Long |
ownerId |
String |
privateIpAddress
The new private IP address of the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<String> |
securityGroupId
The ID of security group N to which the instance belongs after the VPC is changed.
|
String |
vpcId
The ID of the new VPC.
|
String |
vSwitchId
The vSwitch ID of the instance.
|
构造器和说明 |
---|
ModifyInstanceVpcAttributeRequest() |
限定符和类型 | 方法和说明 |
---|---|
static ModifyInstanceVpcAttributeRequest |
build(Map<String,?> map) |
String |
getInstanceId() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getPrivateIpAddress() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
List<String> |
getSecurityGroupId() |
String |
getVpcId() |
String |
getVSwitchId() |
ModifyInstanceVpcAttributeRequest |
setInstanceId(String instanceId) |
ModifyInstanceVpcAttributeRequest |
setOwnerAccount(String ownerAccount) |
ModifyInstanceVpcAttributeRequest |
setOwnerId(Long ownerId) |
ModifyInstanceVpcAttributeRequest |
setPrivateIpAddress(String privateIpAddress) |
ModifyInstanceVpcAttributeRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
ModifyInstanceVpcAttributeRequest |
setResourceOwnerId(Long resourceOwnerId) |
ModifyInstanceVpcAttributeRequest |
setSecurityGroupId(List<String> securityGroupId) |
ModifyInstanceVpcAttributeRequest |
setVpcId(String vpcId) |
ModifyInstanceVpcAttributeRequest |
setVSwitchId(String vSwitchId) |
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PrivateIpAddress") public String privateIpAddress
The new private IP address of the instance.
> The `PrivateIpAddress` value depends on the `VSwitchId` value. The specified IP address must be within the CIDR block of the specified vSwitch.
By default, if this parameter is not specified, a private IP address is randomly assigned from the CIDR block of the specified vSwitch.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupId") public List<String> securityGroupId
The ID of security group N to which the instance belongs after the VPC is changed. This parameter is required only when the `VpcId` parameter is specified.
* The specified security groups must be of the same type.
* You can specify one or more security groups. The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see [Limits](~~25412~~).
* The specified security groups must belong to the VPC specified by the `VpcId` parameter.
@NameInMap(value="VSwitchId") public String vSwitchId
The vSwitch ID of the instance.
* If this parameter is set to the ID of the current vSwitch, the vSwitch of the instance remains unchanged.
* If this parameter is set to the ID of a different vSwitch and the `VpcId` parameter is not specified, the new vSwitch must belong to the same zone and VPC as the current vSwitch.
* If the `VpcId` parameter is specified, the vSwitch specified by this parameter must belong to the specified VPC and to the same zone as the current vSwitch.
@NameInMap(value="VpcId") public String vpcId
The ID of the new VPC.
public static ModifyInstanceVpcAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceVpcAttributeRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceVpcAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyInstanceVpcAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceVpcAttributeRequest setPrivateIpAddress(String privateIpAddress)
public String getPrivateIpAddress()
public ModifyInstanceVpcAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceVpcAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyInstanceVpcAttributeRequest setSecurityGroupId(List<String> securityGroupId)
public ModifyInstanceVpcAttributeRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public ModifyInstanceVpcAttributeRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2023. All rights reserved.