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

com.aliyun.sdk.service.ens20171110.models.CreateNatGatewayRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
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("EnsRegionId") @com.aliyun.core.annotation.Validation(required = true) private String ensRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 1) private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkId") @com.aliyun.core.annotation.Validation(required = true) private String networkId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") @com.aliyun.core.annotation.Validation(required = true) private String vSwitchId; private CreateNatGatewayRequest(Builder builder) { super(builder); this.ensRegionId = builder.ensRegionId; this.instanceType = builder.instanceType; this.name = builder.name; this.networkId = builder.networkId; this.tag = builder.tag; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static CreateNatGatewayRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ensRegionId */ public String getEnsRegionId() { return this.ensRegionId; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return name */ public String getName() { return this.name; } /** * @return networkId */ public String getNetworkId() { return this.networkId; } /** * @return tag */ public java.util.List getTag() { return this.tag; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder extends Request.Builder { private String ensRegionId; private String instanceType; private String name; private String networkId; private java.util.List tag; private String vSwitchId; private Builder() { super(); } private Builder(CreateNatGatewayRequest request) { super(request); this.ensRegionId = request.ensRegionId; this.instanceType = request.instanceType; this.name = request.name; this.networkId = request.networkId; this.tag = request.tag; this.vSwitchId = request.vSwitchId; } /** *

The ID of the Edge Node Service (ENS) node.

*

This parameter is required.

* * example: *

cn-suzhou-telecom

*/ public Builder ensRegionId(String ensRegionId) { this.putQueryParameter("EnsRegionId", ensRegionId); this.ensRegionId = ensRegionId; return this; } /** *

The instance type of the NAT gateway. Set the value to enat.default.

* * example: *

enat.default

*/ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** *

The name of the NAT gateway. The name must be 1 to 128 characters in length. The name cannot start with http:// or https://.

* * example: *

name

*/ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** *

The ID of the network.

*

This parameter is required.

* * example: *

n-5qj7ykuxmjn7k96l090sp****

*/ public Builder networkId(String networkId) { this.putQueryParameter("NetworkId", networkId); this.networkId = networkId; return this; } /** * Tag. */ public Builder tag(java.util.List tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** *

The ID of the vSwitch.

*

This parameter is required.

* * example: *

vsw-5savh5ngxh8sbj14bu7n****

*/ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } @Override public CreateNatGatewayRequest build() { return new CreateNatGatewayRequest(this); } } /** * * {@link CreateNatGatewayRequest} extends {@link TeaModel} * *

CreateNatGatewayRequest

*/ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy