public static final class ModifyInstanceVpcAttributeRequest.Builder extends Object
public ModifyInstanceVpcAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyInstanceVpcAttributeRequest.Builder instanceId(String instanceId)
public ModifyInstanceVpcAttributeRequest.Builder ownerAccount(String ownerAccount)
public ModifyInstanceVpcAttributeRequest.Builder ownerId(Long ownerId)
public ModifyInstanceVpcAttributeRequest.Builder privateIpAddress(String privateIpAddress)
> The value of `PrivateIpAddress` depends on the value of `VSwitchId`. 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.
public ModifyInstanceVpcAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyInstanceVpcAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyInstanceVpcAttributeRequest.Builder securityGroupId(List<String> securityGroupId)
* 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.
public ModifyInstanceVpcAttributeRequest.Builder vSwitchId(String vSwitchId)
* 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 the same zone as the current vSwitch.
public ModifyInstanceVpcAttributeRequest.Builder vpcId(String vpcId)
public ModifyInstanceVpcAttributeRequest build()
Copyright © 2024. All rights reserved.