All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.AllocatePublicIpAddressRequest Maven / Gradle / Ivy

There is a newer version: 5.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

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 { @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("SourceRegionId") private String sourceRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpAddress") private String ipAddress; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.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.

*

This parameter is required.

* * example: *

i-bp1gtjxuuvwj17zr****

*/ 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.

* * example: *

112.124.**.**

*/ 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.

*
* * example: *

720

*/ 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