com.aliyun.sdk.service.ecs20140526.models.CreateNatGatewayRequest 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 CreateNatGatewayRequest} extends {@link RequestModel}
*
* CreateNatGatewayRequest
*/
public class CreateNatGatewayRequest extends Request {
@Query
@NameInMap("BandwidthPackage")
@Validation(required = true)
private java.util.List < BandwidthPackage> bandwidthPackage;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("Name")
private String name;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("RegionId")
@Validation(required = true)
private String regionId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("VpcId")
@Validation(required = true)
private String vpcId;
private CreateNatGatewayRequest(Builder builder) {
super(builder);
this.bandwidthPackage = builder.bandwidthPackage;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNatGatewayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bandwidthPackage
*/
public java.util.List < BandwidthPackage> getBandwidthPackage() {
return this.bandwidthPackage;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder {
private java.util.List < BandwidthPackage> bandwidthPackage;
private String clientToken;
private String description;
private String name;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateNatGatewayRequest request) {
super(request);
this.bandwidthPackage = request.bandwidthPackage;
this.clientToken = request.clientToken;
this.description = request.description;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpcId = request.vpcId;
}
/**
* BandwidthPackage.
*/
public Builder bandwidthPackage(java.util.List < BandwidthPackage> bandwidthPackage) {
this.putQueryParameter("BandwidthPackage", bandwidthPackage);
this.bandwidthPackage = bandwidthPackage;
return this;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
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;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
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;
}
/**
* VpcId.
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateNatGatewayRequest build() {
return new CreateNatGatewayRequest(this);
}
}
public static class BandwidthPackage extends TeaModel {
@NameInMap("Bandwidth")
private Integer bandwidth;
@NameInMap("IpCount")
private Integer ipCount;
@NameInMap("Zone")
private String zone;
private BandwidthPackage(Builder builder) {
this.bandwidth = builder.bandwidth;
this.ipCount = builder.ipCount;
this.zone = builder.zone;
}
public static Builder builder() {
return new Builder();
}
public static BandwidthPackage create() {
return builder().build();
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return ipCount
*/
public Integer getIpCount() {
return this.ipCount;
}
/**
* @return zone
*/
public String getZone() {
return this.zone;
}
public static final class Builder {
private Integer bandwidth;
private Integer ipCount;
private String zone;
/**
* Bandwidth.
*/
public Builder bandwidth(Integer bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* IpCount.
*/
public Builder ipCount(Integer ipCount) {
this.ipCount = ipCount;
return this;
}
/**
* Zone.
*/
public Builder zone(String zone) {
this.zone = zone;
return this;
}
public BandwidthPackage build() {
return new BandwidthPackage(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy