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

com.aliyun.sdk.service.ecs20140526.models.CreateNatGatewayRequest 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 CreateNatGatewayRequest} extends {@link RequestModel}
 *
 * 

CreateNatGatewayRequest

*/ public class CreateNatGatewayRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackage") @com.aliyun.core.annotation.Validation(required = true) private java.util.List < BandwidthPackage> bandwidthPackage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @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("VpcId") @com.aliyun.core.annotation.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 { @com.aliyun.core.annotation.NameInMap("Bandwidth") private Integer bandwidth; @com.aliyun.core.annotation.NameInMap("IpCount") private Integer ipCount; @com.aliyun.core.annotation.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