com.aliyun.sdk.service.ecs20140526.models.AllocatePublicIpAddressRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AllocatePublicIpAddressRequest} extends {@link RequestModel}
*
* AllocatePublicIpAddressRequest
*/
public class AllocatePublicIpAddressRequest extends Request {
@Host
@NameInMap("SourceRegionId")
private String sourceRegionId;
@Query
@NameInMap("InstanceId")
@Validation(required = true)
private String instanceId;
@Query
@NameInMap("IpAddress")
private String ipAddress;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("VlanId")
private String vlanId;
private AllocatePublicIpAddressRequest(Builder builder) {
super(builder);
this.sourceRegionId = builder.sourceRegionId;
this.instanceId = builder.instanceId;
this.ipAddress = builder.ipAddress;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vlanId = builder.vlanId;
}
public static Builder builder() {
return new Builder();
}
public static AllocatePublicIpAddressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return sourceRegionId
*/
public String getSourceRegionId() {
return this.sourceRegionId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vlanId
*/
public String getVlanId() {
return this.vlanId;
}
public static final class Builder extends Request.Builder {
private String sourceRegionId;
private String instanceId;
private String ipAddress;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vlanId;
private Builder() {
super();
}
private Builder(AllocatePublicIpAddressRequest request) {
super(request);
this.sourceRegionId = request.sourceRegionId;
this.instanceId = request.instanceId;
this.ipAddress = request.ipAddress;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vlanId = request.vlanId;
}
/**
* SourceRegionId.
*/
public Builder sourceRegionId(String sourceRegionId) {
this.putHostParameter("SourceRegionId", sourceRegionId);
this.sourceRegionId = sourceRegionId;
return this;
}
/**
* The ID of the instance to which you want to assign a public IP address.
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The public IP address. If you leave this parameter empty, the system randomly assigns a public IP address to the instance.
*/
public Builder ipAddress(String ipAddress) {
this.putQueryParameter("IpAddress", ipAddress);
this.ipAddress = ipAddress;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* The virtual LAN (VLAN) ID of the instance.
*
*
* > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters.
*/
public Builder vlanId(String vlanId) {
this.putQueryParameter("VlanId", vlanId);
this.vlanId = vlanId;
return this;
}
@Override
public AllocatePublicIpAddressRequest build() {
return new AllocatePublicIpAddressRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy