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 ID of the vSwitch.
|
构造器和说明 |
---|
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.
This parameter is required.
example:i-bp1iudwa5b1tqag1****
@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 value of
PrivateIpAddress
depends on the value ofVSwitchId
. 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.
example:172.17.**.**
@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.
VpcId
parameter.sg-o6w9l8bc8dgmkw87****
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch.
VpcId
parameter is not specified, the new vSwitch must belong to the same zone and VPC as the current vSwitch.VpcId
parameter is specified, the vSwitch specified by this parameter must belong to the specified VPC and the same zone as the current vSwitch.This parameter is required.
example:vsw-bp1s5fnvk4gn3tw12****
@NameInMap(value="VpcId") public String vpcId
The ID of the new VPC.
example:vpc-bp1vwnn14rqpyiczj****
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 © 2024. All rights reserved.