index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateIpv6EgressOnlyRuleRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateIpv6EgressOnlyRuleRequest} extends {@link RequestModel}
*
* <p>CreateIpv6EgressOnlyRuleRequest</p>
*/
public class CreateIpv6EgressOnlyRuleRequest extends Request {
@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("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String ipv6GatewayId;
@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;
private CreateIpv6EgressOnlyRuleRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.description = builder.description;
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.ipv6GatewayId = builder.ipv6GatewayId;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateIpv6EgressOnlyRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<CreateIpv6EgressOnlyRuleRequest, Builder> {
private String clientToken;
private String description;
private String instanceId;
private String instanceType;
private String ipv6GatewayId;
private String name;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateIpv6EgressOnlyRuleRequest request) {
super(request);
this.clientToken = request.clientToken;
this.description = request.description;
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
this.ipv6GatewayId = request.ipv6GatewayId;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate a token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the value of RequestId as the client token. The value of RequestId is different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the egress-only rule.</p>
* <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>ruledescription</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The ID of the IPv6 address for which you want to create an egress-only rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv6-hp3nxjkfxn5pnhgl5****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the instance for which you want to create an egress-only rule.</p>
* <p>Default value: <strong>Ipv6Address</strong></p>
*
* <strong>example:</strong>
* <p>Ipv6Address</p>
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
return this;
}
/**
* <p>The ID of the IPv6 gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-hp3c2paq0ywauasza****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.putQueryParameter("Ipv6GatewayId", ipv6GatewayId);
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The name of the egress-only rule.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>rulename</p>
*/
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;
}
/**
* <p>The ID of the region in which the IPv6 gateway is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
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;
}
@Override
public CreateIpv6EgressOnlyRuleRequest build() {
return new CreateIpv6EgressOnlyRuleRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateIpv6EgressOnlyRuleResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateIpv6EgressOnlyRuleResponse} extends {@link TeaModel}
*
* <p>CreateIpv6EgressOnlyRuleResponse</p>
*/
public class CreateIpv6EgressOnlyRuleResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateIpv6EgressOnlyRuleResponseBody body;
private CreateIpv6EgressOnlyRuleResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateIpv6EgressOnlyRuleResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateIpv6EgressOnlyRuleResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateIpv6EgressOnlyRuleResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateIpv6EgressOnlyRuleResponseBody body);
@Override
CreateIpv6EgressOnlyRuleResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateIpv6EgressOnlyRuleResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateIpv6EgressOnlyRuleResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateIpv6EgressOnlyRuleResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateIpv6EgressOnlyRuleResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateIpv6EgressOnlyRuleResponse build() {
return new CreateIpv6EgressOnlyRuleResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateIpv6EgressOnlyRuleResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateIpv6EgressOnlyRuleResponseBody} extends {@link TeaModel}
*
* <p>CreateIpv6EgressOnlyRuleResponseBody</p>
*/
public class CreateIpv6EgressOnlyRuleResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6EgressRuleId")
private String ipv6EgressRuleId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateIpv6EgressOnlyRuleResponseBody(Builder builder) {
this.ipv6EgressRuleId = builder.ipv6EgressRuleId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateIpv6EgressOnlyRuleResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6EgressRuleId
*/
public String getIpv6EgressRuleId() {
return this.ipv6EgressRuleId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String ipv6EgressRuleId;
private String requestId;
private Builder() {
}
private Builder(CreateIpv6EgressOnlyRuleResponseBody model) {
this.ipv6EgressRuleId = model.ipv6EgressRuleId;
this.requestId = model.requestId;
}
/**
* <p>The ID of the egress-only rule.</p>
*
* <strong>example:</strong>
* <p>ipv6py-hp3w98rmlbqp01245****</p>
*/
public Builder ipv6EgressRuleId(String ipv6EgressRuleId) {
this.ipv6EgressRuleId = ipv6EgressRuleId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateIpv6EgressOnlyRuleResponseBody build() {
return new CreateIpv6EgressOnlyRuleResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateIpv6GatewayRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateIpv6GatewayRequest} extends {@link RequestModel}
*
* <p>CreateIpv6GatewayRequest</p>
*/
public class CreateIpv6GatewayRequest extends Request {
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private CreateIpv6GatewayRequest(Builder builder) {
super(builder);
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.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateIpv6GatewayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<CreateIpv6GatewayRequest, Builder> {
private String clientToken;
private String description;
private String name;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateIpv6GatewayRequest request) {
super(request);
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.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the IPv6 gateway.</p>
* <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>ipv6gatewayforVPC1</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The name of the IPv6 gateway.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>ipv6GW</p>
*/
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;
}
/**
* <p>The region ID of the IPv6 gateway. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-huhehaote</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the VPC in which you want to create the IPv6 gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-123sedrfswd23****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateIpv6GatewayRequest build() {
return new CreateIpv6GatewayRequest(this);
}
}
/**
*
* {@link CreateIpv6GatewayRequest} extends {@link TeaModel}
*
* <p>CreateIpv6GatewayRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateIpv6GatewayResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateIpv6GatewayResponse} extends {@link TeaModel}
*
* <p>CreateIpv6GatewayResponse</p>
*/
public class CreateIpv6GatewayResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateIpv6GatewayResponseBody body;
private CreateIpv6GatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateIpv6GatewayResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateIpv6GatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateIpv6GatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateIpv6GatewayResponseBody body);
@Override
CreateIpv6GatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateIpv6GatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateIpv6GatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateIpv6GatewayResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateIpv6GatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateIpv6GatewayResponse build() {
return new CreateIpv6GatewayResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateIpv6GatewayResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateIpv6GatewayResponseBody} extends {@link TeaModel}
*
* <p>CreateIpv6GatewayResponseBody</p>
*/
public class CreateIpv6GatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv6GatewayId")
private String ipv6GatewayId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private CreateIpv6GatewayResponseBody(Builder builder) {
this.ipv6GatewayId = builder.ipv6GatewayId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CreateIpv6GatewayResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv6GatewayId
*/
public String getIpv6GatewayId() {
return this.ipv6GatewayId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder {
private String ipv6GatewayId;
private String requestId;
private String resourceGroupId;
private Builder() {
}
private Builder(CreateIpv6GatewayResponseBody model) {
this.ipv6GatewayId = model.ipv6GatewayId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
}
/**
* <p>The ID of the IPv6 gateway.</p>
*
* <strong>example:</strong>
* <p>ipv6gw-hp3y0l3ln89j8cdvf****</p>
*/
public Builder ipv6GatewayId(String ipv6GatewayId) {
this.ipv6GatewayId = ipv6GatewayId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the IPv6 gateway belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public CreateIpv6GatewayResponseBody build() {
return new CreateIpv6GatewayResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatGatewayRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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}
*
* <p>CreateNatGatewayRequest</p>
*/
public class CreateNatGatewayRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccessMode")
private AccessMode accessMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@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("Duration")
private String duration;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EipBindMode")
private String eipBindMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IcmpReplyEnabled")
private Boolean icmpReplyEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv4Prefix")
private String ipv4Prefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIp")
private String natIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatType")
private String natType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@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("PricingCycle")
private String pricingCycle;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrivateLinkEnabled")
private Boolean privateLinkEnabled;
@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("SecurityProtectionEnabled")
@Deprecated
private Boolean securityProtectionEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@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.accessMode = builder.accessMode;
this.autoPay = builder.autoPay;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.duration = builder.duration;
this.eipBindMode = builder.eipBindMode;
this.icmpReplyEnabled = builder.icmpReplyEnabled;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.ipv4Prefix = builder.ipv4Prefix;
this.name = builder.name;
this.natIp = builder.natIp;
this.natType = builder.natType;
this.networkType = builder.networkType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pricingCycle = builder.pricingCycle;
this.privateLinkEnabled = builder.privateLinkEnabled;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityProtectionEnabled = builder.securityProtectionEnabled;
this.spec = builder.spec;
this.tag = builder.tag;
this.vSwitchId = builder.vSwitchId;
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 accessMode
*/
public AccessMode getAccessMode() {
return this.accessMode;
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return duration
*/
public String getDuration() {
return this.duration;
}
/**
* @return eipBindMode
*/
public String getEipBindMode() {
return this.eipBindMode;
}
/**
* @return icmpReplyEnabled
*/
public Boolean getIcmpReplyEnabled() {
return this.icmpReplyEnabled;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return ipv4Prefix
*/
public String getIpv4Prefix() {
return this.ipv4Prefix;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return natIp
*/
public String getNatIp() {
return this.natIp;
}
/**
* @return natType
*/
public String getNatType() {
return this.natType;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pricingCycle
*/
public String getPricingCycle() {
return this.pricingCycle;
}
/**
* @return privateLinkEnabled
*/
public Boolean getPrivateLinkEnabled() {
return this.privateLinkEnabled;
}
/**
* @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 securityProtectionEnabled
*/
public Boolean getSecurityProtectionEnabled() {
return this.securityProtectionEnabled;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<CreateNatGatewayRequest, Builder> {
private AccessMode accessMode;
private Boolean autoPay;
private String clientToken;
private String description;
private String duration;
private String eipBindMode;
private Boolean icmpReplyEnabled;
private String instanceChargeType;
private String internetChargeType;
private String ipv4Prefix;
private String name;
private String natIp;
private String natType;
private String networkType;
private String ownerAccount;
private Long ownerId;
private String pricingCycle;
private Boolean privateLinkEnabled;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Boolean securityProtectionEnabled;
private String spec;
private java.util.List<Tag> tag;
private String vSwitchId;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateNatGatewayRequest request) {
super(request);
this.accessMode = request.accessMode;
this.autoPay = request.autoPay;
this.clientToken = request.clientToken;
this.description = request.description;
this.duration = request.duration;
this.eipBindMode = request.eipBindMode;
this.icmpReplyEnabled = request.icmpReplyEnabled;
this.instanceChargeType = request.instanceChargeType;
this.internetChargeType = request.internetChargeType;
this.ipv4Prefix = request.ipv4Prefix;
this.name = request.name;
this.natIp = request.natIp;
this.natType = request.natType;
this.networkType = request.networkType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pricingCycle = request.pricingCycle;
this.privateLinkEnabled = request.privateLinkEnabled;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityProtectionEnabled = request.securityProtectionEnabled;
this.spec = request.spec;
this.tag = request.tag;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
}
/**
* <p>The access mode for reverse access to the VPC NAT gateway.</p>
*/
public Builder accessMode(AccessMode accessMode) {
String accessModeShrink = shrink(accessMode, "AccessMode", "json");
this.putQueryParameter("AccessMode", accessModeShrink);
this.accessMode = accessMode;
return this;
}
/**
* <p>Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>Invalid parameter.</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the NAT gateway.</p>
* <p>You can leave this parameter empty or enter a description. If you enter a description, the description must be 2 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>testnat</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>Invalid parameter.</p>
*/
public Builder duration(String duration) {
this.putQueryParameter("Duration", duration);
this.duration = duration;
return this;
}
/**
* <p>The mode in which the EIP is associated with the NAT gateway. Valid values:</p>
* <ul>
* <li><p><strong>MULTI_BINDED</strong>(default): the multi-EIP-to-ENI mode.</p>
* </li>
* <li><p><strong>NAT</strong>: NAT mode, which is compatible with IPv4 addresses.</p>
* </li>
* </ul>
* <blockquote>
* <p>If an EIP is associated with a NAT gateway in NAT mode, the EIP occupies a private IP address of the vSwitch where the NAT gateway is deployed. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, EIPs cannot be associated with the NAT gateway. In NAT mode, a maximum number of 50 EIPs can be associated with each NAT gateway.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>MULTI_BINDED</p>
*/
public Builder eipBindMode(String eipBindMode) {
this.putQueryParameter("EipBindMode", eipBindMode);
this.eipBindMode = eipBindMode;
return this;
}
/**
* <p>Specifies whether to enable ICMP retrieval. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default)</li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder icmpReplyEnabled(Boolean icmpReplyEnabled) {
this.putQueryParameter("IcmpReplyEnabled", icmpReplyEnabled);
this.icmpReplyEnabled = icmpReplyEnabled;
return this;
}
/**
* <p>The billing method of the NAT gateway.</p>
* <p>Set the value to <strong>PostPaid</strong> (pay-as-you-go), which is the default value.</p>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/48126.html">Internet NAT gateway billing</a> and <a href="https://help.aliyun.com/document_detail/270913.html">VPC NAT gateway billing</a>.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.putQueryParameter("InstanceChargeType", instanceChargeType);
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of the NAT gateway. Set the value to <strong>PayByLcu</strong>, which specifies the pay-by-CU metering method.</p>
*
* <strong>example:</strong>
* <p>PayByLcu</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.putQueryParameter("InternetChargeType", internetChargeType);
this.internetChargeType = internetChargeType;
return this;
}
/**
* Ipv4Prefix.
*/
public Builder ipv4Prefix(String ipv4Prefix) {
this.putQueryParameter("Ipv4Prefix", ipv4Prefix);
this.ipv4Prefix = ipv4Prefix;
return this;
}
/**
* <p>The name of the NAT gateway.</p>
* <p>The name must be 2 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
* <p>If this parameter is not set, the system assigns a default name to the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>fortest</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* NatIp.
*/
public Builder natIp(String natIp) {
this.putQueryParameter("NatIp", natIp);
this.natIp = natIp;
return this;
}
/**
* <p>The type of NAT gateway. Set the value to <strong>Enhanced</strong>, which specifies enhanced NAT gateway.</p>
*
* <strong>example:</strong>
* <p>Enhanced</p>
*/
public Builder natType(String natType) {
this.putQueryParameter("NatType", natType);
this.natType = natType;
return this;
}
/**
* <p>The network type of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>internet</strong>: Internet</li>
* <li><strong>intranet</strong>: VPC</li>
* </ul>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder networkType(String networkType) {
this.putQueryParameter("NetworkType", networkType);
this.networkType = networkType;
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;
}
/**
* <p>Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>Invalid parameter.</p>
*/
public Builder pricingCycle(String pricingCycle) {
this.putQueryParameter("PricingCycle", pricingCycle);
this.pricingCycle = pricingCycle;
return this;
}
/**
* <p>PrivateLink is not supported by default. If you set the value to true, PrivateLink is supported.</p>
*/
public Builder privateLinkEnabled(Boolean privateLinkEnabled) {
this.putQueryParameter("PrivateLinkEnabled", privateLinkEnabled);
this.privateLinkEnabled = privateLinkEnabled;
return this;
}
/**
* <p>The region ID of the NAT gateway.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>Specifies whether to enable the firewall feature. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)>Notice: This parameter is deprecated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder securityProtectionEnabled(Boolean securityProtectionEnabled) {
this.putQueryParameter("SecurityProtectionEnabled", securityProtectionEnabled);
this.securityProtectionEnabled = securityProtectionEnabled;
return this;
}
/**
* <p>Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>Invalid parameter.</p>
*/
public Builder spec(String spec) {
this.putQueryParameter("Spec", spec);
this.spec = spec;
return this;
}
/**
* <p>The tags.</p>
*
* <strong>example:</strong>
* <p>MULTI_BINDED</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the vSwitch to which the NAT gateway is attached.</p>
* <p>When you create a NAT gateway, you must specify a vSwitch for the NAT gateway. Then, the system assigns an idle private IP address from the vSwitch to the NAT gateway.</p>
* <ul>
* <li>To attach the NAT gateway to an existing vSwitch, make sure that the zone to which the vSwitch belongs supports NAT gateways. In addition, the vSwitch must have idle IP addresses.</li>
* <li>If no vSwitch exists in the VPC, create a vSwitch in a zone that supports NAT gateways. Then, specify the vSwitch for the NAT gateway.</li>
* </ul>
* <blockquote>
* <p> You can call the <a href="https://help.aliyun.com/document_detail/182292.html">ListEnhanhcedNatGatewayAvailableZones</a> operation to query zones that support NAT gateways. You can call the <a href="https://help.aliyun.com/document_detail/35748.html">DescribeVSwitches</a> operation to query idle IP addresses in a vSwitch.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-bp1e3se98n9fq8hle****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the VPC where you want to create the NAT gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1di7uewzmtvfuq8****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateNatGatewayRequest build() {
return new CreateNatGatewayRequest(this);
}
}
/**
*
* {@link CreateNatGatewayRequest} extends {@link TeaModel}
*
* <p>CreateNatGatewayRequest</p>
*/
public static class AccessMode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ModeValue")
private String modeValue;
@com.aliyun.core.annotation.NameInMap("TunnelType")
private String tunnelType;
private AccessMode(Builder builder) {
this.modeValue = builder.modeValue;
this.tunnelType = builder.tunnelType;
}
public static Builder builder() {
return new Builder();
}
public static AccessMode create() {
return builder().build();
}
/**
* @return modeValue
*/
public String getModeValue() {
return this.modeValue;
}
/**
* @return tunnelType
*/
public String getTunnelType() {
return this.tunnelType;
}
public static final class Builder {
private String modeValue;
private String tunnelType;
private Builder() {
}
private Builder(AccessMode model) {
this.modeValue = model.modeValue;
this.tunnelType = model.tunnelType;
}
/**
* <p>Access mode. Valid values:</p>
* <ul>
* <li><p><strong>route</strong>: route mode</p>
* </li>
* <li><p><strong>tunnel</strong>: tunnel mode</p>
* </li>
* </ul>
* <blockquote>
* <p>If this parameter is specified, you must set <strong>PrivateLinkEnabled</strong> to <strong>true</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>route</p>
*/
public Builder modeValue(String modeValue) {
this.modeValue = modeValue;
return this;
}
/**
* <p>Tunnel mode type:</p>
* <ul>
* <li><strong>geneve</strong>: Geneve type</li>
* </ul>
* <blockquote>
* <p>This value takes effect if the access mode is the tunnel mode.</p>
* </blockquote>
*/
public Builder tunnelType(String tunnelType) {
this.tunnelType = tunnelType;
return this;
}
public AccessMode build() {
return new AccessMode(this);
}
}
}
/**
*
* {@link CreateNatGatewayRequest} extends {@link TeaModel}
*
* <p>CreateNatGatewayRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. The format of Tag.N.Key when you call the operation. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p>
*
* <strong>example:</strong>
* <p>TestKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. The format of Tag.N.Value when you call the operation. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</p>
*
* <strong>example:</strong>
* <p>TestValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatGatewayResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatGatewayResponse} extends {@link TeaModel}
*
* <p>CreateNatGatewayResponse</p>
*/
public class CreateNatGatewayResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateNatGatewayResponseBody body;
private CreateNatGatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateNatGatewayResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateNatGatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateNatGatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateNatGatewayResponseBody body);
@Override
CreateNatGatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateNatGatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateNatGatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateNatGatewayResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateNatGatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateNatGatewayResponse build() {
return new CreateNatGatewayResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatGatewayResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatGatewayResponseBody} extends {@link TeaModel}
*
* <p>CreateNatGatewayResponseBody</p>
*/
public class CreateNatGatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForwardTableIds")
private ForwardTableIds forwardTableIds;
@com.aliyun.core.annotation.NameInMap("FullNatTableIds")
private FullNatTableIds fullNatTableIds;
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SnatTableIds")
private SnatTableIds snatTableIds;
private CreateNatGatewayResponseBody(Builder builder) {
this.forwardTableIds = builder.forwardTableIds;
this.fullNatTableIds = builder.fullNatTableIds;
this.natGatewayId = builder.natGatewayId;
this.requestId = builder.requestId;
this.snatTableIds = builder.snatTableIds;
}
public static Builder builder() {
return new Builder();
}
public static CreateNatGatewayResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return forwardTableIds
*/
public ForwardTableIds getForwardTableIds() {
return this.forwardTableIds;
}
/**
* @return fullNatTableIds
*/
public FullNatTableIds getFullNatTableIds() {
return this.fullNatTableIds;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return snatTableIds
*/
public SnatTableIds getSnatTableIds() {
return this.snatTableIds;
}
public static final class Builder {
private ForwardTableIds forwardTableIds;
private FullNatTableIds fullNatTableIds;
private String natGatewayId;
private String requestId;
private SnatTableIds snatTableIds;
private Builder() {
}
private Builder(CreateNatGatewayResponseBody model) {
this.forwardTableIds = model.forwardTableIds;
this.fullNatTableIds = model.fullNatTableIds;
this.natGatewayId = model.natGatewayId;
this.requestId = model.requestId;
this.snatTableIds = model.snatTableIds;
}
/**
* <p>A list of DNAT entries.</p>
*/
public Builder forwardTableIds(ForwardTableIds forwardTableIds) {
this.forwardTableIds = forwardTableIds;
return this;
}
/**
* <p>A list of FULLNAT entries.</p>
*/
public Builder fullNatTableIds(FullNatTableIds fullNatTableIds) {
this.fullNatTableIds = fullNatTableIds;
return this;
}
/**
* <p>The ID of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>ngw-112za33e4****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2315DEB7-5E92-423A-91F7-4C1EC9AD97C3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>A list of SNAT entries.</p>
*/
public Builder snatTableIds(SnatTableIds snatTableIds) {
this.snatTableIds = snatTableIds;
return this;
}
public CreateNatGatewayResponseBody build() {
return new CreateNatGatewayResponseBody(this);
}
}
/**
*
* {@link CreateNatGatewayResponseBody} extends {@link TeaModel}
*
* <p>CreateNatGatewayResponseBody</p>
*/
public static class ForwardTableIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForwardTableId")
private java.util.List<String> forwardTableId;
private ForwardTableIds(Builder builder) {
this.forwardTableId = builder.forwardTableId;
}
public static Builder builder() {
return new Builder();
}
public static ForwardTableIds create() {
return builder().build();
}
/**
* @return forwardTableId
*/
public java.util.List<String> getForwardTableId() {
return this.forwardTableId;
}
public static final class Builder {
private java.util.List<String> forwardTableId;
private Builder() {
}
private Builder(ForwardTableIds model) {
this.forwardTableId = model.forwardTableId;
}
/**
* ForwardTableId.
*/
public Builder forwardTableId(java.util.List<String> forwardTableId) {
this.forwardTableId = forwardTableId;
return this;
}
public ForwardTableIds build() {
return new ForwardTableIds(this);
}
}
}
/**
*
* {@link CreateNatGatewayResponseBody} extends {@link TeaModel}
*
* <p>CreateNatGatewayResponseBody</p>
*/
public static class FullNatTableIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FullNatTableId")
private java.util.List<String> fullNatTableId;
private FullNatTableIds(Builder builder) {
this.fullNatTableId = builder.fullNatTableId;
}
public static Builder builder() {
return new Builder();
}
public static FullNatTableIds create() {
return builder().build();
}
/**
* @return fullNatTableId
*/
public java.util.List<String> getFullNatTableId() {
return this.fullNatTableId;
}
public static final class Builder {
private java.util.List<String> fullNatTableId;
private Builder() {
}
private Builder(FullNatTableIds model) {
this.fullNatTableId = model.fullNatTableId;
}
/**
* FullNatTableId.
*/
public Builder fullNatTableId(java.util.List<String> fullNatTableId) {
this.fullNatTableId = fullNatTableId;
return this;
}
public FullNatTableIds build() {
return new FullNatTableIds(this);
}
}
}
/**
*
* {@link CreateNatGatewayResponseBody} extends {@link TeaModel}
*
* <p>CreateNatGatewayResponseBody</p>
*/
public static class SnatTableIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SnatTableId")
private java.util.List<String> snatTableId;
private SnatTableIds(Builder builder) {
this.snatTableId = builder.snatTableId;
}
public static Builder builder() {
return new Builder();
}
public static SnatTableIds create() {
return builder().build();
}
/**
* @return snatTableId
*/
public java.util.List<String> getSnatTableId() {
return this.snatTableId;
}
public static final class Builder {
private java.util.List<String> snatTableId;
private Builder() {
}
private Builder(SnatTableIds model) {
this.snatTableId = model.snatTableId;
}
/**
* SnatTableId.
*/
public Builder snatTableId(java.util.List<String> snatTableId) {
this.snatTableId = snatTableId;
return this;
}
public SnatTableIds build() {
return new SnatTableIds(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatIpCidrRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatIpCidrRequest} extends {@link RequestModel}
*
* <p>CreateNatIpCidrRequest</p>
*/
public class CreateNatIpCidrRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpCidr")
@com.aliyun.core.annotation.Validation(required = true)
private String natIpCidr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpCidrDescription")
private String natIpCidrDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpCidrName")
private String natIpCidrName;
@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;
private CreateNatIpCidrRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.natGatewayId = builder.natGatewayId;
this.natIpCidr = builder.natIpCidr;
this.natIpCidrDescription = builder.natIpCidrDescription;
this.natIpCidrName = builder.natIpCidrName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNatIpCidrRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return natIpCidr
*/
public String getNatIpCidr() {
return this.natIpCidr;
}
/**
* @return natIpCidrDescription
*/
public String getNatIpCidrDescription() {
return this.natIpCidrDescription;
}
/**
* @return natIpCidrName
*/
public String getNatIpCidrName() {
return this.natIpCidrName;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<CreateNatIpCidrRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String natGatewayId;
private String natIpCidr;
private String natIpCidrDescription;
private String natIpCidrName;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateNatIpCidrRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.natGatewayId = request.natGatewayId;
this.natIpCidr = request.natIpCidr;
this.natIpCidrDescription = request.natIpCidrDescription;
this.natIpCidrName = request.natIpCidrName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong>(default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the Virtual Private Cloud (VPC) NAT gateway with which you want to associate the CIDR block.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ngw-gw8v16wgvtq26vh59****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The NAT CIDR block that you want to associate with the NAT gateway.</p>
* <p>The new CIDR block must meet the following conditions:</p>
* <ul>
* <li>The NAT CIDR block must fall within 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or their subnets.</li>
* <li>The subnet mask must be 16 to 32 bits in length.</li>
* <li>The NAT CIDR block cannot overlap with the private CIDR block of the VPC to which the NAT gateway belongs. If you want to use other IP addresses from the private CIDR block of the VPC to provide NAT services, create a vSwitch and attach the vSwitch to another VPC NAT gateway.</li>
* <li>If you want to use public IP addresses to provide NAT services, make sure that the public IP addresses fall within a customer CIDR block of the VPC to which the VPC NAT gateway belongs. For more information, see <a href="https://help.aliyun.com/document_detail/185311.html">What is customer CIDR block?</a>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>172.16.0.0/24</p>
*/
public Builder natIpCidr(String natIpCidr) {
this.putQueryParameter("NatIpCidr", natIpCidr);
this.natIpCidr = natIpCidr;
return this;
}
/**
* <p>The description of the NAT CIDR block.</p>
* <p>The description must be 2 to 256 characters in length and start with a letter. The description cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>mycidr</p>
*/
public Builder natIpCidrDescription(String natIpCidrDescription) {
this.putQueryParameter("NatIpCidrDescription", natIpCidrDescription);
this.natIpCidrDescription = natIpCidrDescription;
return this;
}
/**
* <p>The name of the CIDR block.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>newcidr</p>
*/
public Builder natIpCidrName(String natIpCidrName) {
this.putQueryParameter("NatIpCidrName", natIpCidrName);
this.natIpCidrName = natIpCidrName;
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;
}
/**
* <p>The region ID of the NAT gateway with which you want to associate the CIDR block.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eu-central-1</p>
*/
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;
}
@Override
public CreateNatIpCidrRequest build() {
return new CreateNatIpCidrRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatIpCidrResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatIpCidrResponse} extends {@link TeaModel}
*
* <p>CreateNatIpCidrResponse</p>
*/
public class CreateNatIpCidrResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateNatIpCidrResponseBody body;
private CreateNatIpCidrResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateNatIpCidrResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateNatIpCidrResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateNatIpCidrResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateNatIpCidrResponseBody body);
@Override
CreateNatIpCidrResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateNatIpCidrResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateNatIpCidrResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateNatIpCidrResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateNatIpCidrResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateNatIpCidrResponse build() {
return new CreateNatIpCidrResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatIpCidrResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatIpCidrResponseBody} extends {@link TeaModel}
*
* <p>CreateNatIpCidrResponseBody</p>
*/
public class CreateNatIpCidrResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NatIpCidrId")
private String natIpCidrId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateNatIpCidrResponseBody(Builder builder) {
this.natIpCidrId = builder.natIpCidrId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNatIpCidrResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return natIpCidrId
*/
public String getNatIpCidrId() {
return this.natIpCidrId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String natIpCidrId;
private String requestId;
private Builder() {
}
private Builder(CreateNatIpCidrResponseBody model) {
this.natIpCidrId = model.natIpCidrId;
this.requestId = model.requestId;
}
/**
* <p>The ID of the NAT CIDR block.</p>
*
* <strong>example:</strong>
* <p>vpcnatcidr-gw8lhqtvdn4qnea****</p>
*/
public Builder natIpCidrId(String natIpCidrId) {
this.natIpCidrId = natIpCidrId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>7021BEB1-210F-48A9-AB82-BE9A9110BB89</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateNatIpCidrResponseBody build() {
return new CreateNatIpCidrResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatIpRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatIpRequest} extends {@link RequestModel}
*
* <p>CreateNatIpRequest</p>
*/
public class CreateNatIpRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv4Prefix")
private String ipv4Prefix;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv4PrefixCount")
private Long ipv4PrefixCount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIp")
private String natIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpCidr")
@com.aliyun.core.annotation.Validation(required = true)
private String natIpCidr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpDescription")
private String natIpDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpName")
private String natIpName;
@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;
private CreateNatIpRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ipv4Prefix = builder.ipv4Prefix;
this.ipv4PrefixCount = builder.ipv4PrefixCount;
this.natGatewayId = builder.natGatewayId;
this.natIp = builder.natIp;
this.natIpCidr = builder.natIpCidr;
this.natIpDescription = builder.natIpDescription;
this.natIpName = builder.natIpName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNatIpRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ipv4Prefix
*/
public String getIpv4Prefix() {
return this.ipv4Prefix;
}
/**
* @return ipv4PrefixCount
*/
public Long getIpv4PrefixCount() {
return this.ipv4PrefixCount;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return natIp
*/
public String getNatIp() {
return this.natIp;
}
/**
* @return natIpCidr
*/
public String getNatIpCidr() {
return this.natIpCidr;
}
/**
* @return natIpDescription
*/
public String getNatIpDescription() {
return this.natIpDescription;
}
/**
* @return natIpName
*/
public String getNatIpName() {
return this.natIpName;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<CreateNatIpRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ipv4Prefix;
private Long ipv4PrefixCount;
private String natGatewayId;
private String natIp;
private String natIpCidr;
private String natIpDescription;
private String natIpName;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreateNatIpRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ipv4Prefix = request.ipv4Prefix;
this.ipv4PrefixCount = request.ipv4PrefixCount;
this.natGatewayId = request.natGatewayId;
this.natIp = request.natIp;
this.natIpCidr = request.natIpCidr;
this.natIpDescription = request.natIpDescription;
this.natIpName = request.natIpName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* Ipv4Prefix.
*/
public Builder ipv4Prefix(String ipv4Prefix) {
this.putQueryParameter("Ipv4Prefix", ipv4Prefix);
this.ipv4Prefix = ipv4Prefix;
return this;
}
/**
* Ipv4PrefixCount.
*/
public Builder ipv4PrefixCount(Long ipv4PrefixCount) {
this.putQueryParameter("Ipv4PrefixCount", ipv4PrefixCount);
this.ipv4PrefixCount = ipv4PrefixCount;
return this;
}
/**
* <p>The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ngw-gw8v16wgvtq26vh59****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The NAT IP address that you want to create.</p>
* <p>If you do not specify an IP address, the system randomly allocates an IP address from the specified CIDR block.</p>
*
* <strong>example:</strong>
* <p>192.168.0.34</p>
*/
public Builder natIp(String natIp) {
this.putQueryParameter("NatIp", natIp);
this.natIp = natIp;
return this;
}
/**
* <p>The CIDR block to which the NAT IP address belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/24</p>
*/
public Builder natIpCidr(String natIpCidr) {
this.putQueryParameter("NatIpCidr", natIpCidr);
this.natIpCidr = natIpCidr;
return this;
}
/**
* <p>The description of the NAT IP address.</p>
* <p>The description must be 2 to 256 characters in length and start with a letter. The description cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder natIpDescription(String natIpDescription) {
this.putQueryParameter("NatIpDescription", natIpDescription);
this.natIpDescription = natIpDescription;
return this;
}
/**
* <p>The name of the NAT IP address.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>newnatip</p>
*/
public Builder natIpName(String natIpName) {
this.putQueryParameter("NatIpName", natIpName);
this.natIpName = natIpName;
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;
}
/**
* <p>The region ID of the NAT gateway to which the NAT IP address that you want to create belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent list of regions.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eu-central-1</p>
*/
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;
}
@Override
public CreateNatIpRequest build() {
return new CreateNatIpRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatIpResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatIpResponse} extends {@link TeaModel}
*
* <p>CreateNatIpResponse</p>
*/
public class CreateNatIpResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateNatIpResponseBody body;
private CreateNatIpResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateNatIpResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateNatIpResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateNatIpResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateNatIpResponseBody body);
@Override
CreateNatIpResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateNatIpResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateNatIpResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateNatIpResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateNatIpResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateNatIpResponse build() {
return new CreateNatIpResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNatIpResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNatIpResponseBody} extends {@link TeaModel}
*
* <p>CreateNatIpResponseBody</p>
*/
public class CreateNatIpResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Ipv4Prefix")
private String ipv4Prefix;
@com.aliyun.core.annotation.NameInMap("NatIp")
private String natIp;
@com.aliyun.core.annotation.NameInMap("NatIpId")
private String natIpId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateNatIpResponseBody(Builder builder) {
this.ipv4Prefix = builder.ipv4Prefix;
this.natIp = builder.natIp;
this.natIpId = builder.natIpId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNatIpResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv4Prefix
*/
public String getIpv4Prefix() {
return this.ipv4Prefix;
}
/**
* @return natIp
*/
public String getNatIp() {
return this.natIp;
}
/**
* @return natIpId
*/
public String getNatIpId() {
return this.natIpId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String ipv4Prefix;
private String natIp;
private String natIpId;
private String requestId;
private Builder() {
}
private Builder(CreateNatIpResponseBody model) {
this.ipv4Prefix = model.ipv4Prefix;
this.natIp = model.natIp;
this.natIpId = model.natIpId;
this.requestId = model.requestId;
}
/**
* Ipv4Prefix.
*/
public Builder ipv4Prefix(String ipv4Prefix) {
this.ipv4Prefix = ipv4Prefix;
return this;
}
/**
* <p>The NAT IP address.</p>
*
* <strong>example:</strong>
* <p>192.168.0.34</p>
*/
public Builder natIp(String natIp) {
this.natIp = natIp;
return this;
}
/**
* <p>The ID of the NAT IP address.</p>
*
* <strong>example:</strong>
* <p>vpcnatip-gw8y7q3cpk3fggs8****</p>
*/
public Builder natIpId(String natIpId) {
this.natIpId = natIpId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E9AD97A0-5338-43F8-8A80-5E274CCBA11B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateNatIpResponseBody build() {
return new CreateNatIpResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNetworkAclRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNetworkAclRequest} extends {@link RequestModel}
*
* <p>CreateNetworkAclRequest</p>
*/
public class CreateNetworkAclRequest extends Request {
@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("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkAclName")
private String networkAclName;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private CreateNetworkAclRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.description = builder.description;
this.dryRun = builder.dryRun;
this.networkAclName = builder.networkAclName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNetworkAclRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return networkAclName
*/
public String getNetworkAclName() {
return this.networkAclName;
}
/**
* @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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<CreateNetworkAclRequest, Builder> {
private String clientToken;
private String description;
private Boolean dryRun;
private String networkAclName;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateNetworkAclRequest request) {
super(request);
this.clientToken = request.clientToken;
this.description = request.description;
this.dryRun = request.dryRun;
this.networkAclName = request.networkAclName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the network ACL.</p>
* <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>This is my NetworkAcl.</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The name of the network ACL.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>acl-1</p>
*/
public Builder networkAclName(String networkAclName) {
this.putQueryParameter("NetworkAclName", networkAclName);
this.networkAclName = networkAclName;
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;
}
/**
* <p>The region ID of the network ACL.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The tags of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) to which the network ACL belongs.</p>
* <p>If the VPC contains Elastic Compute Service (ECS) instances of the following instance families, you must upgrade the ECS instances or release the ECS instances. Otherwise, you cannot create a network ACL for the VPC.</p>
* <p>ecs.c1, ecs.c2, ecs.c4, ecs.c5, ecs.ce4, ecs.cm4, ecs.d1, ecs.e3, ecs.e4, ecs.ga1, ecs.gn4, ecs.gn5, ecs.i1, ecs.m1, ecs.m2, ecs.mn4, ecs.n1, ecs.n2, ecs.n4, ecs.s1, ecs.s2, ecs.s3, ecs.se1, ecs.sn1, ecs.sn2, ecs.t1, and ecs.xn4.</p>
* <ul>
* <li>For more information about how to upgrade an ECS instance, see <a href="https://help.aliyun.com/document_detail/25438.html">Upgrade subscription instances</a> and <a href="https://help.aliyun.com/document_detail/60051.html">Change the specifications of pay-as-you-go instances</a>.</li>
* <li>For more information about how to release an ECS instance, see <a href="https://help.aliyun.com/document_detail/25442.html">Release an ECS instance</a>.</li>
* </ul>
* <blockquote>
* <p> If the VPC contains an ECS instance that does not support network ACLs, upgrade the ECS instance.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-dsfd34356vdf****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateNetworkAclRequest build() {
return new CreateNetworkAclRequest(this);
}
}
/**
*
* {@link CreateNetworkAclRequest} extends {@link TeaModel}
*
* <p>CreateNetworkAclRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNetworkAclResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNetworkAclResponse} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponse</p>
*/
public class CreateNetworkAclResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateNetworkAclResponseBody body;
private CreateNetworkAclResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateNetworkAclResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateNetworkAclResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateNetworkAclResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateNetworkAclResponseBody body);
@Override
CreateNetworkAclResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateNetworkAclResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateNetworkAclResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateNetworkAclResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateNetworkAclResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateNetworkAclResponse build() {
return new CreateNetworkAclResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateNetworkAclResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public class CreateNetworkAclResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkAclAttribute")
private NetworkAclAttribute networkAclAttribute;
@com.aliyun.core.annotation.NameInMap("NetworkAclId")
private String networkAclId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateNetworkAclResponseBody(Builder builder) {
this.networkAclAttribute = builder.networkAclAttribute;
this.networkAclId = builder.networkAclId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateNetworkAclResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return networkAclAttribute
*/
public NetworkAclAttribute getNetworkAclAttribute() {
return this.networkAclAttribute;
}
/**
* @return networkAclId
*/
public String getNetworkAclId() {
return this.networkAclId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private NetworkAclAttribute networkAclAttribute;
private String networkAclId;
private String requestId;
private Builder() {
}
private Builder(CreateNetworkAclResponseBody model) {
this.networkAclAttribute = model.networkAclAttribute;
this.networkAclId = model.networkAclId;
this.requestId = model.requestId;
}
/**
* <p>The attributes of the network ACL.</p>
*/
public Builder networkAclAttribute(NetworkAclAttribute networkAclAttribute) {
this.networkAclAttribute = networkAclAttribute;
return this;
}
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spzasx****</p>
*/
public Builder networkAclId(String networkAclId) {
this.networkAclId = networkAclId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateNetworkAclResponseBody build() {
return new CreateNetworkAclResponseBody(this);
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class EgressAclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DestinationCidrIp")
private String destinationCidrIp;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryId")
private String networkAclEntryId;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryName")
private String networkAclEntryName;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
private EgressAclEntry(Builder builder) {
this.description = builder.description;
this.destinationCidrIp = builder.destinationCidrIp;
this.networkAclEntryId = builder.networkAclEntryId;
this.networkAclEntryName = builder.networkAclEntryName;
this.policy = builder.policy;
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static EgressAclEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return destinationCidrIp
*/
public String getDestinationCidrIp() {
return this.destinationCidrIp;
}
/**
* @return networkAclEntryId
*/
public String getNetworkAclEntryId() {
return this.networkAclEntryId;
}
/**
* @return networkAclEntryName
*/
public String getNetworkAclEntryName() {
return this.networkAclEntryName;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private String description;
private String destinationCidrIp;
private String networkAclEntryId;
private String networkAclEntryName;
private String policy;
private String port;
private String protocol;
private Builder() {
}
private Builder(EgressAclEntry model) {
this.description = model.description;
this.destinationCidrIp = model.destinationCidrIp;
this.networkAclEntryId = model.networkAclEntryId;
this.networkAclEntryName = model.networkAclEntryName;
this.policy = model.policy;
this.port = model.port;
this.protocol = model.protocol;
}
/**
* <p>The description of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>This is EgressAclEntries.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination CIDR block.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrIp(String destinationCidrIp) {
this.destinationCidrIp = destinationCidrIp;
return this;
}
/**
* <p>The ID of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>nae-a2d447uw4tillxsdc****</p>
*/
public Builder networkAclEntryId(String networkAclEntryId) {
this.networkAclEntryId = networkAclEntryId;
return this;
}
/**
* <p>The name of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>acl-2</p>
*/
public Builder networkAclEntryName(String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
/**
* <p>The action to be performed on network traffic that matches the rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong></li>
* <li><strong>drop</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The destination port range of the outbound traffic.</p>
* <ul>
* <li>If the <strong>protocol</strong> of the outbound rule is set to <strong>all</strong>, <strong>icmp</strong>, or <strong>gre</strong>, the port range is -1/-1, which specified all ports.</li>
* <li>If the <strong>protocol</strong> of the outbound rule is set to <strong>tcp</strong> or <strong>udp</strong>, set the port range in the following format: <strong>1/200</strong> or <strong>80/80</strong>, which specifies port 1 to port 200 or port 80. Valid values for a port: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>icmp</strong></li>
* <li><strong>gre</strong></li>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>all</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public EgressAclEntry build() {
return new EgressAclEntry(this);
}
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class EgressAclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EgressAclEntry")
private java.util.List<EgressAclEntry> egressAclEntry;
private EgressAclEntries(Builder builder) {
this.egressAclEntry = builder.egressAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static EgressAclEntries create() {
return builder().build();
}
/**
* @return egressAclEntry
*/
public java.util.List<EgressAclEntry> getEgressAclEntry() {
return this.egressAclEntry;
}
public static final class Builder {
private java.util.List<EgressAclEntry> egressAclEntry;
private Builder() {
}
private Builder(EgressAclEntries model) {
this.egressAclEntry = model.egressAclEntry;
}
/**
* EgressAclEntry.
*/
public Builder egressAclEntry(java.util.List<EgressAclEntry> egressAclEntry) {
this.egressAclEntry = egressAclEntry;
return this;
}
public EgressAclEntries build() {
return new EgressAclEntries(this);
}
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class IngressAclEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryId")
private String networkAclEntryId;
@com.aliyun.core.annotation.NameInMap("NetworkAclEntryName")
private String networkAclEntryName;
@com.aliyun.core.annotation.NameInMap("Policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("Port")
private String port;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrIp")
private String sourceCidrIp;
private IngressAclEntry(Builder builder) {
this.description = builder.description;
this.networkAclEntryId = builder.networkAclEntryId;
this.networkAclEntryName = builder.networkAclEntryName;
this.policy = builder.policy;
this.port = builder.port;
this.protocol = builder.protocol;
this.sourceCidrIp = builder.sourceCidrIp;
}
public static Builder builder() {
return new Builder();
}
public static IngressAclEntry create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return networkAclEntryId
*/
public String getNetworkAclEntryId() {
return this.networkAclEntryId;
}
/**
* @return networkAclEntryName
*/
public String getNetworkAclEntryName() {
return this.networkAclEntryName;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return port
*/
public String getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrIp
*/
public String getSourceCidrIp() {
return this.sourceCidrIp;
}
public static final class Builder {
private String description;
private String networkAclEntryId;
private String networkAclEntryName;
private String policy;
private String port;
private String protocol;
private String sourceCidrIp;
private Builder() {
}
private Builder(IngressAclEntry model) {
this.description = model.description;
this.networkAclEntryId = model.networkAclEntryId;
this.networkAclEntryName = model.networkAclEntryName;
this.policy = model.policy;
this.port = model.port;
this.protocol = model.protocol;
this.sourceCidrIp = model.sourceCidrIp;
}
/**
* <p>The description of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>This is IngressAclEntries.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>nae-a2dk86arlydmexscd****</p>
*/
public Builder networkAclEntryId(String networkAclEntryId) {
this.networkAclEntryId = networkAclEntryId;
return this;
}
/**
* <p>The name of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>acl-3</p>
*/
public Builder networkAclEntryName(String networkAclEntryName) {
this.networkAclEntryName = networkAclEntryName;
return this;
}
/**
* <p>The action to be performed on network traffic that matches the rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong></li>
* <li><strong>drop</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* <p>The destination port range of the inbound traffic.</p>
* <ul>
* <li>If the <strong>protocol</strong> of the inbound rule is set to <strong>all</strong>, <strong>icmp</strong>, or <strong>gre</strong>, the port range is -1/-1, which specifies all ports.</li>
* <li>If the <strong>protocol</strong> of the inbound rule is set to <strong>tcp</strong> or <strong>udp</strong>, set the port range in the following format: <strong>1/200</strong> or <strong>80/80</strong>, which specifies port 1 to port 200 or port 80. Valid ports: <strong>1</strong> to <strong>65535</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1/-1</p>
*/
public Builder port(String port) {
this.port = port;
return this;
}
/**
* <p>The protocol. Valid values:</p>
* <ul>
* <li><strong>icmp</strong></li>
* <li><strong>gre</strong></li>
* <li><strong>tcp</strong></li>
* <li><strong>udp</strong></li>
* <li><strong>all</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>all</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrIp(String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
return this;
}
public IngressAclEntry build() {
return new IngressAclEntry(this);
}
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class IngressAclEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IngressAclEntry")
private java.util.List<IngressAclEntry> ingressAclEntry;
private IngressAclEntries(Builder builder) {
this.ingressAclEntry = builder.ingressAclEntry;
}
public static Builder builder() {
return new Builder();
}
public static IngressAclEntries create() {
return builder().build();
}
/**
* @return ingressAclEntry
*/
public java.util.List<IngressAclEntry> getIngressAclEntry() {
return this.ingressAclEntry;
}
public static final class Builder {
private java.util.List<IngressAclEntry> ingressAclEntry;
private Builder() {
}
private Builder(IngressAclEntries model) {
this.ingressAclEntry = model.ingressAclEntry;
}
/**
* IngressAclEntry.
*/
public Builder ingressAclEntry(java.util.List<IngressAclEntry> ingressAclEntry) {
this.ingressAclEntry = ingressAclEntry;
return this;
}
public IngressAclEntries build() {
return new IngressAclEntries(this);
}
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class Resource extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Resource(Builder builder) {
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Resource create() {
return builder().build();
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String resourceId;
private String resourceType;
private String status;
private Builder() {
}
private Builder(Resource model) {
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.status = model.status;
}
/**
* <p>The ID of the associated resource.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1de348lntdwgthy****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of resource with which you want to associate the network ACL.</p>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The association status of the resource. Valid values:</p>
* <ul>
* <li><strong>BINDED</strong></li>
* <li><strong>BINDING</strong></li>
* <li><strong>UNBINDING</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>BINDED</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Resource build() {
return new Resource(this);
}
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Resource")
private java.util.List<Resource> resource;
private Resources(Builder builder) {
this.resource = builder.resource;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return resource
*/
public java.util.List<Resource> getResource() {
return this.resource;
}
public static final class Builder {
private java.util.List<Resource> resource;
private Builder() {
}
private Builder(Resources model) {
this.resource = model.resource;
}
/**
* Resource.
*/
public Builder resource(java.util.List<Resource> resource) {
this.resource = resource;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
/**
*
* {@link CreateNetworkAclResponseBody} extends {@link TeaModel}
*
* <p>CreateNetworkAclResponseBody</p>
*/
public static class NetworkAclAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EgressAclEntries")
private EgressAclEntries egressAclEntries;
@com.aliyun.core.annotation.NameInMap("IngressAclEntries")
private IngressAclEntries ingressAclEntries;
@com.aliyun.core.annotation.NameInMap("NetworkAclId")
private String networkAclId;
@com.aliyun.core.annotation.NameInMap("NetworkAclName")
private String networkAclName;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("Resources")
private Resources resources;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private NetworkAclAttribute(Builder builder) {
this.creationTime = builder.creationTime;
this.description = builder.description;
this.egressAclEntries = builder.egressAclEntries;
this.ingressAclEntries = builder.ingressAclEntries;
this.networkAclId = builder.networkAclId;
this.networkAclName = builder.networkAclName;
this.regionId = builder.regionId;
this.resources = builder.resources;
this.status = builder.status;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static NetworkAclAttribute create() {
return builder().build();
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return egressAclEntries
*/
public EgressAclEntries getEgressAclEntries() {
return this.egressAclEntries;
}
/**
* @return ingressAclEntries
*/
public IngressAclEntries getIngressAclEntries() {
return this.ingressAclEntries;
}
/**
* @return networkAclId
*/
public String getNetworkAclId() {
return this.networkAclId;
}
/**
* @return networkAclName
*/
public String getNetworkAclName() {
return this.networkAclName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resources
*/
public Resources getResources() {
return this.resources;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String creationTime;
private String description;
private EgressAclEntries egressAclEntries;
private IngressAclEntries ingressAclEntries;
private String networkAclId;
private String networkAclName;
private String regionId;
private Resources resources;
private String status;
private String vpcId;
private Builder() {
}
private Builder(NetworkAclAttribute model) {
this.creationTime = model.creationTime;
this.description = model.description;
this.egressAclEntries = model.egressAclEntries;
this.ingressAclEntries = model.ingressAclEntries;
this.networkAclId = model.networkAclId;
this.networkAclName = model.networkAclName;
this.regionId = model.regionId;
this.resources = model.resources;
this.status = model.status;
this.vpcId = model.vpcId;
}
/**
* <p>The time when the network ACL was created.</p>
*
* <strong>example:</strong>
* <p>2021-12-25 11:33:27</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the network ACL.</p>
*
* <strong>example:</strong>
* <p>This is my NetworkAcl.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The outbound rules.</p>
*/
public Builder egressAclEntries(EgressAclEntries egressAclEntries) {
this.egressAclEntries = egressAclEntries;
return this;
}
/**
* <p>The inbound rules.</p>
*/
public Builder ingressAclEntries(IngressAclEntries ingressAclEntries) {
this.ingressAclEntries = ingressAclEntries;
return this;
}
/**
* <p>The ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>nacl-a2do9e413e0spdefr****</p>
*/
public Builder networkAclId(String networkAclId) {
this.networkAclId = networkAclId;
return this;
}
/**
* <p>The name of the network ACL.</p>
*
* <strong>example:</strong>
* <p>acl-1</p>
*/
public Builder networkAclName(String networkAclName) {
this.networkAclName = networkAclName;
return this;
}
/**
* <p>The region ID of the network ACL.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The information about the associated resources.</p>
*/
public Builder resources(Resources resources) {
this.resources = resources;
return this;
}
/**
* <p>The status of the network ACL. Valid values:</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>Modifying</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Modifying</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The ID of the VPC to which the network ACL belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-a2d33rfpl72k5xsscd****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public NetworkAclAttribute build() {
return new NetworkAclAttribute(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionOccupancyOrderRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionOccupancyOrderRequest} extends {@link RequestModel}
*
* <p>CreatePhysicalConnectionOccupancyOrderRequest</p>
*/
public class CreatePhysicalConnectionOccupancyOrderRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoRenew")
private Boolean autoRenew;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoRenewDuration")
private Integer autoRenewDuration;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@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("Period")
private Integer period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String physicalConnectionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PricingCycle")
private String pricingCycle;
@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;
private CreatePhysicalConnectionOccupancyOrderRequest(Builder builder) {
super(builder);
this.autoPay = builder.autoPay;
this.autoRenew = builder.autoRenew;
this.autoRenewDuration = builder.autoRenewDuration;
this.clientToken = builder.clientToken;
this.instanceChargeType = builder.instanceChargeType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.period = builder.period;
this.physicalConnectionId = builder.physicalConnectionId;
this.pricingCycle = builder.pricingCycle;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePhysicalConnectionOccupancyOrderRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return autoRenew
*/
public Boolean getAutoRenew() {
return this.autoRenew;
}
/**
* @return autoRenewDuration
*/
public Integer getAutoRenewDuration() {
return this.autoRenewDuration;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return pricingCycle
*/
public String getPricingCycle() {
return this.pricingCycle;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreatePhysicalConnectionOccupancyOrderRequest, Builder> {
private Boolean autoPay;
private Boolean autoRenew;
private Integer autoRenewDuration;
private String clientToken;
private String instanceChargeType;
private String ownerAccount;
private Long ownerId;
private Integer period;
private String physicalConnectionId;
private String pricingCycle;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreatePhysicalConnectionOccupancyOrderRequest request) {
super(request);
this.autoPay = request.autoPay;
this.autoRenew = request.autoRenew;
this.autoRenewDuration = request.autoRenewDuration;
this.clientToken = request.clientToken;
this.instanceChargeType = request.instanceChargeType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.period = request.period;
this.physicalConnectionId = request.physicalConnectionId;
this.pricingCycle = request.pricingCycle;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>Specifies whether to enable automatic payments. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes Make sure that you have a sufficient balance in your account. Otherwise, your order becomes invalid and is automatically canceled.</li>
* <li><strong>false</strong>: disables automatic payment. This is the default value.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* AutoRenew.
*/
public Builder autoRenew(Boolean autoRenew) {
this.putQueryParameter("AutoRenew", autoRenew);
this.autoRenew = autoRenew;
return this;
}
/**
* AutoRenewDuration.
*/
public Builder autoRenewDuration(Integer autoRenewDuration) {
this.putQueryParameter("AutoRenewDuration", autoRenewDuration);
this.autoRenewDuration = autoRenewDuration;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
*
* <strong>example:</strong>
* <p>CBCE910E-D396-4944</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The billing method. Set the value to</p>
* <p><strong>PrePaid</strong>, which specifies the subscription billing method. If you choose this billing method, make sure that your Alibaba Cloud account supports balance payments or credit payments.</p>
*
* <strong>example:</strong>
* <p>PrePaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.putQueryParameter("InstanceChargeType", instanceChargeType);
this.instanceChargeType = instanceChargeType;
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;
}
/**
* <p>The subscription duration.</p>
* <ul>
* <li>If <strong>PricingCycle</strong> is set to <strong>Month</strong>, set <strong>Period</strong> to a value from <strong>1 to 9</strong>.</li>
* <li>If <strong>PricingCycle</strong> is set to <strong>Year</strong>, set <strong>Period</strong> to a value from <strong>1 to 5</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder period(Integer period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pc-bp1hp0wr072f6****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.putQueryParameter("PhysicalConnectionId", physicalConnectionId);
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The billing cycle of the subscription. Valid values:</p>
* <ul>
* <li><strong>Month</strong> (default)</li>
* <li><strong>Year</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Month</p>
*/
public Builder pricingCycle(String pricingCycle) {
this.putQueryParameter("PricingCycle", pricingCycle);
this.pricingCycle = pricingCycle;
return this;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
@Override
public CreatePhysicalConnectionOccupancyOrderRequest build() {
return new CreatePhysicalConnectionOccupancyOrderRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionOccupancyOrderResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionOccupancyOrderResponse} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionOccupancyOrderResponse</p>
*/
public class CreatePhysicalConnectionOccupancyOrderResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreatePhysicalConnectionOccupancyOrderResponseBody body;
private CreatePhysicalConnectionOccupancyOrderResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreatePhysicalConnectionOccupancyOrderResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreatePhysicalConnectionOccupancyOrderResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreatePhysicalConnectionOccupancyOrderResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreatePhysicalConnectionOccupancyOrderResponseBody body);
@Override
CreatePhysicalConnectionOccupancyOrderResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreatePhysicalConnectionOccupancyOrderResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreatePhysicalConnectionOccupancyOrderResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreatePhysicalConnectionOccupancyOrderResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreatePhysicalConnectionOccupancyOrderResponseBody body) {
this.body = body;
return this;
}
@Override
public CreatePhysicalConnectionOccupancyOrderResponse build() {
return new CreatePhysicalConnectionOccupancyOrderResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionOccupancyOrderResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionOccupancyOrderResponseBody} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionOccupancyOrderResponseBody</p>
*/
public class CreatePhysicalConnectionOccupancyOrderResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreatePhysicalConnectionOccupancyOrderResponseBody(Builder builder) {
this.data = builder.data;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePhysicalConnectionOccupancyOrderResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Data data;
private String requestId;
private Builder() {
}
private Builder(CreatePhysicalConnectionOccupancyOrderResponseBody model) {
this.data = model.data;
this.requestId = model.requestId;
}
/**
* <p>The details.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9B9300FE-11E2-4E3B-949C-BED3B44DD26D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreatePhysicalConnectionOccupancyOrderResponseBody build() {
return new CreatePhysicalConnectionOccupancyOrderResponseBody(this);
}
}
/**
*
* {@link CreatePhysicalConnectionOccupancyOrderResponseBody} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionOccupancyOrderResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OrderId")
private String orderId;
private Data(Builder builder) {
this.orderId = builder.orderId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}
public static final class Builder {
private String orderId;
private Builder() {
}
private Builder(Data model) {
this.orderId = model.orderId;
}
/**
* <p>The ID of the order that is placed.</p>
*
* <strong>example:</strong>
* <p>50187055895****</p>
*/
public Builder orderId(String orderId) {
this.orderId = orderId;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionRequest} extends {@link RequestModel}
*
* <p>CreatePhysicalConnectionRequest</p>
*/
public class CreatePhysicalConnectionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccessPointId")
@com.aliyun.core.annotation.Validation(required = true)
private String accessPointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CircuitCode")
private String circuitCode;
@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("DeviceAdvancedCapacity")
private java.util.List<String> deviceAdvancedCapacity;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LineOperator")
@com.aliyun.core.annotation.Validation(required = true)
private String lineOperator;
@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("PeerLocation")
private String peerLocation;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PortType")
private String portType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RedundantPhysicalConnectionId")
private String redundantPhysicalConnectionId;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("bandwidth")
private Integer bandwidth;
private CreatePhysicalConnectionRequest(Builder builder) {
super(builder);
this.accessPointId = builder.accessPointId;
this.circuitCode = builder.circuitCode;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.deviceAdvancedCapacity = builder.deviceAdvancedCapacity;
this.lineOperator = builder.lineOperator;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.peerLocation = builder.peerLocation;
this.portType = builder.portType;
this.redundantPhysicalConnectionId = builder.redundantPhysicalConnectionId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.type = builder.type;
this.bandwidth = builder.bandwidth;
}
public static Builder builder() {
return new Builder();
}
public static CreatePhysicalConnectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessPointId
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
* @return circuitCode
*/
public String getCircuitCode() {
return this.circuitCode;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return deviceAdvancedCapacity
*/
public java.util.List<String> getDeviceAdvancedCapacity() {
return this.deviceAdvancedCapacity;
}
/**
* @return lineOperator
*/
public String getLineOperator() {
return this.lineOperator;
}
/**
* @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 peerLocation
*/
public String getPeerLocation() {
return this.peerLocation;
}
/**
* @return portType
*/
public String getPortType() {
return this.portType;
}
/**
* @return redundantPhysicalConnectionId
*/
public String getRedundantPhysicalConnectionId() {
return this.redundantPhysicalConnectionId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
public static final class Builder extends Request.Builder<CreatePhysicalConnectionRequest, Builder> {
private String accessPointId;
private String circuitCode;
private String clientToken;
private String description;
private java.util.List<String> deviceAdvancedCapacity;
private String lineOperator;
private String name;
private String ownerAccount;
private Long ownerId;
private String peerLocation;
private String portType;
private String redundantPhysicalConnectionId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String type;
private Integer bandwidth;
private Builder() {
super();
}
private Builder(CreatePhysicalConnectionRequest request) {
super(request);
this.accessPointId = request.accessPointId;
this.circuitCode = request.circuitCode;
this.clientToken = request.clientToken;
this.description = request.description;
this.deviceAdvancedCapacity = request.deviceAdvancedCapacity;
this.lineOperator = request.lineOperator;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.peerLocation = request.peerLocation;
this.portType = request.portType;
this.redundantPhysicalConnectionId = request.redundantPhysicalConnectionId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.type = request.type;
this.bandwidth = request.bandwidth;
}
/**
* <p>The access point ID of the Express Connect circuit.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ap-cn-beijing-ft-A</p>
*/
public Builder accessPointId(String accessPointId) {
this.putQueryParameter("AccessPointId", accessPointId);
this.accessPointId = accessPointId;
return this;
}
/**
* <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p>
*
* <strong>example:</strong>
* <p>longtel001</p>
*/
public Builder circuitCode(String circuitCode) {
this.putQueryParameter("CircuitCode", circuitCode);
this.circuitCode = circuitCode;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-42665544****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the Express Connect circuit.</p>
* <p>The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The advanced features of the device.</p>
*/
public Builder deviceAdvancedCapacity(java.util.List<String> deviceAdvancedCapacity) {
this.putQueryParameter("DeviceAdvancedCapacity", deviceAdvancedCapacity);
this.deviceAdvancedCapacity = deviceAdvancedCapacity;
return this;
}
/**
* <p>The connectivity provider of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>CT</strong>: China Telecom.</li>
* <li><strong>CU</strong>: China Unicom.</li>
* <li><strong>CM</strong>: China Mobile.</li>
* <li><strong>CO</strong>: other connectivity providers in the Chinese mainland.</li>
* <li><strong>Equinix</strong>: Equinix.</li>
* <li><strong>Other</strong>: other connectivity providers outside the Chinese mainland.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>CT</p>
*/
public Builder lineOperator(String lineOperator) {
this.putQueryParameter("LineOperator", lineOperator);
this.lineOperator = lineOperator;
return this;
}
/**
* <p>The name of the Express Connect circuit.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
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;
}
/**
* <p>The geographical location of the data center.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder peerLocation(String peerLocation) {
this.putQueryParameter("PeerLocation", peerLocation);
this.peerLocation = peerLocation;
return this;
}
/**
* <p>The port type. Valid values:</p>
* <ul>
* <li><strong>100Base-T</strong>: 100 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-T</strong>: 1,000 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-LX</strong>: 1,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>10GBase-T</strong>: 10,000 Mbit/s copper Ethernet port</li>
* <li><strong>10GBase-LR</strong>: 10,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>40GBase-LR</strong>: 40,000 Mbit/s single-mode optical port</li>
* <li><strong>100GBase-LR</strong>: 100,000 Mbit/s single-mode optical port</li>
* </ul>
* <blockquote>
* <p> To use ports 40GBase-LR and 100GBase-LR, you must first contact your account manager.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1000Base-T</p>
*/
public Builder portType(String portType) {
this.putQueryParameter("PortType", portType);
this.portType = portType;
return this;
}
/**
* <p>The ID of the redundant Express Connect circuit. The redundant Express Connect circuit must be in the <strong>Allocated</strong>, <strong>Confirmed</strong>, or <strong>Enabled</strong> state.</p>
*
* <strong>example:</strong>
* <p>pc-119mfjzm****</p>
*/
public Builder redundantPhysicalConnectionId(String redundantPhysicalConnectionId) {
this.putQueryParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
this.redundantPhysicalConnectionId = redundantPhysicalConnectionId;
return this;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the Express Connect circuit belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmoiyermp****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tag list.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The type of Express Connect circuit. Default value: <strong>VPC</strong>.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
/**
* <p>The maximum bandwidth of the hosted connection. Unit: Mbit/s.</p>
* <p>Valid values: <strong>50</strong>, <strong>100</strong>, <strong>200</strong>, <strong>300</strong>, <strong>400</strong>, <strong>500</strong>, <strong>1000</strong>, <strong>2000</strong>, <strong>4000</strong>, <strong>5000</strong>, <strong>8000</strong>, and <strong>10000</strong>.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.putQueryParameter("bandwidth", bandwidth);
this.bandwidth = bandwidth;
return this;
}
@Override
public CreatePhysicalConnectionRequest build() {
return new CreatePhysicalConnectionRequest(this);
}
}
/**
*
* {@link CreatePhysicalConnectionRequest} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value to add to the resource. You can specify up to 20 tag values The tag value can be an empty string.</p>
* <p>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionResponse} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionResponse</p>
*/
public class CreatePhysicalConnectionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreatePhysicalConnectionResponseBody body;
private CreatePhysicalConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreatePhysicalConnectionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreatePhysicalConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreatePhysicalConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreatePhysicalConnectionResponseBody body);
@Override
CreatePhysicalConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreatePhysicalConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreatePhysicalConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreatePhysicalConnectionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreatePhysicalConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public CreatePhysicalConnectionResponse build() {
return new CreatePhysicalConnectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionResponseBody} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionResponseBody</p>
*/
public class CreatePhysicalConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
private String physicalConnectionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreatePhysicalConnectionResponseBody(Builder builder) {
this.physicalConnectionId = builder.physicalConnectionId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePhysicalConnectionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String physicalConnectionId;
private String requestId;
private Builder() {
}
private Builder(CreatePhysicalConnectionResponseBody model) {
this.physicalConnectionId = model.physicalConnectionId;
this.requestId = model.requestId;
}
/**
* <p>The ID of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>pc-bp1ciz7ekd2grn1as****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>8A6A5EC5-6F6C-4906-9689-56ACE58A13E0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreatePhysicalConnectionResponseBody build() {
return new CreatePhysicalConnectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionSetupOrderRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionSetupOrderRequest} extends {@link RequestModel}
*
* <p>CreatePhysicalConnectionSetupOrderRequest</p>
*/
public class CreatePhysicalConnectionSetupOrderRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccessPointId")
@com.aliyun.core.annotation.Validation(required = true)
private String accessPointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LineOperator")
@com.aliyun.core.annotation.Validation(required = true)
private String lineOperator;
@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("PortType")
private String portType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RedundantPhysicalConnectionId")
private String redundantPhysicalConnectionId;
@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;
private CreatePhysicalConnectionSetupOrderRequest(Builder builder) {
super(builder);
this.accessPointId = builder.accessPointId;
this.autoPay = builder.autoPay;
this.clientToken = builder.clientToken;
this.lineOperator = builder.lineOperator;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.portType = builder.portType;
this.redundantPhysicalConnectionId = builder.redundantPhysicalConnectionId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePhysicalConnectionSetupOrderRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessPointId
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return lineOperator
*/
public String getLineOperator() {
return this.lineOperator;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return portType
*/
public String getPortType() {
return this.portType;
}
/**
* @return redundantPhysicalConnectionId
*/
public String getRedundantPhysicalConnectionId() {
return this.redundantPhysicalConnectionId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<CreatePhysicalConnectionSetupOrderRequest, Builder> {
private String accessPointId;
private Boolean autoPay;
private String clientToken;
private String lineOperator;
private String ownerAccount;
private Long ownerId;
private String portType;
private String redundantPhysicalConnectionId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreatePhysicalConnectionSetupOrderRequest request) {
super(request);
this.accessPointId = request.accessPointId;
this.autoPay = request.autoPay;
this.clientToken = request.clientToken;
this.lineOperator = request.lineOperator;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.portType = request.portType;
this.redundantPhysicalConnectionId = request.redundantPhysicalConnectionId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the access point.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ap-cn-beijing-ft-A</p>
*/
public Builder accessPointId(String accessPointId) {
this.putQueryParameter("AccessPointId", accessPointId);
this.accessPointId = accessPointId;
return this;
}
/**
* <p>Specifies whether to enable automatic payments. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default): disables automatic payment.</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>318BB676-0A2B-43A0-9AD8-F1D34E93750F</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The connectivity provider of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>CT</strong>: China Telecom</li>
* <li><strong>CU</strong>: China Unicom</li>
* <li><strong>CM</strong>: China Mobile</li>
* <li><strong>CO</strong>: other connectivity providers in the Chinese mainland</li>
* <li><strong>Equinix</strong>: Equinix</li>
* <li><strong>Other</strong>: other connectivity providers outside the Chinese mainland</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>CT</p>
*/
public Builder lineOperator(String lineOperator) {
this.putQueryParameter("LineOperator", lineOperator);
this.lineOperator = lineOperator;
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;
}
/**
* <p>The port type of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>100Base-T</strong>: 100 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-T</strong> (default): 1,000 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-LX</strong>: 1,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>10GBase-T</strong>: 10,000 Mbit/s copper Ethernet port</li>
* <li><strong>10GBase-LR</strong>: 10,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>40GBase-LR</strong>: 40,000 Mbit/s single-mode optical port</li>
* <li><strong>100GBase-LR</strong>: 100,000 Mbit/s single-mode optical port</li>
* </ul>
* <blockquote>
* <p> Whether 40GBase-LR and 100GBase-LR ports can be created depends on resource supplies. For more information, contact your account manager.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100Base-T</p>
*/
public Builder portType(String portType) {
this.putQueryParameter("PortType", portType);
this.portType = portType;
return this;
}
/**
* <p>The ID of the redundant physical connection. The redundant physical connection must be in the <strong>Allocated</strong>, <strong>Confirmed</strong>, or <strong>Enabled</strong> state.</p>
*
* <strong>example:</strong>
* <p>pc-bp10zsv5ntp****</p>
*/
public Builder redundantPhysicalConnectionId(String redundantPhysicalConnectionId) {
this.putQueryParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId);
this.redundantPhysicalConnectionId = redundantPhysicalConnectionId;
return this;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
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;
}
@Override
public CreatePhysicalConnectionSetupOrderRequest build() {
return new CreatePhysicalConnectionSetupOrderRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionSetupOrderResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionSetupOrderResponse} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionSetupOrderResponse</p>
*/
public class CreatePhysicalConnectionSetupOrderResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreatePhysicalConnectionSetupOrderResponseBody body;
private CreatePhysicalConnectionSetupOrderResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreatePhysicalConnectionSetupOrderResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreatePhysicalConnectionSetupOrderResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreatePhysicalConnectionSetupOrderResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreatePhysicalConnectionSetupOrderResponseBody body);
@Override
CreatePhysicalConnectionSetupOrderResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreatePhysicalConnectionSetupOrderResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreatePhysicalConnectionSetupOrderResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreatePhysicalConnectionSetupOrderResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreatePhysicalConnectionSetupOrderResponseBody body) {
this.body = body;
return this;
}
@Override
public CreatePhysicalConnectionSetupOrderResponse build() {
return new CreatePhysicalConnectionSetupOrderResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePhysicalConnectionSetupOrderResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePhysicalConnectionSetupOrderResponseBody} extends {@link TeaModel}
*
* <p>CreatePhysicalConnectionSetupOrderResponseBody</p>
*/
public class CreatePhysicalConnectionSetupOrderResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OrderId")
private String orderId;
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
private String physicalConnectionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreatePhysicalConnectionSetupOrderResponseBody(Builder builder) {
this.orderId = builder.orderId;
this.physicalConnectionId = builder.physicalConnectionId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePhysicalConnectionSetupOrderResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String orderId;
private String physicalConnectionId;
private String requestId;
private Builder() {
}
private Builder(CreatePhysicalConnectionSetupOrderResponseBody model) {
this.orderId = model.orderId;
this.physicalConnectionId = model.physicalConnectionId;
this.requestId = model.requestId;
}
/**
* <p>The order ID.</p>
*
* <strong>example:</strong>
* <p>202844382740728</p>
*/
public Builder orderId(String orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
*
* <strong>example:</strong>
* <p>pc-2zegmc02v7ss4****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F7A6301A-64BA-41EC-8284-8F4838C15D1F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreatePhysicalConnectionSetupOrderResponseBody build() {
return new CreatePhysicalConnectionSetupOrderResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePublicIpAddressPoolRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePublicIpAddressPoolRequest} extends {@link RequestModel}
*
* <p>CreatePublicIpAddressPoolRequest</p>
*/
public class CreatePublicIpAddressPoolRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BizType")
private String bizType;
@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("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Isp")
private String isp;
@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("ResourceGroupId")
private String resourceGroupId;
@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("SecurityProtectionTypes")
private java.util.List<String> securityProtectionTypes;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Zones")
private java.util.List<String> zones;
private CreatePublicIpAddressPoolRequest(Builder builder) {
super(builder);
this.bizType = builder.bizType;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.dryRun = builder.dryRun;
this.isp = builder.isp;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityProtectionTypes = builder.securityProtectionTypes;
this.tag = builder.tag;
this.zones = builder.zones;
}
public static Builder builder() {
return new Builder();
}
public static CreatePublicIpAddressPoolRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bizType
*/
public String getBizType() {
return this.bizType;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return isp
*/
public String getIsp() {
return this.isp;
}
/**
* @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 resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityProtectionTypes
*/
public java.util.List<String> getSecurityProtectionTypes() {
return this.securityProtectionTypes;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return zones
*/
public java.util.List<String> getZones() {
return this.zones;
}
public static final class Builder extends Request.Builder<CreatePublicIpAddressPoolRequest, Builder> {
private String bizType;
private String clientToken;
private String description;
private Boolean dryRun;
private String isp;
private String name;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<String> securityProtectionTypes;
private java.util.List<Tag> tag;
private java.util.List<String> zones;
private Builder() {
super();
}
private Builder(CreatePublicIpAddressPoolRequest request) {
super(request);
this.bizType = request.bizType;
this.clientToken = request.clientToken;
this.description = request.description;
this.dryRun = request.dryRun;
this.isp = request.isp;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityProtectionTypes = request.securityProtectionTypes;
this.tag = request.tag;
this.zones = request.zones;
}
/**
* <p>The service type of the IP address pool. Valid values:</p>
* <ul>
* <li><strong>CloudBox</strong> Only cloud box users can select this type.</li>
* <li><strong>Default</strong>: This is the default value.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Default</p>
*/
public Builder bizType(String bizType) {
this.putQueryParameter("BizType", bizType);
this.bizType = bizType;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate a value, and you must make sure that each request has a unique token value. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the value of <strong>RequestId</strong> as the value of <strong>ClientToken</strong>. The value of <strong>RequestId</strong> for each API request is different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the IP address pool.</p>
* <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>AddressPoolDescription</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to precheck only this request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: prechecks the request without creating an IP address pool. The system checks the required parameters, request format, and service limits. If the request fails to pass the precheck, an error code is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong>: sends the request. This is the default value. If the request passes the precheck, a 2xx HTTP status code is returned and the IP address pool is created.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The line type. Valid values:</p>
* <ul>
* <li><strong>BGP</strong> (default)</li>
* <li><strong>BGP_PRO</strong></li>
* </ul>
* <p>For more information about BGP (Multi-ISP) lines and BGP (Multi-ISP) Pro lines, see the "Line types" section in the <a href="https://help.aliyun.com/document_detail/32321.html">What is EIP?</a> topic.</p>
* <ul>
* <li><p>If you are allowed to use single-ISP bandwidth, you can also use one of the following values:</p>
* <ul>
* <li><strong>ChinaTelecom</strong></li>
* <li><strong>ChinaUnicom</strong></li>
* <li><strong>ChinaMobile</strong></li>
* <li><strong>ChinaTelecom_L2</strong></li>
* <li><strong>ChinaUnicom_L2</strong></li>
* <li><strong>ChinaMobile_L2</strong></li>
* </ul>
* </li>
* <li><p>If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to <strong>BGP_FinanceCloud</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>BGP</p>
*/
public Builder isp(String isp) {
this.putQueryParameter("Isp", isp);
this.isp = isp;
return this;
}
/**
* <p>The name of the IP address pool.</p>
* <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>AddressPoolName</p>
*/
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;
}
/**
* <p>The ID of the region where you want to create the IP address pool.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-chengdu</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the IP address pool belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4pcdvf****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The editions of Anti-DDoS.</p>
* <ul>
* <li>If you do not specify this parameter, Anti-DDoS Origin Basic is used.</li>
* <li>If you set the parameter to AntiDDoS_Enhanced, Anti-DDoS Pro/Premium is used.</li>
* </ul>
*/
public Builder securityProtectionTypes(java.util.List<String> securityProtectionTypes) {
this.putQueryParameter("SecurityProtectionTypes", securityProtectionTypes);
this.securityProtectionTypes = securityProtectionTypes;
return this;
}
/**
* <p>The tag of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The zone of the IP address pool. If you set <strong>BizType</strong> to <strong>CloudBox</strong>, this parameter is required.</p>
*/
public Builder zones(java.util.List<String> zones) {
this.putQueryParameter("Zones", zones);
this.zones = zones;
return this;
}
@Override
public CreatePublicIpAddressPoolRequest build() {
return new CreatePublicIpAddressPoolRequest(this);
}
}
/**
*
* {@link CreatePublicIpAddressPoolRequest} extends {@link TeaModel}
*
* <p>CreatePublicIpAddressPoolRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>A tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePublicIpAddressPoolResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePublicIpAddressPoolResponse} extends {@link TeaModel}
*
* <p>CreatePublicIpAddressPoolResponse</p>
*/
public class CreatePublicIpAddressPoolResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreatePublicIpAddressPoolResponseBody body;
private CreatePublicIpAddressPoolResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreatePublicIpAddressPoolResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreatePublicIpAddressPoolResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreatePublicIpAddressPoolResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreatePublicIpAddressPoolResponseBody body);
@Override
CreatePublicIpAddressPoolResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreatePublicIpAddressPoolResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreatePublicIpAddressPoolResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreatePublicIpAddressPoolResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreatePublicIpAddressPoolResponseBody body) {
this.body = body;
return this;
}
@Override
public CreatePublicIpAddressPoolResponse build() {
return new CreatePublicIpAddressPoolResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreatePublicIpAddressPoolResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreatePublicIpAddressPoolResponseBody} extends {@link TeaModel}
*
* <p>CreatePublicIpAddressPoolResponseBody</p>
*/
public class CreatePublicIpAddressPoolResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PublicIpAddressPoolId")
private String publicIpAddressPoolId;
@com.aliyun.core.annotation.NameInMap("PulbicIpAddressPoolId")
@Deprecated
private String pulbicIpAddressPoolId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private CreatePublicIpAddressPoolResponseBody(Builder builder) {
this.publicIpAddressPoolId = builder.publicIpAddressPoolId;
this.pulbicIpAddressPoolId = builder.pulbicIpAddressPoolId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePublicIpAddressPoolResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return publicIpAddressPoolId
*/
public String getPublicIpAddressPoolId() {
return this.publicIpAddressPoolId;
}
/**
* @return pulbicIpAddressPoolId
*/
public String getPulbicIpAddressPoolId() {
return this.pulbicIpAddressPoolId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder {
private String publicIpAddressPoolId;
private String pulbicIpAddressPoolId;
private String requestId;
private String resourceGroupId;
private Builder() {
}
private Builder(CreatePublicIpAddressPoolResponseBody model) {
this.publicIpAddressPoolId = model.publicIpAddressPoolId;
this.pulbicIpAddressPoolId = model.pulbicIpAddressPoolId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
}
/**
* <p>The ID of the IP address pool.</p>
*
* <strong>example:</strong>
* <p>pippool-6wetvn6fumkgycssx****</p>
*/
public Builder publicIpAddressPoolId(String publicIpAddressPoolId) {
this.publicIpAddressPoolId = publicIpAddressPoolId;
return this;
}
/**
* <p>The ID of the IP address pool.</p>
*
* <strong>example:</strong>
* <p>pippool-6wetvn6fumkgycssx****</p>
*/
public Builder pulbicIpAddressPoolId(String pulbicIpAddressPoolId) {
this.pulbicIpAddressPoolId = pulbicIpAddressPoolId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the IP address pool belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4pcdvf****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public CreatePublicIpAddressPoolResponseBody build() {
return new CreatePublicIpAddressPoolResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteEntriesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteEntriesRequest} extends {@link RequestModel}
*
* <p>CreateRouteEntriesRequest</p>
*/
public class CreateRouteEntriesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@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("RouteEntries")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<RouteEntries> routeEntries;
private CreateRouteEntriesRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeEntries = builder.routeEntries;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteEntriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @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 routeEntries
*/
public java.util.List<RouteEntries> getRouteEntries() {
return this.routeEntries;
}
public static final class Builder extends Request.Builder<CreateRouteEntriesRequest, Builder> {
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<RouteEntries> routeEntries;
private Builder() {
super();
}
private Builder(CreateRouteEntriesRequest request) {
super(request);
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeEntries = request.routeEntries;
}
/**
* <p>Specifies whether to only precheck the request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: prechecks the request without performing the operation. The system prechecks the required parameters, request syntax, and limits. If the request fails to pass the precheck, an error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): sends the request. After the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
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;
}
/**
* <p>The region ID of the route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The routes.</p>
* <p>This parameter is required.</p>
*/
public Builder routeEntries(java.util.List<RouteEntries> routeEntries) {
this.putQueryParameter("RouteEntries", routeEntries);
this.routeEntries = routeEntries;
return this;
}
@Override
public CreateRouteEntriesRequest build() {
return new CreateRouteEntriesRequest(this);
}
}
/**
*
* {@link CreateRouteEntriesRequest} extends {@link TeaModel}
*
* <p>CreateRouteEntriesRequest</p>
*/
public static class RouteEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DstCidrBlock")
@com.aliyun.core.annotation.Validation(required = true)
private String dstCidrBlock;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private Integer ipVersion;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NextHop")
@com.aliyun.core.annotation.Validation(required = true)
private String nextHop;
@com.aliyun.core.annotation.NameInMap("NextHopType")
@com.aliyun.core.annotation.Validation(required = true)
private String nextHopType;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
private RouteEntries(Builder builder) {
this.description = builder.description;
this.dstCidrBlock = builder.dstCidrBlock;
this.ipVersion = builder.ipVersion;
this.name = builder.name;
this.nextHop = builder.nextHop;
this.nextHopType = builder.nextHopType;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static RouteEntries create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dstCidrBlock
*/
public String getDstCidrBlock() {
return this.dstCidrBlock;
}
/**
* @return ipVersion
*/
public Integer getIpVersion() {
return this.ipVersion;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder {
private String description;
private String dstCidrBlock;
private Integer ipVersion;
private String name;
private String nextHop;
private String nextHopType;
private String routeTableId;
private Builder() {
}
private Builder(RouteEntries model) {
this.description = model.description;
this.dstCidrBlock = model.dstCidrBlock;
this.ipVersion = model.ipVersion;
this.name = model.name;
this.nextHop = model.nextHop;
this.nextHopType = model.nextHopType;
this.routeTableId = model.routeTableId;
}
/**
* <p>The description of the custom route. You can specify at most 50 descriptions.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination CIDR block of the custom route. IPv4 CIDR blocks, IPv6 CIDR blocks, and prefix lists are supported. You can enter up to 50 destination CIDR blocks. Make sure that the following requirements are met:</p>
* <ul>
* <li>The destination CIDR block cannot point to 100.64.0.0/10 or belong to 100.64.0.0/10.</li>
* <li>The destination CIDR block of each route in the route table is unique.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/24</p>
*/
public Builder dstCidrBlock(String dstCidrBlock) {
this.dstCidrBlock = dstCidrBlock;
return this;
}
/**
* <p>The IP version. Valid values: You can specify at most 50 IP versions. Valid values:</p>
* <ul>
* <li><strong>4</strong>: IPv4</li>
* <li><strong>6</strong>: IPv6</li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(Integer ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The name of the custom route that you want to add. You can specify at most 50 names.</p>
* <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the next hop for the custom route. You can specify at most 50 instance IDs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>i-j6c2fp57q8rr4jlu****</p>
*/
public Builder nextHop(String nextHop) {
this.nextHop = nextHop;
return this;
}
/**
* <p>The type of next hop. You can specify at most 50 next hop types. Valid values:</p>
* <ul>
* <li><strong>Instance</strong>: Elastic Compute Service (ECS) instance. This is the default value.</li>
* <li><strong>HaVip</strong>: high-availability virtual IP address (HaVip).</li>
* <li><strong>RouterInterface</strong>: router interface.</li>
* <li><strong>NetworkInterface</strong>: elastic network interface (ENI).</li>
* <li><strong>VpnGateway</strong>: VPN gateway.</li>
* <li><strong>IPv6Gateway</strong>: IPv6 gateway.</li>
* <li><strong>NatGateway</strong>: NAT gateway.</li>
* <li><strong>Attachment</strong>: transit router.</li>
* <li><strong>VpcPeer</strong>: VPC peering connection.</li>
* <li><strong>Ipv4Gateway</strong>: IPv4 gateway.</li>
* <li><strong>GatewayEndpoint</strong>: gateway endpoint.</li>
* <li><strong>CenBasic</strong>: CEN does not support transfer routers.</li>
* <li><strong>Ecr</strong>: Express Connect Router (ECR).</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>RouterInterface</p>
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
/**
* <p>The ID of the route table to which you want to add custom route s. You can specify at most 50 route table IDs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzd****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
public RouteEntries build() {
return new RouteEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteEntriesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteEntriesResponse} extends {@link TeaModel}
*
* <p>CreateRouteEntriesResponse</p>
*/
public class CreateRouteEntriesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateRouteEntriesResponseBody body;
private CreateRouteEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateRouteEntriesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateRouteEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateRouteEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateRouteEntriesResponseBody body);
@Override
CreateRouteEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateRouteEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateRouteEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateRouteEntriesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateRouteEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateRouteEntriesResponse build() {
return new CreateRouteEntriesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteEntriesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteEntriesResponseBody} extends {@link TeaModel}
*
* <p>CreateRouteEntriesResponseBody</p>
*/
public class CreateRouteEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailedCount")
private Integer failedCount;
@com.aliyun.core.annotation.NameInMap("FailedRouteEntries")
private java.util.List<FailedRouteEntries> failedRouteEntries;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouteEntryIds")
private java.util.List<String> routeEntryIds;
@com.aliyun.core.annotation.NameInMap("SuccessCount")
private Integer successCount;
private CreateRouteEntriesResponseBody(Builder builder) {
this.failedCount = builder.failedCount;
this.failedRouteEntries = builder.failedRouteEntries;
this.requestId = builder.requestId;
this.routeEntryIds = builder.routeEntryIds;
this.successCount = builder.successCount;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return failedCount
*/
public Integer getFailedCount() {
return this.failedCount;
}
/**
* @return failedRouteEntries
*/
public java.util.List<FailedRouteEntries> getFailedRouteEntries() {
return this.failedRouteEntries;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeEntryIds
*/
public java.util.List<String> getRouteEntryIds() {
return this.routeEntryIds;
}
/**
* @return successCount
*/
public Integer getSuccessCount() {
return this.successCount;
}
public static final class Builder {
private Integer failedCount;
private java.util.List<FailedRouteEntries> failedRouteEntries;
private String requestId;
private java.util.List<String> routeEntryIds;
private Integer successCount;
private Builder() {
}
private Builder(CreateRouteEntriesResponseBody model) {
this.failedCount = model.failedCount;
this.failedRouteEntries = model.failedRouteEntries;
this.requestId = model.requestId;
this.routeEntryIds = model.routeEntryIds;
this.successCount = model.successCount;
}
/**
* <p>The number of custom route entries that failed to be added.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder failedCount(Integer failedCount) {
this.failedCount = failedCount;
return this;
}
/**
* <p>The details about the custom route entry that failed to be added.</p>
*/
public Builder failedRouteEntries(java.util.List<FailedRouteEntries> failedRouteEntries) {
this.failedRouteEntries = failedRouteEntries;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the ID of the custom route entry that was successfully added.</p>
*/
public Builder routeEntryIds(java.util.List<String> routeEntryIds) {
this.routeEntryIds = routeEntryIds;
return this;
}
/**
* <p>The number of custom route entries that were successfully added.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder successCount(Integer successCount) {
this.successCount = successCount;
return this;
}
public CreateRouteEntriesResponseBody build() {
return new CreateRouteEntriesResponseBody(this);
}
}
/**
*
* {@link CreateRouteEntriesResponseBody} extends {@link TeaModel}
*
* <p>CreateRouteEntriesResponseBody</p>
*/
public static class FailedRouteEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidrBlock")
private String dstCidrBlock;
@com.aliyun.core.annotation.NameInMap("FailedCode")
private String failedCode;
@com.aliyun.core.annotation.NameInMap("FailedMessage")
private String failedMessage;
@com.aliyun.core.annotation.NameInMap("NextHop")
private String nextHop;
private FailedRouteEntries(Builder builder) {
this.dstCidrBlock = builder.dstCidrBlock;
this.failedCode = builder.failedCode;
this.failedMessage = builder.failedMessage;
this.nextHop = builder.nextHop;
}
public static Builder builder() {
return new Builder();
}
public static FailedRouteEntries create() {
return builder().build();
}
/**
* @return dstCidrBlock
*/
public String getDstCidrBlock() {
return this.dstCidrBlock;
}
/**
* @return failedCode
*/
public String getFailedCode() {
return this.failedCode;
}
/**
* @return failedMessage
*/
public String getFailedMessage() {
return this.failedMessage;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
public static final class Builder {
private String dstCidrBlock;
private String failedCode;
private String failedMessage;
private String nextHop;
private Builder() {
}
private Builder(FailedRouteEntries model) {
this.dstCidrBlock = model.dstCidrBlock;
this.failedCode = model.failedCode;
this.failedMessage = model.failedMessage;
this.nextHop = model.nextHop;
}
/**
* <p>The destination CIDR block of the custom route entry that failed to be added.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/24</p>
*/
public Builder dstCidrBlock(String dstCidrBlock) {
this.dstCidrBlock = dstCidrBlock;
return this;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>VPC_ROUTE_ENTRY_CIDR_BLOCK_DUPLICATE</p>
*/
public Builder failedCode(String failedCode) {
this.failedCode = failedCode;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>Specified CIDR block is already exists, entry.cidrBlock=xxxx</p>
*/
public Builder failedMessage(String failedMessage) {
this.failedMessage = failedMessage;
return this;
}
/**
* <p>The ID of the next hop of the custom route entry that failed to be added.</p>
*
* <strong>example:</strong>
* <p>i-j6c2fp57q8rr4jlu****</p>
*/
public Builder nextHop(String nextHop) {
this.nextHop = nextHop;
return this;
}
public FailedRouteEntries build() {
return new FailedRouteEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteEntryRequest} extends {@link RequestModel}
*
* <p>CreateRouteEntryRequest</p>
*/
public class CreateRouteEntryRequest extends Request {
@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("DestinationCidrBlock")
@com.aliyun.core.annotation.Validation(required = true)
private String destinationCidrBlock;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopList")
private java.util.List<NextHopList> nextHopList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@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")
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("RouteEntryName")
private String routeEntryName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
private CreateRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.description = builder.description;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.dryRun = builder.dryRun;
this.nextHopId = builder.nextHopId;
this.nextHopList = builder.nextHopList;
this.nextHopType = builder.nextHopType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeEntryName = builder.routeEntryName;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopList
*/
public java.util.List<NextHopList> getNextHopList() {
return this.nextHopList;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @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 routeEntryName
*/
public String getRouteEntryName() {
return this.routeEntryName;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder extends Request.Builder<CreateRouteEntryRequest, Builder> {
private String clientToken;
private String description;
private String destinationCidrBlock;
private Boolean dryRun;
private String nextHopId;
private java.util.List<NextHopList> nextHopList;
private String nextHopType;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeEntryName;
private String routeTableId;
private Builder() {
super();
}
private Builder(CreateRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.description = request.description;
this.destinationCidrBlock = request.destinationCidrBlock;
this.dryRun = request.dryRun;
this.nextHopId = request.nextHopId;
this.nextHopList = request.nextHopList;
this.nextHopType = request.nextHopType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeEntryName = request.routeEntryName;
this.routeTableId = request.routeTableId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that the value is unique among different requests. The ClientToken value can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> for each API request may be different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-001****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the custom route entry.</p>
* <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The destination CIDR block of the custom route entry. Both IPv4 and IPv6 CIDR blocks are supported. Make sure that the destination CIDR block meets the following requirements:</p>
* <ul>
* <li>The destination CIDR block is not 100.64.0.0/10 or a subset of 100.64.0.0/10.</li>
* <li>The destination CIDR block of the custom route entry is different from the destination CIDR blocks of other route entries in the same route table.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.putQueryParameter("DestinationCidrBlock", destinationCidrBlock);
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>Specifies whether to perform a dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the required parameters, request syntax, and limits. If the request fails, an error message is returned. If the request passes the validation, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): sends the request. If the request passes the check, an HTTP 2xx status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the next hop for the custom route.</p>
* <blockquote>
* <p> <a href="#-nexthoptype--ecr-describeexpressconnectrouterassociation--associationid--id"></a>If you set the NextHopType parameter to ECR, call the <a href="https://help.aliyun.com/document_detail/2712069.html">DescribeExpressConnectRouterAssociation</a> operation to access the AssociationId and use it as the next hop ID.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-j6c2fp57q8rr4jlu****</p>
*/
public Builder nextHopId(String nextHopId) {
this.putQueryParameter("NextHopId", nextHopId);
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The next hop list.</p>
*/
public Builder nextHopList(java.util.List<NextHopList> nextHopList) {
this.putQueryParameter("NextHopList", nextHopList);
this.nextHopList = nextHopList;
return this;
}
/**
* <p>The type of next hop of the custom route entry. Valid values:</p>
* <ul>
* <li><strong>Instance</strong>: an Elastic Compute Service (ECS) instance. This is the default value.</li>
* <li><strong>HaVip</strong>: a high-availability virtual IP address (HaVip).</li>
* <li><strong>RouterInterface</strong>: a router interface.</li>
* <li><strong>NetworkInterface</strong>: an elastic network interface (ENI).</li>
* <li><strong>VpnGateway</strong>: a VPN gateway.</li>
* <li><strong>IPv6Gateway</strong>: an IPv6 gateway.</li>
* <li><strong>NatGateway</strong>: a NAT gateway.</li>
* <li><strong>Attachment</strong>: a transit router.</li>
* <li><strong>VpcPeer</strong>: a VPC peering connection.</li>
* <li><strong>Ipv4Gateway</strong>: an IPv4 gateway.</li>
* <li><strong>GatewayEndpoint</strong>: a gateway endpoint.</li>
* <li><strong>Ecr</strong>: an Express Connect Router (ECR).</li>
* </ul>
*
* <strong>example:</strong>
* <p>RouterInterface</p>
*/
public Builder nextHopType(String nextHopType) {
this.putQueryParameter("NextHopType", nextHopType);
this.nextHopType = nextHopType;
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;
}
/**
* <p>The region ID of the route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The name of the custom route entry that you want to add.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder routeEntryName(String routeEntryName) {
this.putQueryParameter("RouteEntryName", routeEntryName);
this.routeEntryName = routeEntryName;
return this;
}
/**
* <p>The ID of the route table to which you want to add a custom route entry.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzd****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
@Override
public CreateRouteEntryRequest build() {
return new CreateRouteEntryRequest(this);
}
}
/**
*
* {@link CreateRouteEntryRequest} extends {@link TeaModel}
*
* <p>CreateRouteEntryRequest</p>
*/
public static class NextHopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private NextHopList(Builder builder) {
this.nextHopId = builder.nextHopId;
this.nextHopType = builder.nextHopType;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static NextHopList create() {
return builder().build();
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private String nextHopId;
private String nextHopType;
private Integer weight;
private Builder() {
}
private Builder(NextHopList model) {
this.nextHopId = model.nextHopId;
this.nextHopType = model.nextHopType;
this.weight = model.weight;
}
/**
* <p>The ID of the next hop of the ECMP route.</p>
*
* <strong>example:</strong>
* <p>ri-2zeo3xzyf3cd8r4****</p>
*/
public Builder nextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The type of next hop of the ECMP route entry. Set the value to <strong>RouterInterface</strong>.</p>
*
* <strong>example:</strong>
* <p>RouterInterface</p>
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
/**
* <p>The weight of the next hop of the ECMP route entry.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public NextHopList build() {
return new NextHopList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteEntryResponse} extends {@link TeaModel}
*
* <p>CreateRouteEntryResponse</p>
*/
public class CreateRouteEntryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateRouteEntryResponseBody body;
private CreateRouteEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateRouteEntryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateRouteEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateRouteEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateRouteEntryResponseBody body);
@Override
CreateRouteEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateRouteEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateRouteEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateRouteEntryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateRouteEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateRouteEntryResponse build() {
return new CreateRouteEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteEntryResponseBody} extends {@link TeaModel}
*
* <p>CreateRouteEntryResponseBody</p>
*/
public class CreateRouteEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouteEntryId")
private String routeEntryId;
private CreateRouteEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.routeEntryId = builder.routeEntryId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteEntryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeEntryId
*/
public String getRouteEntryId() {
return this.routeEntryId;
}
public static final class Builder {
private String requestId;
private String routeEntryId;
private Builder() {
}
private Builder(CreateRouteEntryResponseBody model) {
this.requestId = model.requestId;
this.routeEntryId = model.routeEntryId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the custom route entry.</p>
*
* <strong>example:</strong>
* <p>rte-sn6vjkioxte1gz83z****</p>
*/
public Builder routeEntryId(String routeEntryId) {
this.routeEntryId = routeEntryId;
return this;
}
public CreateRouteEntryResponseBody build() {
return new CreateRouteEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteTableRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteTableRequest} extends {@link RequestModel}
*
* <p>CreateRouteTableRequest</p>
*/
public class CreateRouteTableRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AssociateType")
private String associateType;
@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("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("RouteTableName")
private String routeTableName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private CreateRouteTableRequest(Builder builder) {
super(builder);
this.associateType = builder.associateType;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableName = builder.routeTableName;
this.tag = builder.tag;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteTableRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return associateType
*/
public String getAssociateType() {
return this.associateType;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @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 routeTableName
*/
public String getRouteTableName() {
return this.routeTableName;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<CreateRouteTableRequest, Builder> {
private String associateType;
private String clientToken;
private String description;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeTableName;
private java.util.List<Tag> tag;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateRouteTableRequest request) {
super(request);
this.associateType = request.associateType;
this.clientToken = request.clientToken;
this.description = request.description;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableName = request.routeTableName;
this.tag = request.tag;
this.vpcId = request.vpcId;
}
/**
* <p>The type of the route table. Valid values:</p>
* <ul>
* <li><strong>VSwitch</strong> (default): vSwitch route table</li>
* <li><strong>Gateway</strong>: gateway route table</li>
* </ul>
*
* <strong>example:</strong>
* <p>VSwitch</p>
*/
public Builder associateType(String associateType) {
this.putQueryParameter("AssociateType", associateType);
this.associateType = associateType;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> in each API request may be different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-0016e04</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the route table.</p>
* <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
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;
}
/**
* <p>The region ID of the virtual private cloud (VPC) to which the custom route table belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-zhangjiakou</p>
*/
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;
}
/**
* <p>The name of the route table.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>myRouteTable</p>
*/
public Builder routeTableName(String routeTableName) {
this.putQueryParameter("RouteTableName", routeTableName);
this.routeTableName = routeTableName;
return this;
}
/**
* <p>The tags of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the VPC to which the custom route table belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1qpo0kug3a20qqe****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateRouteTableRequest build() {
return new CreateRouteTableRequest(this);
}
}
/**
*
* {@link CreateRouteTableRequest} extends {@link TeaModel}
*
* <p>CreateRouteTableRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteTableResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteTableResponse} extends {@link TeaModel}
*
* <p>CreateRouteTableResponse</p>
*/
public class CreateRouteTableResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateRouteTableResponseBody body;
private CreateRouteTableResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateRouteTableResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateRouteTableResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateRouteTableResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateRouteTableResponseBody body);
@Override
CreateRouteTableResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateRouteTableResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateRouteTableResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateRouteTableResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateRouteTableResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateRouteTableResponse build() {
return new CreateRouteTableResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouteTableResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouteTableResponseBody} extends {@link TeaModel}
*
* <p>CreateRouteTableResponseBody</p>
*/
public class CreateRouteTableResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
private CreateRouteTableResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouteTableResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder {
private String requestId;
private String routeTableId;
private Builder() {
}
private Builder(CreateRouteTableResponseBody model) {
this.requestId = model.requestId;
this.routeTableId = model.routeTableId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>62172DD5-6BAC-45DF-8D44-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The IDs of the route tables.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzdvzu2****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
public CreateRouteTableResponseBody build() {
return new CreateRouteTableResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouterInterfaceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouterInterfaceRequest} extends {@link RequestModel}
*
* <p>CreateRouterInterfaceRequest</p>
*/
public class CreateRouterInterfaceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccessPointId")
private String accessPointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoRenew")
private Boolean autoRenew;
@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("FastLinkMode")
private Boolean fastLinkMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HealthCheckSourceIp")
private String healthCheckSourceIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HealthCheckTargetIp")
private String healthCheckTargetIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OppositeAccessPointId")
private String oppositeAccessPointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OppositeInterfaceId")
private String oppositeInterfaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OppositeInterfaceOwnerId")
private String oppositeInterfaceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OppositeRegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String oppositeRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OppositeRouterId")
private String oppositeRouterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OppositeRouterType")
private String oppositeRouterType;
@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("Period")
private Integer period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PricingCycle")
private String pricingCycle;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Role")
@com.aliyun.core.annotation.Validation(required = true)
private String role;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouterId")
@com.aliyun.core.annotation.Validation(required = true)
private String routerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouterType")
@com.aliyun.core.annotation.Validation(required = true)
private String routerType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Spec")
@com.aliyun.core.annotation.Validation(required = true)
private String spec;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private CreateRouterInterfaceRequest(Builder builder) {
super(builder);
this.accessPointId = builder.accessPointId;
this.autoPay = builder.autoPay;
this.autoRenew = builder.autoRenew;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.fastLinkMode = builder.fastLinkMode;
this.healthCheckSourceIp = builder.healthCheckSourceIp;
this.healthCheckTargetIp = builder.healthCheckTargetIp;
this.instanceChargeType = builder.instanceChargeType;
this.name = builder.name;
this.oppositeAccessPointId = builder.oppositeAccessPointId;
this.oppositeInterfaceId = builder.oppositeInterfaceId;
this.oppositeInterfaceOwnerId = builder.oppositeInterfaceOwnerId;
this.oppositeRegionId = builder.oppositeRegionId;
this.oppositeRouterId = builder.oppositeRouterId;
this.oppositeRouterType = builder.oppositeRouterType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.period = builder.period;
this.pricingCycle = builder.pricingCycle;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.role = builder.role;
this.routerId = builder.routerId;
this.routerType = builder.routerType;
this.spec = builder.spec;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouterInterfaceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessPointId
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return autoRenew
*/
public Boolean getAutoRenew() {
return this.autoRenew;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return fastLinkMode
*/
public Boolean getFastLinkMode() {
return this.fastLinkMode;
}
/**
* @return healthCheckSourceIp
*/
public String getHealthCheckSourceIp() {
return this.healthCheckSourceIp;
}
/**
* @return healthCheckTargetIp
*/
public String getHealthCheckTargetIp() {
return this.healthCheckTargetIp;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return oppositeAccessPointId
*/
public String getOppositeAccessPointId() {
return this.oppositeAccessPointId;
}
/**
* @return oppositeInterfaceId
*/
public String getOppositeInterfaceId() {
return this.oppositeInterfaceId;
}
/**
* @return oppositeInterfaceOwnerId
*/
public String getOppositeInterfaceOwnerId() {
return this.oppositeInterfaceOwnerId;
}
/**
* @return oppositeRegionId
*/
public String getOppositeRegionId() {
return this.oppositeRegionId;
}
/**
* @return oppositeRouterId
*/
public String getOppositeRouterId() {
return this.oppositeRouterId;
}
/**
* @return oppositeRouterType
*/
public String getOppositeRouterType() {
return this.oppositeRouterType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return pricingCycle
*/
public String getPricingCycle() {
return this.pricingCycle;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return role
*/
public String getRole() {
return this.role;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return routerType
*/
public String getRouterType() {
return this.routerType;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<CreateRouterInterfaceRequest, Builder> {
private String accessPointId;
private Boolean autoPay;
private Boolean autoRenew;
private String clientToken;
private String description;
private Boolean fastLinkMode;
private String healthCheckSourceIp;
private String healthCheckTargetIp;
private String instanceChargeType;
private String name;
private String oppositeAccessPointId;
private String oppositeInterfaceId;
private String oppositeInterfaceOwnerId;
private String oppositeRegionId;
private String oppositeRouterId;
private String oppositeRouterType;
private String ownerAccount;
private Long ownerId;
private Integer period;
private String pricingCycle;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String role;
private String routerId;
private String routerType;
private String spec;
private java.util.List<Tags> tags;
private Builder() {
super();
}
private Builder(CreateRouterInterfaceRequest request) {
super(request);
this.accessPointId = request.accessPointId;
this.autoPay = request.autoPay;
this.autoRenew = request.autoRenew;
this.clientToken = request.clientToken;
this.description = request.description;
this.fastLinkMode = request.fastLinkMode;
this.healthCheckSourceIp = request.healthCheckSourceIp;
this.healthCheckTargetIp = request.healthCheckTargetIp;
this.instanceChargeType = request.instanceChargeType;
this.name = request.name;
this.oppositeAccessPointId = request.oppositeAccessPointId;
this.oppositeInterfaceId = request.oppositeInterfaceId;
this.oppositeInterfaceOwnerId = request.oppositeInterfaceOwnerId;
this.oppositeRegionId = request.oppositeRegionId;
this.oppositeRouterId = request.oppositeRouterId;
this.oppositeRouterType = request.oppositeRouterType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.period = request.period;
this.pricingCycle = request.pricingCycle;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.role = request.role;
this.routerId = request.routerId;
this.routerType = request.routerType;
this.spec = request.spec;
this.tags = request.tags;
}
/**
* <p>The ID of the access point to which the VBR belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36062.html">DescribeAccessPoints</a> operation to obtain the IDs of access points.</p>
* <blockquote>
* <p> This parameter is required if the VBR is connected to an Express Connect circuit.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ap-cn-hangzhou-yh-ts-A</p>
*/
public Builder accessPointId(String accessPointId) {
this.putQueryParameter("AccessPointId", accessPointId);
this.accessPointId = accessPointId;
return this;
}
/**
* <p>Specifies whether to enable automatic payment. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default): The automatic payment is disabled. If you select this option, you must go to the Order Center to complete the payment after an order is generated.</li>
* <li><strong>true</strong>: The automatic payment is enabled. Payments are automatically complete after an order is generated.</li>
* </ul>
* <blockquote>
* <p> This parameter is required if <strong>InstanceChargeType</strong> is set to <strong>PrePaid</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>Specifies whether to enable auto-renewal. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoRenew(Boolean autoRenew) {
this.putQueryParameter("AutoRenew", autoRenew);
this.autoRenew = autoRenew;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the router interface.</p>
* <p>The description must be 2 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>abcabc</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether the VBR that is created in the Fast Link mode is uplinked to the router interface. The Fast Link mode helps automatically connect router interfaces that are created for the VBR and its peer VPC. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>This parameter takes effect only if <strong>RouterType</strong> is set to <strong>VBR</strong> and <strong>OppositeRouterType</strong> is set to <strong>VRouter</strong>.</p>
* </li>
* <li><p>If <strong>FastLinkMode</strong> is set to <strong>true</strong>, <strong>Role</strong> must be set to <strong>InitiatingSide</strong>. In this case, <strong>AccessPointId</strong>, <strong>OppositeRouterType</strong>, <strong>OpppsiteRouterId</strong>, and <strong>OppositeInterfaceOwnerId</strong> are required.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder fastLinkMode(Boolean fastLinkMode) {
this.putQueryParameter("FastLinkMode", fastLinkMode);
this.fastLinkMode = fastLinkMode;
return this;
}
/**
* <p>The source IP address that is used to perform health checks. The source IP address must be an idle IP address of the local virtual private cloud (VPC).</p>
* <blockquote>
* <p> You can set this parameter when an Express Connect circuit is used.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>192.168.0.6</p>
*/
public Builder healthCheckSourceIp(String healthCheckSourceIp) {
this.putQueryParameter("HealthCheckSourceIp", healthCheckSourceIp);
this.healthCheckSourceIp = healthCheckSourceIp;
return this;
}
/**
* <p>The destination IP address that is used to perform health checks.</p>
* <blockquote>
* <p> This parameter is required if you specify <strong>HealthCheckSourceIp</strong></p>
* </blockquote>
*
* <strong>example:</strong>
* <p>192.168.0.8</p>
*/
public Builder healthCheckTargetIp(String healthCheckTargetIp) {
this.putQueryParameter("HealthCheckTargetIp", healthCheckTargetIp);
this.healthCheckTargetIp = healthCheckTargetIp;
return this;
}
/**
* <p>The billing method of the router interface. Valid values:</p>
* <ul>
* <li><strong>PrePaid</strong>: subscription</li>
* <li><strong>PostPaid</strong>: pay-as-you-go</li>
* </ul>
*
* <strong>example:</strong>
* <p>PrePaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.putQueryParameter("InstanceChargeType", instanceChargeType);
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The name of the router interface.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-).</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The ID of the access point to which the peer belongs.</p>
* <blockquote>
* <p> This parameter is required if the peer router interface is associated with a VBR. The specified value cannot be changed after the router interface is created.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ap-cn-shanghai-nt-aligroup-C</p>
*/
public Builder oppositeAccessPointId(String oppositeAccessPointId) {
this.putQueryParameter("OppositeAccessPointId", oppositeAccessPointId);
this.oppositeAccessPointId = oppositeAccessPointId;
return this;
}
/**
* <p>The ID of the peer router interface.</p>
*
* <strong>example:</strong>
* <p>ri-2zeo3xzyf38r4urzd****</p>
*/
public Builder oppositeInterfaceId(String oppositeInterfaceId) {
this.putQueryParameter("OppositeInterfaceId", oppositeInterfaceId);
this.oppositeInterfaceId = oppositeInterfaceId;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the peer router interface belongs.</p>
*
* <strong>example:</strong>
* <p>253460731706911258</p>
*/
public Builder oppositeInterfaceOwnerId(String oppositeInterfaceOwnerId) {
this.putQueryParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId;
return this;
}
/**
* <p>The ID of the region in which the acceptor is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder oppositeRegionId(String oppositeRegionId) {
this.putQueryParameter("OppositeRegionId", oppositeRegionId);
this.oppositeRegionId = oppositeRegionId;
return this;
}
/**
* <p>The ID of the peer router.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1lhl0taikrteen8****</p>
*/
public Builder oppositeRouterId(String oppositeRouterId) {
this.putQueryParameter("OppositeRouterId", oppositeRouterId);
this.oppositeRouterId = oppositeRouterId;
return this;
}
/**
* <p>The type of router that is associated with the peer router interface. Valid values:</p>
* <ul>
* <li><strong>VRouter</strong></li>
* <li><strong>VBR</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>VRouter</p>
*/
public Builder oppositeRouterType(String oppositeRouterType) {
this.putQueryParameter("OppositeRouterType", oppositeRouterType);
this.oppositeRouterType = oppositeRouterType;
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;
}
/**
* <p>The subscription duration. Valid values:</p>
* <ul>
* <li>Valid values when PricingCycle is set to Month: <strong>1 to 9</strong>.</li>
* <li>Valid values when PricingCycle is set to Year: <strong>1 to 3</strong>.</li>
* </ul>
* <blockquote>
* <p> This parameter is required if <strong>InstanceChargeType</strong> is set to <strong>PrePaid</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder period(Integer period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The billing cycle of the subscription. Valid values:</p>
* <ul>
* <li><strong>Month</strong> (default)</li>
* <li><strong>Year</strong></li>
* </ul>
* <blockquote>
* <p> This parameter is required if <strong>InstanceChargeType</strong> is set to <strong>PrePaid</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Month</p>
*/
public Builder pricingCycle(String pricingCycle) {
this.putQueryParameter("PricingCycle", pricingCycle);
this.pricingCycle = pricingCycle;
return this;
}
/**
* <p>The ID of the region to which the router interface belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group.</p>
* <p>For more information about resource group, see <a href="https://help.aliyun.com/document_detail/94475.html">What is Resource Management?</a></p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The role of the router interface. Valid values:</p>
* <ul>
* <li><strong>InitiatingSide</strong>: requester</li>
* <li><strong>AcceptingSide</strong>: acceptor</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>InitiatingSide</p>
*/
public Builder role(String role) {
this.putQueryParameter("Role", role);
this.role = role;
return this;
}
/**
* <p>The ID of the router that is associated with the router interface.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbr-m5ebm6g9ptc9mly1c****</p>
*/
public Builder routerId(String routerId) {
this.putQueryParameter("RouterId", routerId);
this.routerId = routerId;
return this;
}
/**
* <p>The type of router that is associated with the router interface. Valid values:</p>
* <ul>
* <li><strong>VRouter</strong></li>
* <li><strong>VBR</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>VRouter</p>
*/
public Builder routerType(String routerType) {
this.putQueryParameter("RouterType", routerType);
this.routerType = routerType;
return this;
}
/**
* <p>The specification of the router interface and the corresponding bandwidth. Valid values:</p>
* <ul>
* <li><strong>Mini.2</strong>: 2 Mbit/s</li>
* <li><strong>Mini.5</strong>: 5 Mbit/s</li>
* <li><strong>Small.1</strong>: 10 Mbit/s</li>
* <li><strong>Small.2</strong>: 20 Mbit/s</li>
* <li><strong>Small.5</strong>: 50 Mbit/s</li>
* <li><strong>Middle.1</strong>: 100 Mbit/s</li>
* <li><strong>Middle.2</strong>: 200 Mbit/s</li>
* <li><strong>Middle.5</strong>: 500 Mbit/s</li>
* <li><strong>Large.1</strong>: 1,000 Mbit/s</li>
* <li><strong>Large.2</strong>: 2,000 Mbit/s</li>
* <li><strong>Large.5</strong>: 5,000 Mbit/s</li>
* <li><strong>Xlarge.1</strong>: 10,000 Mbit/s</li>
* </ul>
* <blockquote>
* <p> If <strong>Role</strong> is set to <strong>AcceptingSide</strong>, set <strong>Spec</strong> to <strong>Negative</strong>. This indicates that you do not need to specify the specification when you create an acceptor router interface.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Mini.2</p>
*/
public Builder spec(String spec) {
this.putQueryParameter("Spec", spec);
this.spec = spec;
return this;
}
/**
* <p>The tag to add to the resource.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public CreateRouterInterfaceRequest build() {
return new CreateRouterInterfaceRequest(this);
}
}
/**
*
* {@link CreateRouterInterfaceRequest} extends {@link TeaModel}
*
* <p>CreateRouterInterfaceRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags 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;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key to add to the resource. You must enter at least one tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>A tag key can be at most 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with <code>acs:</code> or <code>aliyun</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouterInterfaceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouterInterfaceResponse} extends {@link TeaModel}
*
* <p>CreateRouterInterfaceResponse</p>
*/
public class CreateRouterInterfaceResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateRouterInterfaceResponseBody body;
private CreateRouterInterfaceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateRouterInterfaceResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateRouterInterfaceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateRouterInterfaceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateRouterInterfaceResponseBody body);
@Override
CreateRouterInterfaceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateRouterInterfaceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateRouterInterfaceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateRouterInterfaceResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateRouterInterfaceResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateRouterInterfaceResponse build() {
return new CreateRouterInterfaceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateRouterInterfaceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateRouterInterfaceResponseBody} extends {@link TeaModel}
*
* <p>CreateRouterInterfaceResponseBody</p>
*/
public class CreateRouterInterfaceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("OrderId")
private Long orderId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouterInterfaceId")
private String routerInterfaceId;
private CreateRouterInterfaceResponseBody(Builder builder) {
this.orderId = builder.orderId;
this.requestId = builder.requestId;
this.routerInterfaceId = builder.routerInterfaceId;
}
public static Builder builder() {
return new Builder();
}
public static CreateRouterInterfaceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return orderId
*/
public Long getOrderId() {
return this.orderId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routerInterfaceId
*/
public String getRouterInterfaceId() {
return this.routerInterfaceId;
}
public static final class Builder {
private Long orderId;
private String requestId;
private String routerInterfaceId;
private Builder() {
}
private Builder(CreateRouterInterfaceResponseBody model) {
this.orderId = model.orderId;
this.requestId = model.requestId;
this.routerInterfaceId = model.routerInterfaceId;
}
/**
* <p>The order number. This parameter is returned if InstanceChargeType is set to PrePaid.</p>
*
* <strong>example:</strong>
* <p>202008594930117</p>
*/
public Builder orderId(Long orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>079874CD-AEC1-43E6-AC03-ADD96B6E4907</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the router interface.</p>
*
* <strong>example:</strong>
* <p>ri-2ze7fbuohm****</p>
*/
public Builder routerInterfaceId(String routerInterfaceId) {
this.routerInterfaceId = routerInterfaceId;
return this;
}
public CreateRouterInterfaceResponseBody build() {
return new CreateRouterInterfaceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSnatEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSnatEntryRequest} extends {@link RequestModel}
*
* <p>CreateSnatEntryRequest</p>
*/
public class CreateSnatEntryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EipAffinity")
private Integer eipAffinity;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@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("SnatEntryName")
private String snatEntryName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SnatIp")
private String snatIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SnatTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String snatTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceCIDR")
private String sourceCIDR;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SourceVSwitchId")
private String sourceVSwitchId;
private CreateSnatEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.eipAffinity = builder.eipAffinity;
this.networkInterfaceId = builder.networkInterfaceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.snatEntryName = builder.snatEntryName;
this.snatIp = builder.snatIp;
this.snatTableId = builder.snatTableId;
this.sourceCIDR = builder.sourceCIDR;
this.sourceVSwitchId = builder.sourceVSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSnatEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return eipAffinity
*/
public Integer getEipAffinity() {
return this.eipAffinity;
}
/**
* @return networkInterfaceId
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @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 snatEntryName
*/
public String getSnatEntryName() {
return this.snatEntryName;
}
/**
* @return snatIp
*/
public String getSnatIp() {
return this.snatIp;
}
/**
* @return snatTableId
*/
public String getSnatTableId() {
return this.snatTableId;
}
/**
* @return sourceCIDR
*/
public String getSourceCIDR() {
return this.sourceCIDR;
}
/**
* @return sourceVSwitchId
*/
public String getSourceVSwitchId() {
return this.sourceVSwitchId;
}
public static final class Builder extends Request.Builder<CreateSnatEntryRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private Integer eipAffinity;
private String networkInterfaceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String snatEntryName;
private String snatIp;
private String snatTableId;
private String sourceCIDR;
private String sourceVSwitchId;
private Builder() {
super();
}
private Builder(CreateSnatEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.eipAffinity = request.eipAffinity;
this.networkInterfaceId = request.networkInterfaceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.snatEntryName = request.snatEntryName;
this.snatIp = request.snatIp;
this.snatTableId = request.snatTableId;
this.sourceCIDR = request.sourceCIDR;
this.sourceVSwitchId = request.sourceVSwitchId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <code>client token</code> can contain only ASCII characters.</p>
* <p>**</p>
* <p><strong>Description</strong> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Specifies whether to enable EIP affinity. Valid values:</p>
* <ul>
* <li><strong>0</strong>: no</li>
* <li><strong>1</strong>: yes</li>
* </ul>
* <p>**</p>
* <p><strong>Description</strong> After you enable EIP affinity, if multiple EIPs are associated with an SNAT entry, each client uses one EIP to access the Internet. If EIP affinity is disabled, each client uses a random EIP to access the Internet.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder eipAffinity(Integer eipAffinity) {
this.putQueryParameter("EipAffinity", eipAffinity);
this.eipAffinity = eipAffinity;
return this;
}
/**
* NetworkInterfaceId.
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.putQueryParameter("NetworkInterfaceId", networkInterfaceId);
this.networkInterfaceId = networkInterfaceId;
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;
}
/**
* <p>The region ID of the NAT gateway.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>Valid values:</p>
* <ul>
* <li><p>ap-northeast-2-pop</p>
* <!-- -->
*
* <p>:</p>
* <!-- -->
*
* <p>ap-northeast-2-pop</p>
* <!-- -->
*
* <p>.</p>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The name of the SNAT entry.</p>
* <p>The name must be 2 to 128 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>SnatEntry-1</p>
*/
public Builder snatEntryName(String snatEntryName) {
this.putQueryParameter("SnatEntryName", snatEntryName);
this.snatEntryName = snatEntryName;
return this;
}
/**
* <ul>
* <li>The EIPs in the SNAT entry when you add an SNAT entry to an Internet NAT gateway. Separate EIPs with commas (,).</li>
* </ul>
* <blockquote>
* <p> If you specify multiple EIPs in the SNAT IP address pool, the service connection is allocated to multiple EIPs by using the hashing algorithm. The traffic of each EIP may be different. Therefore, we recommend that you associate the EIPs with an Internet Shared Bandwidth instance to prevent service interruptions caused by bandwidth exhaustion.</p>
* </blockquote>
* <ul>
* <li>When you add SNAT entries for a VPC NAT gateway, this parameter specifies the NAT IP addresses in the SNAT entry. Separate multiple NAT IP addresses with commas (,).</li>
* </ul>
*
* <strong>example:</strong>
* <p>47.98.XX.XX</p>
*/
public Builder snatIp(String snatIp) {
this.putQueryParameter("SnatIp", snatIp);
this.snatIp = snatIp;
return this;
}
/**
* <p>The ID of the SNAT table.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>stb-bp190wu8io1vgev****</p>
*/
public Builder snatTableId(String snatTableId) {
this.putQueryParameter("SnatTableId", snatTableId);
this.snatTableId = snatTableId;
return this;
}
/**
* <p>You can specify the CIDR block of a VPC, a vSwitch, or an ECS instance or enter a custom CIDR block.</p>
* <p>You can specify an SNAT entry in the following ways:</p>
* <ul>
* <li>You can specify the CIDR block of the VPC where the NAT gateway is deployed. Then, all ECS instances in the VPC can access the Internet or external networks by using SNAT.</li>
* <li>You can specify the CIDR block of a vSwitch, for example, 192.168.1.0/24. Then, the ECS instances in the vSwitch can access the Internet or external networks by using SNAT.</li>
* <li>You can specify the IP address of an ECS instance, for example, 192.168.1.1/32. Then, the ECS instance can access the Internet or external networks by using SNAT.</li>
* <li>You can specify a custom CIDR block. Then, all ECS instances within the specified CIDR block can access the Internet or external networks by using SNAT.</li>
* </ul>
* <p>When you add an SNAT entry to an Internet NAT gateway, if <strong>SnatIp</strong> is set to an EIP, the ECS instance uses the specified EIP to access the Internet.</p>
* <p>If <strong>SnatIp</strong> is set to multiple EIPs, the ECS instance randomly selects an EIP specified in the <strong>SnatIp</strong> parameter to access the Internet.</p>
* <p>You cannot specify this parameter and <strong>SourceVSwtichId</strong> at the same time. If <strong>SourceVSwitchId</strong> is specified, you cannot specify <strong>SourceCIDR</strong>. If <strong>SourceCIDR</strong> is specified, you cannot specify <strong>SourceVSwitchId</strong>.</p>
*
* <strong>example:</strong>
* <p>10.1.1.0/24</p>
*/
public Builder sourceCIDR(String sourceCIDR) {
this.putQueryParameter("SourceCIDR", sourceCIDR);
this.sourceCIDR = sourceCIDR;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
* <ul>
* <li>When you add an SNAT entry to an Internet NAT gateway, this parameter specifies that ECS instances in the vSwitch can use the SNAT entry to access the Internet. If you select multiple elastic IP addresses (EIPs) to create an SNAT address pool, connections are hashed to these EIPs. Network traffic may not be evenly distributed to the EIPs because the amount of traffic that passes through each connection varies. We recommend that you associate these EIPs with the same EIP bandwidth plan to prevent service interruptions due to the bandwidth limits on individual EIPs.</li>
* <li>When you add an SNAT entry to a VPC NAT gateway, this parameter specifies that ECS instances in the vSwitch can use the SNAT entry to access external networks.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-bp1nhx2s9ui5o****</p>
*/
public Builder sourceVSwitchId(String sourceVSwitchId) {
this.putQueryParameter("SourceVSwitchId", sourceVSwitchId);
this.sourceVSwitchId = sourceVSwitchId;
return this;
}
@Override
public CreateSnatEntryRequest build() {
return new CreateSnatEntryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSnatEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSnatEntryResponse} extends {@link TeaModel}
*
* <p>CreateSnatEntryResponse</p>
*/
public class CreateSnatEntryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateSnatEntryResponseBody body;
private CreateSnatEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateSnatEntryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateSnatEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateSnatEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateSnatEntryResponseBody body);
@Override
CreateSnatEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSnatEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateSnatEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSnatEntryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateSnatEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateSnatEntryResponse build() {
return new CreateSnatEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSnatEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSnatEntryResponseBody} extends {@link TeaModel}
*
* <p>CreateSnatEntryResponseBody</p>
*/
public class CreateSnatEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SnatEntryId")
private String snatEntryId;
private CreateSnatEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.snatEntryId = builder.snatEntryId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSnatEntryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return snatEntryId
*/
public String getSnatEntryId() {
return this.snatEntryId;
}
public static final class Builder {
private String requestId;
private String snatEntryId;
private Builder() {
}
private Builder(CreateSnatEntryResponseBody model) {
this.requestId = model.requestId;
this.snatEntryId = model.snatEntryId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2315DEB7-5E92-423A-91F7-4C1EC9AD97C3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the SNAT entry.</p>
*
* <strong>example:</strong>
* <p>snat-kmd6nv8fy****</p>
*/
public Builder snatEntryId(String snatEntryId) {
this.snatEntryId = snatEntryId;
return this;
}
public CreateSnatEntryResponseBody build() {
return new CreateSnatEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSslVpnClientCertRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSslVpnClientCertRequest} extends {@link RequestModel}
*
* <p>CreateSslVpnClientCertRequest</p>
*/
public class CreateSslVpnClientCertRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@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("SslVpnServerId")
@com.aliyun.core.annotation.Validation(required = true)
private String sslVpnServerId;
private CreateSslVpnClientCertRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
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.sslVpnServerId = builder.sslVpnServerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSslVpnClientCertRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @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 sslVpnServerId
*/
public String getSslVpnServerId() {
return this.sslVpnServerId;
}
public static final class Builder extends Request.Builder<CreateSslVpnClientCertRequest, Builder> {
private String clientToken;
private String name;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String sslVpnServerId;
private Builder() {
super();
}
private Builder(CreateSslVpnClientCertRequest request) {
super(request);
this.clientToken = request.clientToken;
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.sslVpnServerId = request.sslVpnServerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
* <blockquote>
* <p> If you do not set this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-0016e04115b</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The name of the SSL client certificate.</p>
* <p>The name must be 1 to 100 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>SslVpnClientCert1</p>
*/
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;
}
/**
* <p>The ID of the region where the VPN gateway is created.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The ID of the SSL server.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vss-m5et0q3iy1qex328w****</p>
*/
public Builder sslVpnServerId(String sslVpnServerId) {
this.putQueryParameter("SslVpnServerId", sslVpnServerId);
this.sslVpnServerId = sslVpnServerId;
return this;
}
@Override
public CreateSslVpnClientCertRequest build() {
return new CreateSslVpnClientCertRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSslVpnClientCertResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSslVpnClientCertResponse} extends {@link TeaModel}
*
* <p>CreateSslVpnClientCertResponse</p>
*/
public class CreateSslVpnClientCertResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateSslVpnClientCertResponseBody body;
private CreateSslVpnClientCertResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateSslVpnClientCertResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateSslVpnClientCertResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateSslVpnClientCertResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateSslVpnClientCertResponseBody body);
@Override
CreateSslVpnClientCertResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSslVpnClientCertResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateSslVpnClientCertResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSslVpnClientCertResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateSslVpnClientCertResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateSslVpnClientCertResponse build() {
return new CreateSslVpnClientCertResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSslVpnClientCertResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSslVpnClientCertResponseBody} extends {@link TeaModel}
*
* <p>CreateSslVpnClientCertResponseBody</p>
*/
public class CreateSslVpnClientCertResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SslVpnClientCertId")
private String sslVpnClientCertId;
private CreateSslVpnClientCertResponseBody(Builder builder) {
this.name = builder.name;
this.requestId = builder.requestId;
this.sslVpnClientCertId = builder.sslVpnClientCertId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSslVpnClientCertResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return sslVpnClientCertId
*/
public String getSslVpnClientCertId() {
return this.sslVpnClientCertId;
}
public static final class Builder {
private String name;
private String requestId;
private String sslVpnClientCertId;
private Builder() {
}
private Builder(CreateSslVpnClientCertResponseBody model) {
this.name = model.name;
this.requestId = model.requestId;
this.sslVpnClientCertId = model.sslVpnClientCertId;
}
/**
* <p>The name of the SSL client certificate.</p>
*
* <strong>example:</strong>
* <p>SslVpnClientCert</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>079874CD-AEC1-43E6-AC03-ADD96B6E4907</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the SSL client certificate.</p>
*
* <strong>example:</strong>
* <p>vsc-m5euof6s5jy8vs5kd****</p>
*/
public Builder sslVpnClientCertId(String sslVpnClientCertId) {
this.sslVpnClientCertId = sslVpnClientCertId;
return this;
}
public CreateSslVpnClientCertResponseBody build() {
return new CreateSslVpnClientCertResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSslVpnServerRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSslVpnServerRequest} extends {@link RequestModel}
*
* <p>CreateSslVpnServerRequest</p>
*/
public class CreateSslVpnServerRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Cipher")
private String cipher;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientIpPool")
@com.aliyun.core.annotation.Validation(required = true)
private String clientIpPool;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Compress")
private Boolean compress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableMultiFactorAuth")
private Boolean enableMultiFactorAuth;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IDaaSApplicationId")
private String iDaaSApplicationId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IDaaSInstanceId")
private String iDaaSInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IDaaSRegionId")
private String iDaaSRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LocalSubnet")
@com.aliyun.core.annotation.Validation(required = true)
private String localSubnet;
@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("Port")
private Integer port;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Proto")
private String proto;
@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("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
private CreateSslVpnServerRequest(Builder builder) {
super(builder);
this.cipher = builder.cipher;
this.clientIpPool = builder.clientIpPool;
this.clientToken = builder.clientToken;
this.compress = builder.compress;
this.dryRun = builder.dryRun;
this.enableMultiFactorAuth = builder.enableMultiFactorAuth;
this.iDaaSApplicationId = builder.iDaaSApplicationId;
this.iDaaSInstanceId = builder.iDaaSInstanceId;
this.iDaaSRegionId = builder.iDaaSRegionId;
this.localSubnet = builder.localSubnet;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.port = builder.port;
this.proto = builder.proto;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSslVpnServerRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cipher
*/
public String getCipher() {
return this.cipher;
}
/**
* @return clientIpPool
*/
public String getClientIpPool() {
return this.clientIpPool;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return compress
*/
public Boolean getCompress() {
return this.compress;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return enableMultiFactorAuth
*/
public Boolean getEnableMultiFactorAuth() {
return this.enableMultiFactorAuth;
}
/**
* @return iDaaSApplicationId
*/
public String getIDaaSApplicationId() {
return this.iDaaSApplicationId;
}
/**
* @return iDaaSInstanceId
*/
public String getIDaaSInstanceId() {
return this.iDaaSInstanceId;
}
/**
* @return iDaaSRegionId
*/
public String getIDaaSRegionId() {
return this.iDaaSRegionId;
}
/**
* @return localSubnet
*/
public String getLocalSubnet() {
return this.localSubnet;
}
/**
* @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 port
*/
public Integer getPort() {
return this.port;
}
/**
* @return proto
*/
public String getProto() {
return this.proto;
}
/**
* @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 vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<CreateSslVpnServerRequest, Builder> {
private String cipher;
private String clientIpPool;
private String clientToken;
private Boolean compress;
private Boolean dryRun;
private Boolean enableMultiFactorAuth;
private String iDaaSApplicationId;
private String iDaaSInstanceId;
private String iDaaSRegionId;
private String localSubnet;
private String name;
private String ownerAccount;
private Long ownerId;
private Integer port;
private String proto;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(CreateSslVpnServerRequest request) {
super(request);
this.cipher = request.cipher;
this.clientIpPool = request.clientIpPool;
this.clientToken = request.clientToken;
this.compress = request.compress;
this.dryRun = request.dryRun;
this.enableMultiFactorAuth = request.enableMultiFactorAuth;
this.iDaaSApplicationId = request.iDaaSApplicationId;
this.iDaaSInstanceId = request.iDaaSInstanceId;
this.iDaaSRegionId = request.iDaaSRegionId;
this.localSubnet = request.localSubnet;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.port = request.port;
this.proto = request.proto;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpnGatewayId = request.vpnGatewayId;
}
/**
* <p>The encryption algorithm that is used by the SSL-VPN connection.</p>
* <ul>
* <li><p>If the client uses Tunnelblick or OpenVPN 2.4.0 or later, the SSL server dynamically negotiates with the client about the encryption algorithm and uses the most secure encryption algorithm that is supported by the SSL server and the client. The encryption algorithm that you specify for the SSL server does not take effect.</p>
* </li>
* <li><p>If the client uses OpenVPN of a version that is earlier than 2.4.0, the SSL server and the client use the encryption algorithm that you specify for the SSL server. You can specify one of the following encryption algorithms for the SSL server:</p>
* <ul>
* <li><strong>AES-128-CBC</strong> (default)</li>
* <li><strong>AES-192-CBC</strong></li>
* <li><strong>AES-256-CBC</strong></li>
* <li><strong>none</strong></li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>AES-128-CBC</p>
*/
public Builder cipher(String cipher) {
this.putQueryParameter("Cipher", cipher);
this.cipher = cipher;
return this;
}
/**
* <p>The client CIDR block.</p>
* <p>The CIDR block from which an IP address is allocated to the virtual network interface controller (NIC) of the client, rather than the private CIDR block.</p>
* <p>If the client accesses the SSL server over an SSL-VPN connection, the VPN gateway assigns an IP address from the specified client CIDR block for the client to access cloud resources.</p>
* <p>Make sure that the number of IP addresses in the client CIDR block is at least four times the maximum number of SSL-VPN connections supported by the VPN gateway.</p>
* <details>
* <summary>Click to view the reason.</summary>
*
* <p>For example, if you specify 192.168.0.0/24 as the client CIDR block, the system first divides a subnet CIDR block with a subnet mask of 30 from 192.168.0.0/24, such as 192.168.0.4/30. This subnet provides up to four IP addresses. Then, the system allocates an IP address from 192.168.0.4/30 to the client and uses the other three IP addresses to ensure network communication. In this case, one client consumes four IP addresses. Therefore, to ensure that an IP address is assigned to your client, the number of IP addresses in the client CIDR block must be at least four times the maximum number of SSL-VPN connections supported by the VPN gateway with which the SSL server is associated.</p>
* </details>
*
* <details>
* <summary>Click to view the CIDR blocks that are not supported.</summary>
*
* <ul>
* <li><p>100.64.0.0~100.127.255.255</p>
* </li>
* <li><p>127.0.0.0~127.255.255.255</p>
* </li>
* <li><p>169.254.0.0~169.254.255.255</p>
* </li>
* <li><p>224.0.0.0~239.255.255.255</p>
* </li>
* <li><p>255.0.0.0~255.255.255.255</p>
* </details>
* <details>
* <summary>Click to view the recommended client CIDR blocks for different numbers of SSL-VPN connections.</summary>
*
* </li>
* <li><p>If the number of SSL-VPN connections is 5, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 27 bits in length. Examples: 10.0.0.0/27 and 10.0.0.0/26.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 10, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 26 bits in length. Examples: 10.0.0.0/26 and 10.0.0.0/25.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 20, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 25 bits in length. Examples: 10.0.0.0/25 and 10.0.0.0/24.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 50, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 24 bits in length. Examples: 10.0.0.0/24 and 10.0.0.0/23.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 100, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 23 bits in length. Examples: 10.0.0.0/23 and 10.0.0.0/22.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 200, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 22 bits in length. Examples: 10.0.0.0/22 and 10.0.0.0/21.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 500, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 21 bits in length. Examples: 10.0.0.0/21 and 10.0.0.0/20.</p>
* </li>
* <li><p>If the number of SSL-VPN connections is 1,000, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 20 bits in length. Examples: 10.0.0.0/20 and 10.0.0.0/19.</p>
* </details></li>
* </ul>
* <blockquote>
* <ul>
* <li>The subnet mask of the client CIDR block must be 16 to 29 bits in length.</li>
* <li>Make sure that the client CIDR block does not overlap with the local CIDR block, the VPC CIDR block, or route CIDR blocks associated with the client.</li>
* <li>We recommend that you use 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets as the client CIDR block. If you want to specify a public CIDR block as the client CIDR block, you must specify the public CIDR block as the user CIDR block of the virtual private cloud (VPC). This way, the VPC can access the public CIDR block. For more information, see <a href="https://help.aliyun.com/document_detail/185311.html">VPC FAQs</a>.</li>
* <li>After you create an SSL server, the system automatically adds routes that point to the client CIDR block to the VPC route table. Do not manually add routes that point to the client CIDR block. Otherwise, SSL-VPN connections cannot work as expected.</li>
* </ul>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.1.0/24</p>
*/
public Builder clientIpPool(String clientIpPool) {
this.putQueryParameter("ClientIpPool", clientIpPool);
this.clientIpPool = clientIpPool;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-0016e04115b</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to enable data compression. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder compress(Boolean compress) {
this.putQueryParameter("Compress", compress);
this.compress = compress;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Specifies whether to enable two-factor authentication. To enable two-factor authentication, you need to specify <code>IDaaSInstanceId</code>, <code>IDaaSRegionId</code>, and <code>IDaaSApplicationId</code>. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables this feature.</li>
* <li><strong>false</strong> (default): disables this feature.</li>
* </ul>
* <blockquote>
* <ul>
* <li>If you use two-factor authentication for the first time, you must first complete <a href="https://ram.console.aliyun.com/role/authorization?request=%7B%22Services%22%3A%5B%7B%22Service%22%3A%22VPN%22%2C%22Roles%22%3A%5B%7B%22RoleName%22%3A%22AliyunVpnAccessingIdaasRole%22%2C%22TemplateId%22%3A%22IdaasRole%22%7D%5D%7D%5D%2C%22ReturnUrl%22%3A%22https%3A%2F%2Fvpc.console.aliyun.com%2Fsslvpn%2Fcn-shanghai%2Fvpn-servers%22%7D">authorization</a>.</li>
* <li>When you create an SSL server in the UAE (Dubai) region, we recommend that you associate the SSL server with an IDaaS EIAM 2.0 instance in Singapore to reduce latency.</li>
* <li>IDaaS EIAM 1.0 instances are no longer for purchase. If your Alibaba Cloud account has IDaaS EIAM 1.0 instances, the IDaaS EIAM 1.0 instances can be associated after two-factor authentication is enabled. If your Alibaba Cloud account does not have IDaaS EIAM 1.0 instances, only IDaaS EIAM 2.0 instances can be associated after two-factor authentication is enabled.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableMultiFactorAuth(Boolean enableMultiFactorAuth) {
this.putQueryParameter("EnableMultiFactorAuth", enableMultiFactorAuth);
this.enableMultiFactorAuth = enableMultiFactorAuth;
return this;
}
/**
* <p>The ID of the IDaaS application.</p>
* <ul>
* <li>If an IDaaS EIAM 2.0 instance is associated, you need to specify an IDaaS application ID.</li>
* <li>If an IDaaS EIAM 1.0 instance is associated, you do not need to specify an IDaaS application ID.</li>
* </ul>
*
* <strong>example:</strong>
* <p>app_my6g4qmvnwxzj2f****</p>
*/
public Builder iDaaSApplicationId(String iDaaSApplicationId) {
this.putQueryParameter("IDaaSApplicationId", iDaaSApplicationId);
this.iDaaSApplicationId = iDaaSApplicationId;
return this;
}
/**
* <p>The ID of the IDaaS EIAM instance.</p>
*
* <strong>example:</strong>
* <p>idaas-cn-hangzhou-p****</p>
*/
public Builder iDaaSInstanceId(String iDaaSInstanceId) {
this.putQueryParameter("IDaaSInstanceId", iDaaSInstanceId);
this.iDaaSInstanceId = iDaaSInstanceId;
return this;
}
/**
* <p>The region ID of the IDaaS EIAM instance.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder iDaaSRegionId(String iDaaSRegionId) {
this.putQueryParameter("IDaaSRegionId", iDaaSRegionId);
this.iDaaSRegionId = iDaaSRegionId;
return this;
}
/**
* <p>The local CIDR block.</p>
* <p>The CIDR block that your client needs to access by using the SSL-VPN connection.</p>
* <p>This value can be the CIDR block of a VPC, a vSwitch, a data center that is connected to a VPC by using an Express Connect circuit, or an Alibaba Cloud service such as Object Storage Service (OSS).</p>
* <p>The subnet mask of the specified local CIDR block must be 8 to 32 bits in length. You cannot specify the following CIDR blocks as the local CIDR blocks:</p>
* <ul>
* <li>127.0.0.0~127.255.255.255</li>
* <li>169.254.0.0~169.254.255.255</li>
* <li>224.0.0.0~239.255.255.255</li>
* <li>255.0.0.0~255.255.255.255</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/8</p>
*/
public Builder localSubnet(String localSubnet) {
this.putQueryParameter("LocalSubnet", localSubnet);
this.localSubnet = localSubnet;
return this;
}
/**
* <p>The SSL server name.</p>
* <p>The name must be 1 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>sslvpnname</p>
*/
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;
}
/**
* <p>The port that is used by the SSL server. Valid values of port numbers: <strong>1</strong> to <strong>65535</strong>. Default value: <strong>1194</strong>.</p>
* <p>The following ports are not supported: <strong>22</strong>, <strong>2222</strong>, <strong>22222</strong>, <strong>9000</strong>, <strong>9001</strong>, <strong>9002</strong>, <strong>7505</strong>, <strong>80</strong>, <strong>443</strong>, <strong>53</strong>, <strong>68</strong>, <strong>123</strong>, <strong>4510</strong>, <strong>4560</strong>, <strong>500</strong>, and <strong>4500</strong>.</p>
*
* <strong>example:</strong>
* <p>1194</p>
*/
public Builder port(Integer port) {
this.putQueryParameter("Port", port);
this.port = port;
return this;
}
/**
* <p>The protocol that is used by the SSL server. Valid values:</p>
* <ul>
* <li><strong>TCP</strong> (default)</li>
* <li><strong>UDP</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>UDP</p>
*/
public Builder proto(String proto) {
this.putQueryParameter("Proto", proto);
this.proto = proto;
return this;
}
/**
* <p>The region ID of the VPN gateway.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
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;
}
/**
* <p>The ID of the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1hgim8by0kc9nga****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public CreateSslVpnServerRequest build() {
return new CreateSslVpnServerRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSslVpnServerResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSslVpnServerResponse} extends {@link TeaModel}
*
* <p>CreateSslVpnServerResponse</p>
*/
public class CreateSslVpnServerResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateSslVpnServerResponseBody body;
private CreateSslVpnServerResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateSslVpnServerResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateSslVpnServerResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateSslVpnServerResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateSslVpnServerResponseBody body);
@Override
CreateSslVpnServerResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateSslVpnServerResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateSslVpnServerResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateSslVpnServerResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateSslVpnServerResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateSslVpnServerResponse build() {
return new CreateSslVpnServerResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateSslVpnServerResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateSslVpnServerResponseBody} extends {@link TeaModel}
*
* <p>CreateSslVpnServerResponseBody</p>
*/
public class CreateSslVpnServerResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SslVpnServerId")
private String sslVpnServerId;
private CreateSslVpnServerResponseBody(Builder builder) {
this.name = builder.name;
this.requestId = builder.requestId;
this.sslVpnServerId = builder.sslVpnServerId;
}
public static Builder builder() {
return new Builder();
}
public static CreateSslVpnServerResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return sslVpnServerId
*/
public String getSslVpnServerId() {
return this.sslVpnServerId;
}
public static final class Builder {
private String name;
private String requestId;
private String sslVpnServerId;
private Builder() {
}
private Builder(CreateSslVpnServerResponseBody model) {
this.name = model.name;
this.requestId = model.requestId;
this.sslVpnServerId = model.sslVpnServerId;
}
/**
* <p>The SSL server name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E98A9651-7098-40C7-8F85-C818D1EBBA85</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the SSL server.</p>
*
* <strong>example:</strong>
* <p>vss-bp18q7hzj6largv4v****</p>
*/
public Builder sslVpnServerId(String sslVpnServerId) {
this.sslVpnServerId = sslVpnServerId;
return this;
}
public CreateSslVpnServerResponseBody build() {
return new CreateSslVpnServerResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorFilterRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorFilterRequest} extends {@link RequestModel}
*
* <p>CreateTrafficMirrorFilterRequest</p>
*/
public class CreateTrafficMirrorFilterRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EgressRules")
private java.util.List<EgressRules> egressRules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IngressRules")
private java.util.List<IngressRules> ingressRules;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterDescription")
private String trafficMirrorFilterDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterName")
private String trafficMirrorFilterName;
private CreateTrafficMirrorFilterRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.egressRules = builder.egressRules;
this.ingressRules = builder.ingressRules;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.trafficMirrorFilterDescription = builder.trafficMirrorFilterDescription;
this.trafficMirrorFilterName = builder.trafficMirrorFilterName;
}
public static Builder builder() {
return new Builder();
}
public static CreateTrafficMirrorFilterRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return egressRules
*/
public java.util.List<EgressRules> getEgressRules() {
return this.egressRules;
}
/**
* @return ingressRules
*/
public java.util.List<IngressRules> getIngressRules() {
return this.ingressRules;
}
/**
* @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 resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return trafficMirrorFilterDescription
*/
public String getTrafficMirrorFilterDescription() {
return this.trafficMirrorFilterDescription;
}
/**
* @return trafficMirrorFilterName
*/
public String getTrafficMirrorFilterName() {
return this.trafficMirrorFilterName;
}
public static final class Builder extends Request.Builder<CreateTrafficMirrorFilterRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private java.util.List<EgressRules> egressRules;
private java.util.List<IngressRules> ingressRules;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String trafficMirrorFilterDescription;
private String trafficMirrorFilterName;
private Builder() {
super();
}
private Builder(CreateTrafficMirrorFilterRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.egressRules = request.egressRules;
this.ingressRules = request.ingressRules;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.trafficMirrorFilterDescription = request.trafficMirrorFilterDescription;
this.trafficMirrorFilterName = request.trafficMirrorFilterName;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must ensure that the value is unique among all requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform a dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the required parameters, request syntax, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong>: performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. This is the default value.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The information about the outbound rules.</p>
*/
public Builder egressRules(java.util.List<EgressRules> egressRules) {
this.putQueryParameter("EgressRules", egressRules);
this.egressRules = egressRules;
return this;
}
/**
* <p>The information about inbound rules.</p>
*/
public Builder ingressRules(java.util.List<IngressRules> ingressRules) {
this.putQueryParameter("IngressRules", ingressRules);
this.ingressRules = ingressRules;
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;
}
/**
* <p>The ID of the region to which the mirrored traffic belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the mirrored traffic belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tag of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The description of the filter.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>this is a filter.</p>
*/
public Builder trafficMirrorFilterDescription(String trafficMirrorFilterDescription) {
this.putQueryParameter("TrafficMirrorFilterDescription", trafficMirrorFilterDescription);
this.trafficMirrorFilterDescription = trafficMirrorFilterDescription;
return this;
}
/**
* <p>The name of the filter.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder trafficMirrorFilterName(String trafficMirrorFilterName) {
this.putQueryParameter("TrafficMirrorFilterName", trafficMirrorFilterName);
this.trafficMirrorFilterName = trafficMirrorFilterName;
return this;
}
@Override
public CreateTrafficMirrorFilterRequest build() {
return new CreateTrafficMirrorFilterRequest(this);
}
}
/**
*
* {@link CreateTrafficMirrorFilterRequest} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRequest</p>
*/
public static class EgressRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.NameInMap("DestinationPortRange")
private String destinationPortRange;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrBlock")
private String sourceCidrBlock;
@com.aliyun.core.annotation.NameInMap("SourcePortRange")
private String sourcePortRange;
private EgressRules(Builder builder) {
this.action = builder.action;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.destinationPortRange = builder.destinationPortRange;
this.ipVersion = builder.ipVersion;
this.priority = builder.priority;
this.protocol = builder.protocol;
this.sourceCidrBlock = builder.sourceCidrBlock;
this.sourcePortRange = builder.sourcePortRange;
}
public static Builder builder() {
return new Builder();
}
public static EgressRules create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return destinationPortRange
*/
public String getDestinationPortRange() {
return this.destinationPortRange;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrBlock
*/
public String getSourceCidrBlock() {
return this.sourceCidrBlock;
}
/**
* @return sourcePortRange
*/
public String getSourcePortRange() {
return this.sourcePortRange;
}
public static final class Builder {
private String action;
private String destinationCidrBlock;
private String destinationPortRange;
private String ipVersion;
private Integer priority;
private String protocol;
private String sourceCidrBlock;
private String sourcePortRange;
private Builder() {
}
private Builder(EgressRules model) {
this.action = model.action;
this.destinationCidrBlock = model.destinationCidrBlock;
this.destinationPortRange = model.destinationPortRange;
this.ipVersion = model.ipVersion;
this.priority = model.priority;
this.protocol = model.protocol;
this.sourceCidrBlock = model.sourceCidrBlock;
this.sourcePortRange = model.sourcePortRange;
}
/**
* <p>The collection policy of the outbound rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong>: collects the network traffic.</li>
* <li><strong>drop</strong>: does not collect the network traffic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>The destination CIDR block of the outbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The destination port range of the outbound traffic. Valid values for a port: <strong>1</strong> to <strong>65535</strong>. Separate the first port and the last port with a forward slash (/). Examples: <strong>1/200</strong> and <strong>80/80</strong>. You cannot set this parameter to only -1/-1, which specifies all ports.</p>
* <blockquote>
* <p> If <strong>EgressRules.N.Protocol</strong> is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to specify this parameter. This indicates that all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>22/40</p>
*/
public Builder destinationPortRange(String destinationPortRange) {
this.destinationPortRange = destinationPortRange;
return this;
}
/**
* <p>The IP version of the instance. The following value may be returned:</p>
* <ul>
* <li><strong>IPv4</strong>: IPv4</li>
* <li><strong>IPv6</strong>: IPv6</li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The priority of the outbound rule. A smaller value indicates a higher priority. The maximum value of <strong>N</strong> is <strong>10</strong>. You can configure up to 10 outbound rules for a filter.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* <p>The type of the protocol that is used by the outbound traffic that you want to mirror. Valid values:</p>
* <ul>
* <li><strong>ALL</strong>: all protocols</li>
* <li><strong>ICMP</strong>: Internet Control Message Protocol.</li>
* <li><strong>TCP</strong>: Transmission Control Protocol.</li>
* <li><strong>UDP</strong>: User Datagram Protocol.</li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block of the outbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrBlock(String sourceCidrBlock) {
this.sourceCidrBlock = sourceCidrBlock;
return this;
}
/**
* <p>The source port range of the outbound traffic. Valid values: <strong>1</strong> to <strong>65535</strong>. Separate the first port and the last port with a forward slash (/). Examples: <strong>1/200</strong> and <strong>80/80</strong>. You cannot set this parameter to only -1/-1, which specifies all ports.</p>
* <blockquote>
* <p> If <strong>EgressRules.N.Protocol</strong> is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to specify this parameter. This indicates that all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>22/40</p>
*/
public Builder sourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
return this;
}
public EgressRules build() {
return new EgressRules(this);
}
}
}
/**
*
* {@link CreateTrafficMirrorFilterRequest} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRequest</p>
*/
public static class IngressRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.NameInMap("DestinationPortRange")
private String destinationPortRange;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrBlock")
private String sourceCidrBlock;
@com.aliyun.core.annotation.NameInMap("SourcePortRange")
private String sourcePortRange;
private IngressRules(Builder builder) {
this.action = builder.action;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.destinationPortRange = builder.destinationPortRange;
this.ipVersion = builder.ipVersion;
this.priority = builder.priority;
this.protocol = builder.protocol;
this.sourceCidrBlock = builder.sourceCidrBlock;
this.sourcePortRange = builder.sourcePortRange;
}
public static Builder builder() {
return new Builder();
}
public static IngressRules create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return destinationPortRange
*/
public String getDestinationPortRange() {
return this.destinationPortRange;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrBlock
*/
public String getSourceCidrBlock() {
return this.sourceCidrBlock;
}
/**
* @return sourcePortRange
*/
public String getSourcePortRange() {
return this.sourcePortRange;
}
public static final class Builder {
private String action;
private String destinationCidrBlock;
private String destinationPortRange;
private String ipVersion;
private Integer priority;
private String protocol;
private String sourceCidrBlock;
private String sourcePortRange;
private Builder() {
}
private Builder(IngressRules model) {
this.action = model.action;
this.destinationCidrBlock = model.destinationCidrBlock;
this.destinationPortRange = model.destinationPortRange;
this.ipVersion = model.ipVersion;
this.priority = model.priority;
this.protocol = model.protocol;
this.sourceCidrBlock = model.sourceCidrBlock;
this.sourcePortRange = model.sourcePortRange;
}
/**
* <p>The collection policy of the inbound rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong>: collects the network traffic.</li>
* <li><strong>drop</strong>: does not collect the network traffic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>The destination CIDR block of the inbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The destination port range of the inbound traffic. Valid value: <strong>1</strong> to <strong>65535</strong>. Separate the first port and last port with a forward slash (/). For example, <strong>1/200</strong> or <strong>80/80</strong>.</p>
* <blockquote>
* <p> If you set <strong>IngressRules.N.Protocol</strong> to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to set this parameter. In this case, all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80/120</p>
*/
public Builder destinationPortRange(String destinationPortRange) {
this.destinationPortRange = destinationPortRange;
return this;
}
/**
* <p>The IP version of the instance. The following value may be returned:</p>
* <ul>
* <li><strong>IPv4</strong></li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value of <strong>N</strong> is <strong>10</strong>. You can configure up to 10 inbound rules for a filter.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* <p>The type of the protocol is used by the inbound traffic that you want to mirror. Valid values:</p>
* <ul>
* <li><strong>ALL</strong>: all protocols</li>
* <li><strong>ICMP</strong>: Internet Control Message Protocol.</li>
* <li><strong>TCP</strong>: Transmission Control Protocol.</li>
* <li><strong>UDP</strong>: User Datagram Protocol.</li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block of the inbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrBlock(String sourceCidrBlock) {
this.sourceCidrBlock = sourceCidrBlock;
return this;
}
/**
* <p>The source port range of the inbound traffic. Valid value: <strong>1</strong> to <strong>65535</strong>. Separate the first port and last port with a forward slash (/). For example, <strong>1/200</strong> or <strong>80/80</strong>.</p>
* <blockquote>
* <p> If <strong>IngressRules.N.Protocol</strong> is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to specify this parameter. This indicates that all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80/120</p>
*/
public Builder sourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
return this;
}
public IngressRules build() {
return new IngressRules(this);
}
}
}
/**
*
* {@link CreateTrafficMirrorFilterRequest} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorFilterResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorFilterResponse} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterResponse</p>
*/
public class CreateTrafficMirrorFilterResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateTrafficMirrorFilterResponseBody body;
private CreateTrafficMirrorFilterResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateTrafficMirrorFilterResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateTrafficMirrorFilterResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateTrafficMirrorFilterResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateTrafficMirrorFilterResponseBody body);
@Override
CreateTrafficMirrorFilterResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateTrafficMirrorFilterResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateTrafficMirrorFilterResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateTrafficMirrorFilterResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateTrafficMirrorFilterResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateTrafficMirrorFilterResponse build() {
return new CreateTrafficMirrorFilterResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorFilterResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorFilterResponseBody} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterResponseBody</p>
*/
public class CreateTrafficMirrorFilterResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId")
private String trafficMirrorFilterId;
private CreateTrafficMirrorFilterResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.trafficMirrorFilterId = builder.trafficMirrorFilterId;
}
public static Builder builder() {
return new Builder();
}
public static CreateTrafficMirrorFilterResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return trafficMirrorFilterId
*/
public String getTrafficMirrorFilterId() {
return this.trafficMirrorFilterId;
}
public static final class Builder {
private String requestId;
private String resourceGroupId;
private String trafficMirrorFilterId;
private Builder() {
}
private Builder(CreateTrafficMirrorFilterResponseBody model) {
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.trafficMirrorFilterId = model.trafficMirrorFilterId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>28DB147D-217B-43E8-9E94-A3F6837DDC8A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the mirrored traffic belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the filter.</p>
*
* <strong>example:</strong>
* <p>tmf-j6cmls82xnc86vtpe****</p>
*/
public Builder trafficMirrorFilterId(String trafficMirrorFilterId) {
this.trafficMirrorFilterId = trafficMirrorFilterId;
return this;
}
public CreateTrafficMirrorFilterResponseBody build() {
return new CreateTrafficMirrorFilterResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorFilterRulesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorFilterRulesRequest} extends {@link RequestModel}
*
* <p>CreateTrafficMirrorFilterRulesRequest</p>
*/
public class CreateTrafficMirrorFilterRulesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EgressRules")
private java.util.List<EgressRules> egressRules;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IngressRules")
private java.util.List<IngressRules> ingressRules;
@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("TrafficMirrorFilterId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorFilterId;
private CreateTrafficMirrorFilterRulesRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.egressRules = builder.egressRules;
this.ingressRules = builder.ingressRules;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.trafficMirrorFilterId = builder.trafficMirrorFilterId;
}
public static Builder builder() {
return new Builder();
}
public static CreateTrafficMirrorFilterRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return egressRules
*/
public java.util.List<EgressRules> getEgressRules() {
return this.egressRules;
}
/**
* @return ingressRules
*/
public java.util.List<IngressRules> getIngressRules() {
return this.ingressRules;
}
/**
* @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 trafficMirrorFilterId
*/
public String getTrafficMirrorFilterId() {
return this.trafficMirrorFilterId;
}
public static final class Builder extends Request.Builder<CreateTrafficMirrorFilterRulesRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private java.util.List<EgressRules> egressRules;
private java.util.List<IngressRules> ingressRules;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String trafficMirrorFilterId;
private Builder() {
super();
}
private Builder(CreateTrafficMirrorFilterRulesRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.egressRules = request.egressRules;
this.ingressRules = request.ingressRules;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.trafficMirrorFilterId = request.trafficMirrorFilterId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to check the request without performing the operation. Valid values:</p>
* <ul>
* <li><strong>true</strong>: checks the request without performing the operation. The system checks the required parameters, request format, and limits. If the request fails the precheck, an error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): sends the request. After the request passes the check, the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The information about the outbound rule.</p>
*/
public Builder egressRules(java.util.List<EgressRules> egressRules) {
this.putQueryParameter("EgressRules", egressRules);
this.egressRules = egressRules;
return this;
}
/**
* <p>The information about the inbound rules.</p>
*/
public Builder ingressRules(java.util.List<IngressRules> ingressRules) {
this.putQueryParameter("IngressRules", ingressRules);
this.ingressRules = ingressRules;
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;
}
/**
* <p>The ID of the region to which the mirrored traffic belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
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;
}
/**
* <p>The ID of the filter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tmf-j6cmls82xnc86vtpe****</p>
*/
public Builder trafficMirrorFilterId(String trafficMirrorFilterId) {
this.putQueryParameter("TrafficMirrorFilterId", trafficMirrorFilterId);
this.trafficMirrorFilterId = trafficMirrorFilterId;
return this;
}
@Override
public CreateTrafficMirrorFilterRulesRequest build() {
return new CreateTrafficMirrorFilterRulesRequest(this);
}
}
/**
*
* {@link CreateTrafficMirrorFilterRulesRequest} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRulesRequest</p>
*/
public static class EgressRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.NameInMap("DestinationPortRange")
private String destinationPortRange;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrBlock")
private String sourceCidrBlock;
@com.aliyun.core.annotation.NameInMap("SourcePortRange")
private String sourcePortRange;
private EgressRules(Builder builder) {
this.action = builder.action;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.destinationPortRange = builder.destinationPortRange;
this.ipVersion = builder.ipVersion;
this.priority = builder.priority;
this.protocol = builder.protocol;
this.sourceCidrBlock = builder.sourceCidrBlock;
this.sourcePortRange = builder.sourcePortRange;
}
public static Builder builder() {
return new Builder();
}
public static EgressRules create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return destinationPortRange
*/
public String getDestinationPortRange() {
return this.destinationPortRange;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrBlock
*/
public String getSourceCidrBlock() {
return this.sourceCidrBlock;
}
/**
* @return sourcePortRange
*/
public String getSourcePortRange() {
return this.sourcePortRange;
}
public static final class Builder {
private String action;
private String destinationCidrBlock;
private String destinationPortRange;
private String ipVersion;
private Integer priority;
private String protocol;
private String sourceCidrBlock;
private String sourcePortRange;
private Builder() {
}
private Builder(EgressRules model) {
this.action = model.action;
this.destinationCidrBlock = model.destinationCidrBlock;
this.destinationPortRange = model.destinationPortRange;
this.ipVersion = model.ipVersion;
this.priority = model.priority;
this.protocol = model.protocol;
this.sourceCidrBlock = model.sourceCidrBlock;
this.sourcePortRange = model.sourcePortRange;
}
/**
* <p>The collection policy of the outbound rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong>: accepts network traffic.</li>
* <li><strong>drop</strong>: drops network traffic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>The destination CIDR block of the outbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The destination port range of the outbound traffic. Valid value: <strong>1</strong> to <strong>65535</strong>. Separate the first and last port with a forward slash (/). For example <strong>1/200</strong> and <strong>80/80</strong>. You cannot set this parameter to **-1/-1**, which indicates all ports.</p>
* <blockquote>
* <p> If <strong>EgressRules.N.Protocol</strong> is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to set this parameter. In this case, all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>22/40</p>
*/
public Builder destinationPortRange(String destinationPortRange) {
this.destinationPortRange = destinationPortRange;
return this;
}
/**
* <p>The IP version of the instance. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong>: IPv4</li>
* <li><strong>IPv6</strong>: IPv6</li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The priority of the outbound rule. A smaller value indicates a higher priority. The maximum value of <strong>N</strong> is <strong>10</strong>. You can configure up to 10 outbound rules for a filter.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* <p>The protocol that is used by the outbound traffic to be mirrored. Valid values:</p>
* <ul>
* <li><strong>ALL</strong>: all protocols</li>
* <li><strong>ICMP</strong>: Internet Control Message Protocol.</li>
* <li><strong>TCP</strong>: Transmission Control Protocol.</li>
* <li><strong>UDP</strong>: User Datagram Protocol.</li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block of the outbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrBlock(String sourceCidrBlock) {
this.sourceCidrBlock = sourceCidrBlock;
return this;
}
/**
* <p>The source port range of the outbound traffic. Valid value: <strong>1</strong> to <strong>65535</strong>. Separate the first and last port with a forward slash (/). For example <strong>1/200</strong> and <strong>80/80</strong>. You cannot set this parameter to **-1/-1**, which indicates all ports.</p>
* <blockquote>
* <p> If <strong>EgressRules.N.Protocol</strong> is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to set this parameter. In this case, all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>22/40</p>
*/
public Builder sourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
return this;
}
public EgressRules build() {
return new EgressRules(this);
}
}
}
/**
*
* {@link CreateTrafficMirrorFilterRulesRequest} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRulesRequest</p>
*/
public static class IngressRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Action")
private String action;
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.NameInMap("DestinationPortRange")
private String destinationPortRange;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.NameInMap("Protocol")
private String protocol;
@com.aliyun.core.annotation.NameInMap("SourceCidrBlock")
private String sourceCidrBlock;
@com.aliyun.core.annotation.NameInMap("SourcePortRange")
private String sourcePortRange;
private IngressRules(Builder builder) {
this.action = builder.action;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.destinationPortRange = builder.destinationPortRange;
this.ipVersion = builder.ipVersion;
this.priority = builder.priority;
this.protocol = builder.protocol;
this.sourceCidrBlock = builder.sourceCidrBlock;
this.sourcePortRange = builder.sourcePortRange;
}
public static Builder builder() {
return new Builder();
}
public static IngressRules create() {
return builder().build();
}
/**
* @return action
*/
public String getAction() {
return this.action;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return destinationPortRange
*/
public String getDestinationPortRange() {
return this.destinationPortRange;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
/**
* @return sourceCidrBlock
*/
public String getSourceCidrBlock() {
return this.sourceCidrBlock;
}
/**
* @return sourcePortRange
*/
public String getSourcePortRange() {
return this.sourcePortRange;
}
public static final class Builder {
private String action;
private String destinationCidrBlock;
private String destinationPortRange;
private String ipVersion;
private Integer priority;
private String protocol;
private String sourceCidrBlock;
private String sourcePortRange;
private Builder() {
}
private Builder(IngressRules model) {
this.action = model.action;
this.destinationCidrBlock = model.destinationCidrBlock;
this.destinationPortRange = model.destinationPortRange;
this.ipVersion = model.ipVersion;
this.priority = model.priority;
this.protocol = model.protocol;
this.sourceCidrBlock = model.sourceCidrBlock;
this.sourcePortRange = model.sourcePortRange;
}
/**
* <p>The policy of the inbound rule. Valid values:</p>
* <ul>
* <li><strong>accept</strong>: collects network traffic.</li>
* <li><strong>drop</strong>: drops network traffic.</li>
* </ul>
*
* <strong>example:</strong>
* <p>accept</p>
*/
public Builder action(String action) {
this.action = action;
return this;
}
/**
* <p>The destination CIDR block of the inbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The destination port range of the inbound traffic. Valid value: <strong>1</strong> to <strong>65535</strong>. Separate the first and the last port with a forward slash (/). For example, <strong>1/200</strong> or <strong>80/80</strong>.</p>
* <blockquote>
* <p> If the <strong>IngressRules.N.Protocol</strong> parameter is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to set this parameter. In this case, all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80/120</p>
*/
public Builder destinationPortRange(String destinationPortRange) {
this.destinationPortRange = destinationPortRange;
return this;
}
/**
* <p>The IP version of the instance. The following value may be returned:</p>
* <ul>
* <li><strong>IPv4</strong>: IPv4</li>
* <li><strong>IPv6</strong>: IPv6</li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value of <strong>N</strong> is <strong>10</strong>. You can configure up to 10 inbound rules for a filter.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* <p>The protocol that is used by the inbound traffic to be mirrored. Valid values:</p>
* <ul>
* <li><strong>ALL</strong>: all protocols</li>
* <li><strong>ICMP</strong>: Internet Control Message Protocol.</li>
* <li><strong>TCP</strong>: Transmission Control Protocol.</li>
* <li><strong>UDP</strong>: User Datagram Protocol.</li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* <p>The source CIDR block of the inbound traffic.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder sourceCidrBlock(String sourceCidrBlock) {
this.sourceCidrBlock = sourceCidrBlock;
return this;
}
/**
* <p>The source port range of the inbound traffic. Valid value: <strong>1</strong> to <strong>65535</strong>. Separate the first and last port with a forward slash (/). For example <strong>1/200</strong> and <strong>80/80</strong>. You cannot set this parameter to **-1/-1**, which indicates all ports.</p>
* <blockquote>
* <p> If the <strong>IngressRules.N.Protocol</strong> parameter is set to <strong>ALL</strong> or <strong>ICMP</strong>, you do not need to set this parameter. In this case, all ports are available.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80/120</p>
*/
public Builder sourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
return this;
}
public IngressRules build() {
return new IngressRules(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorFilterRulesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorFilterRulesResponse} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRulesResponse</p>
*/
public class CreateTrafficMirrorFilterRulesResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateTrafficMirrorFilterRulesResponseBody body;
private CreateTrafficMirrorFilterRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateTrafficMirrorFilterRulesResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateTrafficMirrorFilterRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateTrafficMirrorFilterRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateTrafficMirrorFilterRulesResponseBody body);
@Override
CreateTrafficMirrorFilterRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateTrafficMirrorFilterRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateTrafficMirrorFilterRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateTrafficMirrorFilterRulesResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateTrafficMirrorFilterRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateTrafficMirrorFilterRulesResponse build() {
return new CreateTrafficMirrorFilterRulesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorFilterRulesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorFilterRulesResponseBody} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRulesResponseBody</p>
*/
public class CreateTrafficMirrorFilterRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EgressRules")
private java.util.List<EgressRules> egressRules;
@com.aliyun.core.annotation.NameInMap("IngressRules")
private java.util.List<IngressRules> ingressRules;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private CreateTrafficMirrorFilterRulesResponseBody(Builder builder) {
this.egressRules = builder.egressRules;
this.ingressRules = builder.ingressRules;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static CreateTrafficMirrorFilterRulesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return egressRules
*/
public java.util.List<EgressRules> getEgressRules() {
return this.egressRules;
}
/**
* @return ingressRules
*/
public java.util.List<IngressRules> getIngressRules() {
return this.ingressRules;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<EgressRules> egressRules;
private java.util.List<IngressRules> ingressRules;
private String requestId;
private Builder() {
}
private Builder(CreateTrafficMirrorFilterRulesResponseBody model) {
this.egressRules = model.egressRules;
this.ingressRules = model.ingressRules;
this.requestId = model.requestId;
}
/**
* <p>The list of outbound rules.</p>
*/
public Builder egressRules(java.util.List<EgressRules> egressRules) {
this.egressRules = egressRules;
return this;
}
/**
* <p>The list of inbound rules.</p>
*/
public Builder ingressRules(java.util.List<IngressRules> ingressRules) {
this.ingressRules = ingressRules;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>07F272E2-6AD5-433A-8207-A607C76F1676</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public CreateTrafficMirrorFilterRulesResponseBody build() {
return new CreateTrafficMirrorFilterRulesResponseBody(this);
}
}
/**
*
* {@link CreateTrafficMirrorFilterRulesResponseBody} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRulesResponseBody</p>
*/
public static class EgressRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
private EgressRules(Builder builder) {
this.instanceId = builder.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static EgressRules create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
public static final class Builder {
private String instanceId;
private Builder() {
}
private Builder(EgressRules model) {
this.instanceId = model.instanceId;
}
/**
* <p>The ID of the outbound rule.</p>
*
* <strong>example:</strong>
* <p>tmr-j6cok23ugp53eeib5****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public EgressRules build() {
return new EgressRules(this);
}
}
}
/**
*
* {@link CreateTrafficMirrorFilterRulesResponseBody} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorFilterRulesResponseBody</p>
*/
public static class IngressRules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
private IngressRules(Builder builder) {
this.instanceId = builder.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static IngressRules create() {
return builder().build();
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
public static final class Builder {
private String instanceId;
private Builder() {
}
private Builder(IngressRules model) {
this.instanceId = model.instanceId;
}
/**
* <p>The ID of the inbound rule.</p>
*
* <strong>example:</strong>
* <p>tmr-j6c6rtallo51ouzv3****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public IngressRules build() {
return new IngressRules(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorSessionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorSessionRequest} extends {@link RequestModel}
*
* <p>CreateTrafficMirrorSessionRequest</p>
*/
public class CreateTrafficMirrorSessionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@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("PacketLength")
private Integer packetLength;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Priority")
@com.aliyun.core.annotation.Validation(required = true, maximum = 32766, minimum = 1)
private Integer priority;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorFilterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionDescription")
private String trafficMirrorSessionDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionName")
private String trafficMirrorSessionName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorSourceIds")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 128)
private java.util.List<String> trafficMirrorSourceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorTargetId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorTargetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorTargetType")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorTargetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VirtualNetworkId")
private Integer virtualNetworkId;
private CreateTrafficMirrorSessionRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.enabled = builder.enabled;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.packetLength = builder.packetLength;
this.priority = builder.priority;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.trafficMirrorFilterId = builder.trafficMirrorFilterId;
this.trafficMirrorSessionDescription = builder.trafficMirrorSessionDescription;
this.trafficMirrorSessionName = builder.trafficMirrorSessionName;
this.trafficMirrorSourceIds = builder.trafficMirrorSourceIds;
this.trafficMirrorTargetId = builder.trafficMirrorTargetId;
this.trafficMirrorTargetType = builder.trafficMirrorTargetType;
this.virtualNetworkId = builder.virtualNetworkId;
}
public static Builder builder() {
return new Builder();
}
public static CreateTrafficMirrorSessionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return packetLength
*/
public Integer getPacketLength() {
return this.packetLength;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return trafficMirrorFilterId
*/
public String getTrafficMirrorFilterId() {
return this.trafficMirrorFilterId;
}
/**
* @return trafficMirrorSessionDescription
*/
public String getTrafficMirrorSessionDescription() {
return this.trafficMirrorSessionDescription;
}
/**
* @return trafficMirrorSessionName
*/
public String getTrafficMirrorSessionName() {
return this.trafficMirrorSessionName;
}
/**
* @return trafficMirrorSourceIds
*/
public java.util.List<String> getTrafficMirrorSourceIds() {
return this.trafficMirrorSourceIds;
}
/**
* @return trafficMirrorTargetId
*/
public String getTrafficMirrorTargetId() {
return this.trafficMirrorTargetId;
}
/**
* @return trafficMirrorTargetType
*/
public String getTrafficMirrorTargetType() {
return this.trafficMirrorTargetType;
}
/**
* @return virtualNetworkId
*/
public Integer getVirtualNetworkId() {
return this.virtualNetworkId;
}
public static final class Builder extends Request.Builder<CreateTrafficMirrorSessionRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private Boolean enabled;
private String ownerAccount;
private Long ownerId;
private Integer packetLength;
private Integer priority;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String trafficMirrorFilterId;
private String trafficMirrorSessionDescription;
private String trafficMirrorSessionName;
private java.util.List<String> trafficMirrorSourceIds;
private String trafficMirrorTargetId;
private String trafficMirrorTargetType;
private Integer virtualNetworkId;
private Builder() {
super();
}
private Builder(CreateTrafficMirrorSessionRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.enabled = request.enabled;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.packetLength = request.packetLength;
this.priority = request.priority;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.trafficMirrorFilterId = request.trafficMirrorFilterId;
this.trafficMirrorSessionDescription = request.trafficMirrorSessionDescription;
this.trafficMirrorSessionName = request.trafficMirrorSessionName;
this.trafficMirrorSourceIds = request.trafficMirrorSourceIds;
this.trafficMirrorTargetId = request.trafficMirrorTargetId;
this.trafficMirrorTargetType = request.trafficMirrorTargetType;
this.virtualNetworkId = request.virtualNetworkId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must ensure that the value is unique among all requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> might be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform a dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the required parameters, request format, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Specifies whether to enable the traffic mirror session. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default): does not enable the traffic mirror session.</li>
* <li><strong>true</strong>: enables the traffic mirror session.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enabled(Boolean enabled) {
this.putQueryParameter("Enabled", enabled);
this.enabled = enabled;
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;
}
/**
* <p>The maximum transmission unit.</p>
* <p>Valid values: <strong>64 to 9600</strong>. Default value: <strong>1500</strong>.</p>
*
* <strong>example:</strong>
* <p>1500</p>
*/
public Builder packetLength(Integer packetLength) {
this.putQueryParameter("PacketLength", packetLength);
this.packetLength = packetLength;
return this;
}
/**
* <p>The priority of the traffic mirror session. Valid values: <strong>1</strong> to <strong>32766</strong>.</p>
* <p>A smaller value indicates a higher priority. You cannot specify identical priorities for traffic mirror sessions that are created in the same region by using the same account.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder priority(Integer priority) {
this.putQueryParameter("Priority", priority);
this.priority = priority;
return this;
}
/**
* <p>The ID of the region to which the traffic mirror session belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the mirrored traffic belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tag of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the filter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tmf-j6cmls82xnc86vtpe****</p>
*/
public Builder trafficMirrorFilterId(String trafficMirrorFilterId) {
this.putQueryParameter("TrafficMirrorFilterId", trafficMirrorFilterId);
this.trafficMirrorFilterId = trafficMirrorFilterId;
return this;
}
/**
* <p>The description of the traffic mirror session.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>This is a trafficmirrorsession.</p>
*/
public Builder trafficMirrorSessionDescription(String trafficMirrorSessionDescription) {
this.putQueryParameter("TrafficMirrorSessionDescription", trafficMirrorSessionDescription);
this.trafficMirrorSessionDescription = trafficMirrorSessionDescription;
return this;
}
/**
* <p>The name of the traffic mirror session.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder trafficMirrorSessionName(String trafficMirrorSessionName) {
this.putQueryParameter("TrafficMirrorSessionName", trafficMirrorSessionName);
this.trafficMirrorSessionName = trafficMirrorSessionName;
return this;
}
/**
* <p>The ID of the traffic mirror source. You can specify only an elastic network interface (ENI) as the traffic mirror source. The default value of <strong>N</strong> is <strong>1</strong>, which indicates that you can add only one traffic mirror source to a traffic mirror session.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eni-j6c2fp57q8rr47rp****</p>
*/
public Builder trafficMirrorSourceIds(java.util.List<String> trafficMirrorSourceIds) {
this.putQueryParameter("TrafficMirrorSourceIds", trafficMirrorSourceIds);
this.trafficMirrorSourceIds = trafficMirrorSourceIds;
return this;
}
/**
* <p>The ID of the traffic mirror destination. You can specify only an elastic network interface (ENI) or a Server Load Balancer (SLB) instance as a traffic mirror destination.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eni-j6c8znm5l1yt4sox****</p>
*/
public Builder trafficMirrorTargetId(String trafficMirrorTargetId) {
this.putQueryParameter("TrafficMirrorTargetId", trafficMirrorTargetId);
this.trafficMirrorTargetId = trafficMirrorTargetId;
return this;
}
/**
* <p>The type of the traffic mirror destination. Valid values:</p>
* <ul>
* <li><strong>NetworkInterface</strong>: an ENI</li>
* <li><strong>SLB</strong>: an SLB instance</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>NetworkInterface</p>
*/
public Builder trafficMirrorTargetType(String trafficMirrorTargetType) {
this.putQueryParameter("TrafficMirrorTargetType", trafficMirrorTargetType);
this.trafficMirrorTargetType = trafficMirrorTargetType;
return this;
}
/**
* <p>The VXLAN network identifier (VNI). Valid values: <strong>0</strong> to <strong>16777215</strong>.</p>
* <p>You can use VNIs to identify mirrored traffic from different sessions at the traffic mirror destination. You can specify a custom VNI or use a random VNI allocated by the system. If you want the system to randomly allocate a VNI, do not enter a value.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder virtualNetworkId(Integer virtualNetworkId) {
this.putQueryParameter("VirtualNetworkId", virtualNetworkId);
this.virtualNetworkId = virtualNetworkId;
return this;
}
@Override
public CreateTrafficMirrorSessionRequest build() {
return new CreateTrafficMirrorSessionRequest(this);
}
}
/**
*
* {@link CreateTrafficMirrorSessionRequest} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorSessionRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorSessionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorSessionResponse} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorSessionResponse</p>
*/
public class CreateTrafficMirrorSessionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateTrafficMirrorSessionResponseBody body;
private CreateTrafficMirrorSessionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateTrafficMirrorSessionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateTrafficMirrorSessionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateTrafficMirrorSessionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateTrafficMirrorSessionResponseBody body);
@Override
CreateTrafficMirrorSessionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateTrafficMirrorSessionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateTrafficMirrorSessionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateTrafficMirrorSessionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateTrafficMirrorSessionResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateTrafficMirrorSessionResponse build() {
return new CreateTrafficMirrorSessionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateTrafficMirrorSessionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateTrafficMirrorSessionResponseBody} extends {@link TeaModel}
*
* <p>CreateTrafficMirrorSessionResponseBody</p>
*/
public class CreateTrafficMirrorSessionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionId")
private String trafficMirrorSessionId;
private CreateTrafficMirrorSessionResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.trafficMirrorSessionId = builder.trafficMirrorSessionId;
}
public static Builder builder() {
return new Builder();
}
public static CreateTrafficMirrorSessionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return trafficMirrorSessionId
*/
public String getTrafficMirrorSessionId() {
return this.trafficMirrorSessionId;
}
public static final class Builder {
private String requestId;
private String resourceGroupId;
private String trafficMirrorSessionId;
private Builder() {
}
private Builder(CreateTrafficMirrorSessionResponseBody model) {
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.trafficMirrorSessionId = model.trafficMirrorSessionId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the mirrored traffic belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the traffic mirror session.</p>
*
* <strong>example:</strong>
* <p>tms-j6ce5di4w7nvigfjz****</p>
*/
public Builder trafficMirrorSessionId(String trafficMirrorSessionId) {
this.trafficMirrorSessionId = trafficMirrorSessionId;
return this;
}
public CreateTrafficMirrorSessionResponseBody build() {
return new CreateTrafficMirrorSessionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVSwitchCidrReservationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVSwitchCidrReservationRequest} extends {@link RequestModel}
*
* <p>CreateVSwitchCidrReservationRequest</p>
*/
public class CreateVSwitchCidrReservationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationCidr")
private String vSwitchCidrReservationCidr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationDescription")
private String vSwitchCidrReservationDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationMask")
private String vSwitchCidrReservationMask;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationName")
private String vSwitchCidrReservationName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationType")
private String vSwitchCidrReservationType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
@com.aliyun.core.annotation.Validation(required = true)
private String vSwitchId;
private CreateVSwitchCidrReservationRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ipVersion = builder.ipVersion;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.vSwitchCidrReservationCidr = builder.vSwitchCidrReservationCidr;
this.vSwitchCidrReservationDescription = builder.vSwitchCidrReservationDescription;
this.vSwitchCidrReservationMask = builder.vSwitchCidrReservationMask;
this.vSwitchCidrReservationName = builder.vSwitchCidrReservationName;
this.vSwitchCidrReservationType = builder.vSwitchCidrReservationType;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVSwitchCidrReservationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vSwitchCidrReservationCidr
*/
public String getVSwitchCidrReservationCidr() {
return this.vSwitchCidrReservationCidr;
}
/**
* @return vSwitchCidrReservationDescription
*/
public String getVSwitchCidrReservationDescription() {
return this.vSwitchCidrReservationDescription;
}
/**
* @return vSwitchCidrReservationMask
*/
public String getVSwitchCidrReservationMask() {
return this.vSwitchCidrReservationMask;
}
/**
* @return vSwitchCidrReservationName
*/
public String getVSwitchCidrReservationName() {
return this.vSwitchCidrReservationName;
}
/**
* @return vSwitchCidrReservationType
*/
public String getVSwitchCidrReservationType() {
return this.vSwitchCidrReservationType;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder extends Request.Builder<CreateVSwitchCidrReservationRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ipVersion;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String vSwitchCidrReservationCidr;
private String vSwitchCidrReservationDescription;
private String vSwitchCidrReservationMask;
private String vSwitchCidrReservationName;
private String vSwitchCidrReservationType;
private String vSwitchId;
private Builder() {
super();
}
private Builder(CreateVSwitchCidrReservationRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ipVersion = request.ipVersion;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.vSwitchCidrReservationCidr = request.vSwitchCidrReservationCidr;
this.vSwitchCidrReservationDescription = request.vSwitchCidrReservationDescription;
this.vSwitchCidrReservationMask = request.vSwitchCidrReservationMask;
this.vSwitchCidrReservationName = request.vSwitchCidrReservationName;
this.vSwitchCidrReservationType = request.vSwitchCidrReservationType;
this.vSwitchId = request.vSwitchId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run, without performing the actual request. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The IP version of the reserved CIDR block. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong> (default)</li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.putQueryParameter("IpVersion", ipVersion);
this.ipVersion = ipVersion;
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;
}
/**
* <p>The ID of the region where the vSwitch is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>Resource tags</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The reserved CIDR block of the vSwitch.</p>
* <ul>
* <li>When <strong>IpVersion</strong> is set to <strong>IPv4</strong>, the reserved CIDR block must be a proper subset of the IPv4 CIDR block of the vSwitch and the subnet mask length of the reserved CIDR block cannot be greater than 28.</li>
* <li>When <strong>IpVersion</strong> is set to <strong>IPv6</strong>, the reserved CIDR block must be a proper subset of the IPv6 CIDR block of the vSwitch and the subnet mask length of the reserved CIDR block cannot be greater than 80.</li>
* </ul>
* <blockquote>
* <p> You must specify one of <strong>VSwitchCidrReservationMask</strong> and <strong>VSwitchCidrReservationCidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>192.168.1.64/28</p>
*/
public Builder vSwitchCidrReservationCidr(String vSwitchCidrReservationCidr) {
this.putQueryParameter("VSwitchCidrReservationCidr", vSwitchCidrReservationCidr);
this.vSwitchCidrReservationCidr = vSwitchCidrReservationCidr;
return this;
}
/**
* <p>The description of the reserved CIDR block. This parameter is empty by default.</p>
* <p>The description must be 2 to 256 characters in length. It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>ReservationDescription</p>
*/
public Builder vSwitchCidrReservationDescription(String vSwitchCidrReservationDescription) {
this.putQueryParameter("VSwitchCidrReservationDescription", vSwitchCidrReservationDescription);
this.vSwitchCidrReservationDescription = vSwitchCidrReservationDescription;
return this;
}
/**
* <p>The subnet mask of the reserved CIDR block.</p>
* <ul>
* <li>When <strong>IpVersion</strong> is set to <strong>IPv4</strong>, the subnet mask length of the CIDR block must be greater than the IPv4 subnet mask length of the vSwitch and cannot be greater than 28.</li>
* <li>When <strong>IpVersion</strong> is set to <strong>IPv6</strong>, the subnet mask length of the CIDR block must be greater than the IPv6 subnet mask length of the vSwitch and cannot be greater than 80.</li>
* </ul>
* <blockquote>
* <p> You must specify one of <strong>VSwitchCidrReservationMask</strong> and <strong>VSwitchCidrReservationCidr</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>28</p>
*/
public Builder vSwitchCidrReservationMask(String vSwitchCidrReservationMask) {
this.putQueryParameter("VSwitchCidrReservationMask", vSwitchCidrReservationMask);
this.vSwitchCidrReservationMask = vSwitchCidrReservationMask;
return this;
}
/**
* <p>The name of the reserved CIDR block.</p>
* <p>The name must be 2 to 128 characters in length and can contain digits, underscores (_), and hyphens (-). It must start with a letter.</p>
*
* <strong>example:</strong>
* <p>ReservationName</p>
*/
public Builder vSwitchCidrReservationName(String vSwitchCidrReservationName) {
this.putQueryParameter("VSwitchCidrReservationName", vSwitchCidrReservationName);
this.vSwitchCidrReservationName = vSwitchCidrReservationName;
return this;
}
/**
* <p>The type of reserved CIDR block. Set the value to <strong>prefix</strong>.</p>
* <blockquote>
* <p> When a user or a cloud service allocates a CIDR block to an elastic network interface (ENI), the CIDR block must be allocated from the reserved CIDR block. If the reserved CIDR block is exhausted, an error is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>prefix</p>
*/
public Builder vSwitchCidrReservationType(String vSwitchCidrReservationType) {
this.putQueryParameter("VSwitchCidrReservationType", vSwitchCidrReservationType);
this.vSwitchCidrReservationType = vSwitchCidrReservationType;
return this;
}
/**
* <p>The ID of the vSwitch to which the reserved CIDR block belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vsw-25navfgbue4g****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
@Override
public CreateVSwitchCidrReservationRequest build() {
return new CreateVSwitchCidrReservationRequest(this);
}
}
/**
*
* {@link CreateVSwitchCidrReservationRequest} extends {@link TeaModel}
*
* <p>CreateVSwitchCidrReservationRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with aliyun or acs:, and cannot contain http:// or https://.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVSwitchCidrReservationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVSwitchCidrReservationResponse} extends {@link TeaModel}
*
* <p>CreateVSwitchCidrReservationResponse</p>
*/
public class CreateVSwitchCidrReservationResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVSwitchCidrReservationResponseBody body;
private CreateVSwitchCidrReservationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVSwitchCidrReservationResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVSwitchCidrReservationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVSwitchCidrReservationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVSwitchCidrReservationResponseBody body);
@Override
CreateVSwitchCidrReservationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVSwitchCidrReservationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVSwitchCidrReservationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVSwitchCidrReservationResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVSwitchCidrReservationResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVSwitchCidrReservationResponse build() {
return new CreateVSwitchCidrReservationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVSwitchCidrReservationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVSwitchCidrReservationResponseBody} extends {@link TeaModel}
*
* <p>CreateVSwitchCidrReservationResponseBody</p>
*/
public class CreateVSwitchCidrReservationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationId")
private String vSwitchCidrReservationId;
private CreateVSwitchCidrReservationResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vSwitchCidrReservationId = builder.vSwitchCidrReservationId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVSwitchCidrReservationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vSwitchCidrReservationId
*/
public String getVSwitchCidrReservationId() {
return this.vSwitchCidrReservationId;
}
public static final class Builder {
private String requestId;
private String vSwitchCidrReservationId;
private Builder() {
}
private Builder(CreateVSwitchCidrReservationResponseBody model) {
this.requestId = model.requestId;
this.vSwitchCidrReservationId = model.vSwitchCidrReservationId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the reserved CIDR block.</p>
*
* <strong>example:</strong>
* <p>vcr-bp1m12saqteraw3rp****</p>
*/
public Builder vSwitchCidrReservationId(String vSwitchCidrReservationId) {
this.vSwitchCidrReservationId = vSwitchCidrReservationId;
return this;
}
public CreateVSwitchCidrReservationResponseBody build() {
return new CreateVSwitchCidrReservationResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVSwitchRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVSwitchRequest} extends {@link RequestModel}
*
* <p>CreateVSwitchRequest</p>
*/
public class CreateVSwitchRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CidrBlock")
@com.aliyun.core.annotation.Validation(required = true)
private String cidrBlock;
@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("Ipv6CidrBlock")
private Integer ipv6CidrBlock;
@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")
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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchName")
private String vSwitchName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcIpv6CidrBlock")
private String vpcIpv6CidrBlock;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
@com.aliyun.core.annotation.Validation(required = true)
private String zoneId;
private CreateVSwitchRequest(Builder builder) {
super(builder);
this.cidrBlock = builder.cidrBlock;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.ipv6CidrBlock = builder.ipv6CidrBlock;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.vSwitchName = builder.vSwitchName;
this.vpcId = builder.vpcId;
this.vpcIpv6CidrBlock = builder.vpcIpv6CidrBlock;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVSwitchRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cidrBlock
*/
public String getCidrBlock() {
return this.cidrBlock;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ipv6CidrBlock
*/
public Integer getIpv6CidrBlock() {
return this.ipv6CidrBlock;
}
/**
* @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 tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vSwitchName
*/
public String getVSwitchName() {
return this.vSwitchName;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return vpcIpv6CidrBlock
*/
public String getVpcIpv6CidrBlock() {
return this.vpcIpv6CidrBlock;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder<CreateVSwitchRequest, Builder> {
private String cidrBlock;
private String clientToken;
private String description;
private Integer ipv6CidrBlock;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String vSwitchName;
private String vpcId;
private String vpcIpv6CidrBlock;
private String zoneId;
private Builder() {
super();
}
private Builder(CreateVSwitchRequest request) {
super(request);
this.cidrBlock = request.cidrBlock;
this.clientToken = request.clientToken;
this.description = request.description;
this.ipv6CidrBlock = request.ipv6CidrBlock;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.vSwitchName = request.vSwitchName;
this.vpcId = request.vpcId;
this.vpcIpv6CidrBlock = request.vpcIpv6CidrBlock;
this.zoneId = request.zoneId;
}
/**
* <p>The CIDR block of the vSwitch. Take note of the following limits:</p>
* <ul>
* <li>The subnet mask of the CIDR block must be 16 to 29 bits in length.</li>
* <li>The CIDR block of the vSwitch must fall within the CIDR block of the VPC to which the vSwitch belongs.</li>
* <li>The CIDR block of a vSwitch cannot be the same as the destination CIDR block in a route entry of the VPC. However, it can be a subset of the destination CIDR block.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>172.16.0.0/24</p>
*/
public Builder cidrBlock(String cidrBlock) {
this.putQueryParameter("CidrBlock", cidrBlock);
this.cidrBlock = cidrBlock;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among all requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the vSwitch.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>vSwitch</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>The last eight bits of the IPv6 CIDR block of the vSwitch. Valid values: <strong>0</strong> to <strong>255</strong>.</p>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder ipv6CidrBlock(Integer ipv6CidrBlock) {
this.putQueryParameter("Ipv6CidrBlock", ipv6CidrBlock);
this.ipv6CidrBlock = ipv6CidrBlock;
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;
}
/**
* <p>The region ID of the vSwitch.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The tag of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The name of the vSwitch.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>vSwitch-1</p>
*/
public Builder vSwitchName(String vSwitchName) {
this.putQueryParameter("VSwitchName", vSwitchName);
this.vSwitchName = vSwitchName;
return this;
}
/**
* <p>The ID of the VPC where you want to create the vSwitch.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-257gqcdfvx6n****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The IPv6 CIDR block of the VPC.</p>
*
* <strong>example:</strong>
* <p>2408:XXXX:0:6a::/56</p>
*/
public Builder vpcIpv6CidrBlock(String vpcIpv6CidrBlock) {
this.putQueryParameter("VpcIpv6CidrBlock", vpcIpv6CidrBlock);
this.vpcIpv6CidrBlock = vpcIpv6CidrBlock;
return this;
}
/**
* <p>The zone ID of the vSwitch.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36064.html">DescribeZones</a> operation to query the most recent zone list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public CreateVSwitchRequest build() {
return new CreateVSwitchRequest(this);
}
}
/**
*
* {@link CreateVSwitchRequest} extends {@link TeaModel}
*
* <p>CreateVSwitchRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be at most 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length, but cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVSwitchResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVSwitchResponse} extends {@link TeaModel}
*
* <p>CreateVSwitchResponse</p>
*/
public class CreateVSwitchResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVSwitchResponseBody body;
private CreateVSwitchResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVSwitchResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVSwitchResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVSwitchResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVSwitchResponseBody body);
@Override
CreateVSwitchResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVSwitchResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVSwitchResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVSwitchResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVSwitchResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVSwitchResponse build() {
return new CreateVSwitchResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVSwitchResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVSwitchResponseBody} extends {@link TeaModel}
*
* <p>CreateVSwitchResponseBody</p>
*/
public class CreateVSwitchResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private CreateVSwitchResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVSwitchResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private String requestId;
private String vSwitchId;
private Builder() {
}
private Builder(CreateVSwitchResponseBody model) {
this.requestId = model.requestId;
this.vSwitchId = model.vSwitchId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vsw-25navfgbue4g****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public CreateVSwitchResponseBody build() {
return new CreateVSwitchResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVbrHaRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVbrHaRequest} extends {@link RequestModel}
*
* <p>CreateVbrHaRequest</p>
*/
public class CreateVbrHaRequest extends Request {
@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("DryRun")
private Boolean dryRun;
@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("PeerVbrId")
@com.aliyun.core.annotation.Validation(required = true)
private String peerVbrId;
@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("VbrId")
@com.aliyun.core.annotation.Validation(required = true)
private String vbrId;
private CreateVbrHaRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.description = builder.description;
this.dryRun = builder.dryRun;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.peerVbrId = builder.peerVbrId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vbrId = builder.vbrId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVbrHaRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @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 peerVbrId
*/
public String getPeerVbrId() {
return this.peerVbrId;
}
/**
* @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 vbrId
*/
public String getVbrId() {
return this.vbrId;
}
public static final class Builder extends Request.Builder<CreateVbrHaRequest, Builder> {
private String clientToken;
private String description;
private Boolean dryRun;
private String name;
private String ownerAccount;
private Long ownerId;
private String peerVbrId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vbrId;
private Builder() {
super();
}
private Builder(CreateVbrHaRequest request) {
super(request);
this.clientToken = request.clientToken;
this.description = request.description;
this.dryRun = request.dryRun;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.peerVbrId = request.peerVbrId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vbrId = request.vbrId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>CBCE910E-D396-4944-8****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the VBR failover group.</p>
* <p>The description must be 2 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>VBRHa</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values: Valid Values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and instance status. If the request fails the dry run, an error message is returned. If the request passes the dry run, <code>DRYRUN.SUCCESS</code> is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The name of the VBR failover group.</p>
*
* <strong>example:</strong>
* <p>VBRHa</p>
*/
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;
}
/**
* <p>The ID of the other VBR in the VBR failover group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbr-bp12mw1f8k3jgygk9****</p>
*/
public Builder peerVbrId(String peerVbrId) {
this.putQueryParameter("PeerVbrId", peerVbrId);
this.peerVbrId = peerVbrId;
return this;
}
/**
* <p>The ID of the region in which the VBR is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The ID of the VBR.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbr-bp1jcg5cmxjbl9xgc****</p>
*/
public Builder vbrId(String vbrId) {
this.putQueryParameter("VbrId", vbrId);
this.vbrId = vbrId;
return this;
}
@Override
public CreateVbrHaRequest build() {
return new CreateVbrHaRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVbrHaResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVbrHaResponse} extends {@link TeaModel}
*
* <p>CreateVbrHaResponse</p>
*/
public class CreateVbrHaResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVbrHaResponseBody body;
private CreateVbrHaResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVbrHaResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVbrHaResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVbrHaResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVbrHaResponseBody body);
@Override
CreateVbrHaResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVbrHaResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVbrHaResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVbrHaResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVbrHaResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVbrHaResponse build() {
return new CreateVbrHaResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVbrHaResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVbrHaResponseBody} extends {@link TeaModel}
*
* <p>CreateVbrHaResponseBody</p>
*/
public class CreateVbrHaResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VbrHaId")
private String vbrHaId;
private CreateVbrHaResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vbrHaId = builder.vbrHaId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVbrHaResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vbrHaId
*/
public String getVbrHaId() {
return this.vbrHaId;
}
public static final class Builder {
private String requestId;
private String vbrHaId;
private Builder() {
}
private Builder(CreateVbrHaResponseBody model) {
this.requestId = model.requestId;
this.vbrHaId = model.vbrHaId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the VBR failover group.</p>
*
* <strong>example:</strong>
* <p>vbrha-sa1sxheuxtd98****</p>
*/
public Builder vbrHaId(String vbrHaId) {
this.vbrHaId = vbrHaId;
return this;
}
public CreateVbrHaResponseBody build() {
return new CreateVbrHaResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVcoRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVcoRouteEntryRequest} extends {@link RequestModel}
*
* <p>CreateVcoRouteEntryRequest</p>
*/
public class CreateVcoRouteEntryRequest extends Request {
@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("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHop")
@com.aliyun.core.annotation.Validation(required = true)
private String nextHop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OverlayMode")
private String overlayMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@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("RouteDest")
@com.aliyun.core.annotation.Validation(required = true)
private String routeDest;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnConnectionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Weight")
@com.aliyun.core.annotation.Validation(required = true)
private Integer weight;
private CreateVcoRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.description = builder.description;
this.dryRun = builder.dryRun;
this.nextHop = builder.nextHop;
this.overlayMode = builder.overlayMode;
this.ownerAccount = builder.ownerAccount;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeDest = builder.routeDest;
this.vpnConnectionId = builder.vpnConnectionId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static CreateVcoRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return overlayMode
*/
public String getOverlayMode() {
return this.overlayMode;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @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 routeDest
*/
public String getRouteDest() {
return this.routeDest;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder extends Request.Builder<CreateVcoRouteEntryRequest, Builder> {
private String clientToken;
private String description;
private Boolean dryRun;
private String nextHop;
private String overlayMode;
private String ownerAccount;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeDest;
private String vpnConnectionId;
private Integer weight;
private Builder() {
super();
}
private Builder(CreateVcoRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.description = request.description;
this.dryRun = request.dryRun;
this.nextHop = request.nextHop;
this.overlayMode = request.overlayMode;
this.ownerAccount = request.ownerAccount;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeDest = request.routeDest;
this.vpnConnectionId = request.vpnConnectionId;
this.weight = request.weight;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-4266****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the destination-based route.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The next hop of the destination-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-p0w2jpkhi2eeop6q6****</p>
*/
public Builder nextHop(String nextHop) {
this.putQueryParameter("NextHop", nextHop);
this.nextHop = nextHop;
return this;
}
/**
* <p>The tunneling protocol. Set the value to <strong>Ipsec</strong>, which specifies the IPsec tunneling protocol.</p>
*
* <strong>example:</strong>
* <p>Ipsec</p>
*/
public Builder overlayMode(String overlayMode) {
this.putQueryParameter("OverlayMode", overlayMode);
this.overlayMode = overlayMode;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* <p>The region ID of the IPsec-VPN connection.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The destination CIDR block of the destination-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.10.0/24</p>
*/
public Builder routeDest(String routeDest) {
this.putQueryParameter("RouteDest", routeDest);
this.routeDest = routeDest;
return this;
}
/**
* <p>The ID of the IPsec-VPN connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-p0w2jpkhi2eeop6q6****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.putQueryParameter("VpnConnectionId", vpnConnectionId);
this.vpnConnectionId = vpnConnectionId;
return this;
}
/**
* <p>The weight of the destination-based route. Valid values:</p>
* <ul>
* <li><strong>0</strong>: a low priority</li>
* <li><strong>100</strong>: a high priority</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(Integer weight) {
this.putQueryParameter("Weight", weight);
this.weight = weight;
return this;
}
@Override
public CreateVcoRouteEntryRequest build() {
return new CreateVcoRouteEntryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVcoRouteEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVcoRouteEntryResponse} extends {@link TeaModel}
*
* <p>CreateVcoRouteEntryResponse</p>
*/
public class CreateVcoRouteEntryResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVcoRouteEntryResponseBody body;
private CreateVcoRouteEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVcoRouteEntryResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVcoRouteEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVcoRouteEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVcoRouteEntryResponseBody body);
@Override
CreateVcoRouteEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVcoRouteEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVcoRouteEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVcoRouteEntryResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVcoRouteEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVcoRouteEntryResponse build() {
return new CreateVcoRouteEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVcoRouteEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVcoRouteEntryResponseBody} extends {@link TeaModel}
*
* <p>CreateVcoRouteEntryResponseBody</p>
*/
public class CreateVcoRouteEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("NextHop")
private String nextHop;
@com.aliyun.core.annotation.NameInMap("OverlayMode")
private String overlayMode;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouteDest")
private String routeDest;
@com.aliyun.core.annotation.NameInMap("State")
private String state;
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
private String vpnConnectionId;
@com.aliyun.core.annotation.NameInMap("Weight")
private Integer weight;
private CreateVcoRouteEntryResponseBody(Builder builder) {
this.createTime = builder.createTime;
this.description = builder.description;
this.nextHop = builder.nextHop;
this.overlayMode = builder.overlayMode;
this.requestId = builder.requestId;
this.routeDest = builder.routeDest;
this.state = builder.state;
this.vpnConnectionId = builder.vpnConnectionId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static CreateVcoRouteEntryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return overlayMode
*/
public String getOverlayMode() {
return this.overlayMode;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeDest
*/
public String getRouteDest() {
return this.routeDest;
}
/**
* @return state
*/
public String getState() {
return this.state;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder {
private Long createTime;
private String description;
private String nextHop;
private String overlayMode;
private String requestId;
private String routeDest;
private String state;
private String vpnConnectionId;
private Integer weight;
private Builder() {
}
private Builder(CreateVcoRouteEntryResponseBody model) {
this.createTime = model.createTime;
this.description = model.description;
this.nextHop = model.nextHop;
this.overlayMode = model.overlayMode;
this.requestId = model.requestId;
this.routeDest = model.routeDest;
this.state = model.state;
this.vpnConnectionId = model.vpnConnectionId;
this.weight = model.weight;
}
/**
* <p>The timestamp when the destination-based route was created. Unit: milliseconds.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1658387202664</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The description of the destination-based route.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The next hop of the destination-based route.</p>
*
* <strong>example:</strong>
* <p>vco-p0w2jpkhi2eeop6q6****</p>
*/
public Builder nextHop(String nextHop) {
this.nextHop = nextHop;
return this;
}
/**
* <p>The tunneling protocol.</p>
* <p>The value is set to <strong>Ipsec</strong>, which indicates the IPsec tunneling protocol.</p>
*
* <strong>example:</strong>
* <p>Ipsec</p>
*/
public Builder overlayMode(String overlayMode) {
this.overlayMode = overlayMode;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>CFC4D13B-E680-3985-95B1-87AA155481DF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The destination CIDR block of the destination-based route.</p>
*
* <strong>example:</strong>
* <p>192.168.10.0/24</p>
*/
public Builder routeDest(String routeDest) {
this.routeDest = routeDest;
return this;
}
/**
* <p>The status of the destination-based route.</p>
* <p>Only <strong>published</strong> is returned, which indicates that the current route is published to the transit router.</p>
*
* <strong>example:</strong>
* <p>published</p>
*/
public Builder state(String state) {
this.state = state;
return this;
}
/**
* <p>The ID of the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>vco-p0w2jpkhi2eeop6q6****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.vpnConnectionId = vpnConnectionId;
return this;
}
/**
* <p>The weight of the destination-based route. Valid values:</p>
* <ul>
* <li><strong>0</strong>: a low priority.</li>
* <li><strong>100</strong>: a high priority.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(Integer weight) {
this.weight = weight;
return this;
}
public CreateVcoRouteEntryResponseBody build() {
return new CreateVcoRouteEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVirtualBorderRouterRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVirtualBorderRouterRequest} extends {@link RequestModel}
*
* <p>CreateVirtualBorderRouterRequest</p>
*/
public class CreateVirtualBorderRouterRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Long bandwidth;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CircuitCode")
private String circuitCode;
@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("EnableIpv6")
private Boolean enableIpv6;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LocalGatewayIp")
private String localGatewayIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LocalIpv6GatewayIp")
private String localIpv6GatewayIp;
@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("PeerGatewayIp")
private String peerGatewayIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PeerIpv6GatewayIp")
private String peerIpv6GatewayIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PeeringIpv6SubnetMask")
private String peeringIpv6SubnetMask;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PeeringSubnetMask")
private String peeringSubnetMask;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String physicalConnectionId;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VbrOwnerId")
private Long vbrOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VlanId")
@com.aliyun.core.annotation.Validation(required = true)
private Integer vlanId;
private CreateVirtualBorderRouterRequest(Builder builder) {
super(builder);
this.bandwidth = builder.bandwidth;
this.circuitCode = builder.circuitCode;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.enableIpv6 = builder.enableIpv6;
this.localGatewayIp = builder.localGatewayIp;
this.localIpv6GatewayIp = builder.localIpv6GatewayIp;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.peerGatewayIp = builder.peerGatewayIp;
this.peerIpv6GatewayIp = builder.peerIpv6GatewayIp;
this.peeringIpv6SubnetMask = builder.peeringIpv6SubnetMask;
this.peeringSubnetMask = builder.peeringSubnetMask;
this.physicalConnectionId = builder.physicalConnectionId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
this.vbrOwnerId = builder.vbrOwnerId;
this.vlanId = builder.vlanId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVirtualBorderRouterRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bandwidth
*/
public Long getBandwidth() {
return this.bandwidth;
}
/**
* @return circuitCode
*/
public String getCircuitCode() {
return this.circuitCode;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return enableIpv6
*/
public Boolean getEnableIpv6() {
return this.enableIpv6;
}
/**
* @return localGatewayIp
*/
public String getLocalGatewayIp() {
return this.localGatewayIp;
}
/**
* @return localIpv6GatewayIp
*/
public String getLocalIpv6GatewayIp() {
return this.localIpv6GatewayIp;
}
/**
* @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 peerGatewayIp
*/
public String getPeerGatewayIp() {
return this.peerGatewayIp;
}
/**
* @return peerIpv6GatewayIp
*/
public String getPeerIpv6GatewayIp() {
return this.peerIpv6GatewayIp;
}
/**
* @return peeringIpv6SubnetMask
*/
public String getPeeringIpv6SubnetMask() {
return this.peeringIpv6SubnetMask;
}
/**
* @return peeringSubnetMask
*/
public String getPeeringSubnetMask() {
return this.peeringSubnetMask;
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return vbrOwnerId
*/
public Long getVbrOwnerId() {
return this.vbrOwnerId;
}
/**
* @return vlanId
*/
public Integer getVlanId() {
return this.vlanId;
}
public static final class Builder extends Request.Builder<CreateVirtualBorderRouterRequest, Builder> {
private Long bandwidth;
private String circuitCode;
private String clientToken;
private String description;
private Boolean enableIpv6;
private String localGatewayIp;
private String localIpv6GatewayIp;
private String name;
private String ownerAccount;
private Long ownerId;
private String peerGatewayIp;
private String peerIpv6GatewayIp;
private String peeringIpv6SubnetMask;
private String peeringSubnetMask;
private String physicalConnectionId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private Long vbrOwnerId;
private Integer vlanId;
private Builder() {
super();
}
private Builder(CreateVirtualBorderRouterRequest request) {
super(request);
this.bandwidth = request.bandwidth;
this.circuitCode = request.circuitCode;
this.clientToken = request.clientToken;
this.description = request.description;
this.enableIpv6 = request.enableIpv6;
this.localGatewayIp = request.localGatewayIp;
this.localIpv6GatewayIp = request.localIpv6GatewayIp;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.peerGatewayIp = request.peerGatewayIp;
this.peerIpv6GatewayIp = request.peerIpv6GatewayIp;
this.peeringIpv6SubnetMask = request.peeringIpv6SubnetMask;
this.peeringSubnetMask = request.peeringSubnetMask;
this.physicalConnectionId = request.physicalConnectionId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
this.vbrOwnerId = request.vbrOwnerId;
this.vlanId = request.vlanId;
}
/**
* <p>The bandwidth of the VBR. Unit: Mbit/s.</p>
* <ul>
* <li>When you create a VBR for a dedicated connection, valid values are <strong>50</strong>, <strong>100</strong>, <strong>200</strong>, <strong>300</strong>, <strong>400</strong>, <strong>500</strong>, <strong>1000</strong>, <strong>2048</strong>, <strong>5120</strong>, <strong>8192</strong>, <strong>10240</strong>, <strong>20480</strong>, <strong>40960</strong>, <strong>50120</strong>, <strong>61440</strong>, and <strong>102400</strong>.</li>
* <li>You do not need to set this parameter when you create a VBR for a hosted connection. The bandwidth is already configured when the hosted connection is created.</li>
* </ul>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder bandwidth(Long bandwidth) {
this.putQueryParameter("Bandwidth", bandwidth);
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p>
* <blockquote>
* <p> Only the owner of the Express Connect circuit can set this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>longtel001</p>
*/
public Builder circuitCode(String circuitCode) {
this.putQueryParameter("CircuitCode", circuitCode);
this.circuitCode = circuitCode;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests.</p>
* <blockquote>
* <p> If you do not set this parameter, the system automatically sets <strong>ClientToken</strong> to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the VBR.</p>
* <p>The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>desc</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to enable IPv6. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables IPv6.</li>
* <li><strong>false</strong> (default): disables IPv6.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableIpv6(Boolean enableIpv6) {
this.putQueryParameter("EnableIpv6", enableIpv6);
this.enableIpv6 = enableIpv6;
return this;
}
/**
* <p>The IP address of the VBR. Only the owner of the VBR can set or modify this parameter.</p>
* <p>When you create a VBR for the owner of the Express Connect circuit, this parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder localGatewayIp(String localGatewayIp) {
this.putQueryParameter("LocalGatewayIp", localGatewayIp);
this.localGatewayIp = localGatewayIp;
return this;
}
/**
* <p>The IPv6 address of the VBR. Only the owner of the VBR can set or modify this parameter.</p>
* <p>When you create a VBR for the owner of the Express Connect circuit, this parameter is required.</p>
*
* <strong>example:</strong>
* <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p>
*/
public Builder localIpv6GatewayIp(String localIpv6GatewayIp) {
this.putQueryParameter("LocalIpv6GatewayIp", localIpv6GatewayIp);
this.localIpv6GatewayIp = localIpv6GatewayIp;
return this;
}
/**
* <p>The name of the VBR.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
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;
}
/**
* <p>The IP address of the gateway device in the data center. Only the owner of the VBR can set or modify this parameter.</p>
* <p>When you create a VBR for the owner of the Express Connect circuit, this parameter is required.</p>
*
* <strong>example:</strong>
* <p>116.62.XX.XX</p>
*/
public Builder peerGatewayIp(String peerGatewayIp) {
this.putQueryParameter("PeerGatewayIp", peerGatewayIp);
this.peerGatewayIp = peerGatewayIp;
return this;
}
/**
* <p>The IPv6 address of the gateway device in the data center. Only the owner of the VBR can set or modify this parameter.</p>
* <p>When you create a VBR for the owner of the Express Connect circuit, this parameter is required.</p>
*
* <strong>example:</strong>
* <p>2001:XXXX:4:4:4:4:4:4</p>
*/
public Builder peerIpv6GatewayIp(String peerIpv6GatewayIp) {
this.putQueryParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp);
this.peerIpv6GatewayIp = peerIpv6GatewayIp;
return this;
}
/**
* <p>The subnet mask of the IPv6 addresses of the VBR and the gateway device in the data center.</p>
* <p>The two IPv6 addresses must fall within the same subnet.</p>
*
* <strong>example:</strong>
* <p>2408:4004:cc:400::/56</p>
*/
public Builder peeringIpv6SubnetMask(String peeringIpv6SubnetMask) {
this.putQueryParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask);
this.peeringIpv6SubnetMask = peeringIpv6SubnetMask;
return this;
}
/**
* <p>The subnet mask of the IP addresses of the VBR and the gateway device in the data center.</p>
* <p>The two IP addresses must fall within the same subnet.</p>
*
* <strong>example:</strong>
* <p>255.255.255.252</p>
*/
public Builder peeringSubnetMask(String peeringSubnetMask) {
this.putQueryParameter("PeeringSubnetMask", peeringSubnetMask);
this.peeringSubnetMask = peeringSubnetMask;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
* <p>You can create a VBR for a dedicated connection or a hosted connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pc-2zextbehcx****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.putQueryParameter("PhysicalConnectionId", physicalConnectionId);
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
* <p>For more information about resource group, see <a href="https://help.aliyun.com/document_detail/94475.html">What is Resource Management?</a></p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tags.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The account ID of the VBR owner.</p>
* <p>The default value is the ID of the current Alibaba Cloud account.</p>
*
* <strong>example:</strong>
* <p>168811111****</p>
*/
public Builder vbrOwnerId(Long vbrOwnerId) {
this.putQueryParameter("VbrOwnerId", vbrOwnerId);
this.vbrOwnerId = vbrOwnerId;
return this;
}
/**
* <p>The VLAN ID of the VBR. Valid values: <strong>0 to 2999</strong>.</p>
* <blockquote>
* <p> Only the owner of the Express Connect circuit can set this parameter. The VLAN IDs of two VBRs of the same the Express Connect circuit must be different.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder vlanId(Integer vlanId) {
this.putQueryParameter("VlanId", vlanId);
this.vlanId = vlanId;
return this;
}
@Override
public CreateVirtualBorderRouterRequest build() {
return new CreateVirtualBorderRouterRequest(this);
}
}
/**
*
* {@link CreateVirtualBorderRouterRequest} extends {@link TeaModel}
*
* <p>CreateVirtualBorderRouterRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags 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;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You must enter at least one tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>A tag key can be at most 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVirtualBorderRouterResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVirtualBorderRouterResponse} extends {@link TeaModel}
*
* <p>CreateVirtualBorderRouterResponse</p>
*/
public class CreateVirtualBorderRouterResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVirtualBorderRouterResponseBody body;
private CreateVirtualBorderRouterResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVirtualBorderRouterResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVirtualBorderRouterResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVirtualBorderRouterResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVirtualBorderRouterResponseBody body);
@Override
CreateVirtualBorderRouterResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVirtualBorderRouterResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVirtualBorderRouterResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVirtualBorderRouterResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVirtualBorderRouterResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVirtualBorderRouterResponse build() {
return new CreateVirtualBorderRouterResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVirtualBorderRouterResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVirtualBorderRouterResponseBody} extends {@link TeaModel}
*
* <p>CreateVirtualBorderRouterResponseBody</p>
*/
public class CreateVirtualBorderRouterResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VbrId")
private String vbrId;
private CreateVirtualBorderRouterResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vbrId = builder.vbrId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVirtualBorderRouterResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vbrId
*/
public String getVbrId() {
return this.vbrId;
}
public static final class Builder {
private String requestId;
private String vbrId;
private Builder() {
}
private Builder(CreateVirtualBorderRouterResponseBody model) {
this.requestId = model.requestId;
this.vbrId = model.vbrId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the VBR.</p>
*
* <strong>example:</strong>
* <p>vbr-bp1jcg5cmxjbl9xgc****</p>
*/
public Builder vbrId(String vbrId) {
this.vbrId = vbrId;
return this;
}
public CreateVirtualBorderRouterResponseBody build() {
return new CreateVirtualBorderRouterResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVirtualPhysicalConnectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVirtualPhysicalConnectionRequest} extends {@link RequestModel}
*
* <p>CreateVirtualPhysicalConnectionRequest</p>
*/
public class CreateVirtualPhysicalConnectionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OrderMode")
@com.aliyun.core.annotation.Validation(required = true)
private String orderMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String physicalConnectionId;
@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("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Spec")
@com.aliyun.core.annotation.Validation(required = true)
private String spec;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Token")
private String token;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VlanId")
@com.aliyun.core.annotation.Validation(required = true)
private Long vlanId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpconnAliUid")
@com.aliyun.core.annotation.Validation(required = true)
private Long vpconnAliUid;
private CreateVirtualPhysicalConnectionRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.dryRun = builder.dryRun;
this.name = builder.name;
this.orderMode = builder.orderMode;
this.physicalConnectionId = builder.physicalConnectionId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.spec = builder.spec;
this.tag = builder.tag;
this.token = builder.token;
this.vlanId = builder.vlanId;
this.vpconnAliUid = builder.vpconnAliUid;
}
public static Builder builder() {
return new Builder();
}
public static CreateVirtualPhysicalConnectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return orderMode
*/
public String getOrderMode() {
return this.orderMode;
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return token
*/
public String getToken() {
return this.token;
}
/**
* @return vlanId
*/
public Long getVlanId() {
return this.vlanId;
}
/**
* @return vpconnAliUid
*/
public Long getVpconnAliUid() {
return this.vpconnAliUid;
}
public static final class Builder extends Request.Builder<CreateVirtualPhysicalConnectionRequest, Builder> {
private String description;
private Boolean dryRun;
private String name;
private String orderMode;
private String physicalConnectionId;
private String regionId;
private String resourceGroupId;
private String spec;
private java.util.List<Tag> tag;
private String token;
private Long vlanId;
private Long vpconnAliUid;
private Builder() {
super();
}
private Builder(CreateVirtualPhysicalConnectionRequest request) {
super(request);
this.description = request.description;
this.dryRun = request.dryRun;
this.name = request.name;
this.orderMode = request.orderMode;
this.physicalConnectionId = request.physicalConnectionId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.spec = request.spec;
this.tag = request.tag;
this.token = request.token;
this.vlanId = request.vlanId;
this.vpconnAliUid = request.vpconnAliUid;
}
/**
* <p>The description of the hosted connection.</p>
* <p>The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to perform a dry run, without performing the actual request. Default value: 45104. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request fails the dry run, an error code is returned. If the request passes the dry run, <code>DRYRUN.SUCCESS</code> is returned.</li>
* <li><strong>false</strong>: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The name of the hosted connection.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>nametest</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The payer for the hosted connection. Valid values:</p>
* <ul>
* <li><strong>PayByPhysicalConnectionOwner</strong>: The partner pays for the hosted connection.</li>
* <li><strong>PayByVirtualPhysicalConnectionOwner</strong>: The tenant pays for the hosted connection.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>PayByVirtualPhysicalConnectionOwner</p>
*/
public Builder orderMode(String orderMode) {
this.putQueryParameter("OrderMode", orderMode);
this.orderMode = orderMode;
return this;
}
/**
* <p>The ID of the Express Connect circuit over which the hosted connection is created.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pc-bp1ciz7ekd2grn1as****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.putQueryParameter("PhysicalConnectionId", physicalConnectionId);
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The region ID of the hosted connection.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the hosted connection belongs.</p>
*
* <strong>example:</strong>
* <p>rg-aekzjty2chzuqky</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The bandwidth value of the hosted connection.</p>
* <p>Valid values: <strong>50M</strong>, <strong>100M</strong>, <strong>200M</strong>, <strong>300M</strong>, <strong>400M</strong>, <strong>500M</strong>, <strong>1G</strong>, <strong>2G</strong>, <strong>5G</strong>, <strong>8G</strong>, and <strong>10G</strong>.</p>
* <blockquote>
* <p> <strong>2G</strong>, <strong>5G</strong>, <strong>8G</strong>, and <strong>10G</strong> are unavailable by default. If you want to use these bandwidth values, contact your account manager.</p>
* </blockquote>
* <p><strong>M</strong> indicates Mbit/s and <strong>G</strong> indicates Gbit/s.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>50M</p>
*/
public Builder spec(String spec) {
this.putQueryParameter("Spec", spec);
this.spec = spec;
return this;
}
/**
* <p>The tags.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>CBCE910E-D396-4944-8****</p>
*/
public Builder token(String token) {
this.putQueryParameter("Token", token);
this.token = token;
return this;
}
/**
* <p>The virtual local area network (VLAN) ID of the hosted connection. Valid values: <strong>0</strong> to <strong>2999</strong>.</p>
* <ul>
* <li>If the VLAN ID is set to <strong>0</strong>, it indicates that the switch port of the virtual border router (VBR) is a Layer 3 router interface instead of a VLAN interface. When a Layer 3 router interface is used, each Express Connect circuit corresponds to a VBR.</li>
* <li>If the VLAN ID is set to a value from <strong>1</strong> to <strong>2999</strong>, the switch port of the VBR is a Layer 3 VLAN subinterface. When a Layer 3 VLAN subinterface is used, each VLAN ID corresponds to one VBR. In this case, the Express Connect circuit with which the VBR is associated can be used to connect to virtual private clouds (VPCs) that belong to different Alibaba Cloud accounts. VBRs in different VLANs are isolated from each other at Layer 2.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>4</p>
*/
public Builder vlanId(Long vlanId) {
this.putQueryParameter("VlanId", vlanId);
this.vlanId = vlanId;
return this;
}
/**
* <p>The Alibaba Cloud account ID of the tenant.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1210123456123456</p>
*/
public Builder vpconnAliUid(Long vpconnAliUid) {
this.putQueryParameter("VpconnAliUid", vpconnAliUid);
this.vpconnAliUid = vpconnAliUid;
return this;
}
@Override
public CreateVirtualPhysicalConnectionRequest build() {
return new CreateVirtualPhysicalConnectionRequest(this);
}
}
/**
*
* {@link CreateVirtualPhysicalConnectionRequest} extends {@link TeaModel}
*
* <p>CreateVirtualPhysicalConnectionRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The key cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The value cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVirtualPhysicalConnectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVirtualPhysicalConnectionResponse} extends {@link TeaModel}
*
* <p>CreateVirtualPhysicalConnectionResponse</p>
*/
public class CreateVirtualPhysicalConnectionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVirtualPhysicalConnectionResponseBody body;
private CreateVirtualPhysicalConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVirtualPhysicalConnectionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVirtualPhysicalConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVirtualPhysicalConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVirtualPhysicalConnectionResponseBody body);
@Override
CreateVirtualPhysicalConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVirtualPhysicalConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVirtualPhysicalConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVirtualPhysicalConnectionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVirtualPhysicalConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVirtualPhysicalConnectionResponse build() {
return new CreateVirtualPhysicalConnectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVirtualPhysicalConnectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVirtualPhysicalConnectionResponseBody} extends {@link TeaModel}
*
* <p>CreateVirtualPhysicalConnectionResponseBody</p>
*/
public class CreateVirtualPhysicalConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnection")
private String virtualPhysicalConnection;
private CreateVirtualPhysicalConnectionResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.virtualPhysicalConnection = builder.virtualPhysicalConnection;
}
public static Builder builder() {
return new Builder();
}
public static CreateVirtualPhysicalConnectionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return virtualPhysicalConnection
*/
public String getVirtualPhysicalConnection() {
return this.virtualPhysicalConnection;
}
public static final class Builder {
private String requestId;
private String virtualPhysicalConnection;
private Builder() {
}
private Builder(CreateVirtualPhysicalConnectionResponseBody model) {
this.requestId = model.requestId;
this.virtualPhysicalConnection = model.virtualPhysicalConnection;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>CD14EA74-E9C3-59A9-942A-DFEC7E12818D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the hosted connection.</p>
*
* <strong>example:</strong>
* <p>pc-bp1mrgfbtmc9brre7****</p>
*/
public Builder virtualPhysicalConnection(String virtualPhysicalConnection) {
this.virtualPhysicalConnection = virtualPhysicalConnection;
return this;
}
public CreateVirtualPhysicalConnectionResponseBody build() {
return new CreateVirtualPhysicalConnectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcGatewayEndpointRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcGatewayEndpointRequest} extends {@link RequestModel}
*
* <p>CreateVpcGatewayEndpointRequest</p>
*/
public class CreateVpcGatewayEndpointRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointDescription")
private String endpointDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointName")
private String endpointName;
@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("PolicyDocument")
private String policyDocument;
@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("ResourceGroupId")
private String resourceGroupId;
@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("ServiceName")
@com.aliyun.core.annotation.Validation(required = true)
private String serviceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private CreateVpcGatewayEndpointRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.endpointDescription = builder.endpointDescription;
this.endpointName = builder.endpointName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.policyDocument = builder.policyDocument;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.serviceName = builder.serviceName;
this.tag = builder.tag;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpcGatewayEndpointRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return endpointDescription
*/
public String getEndpointDescription() {
return this.endpointDescription;
}
/**
* @return endpointName
*/
public String getEndpointName() {
return this.endpointName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return policyDocument
*/
public String getPolicyDocument() {
return this.policyDocument;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return serviceName
*/
public String getServiceName() {
return this.serviceName;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<CreateVpcGatewayEndpointRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String endpointDescription;
private String endpointName;
private String ownerAccount;
private Long ownerId;
private String policyDocument;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String serviceName;
private java.util.List<Tag> tag;
private String vpcId;
private Builder() {
super();
}
private Builder(CreateVpcGatewayEndpointRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.endpointDescription = request.endpointDescription;
this.endpointName = request.endpointName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.policyDocument = request.policyDocument;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.serviceName = request.serviceName;
this.tag = request.tag;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* </blockquote>
* <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
*
* <strong>example:</strong>
* <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The description of the gateway endpoint.</p>
* <p>The description must be 1 to 255 characters in length.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder endpointDescription(String endpointDescription) {
this.putQueryParameter("EndpointDescription", endpointDescription);
this.endpointDescription = endpointDescription;
return this;
}
/**
* <p>The name of the gateway endpoint.</p>
* <p>The name must be 1 to 128 characters in length.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder endpointName(String endpointName) {
this.putQueryParameter("EndpointName", endpointName);
this.endpointName = endpointName;
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;
}
/**
* <p>The access policy for the cloud service.</p>
* <p>For more information about the syntax and structure of the access policy, see <a href="https://help.aliyun.com/document_detail/93739.html">Policy syntax and structure</a>.</p>
*
* <strong>example:</strong>
* <p>{ "Version" : "1", "Statement" : [ { "Effect" : "Allow", "Resource" : [ "<em>" ], "Action" : [ "</em>" ], "Principal" : [ "*" ] } ] }</p>
*/
public Builder policyDocument(String policyDocument) {
this.putQueryParameter("PolicyDocument", policyDocument);
this.policyDocument = policyDocument;
return this;
}
/**
* <p>The region ID of the gateway endpoint.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the gateway endpoint belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The name of the endpoint service.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>com.aliyun.cn-hangzhou.oss</p>
*/
public Builder serviceName(String serviceName) {
this.putQueryParameter("ServiceName", serviceName);
this.serviceName = serviceName;
return this;
}
/**
* <p>The tags of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) where you want to create the gateway endpoint.</p>
* <p>The VPC and gateway endpoint must be deployed in the same region.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1gsk7h12ew7oegk****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public CreateVpcGatewayEndpointRequest build() {
return new CreateVpcGatewayEndpointRequest(this);
}
}
/**
*
* {@link CreateVpcGatewayEndpointRequest} extends {@link TeaModel}
*
* <p>CreateVpcGatewayEndpointRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcGatewayEndpointResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcGatewayEndpointResponse} extends {@link TeaModel}
*
* <p>CreateVpcGatewayEndpointResponse</p>
*/
public class CreateVpcGatewayEndpointResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpcGatewayEndpointResponseBody body;
private CreateVpcGatewayEndpointResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpcGatewayEndpointResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpcGatewayEndpointResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpcGatewayEndpointResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpcGatewayEndpointResponseBody body);
@Override
CreateVpcGatewayEndpointResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpcGatewayEndpointResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpcGatewayEndpointResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpcGatewayEndpointResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpcGatewayEndpointResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpcGatewayEndpointResponse build() {
return new CreateVpcGatewayEndpointResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcGatewayEndpointResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcGatewayEndpointResponseBody} extends {@link TeaModel}
*
* <p>CreateVpcGatewayEndpointResponseBody</p>
*/
public class CreateVpcGatewayEndpointResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("EndpointId")
private String endpointId;
@com.aliyun.core.annotation.NameInMap("EndpointName")
private String endpointName;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("ServiceName")
private String serviceName;
private CreateVpcGatewayEndpointResponseBody(Builder builder) {
this.creationTime = builder.creationTime;
this.endpointId = builder.endpointId;
this.endpointName = builder.endpointName;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.serviceName = builder.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpcGatewayEndpointResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return endpointId
*/
public String getEndpointId() {
return this.endpointId;
}
/**
* @return endpointName
*/
public String getEndpointName() {
return this.endpointName;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return serviceName
*/
public String getServiceName() {
return this.serviceName;
}
public static final class Builder {
private String creationTime;
private String endpointId;
private String endpointName;
private String requestId;
private String resourceGroupId;
private String serviceName;
private Builder() {
}
private Builder(CreateVpcGatewayEndpointResponseBody model) {
this.creationTime = model.creationTime;
this.endpointId = model.endpointId;
this.endpointName = model.endpointName;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.serviceName = model.serviceName;
}
/**
* <p>The time when the gateway endpoint was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2021-08-27T01:58:37Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The ID of the gateway endpoint.</p>
*
* <strong>example:</strong>
* <p>vpce-bp1w1dmdqjpwul0v3****</p>
*/
public Builder endpointId(String endpointId) {
this.endpointId = endpointId;
return this;
}
/**
* <p>The name of the gateway endpoint.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder endpointName(String endpointName) {
this.endpointName = endpointName;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>62CFC815-E08A-5CF4-92D1-54273EC9E406</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the gateway endpoint belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The name of the endpoint service.</p>
*
* <strong>example:</strong>
* <p>com.aliyun.cn-hangzhou.oss</p>
*/
public Builder serviceName(String serviceName) {
this.serviceName = serviceName;
return this;
}
public CreateVpcGatewayEndpointResponseBody build() {
return new CreateVpcGatewayEndpointResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcPrefixListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcPrefixListRequest} extends {@link RequestModel}
*
* <p>CreateVpcPrefixListRequest</p>
*/
public class CreateVpcPrefixListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxEntries")
private Integer maxEntries;
@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("PrefixListDescription")
private String prefixListDescription;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrefixListEntries")
private java.util.List<PrefixListEntries> prefixListEntries;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PrefixListName")
private String prefixListName;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tag")
private java.util.List<Tag> tag;
private CreateVpcPrefixListRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ipVersion = builder.ipVersion;
this.maxEntries = builder.maxEntries;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.prefixListDescription = builder.prefixListDescription;
this.prefixListEntries = builder.prefixListEntries;
this.prefixListName = builder.prefixListName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpcPrefixListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return maxEntries
*/
public Integer getMaxEntries() {
return this.maxEntries;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return prefixListDescription
*/
public String getPrefixListDescription() {
return this.prefixListDescription;
}
/**
* @return prefixListEntries
*/
public java.util.List<PrefixListEntries> getPrefixListEntries() {
return this.prefixListEntries;
}
/**
* @return prefixListName
*/
public String getPrefixListName() {
return this.prefixListName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<CreateVpcPrefixListRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ipVersion;
private Integer maxEntries;
private String ownerAccount;
private Long ownerId;
private String prefixListDescription;
private java.util.List<PrefixListEntries> prefixListEntries;
private String prefixListName;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(CreateVpcPrefixListRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ipVersion = request.ipVersion;
this.maxEntries = request.maxEntries;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.prefixListDescription = request.prefixListDescription;
this.prefixListEntries = request.prefixListEntries;
this.prefixListName = request.prefixListName;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among all requests. ClientToken can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> for each API request may be different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform a dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the required parameters, request syntax, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The IP version. Valid values:</p>
* <ul>
* <li><strong>IPv4</strong> (default)</li>
* <li><strong>IPv6</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.putQueryParameter("IpVersion", ipVersion);
this.ipVersion = ipVersion;
return this;
}
/**
* <p>The maximum number of CIDR blocks that you can specify in the prefix list. Default value: 50.</p>
*
* <strong>example:</strong>
* <p>50</p>
*/
public Builder maxEntries(Integer maxEntries) {
this.putQueryParameter("MaxEntries", maxEntries);
this.maxEntries = maxEntries;
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;
}
/**
* <p>The description of the prefix list.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder prefixListDescription(String prefixListDescription) {
this.putQueryParameter("PrefixListDescription", prefixListDescription);
this.prefixListDescription = prefixListDescription;
return this;
}
/**
* <p>The CIDR block information specified in the prefix list.</p>
*/
public Builder prefixListEntries(java.util.List<PrefixListEntries> prefixListEntries) {
this.putQueryParameter("PrefixListEntries", prefixListEntries);
this.prefixListEntries = prefixListEntries;
return this;
}
/**
* <p>The name of the prefix list.</p>
* <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder prefixListName(String prefixListName) {
this.putQueryParameter("PrefixListName", prefixListName);
this.prefixListName = prefixListName;
return this;
}
/**
* <p>The ID of the region where you want to create the prefix list.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the prefix list belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tag list.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public CreateVpcPrefixListRequest build() {
return new CreateVpcPrefixListRequest(this);
}
}
/**
*
* {@link CreateVpcPrefixListRequest} extends {@link TeaModel}
*
* <p>CreateVpcPrefixListRequest</p>
*/
public static class PrefixListEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cidr")
private String cidr;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
private PrefixListEntries(Builder builder) {
this.cidr = builder.cidr;
this.description = builder.description;
}
public static Builder builder() {
return new Builder();
}
public static PrefixListEntries create() {
return builder().build();
}
/**
* @return cidr
*/
public String getCidr() {
return this.cidr;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
public static final class Builder {
private String cidr;
private String description;
private Builder() {
}
private Builder(PrefixListEntries model) {
this.cidr = model.cidr;
this.description = model.description;
}
/**
* <p>The CIDR block specified in the prefix list.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/16</p>
*/
public Builder cidr(String cidr) {
this.cidr = cidr;
return this;
}
/**
* <p>The description of the CIDR block specified in the prefix list.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>CIDR</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
public PrefixListEntries build() {
return new PrefixListEntries(this);
}
}
}
/**
*
* {@link CreateVpcPrefixListRequest} extends {@link TeaModel}
*
* <p>CreateVpcPrefixListRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcPrefixListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcPrefixListResponse} extends {@link TeaModel}
*
* <p>CreateVpcPrefixListResponse</p>
*/
public class CreateVpcPrefixListResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpcPrefixListResponseBody body;
private CreateVpcPrefixListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpcPrefixListResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpcPrefixListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpcPrefixListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpcPrefixListResponseBody body);
@Override
CreateVpcPrefixListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpcPrefixListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpcPrefixListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpcPrefixListResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpcPrefixListResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpcPrefixListResponse build() {
return new CreateVpcPrefixListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcPrefixListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcPrefixListResponseBody} extends {@link TeaModel}
*
* <p>CreateVpcPrefixListResponseBody</p>
*/
public class CreateVpcPrefixListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PrefixListId")
private String prefixListId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private CreateVpcPrefixListResponseBody(Builder builder) {
this.prefixListId = builder.prefixListId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpcPrefixListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder {
private String prefixListId;
private String requestId;
private String resourceGroupId;
private Builder() {
}
private Builder(CreateVpcPrefixListResponseBody model) {
this.prefixListId = model.prefixListId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
}
/**
* <p>The ID of the prefix list.</p>
*
* <strong>example:</strong>
* <p>pl-0b700s2ee3***</p>
*/
public Builder prefixListId(String prefixListId) {
this.prefixListId = prefixListId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the prefix list belongs.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public CreateVpcPrefixListResponseBody build() {
return new CreateVpcPrefixListResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcRequest} extends {@link RequestModel}
*
* <p>CreateVpcRequest</p>
*/
public class CreateVpcRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CidrBlock")
private String cidrBlock;
@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("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableDnsHostname")
private Boolean enableDnsHostname;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableIpv6")
private Boolean enableIpv6;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv4CidrMask")
private Integer ipv4CidrMask;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv4IpamPoolId")
private String ipv4IpamPoolId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock")
private String ipv6CidrBlock;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6CidrMask")
private Integer ipv6CidrMask;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6IpamPoolId")
private String ipv6IpamPoolId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv6Isp")
private String ipv6Isp;
@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("ResourceGroupId")
private String resourceGroupId;
@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("Tag")
private java.util.List<Tag> tag;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UserCidr")
private String userCidr;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcName")
private String vpcName;
private CreateVpcRequest(Builder builder) {
super(builder);
this.cidrBlock = builder.cidrBlock;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.dryRun = builder.dryRun;
this.enableDnsHostname = builder.enableDnsHostname;
this.enableIpv6 = builder.enableIpv6;
this.ipv4CidrMask = builder.ipv4CidrMask;
this.ipv4IpamPoolId = builder.ipv4IpamPoolId;
this.ipv6CidrBlock = builder.ipv6CidrBlock;
this.ipv6CidrMask = builder.ipv6CidrMask;
this.ipv6IpamPoolId = builder.ipv6IpamPoolId;
this.ipv6Isp = builder.ipv6Isp;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
this.userCidr = builder.userCidr;
this.vpcName = builder.vpcName;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpcRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cidrBlock
*/
public String getCidrBlock() {
return this.cidrBlock;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return enableDnsHostname
*/
public Boolean getEnableDnsHostname() {
return this.enableDnsHostname;
}
/**
* @return enableIpv6
*/
public Boolean getEnableIpv6() {
return this.enableIpv6;
}
/**
* @return ipv4CidrMask
*/
public Integer getIpv4CidrMask() {
return this.ipv4CidrMask;
}
/**
* @return ipv4IpamPoolId
*/
public String getIpv4IpamPoolId() {
return this.ipv4IpamPoolId;
}
/**
* @return ipv6CidrBlock
*/
public String getIpv6CidrBlock() {
return this.ipv6CidrBlock;
}
/**
* @return ipv6CidrMask
*/
public Integer getIpv6CidrMask() {
return this.ipv6CidrMask;
}
/**
* @return ipv6IpamPoolId
*/
public String getIpv6IpamPoolId() {
return this.ipv6IpamPoolId;
}
/**
* @return ipv6Isp
*/
public String getIpv6Isp() {
return this.ipv6Isp;
}
/**
* @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 resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
/**
* @return userCidr
*/
public String getUserCidr() {
return this.userCidr;
}
/**
* @return vpcName
*/
public String getVpcName() {
return this.vpcName;
}
public static final class Builder extends Request.Builder<CreateVpcRequest, Builder> {
private String cidrBlock;
private String clientToken;
private String description;
private Boolean dryRun;
private Boolean enableDnsHostname;
private Boolean enableIpv6;
private Integer ipv4CidrMask;
private String ipv4IpamPoolId;
private String ipv6CidrBlock;
private Integer ipv6CidrMask;
private String ipv6IpamPoolId;
private String ipv6Isp;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private String userCidr;
private String vpcName;
private Builder() {
super();
}
private Builder(CreateVpcRequest request) {
super(request);
this.cidrBlock = request.cidrBlock;
this.clientToken = request.clientToken;
this.description = request.description;
this.dryRun = request.dryRun;
this.enableDnsHostname = request.enableDnsHostname;
this.enableIpv6 = request.enableIpv6;
this.ipv4CidrMask = request.ipv4CidrMask;
this.ipv4IpamPoolId = request.ipv4IpamPoolId;
this.ipv6CidrBlock = request.ipv6CidrBlock;
this.ipv6CidrMask = request.ipv6CidrMask;
this.ipv6IpamPoolId = request.ipv6IpamPoolId;
this.ipv6Isp = request.ipv6Isp;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
this.userCidr = request.userCidr;
this.vpcName = request.vpcName;
}
/**
* <p>The CIDR block of the VPC.</p>
* <ul>
* <li>We recommend using the private IPv4 address specified in RFC 1918 as the primary IPv4 CIDR block of the VPC with a recommended mask length of 16 to 28 bits. For example, 10.0.0.0/16, 172.16.0.0/16, and 192.168.0.0/16.</li>
* <li>You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, or their subnets as the primary IPv4 CIDR block.</li>
* </ul>
*
* <strong>example:</strong>
* <p>172.16.0.0/12</p>
*/
public Builder cidrBlock(String cidrBlock) {
this.putQueryParameter("CidrBlock", cidrBlock);
this.cidrBlock = cidrBlock;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the VPC.</p>
* <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>This is my first Vpc</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* <p>Specifies whether to perform a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Whether to enable the DNS hostname feature. Values:</p>
* <ul>
* <li><strong>false</strong> (default): Not enabled. </li>
* <li><strong>true</strong>: Enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableDnsHostname(Boolean enableDnsHostname) {
this.putQueryParameter("EnableDnsHostname", enableDnsHostname);
this.enableDnsHostname = enableDnsHostname;
return this;
}
/**
* <p>Indicates whether IPv6 is enabled. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default): disabled.</li>
* <li><strong>true</strong>: enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableIpv6(Boolean enableIpv6) {
this.putQueryParameter("EnableIpv6", enableIpv6);
this.enableIpv6 = enableIpv6;
return this;
}
/**
* <p>Allocate VPC from the IPAM address pool by inputting a mask.</p>
* <blockquote>
* <p>When creating a VPC with a specified IPAM address pool, at least one of the parameters CidrBlock or Ipv4CidrMask must be provided.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>12</p>
*/
public Builder ipv4CidrMask(Integer ipv4CidrMask) {
this.putQueryParameter("Ipv4CidrMask", ipv4CidrMask);
this.ipv4CidrMask = ipv4CidrMask;
return this;
}
/**
* <p>The ID of the IP Address Manager (IPAM) pool of the IPv4 type.</p>
*
* <strong>example:</strong>
* <p>ipam-pool-sycmt3p2a9v63i****</p>
*/
public Builder ipv4IpamPoolId(String ipv4IpamPoolId) {
this.putQueryParameter("Ipv4IpamPoolId", ipv4IpamPoolId);
this.ipv4IpamPoolId = ipv4IpamPoolId;
return this;
}
/**
* <p>The IPv6 CIDR block of the VPC. If you enable IPv6 for a VPC, the system allocates an IPv6 CIDR block. To specify an IPv6 CIDR block, you must call the <a href="https://help.aliyun.com/document_detail/448916.html">AllocateVpcIpv6Cidr</a> operation to reserve the specified IPv6 CIDR block.</p>
*
* <strong>example:</strong>
* <p>2408:XXXX:0:6a::/56</p>
*/
public Builder ipv6CidrBlock(String ipv6CidrBlock) {
this.putQueryParameter("Ipv6CidrBlock", ipv6CidrBlock);
this.ipv6CidrBlock = ipv6CidrBlock;
return this;
}
/**
* <p>Add an IPv6 CIDR block from the IPAM pool to the VPC by entering a mask.</p>
*
* <strong>example:</strong>
* <p>56</p>
*/
public Builder ipv6CidrMask(Integer ipv6CidrMask) {
this.putQueryParameter("Ipv6CidrMask", ipv6CidrMask);
this.ipv6CidrMask = ipv6CidrMask;
return this;
}
/**
* <p>The ID of the IP Address Manager (IPAM) pool of the IPv6 type.</p>
*
* <strong>example:</strong>
* <p>ipam-pool-bp1aq51kkfh477z03****</p>
*/
public Builder ipv6IpamPoolId(String ipv6IpamPoolId) {
this.putQueryParameter("Ipv6IpamPoolId", ipv6IpamPoolId);
this.ipv6IpamPoolId = ipv6IpamPoolId;
return this;
}
/**
* <p>The type of the IPv6 CIDR block of the VPC. Valid values:</p>
* <ul>
* <li><strong>BGP</strong> (default)</li>
* <li><strong>ChinaMobile</strong></li>
* <li><strong>ChinaUnicom</strong></li>
* <li><strong>ChinaTelecom</strong></li>
* </ul>
* <blockquote>
* <p> If you are allowed to use single-ISP bandwidth, you can set the value to <strong>ChinaTelecom</strong>, <strong>ChinaUnicom</strong>, or <strong>ChinaMobile</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>BGP</p>
*/
public Builder ipv6Isp(String ipv6Isp) {
this.putQueryParameter("Ipv6Isp", ipv6Isp);
this.ipv6Isp = ipv6Isp;
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;
}
/**
* <p>The ID of the region to which the VPC belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group.</p>
* <p>For more information about resource groups, see <a href="https://help.aliyun.com/document_detail/94475.html">What is a resource group?</a></p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tag of the resource.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
/**
* <p>The user CIDR block. Separate user CIDR blocks with commas (,). You can specify up to three user CIDR blocks.</p>
* <p>For more information about user CIDR blocks, see the <code>What is a user CIDR block?</code> section in <a href="https://help.aliyun.com/document_detail/185311.html">VPC FAQ</a>.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/12</p>
*/
public Builder userCidr(String userCidr) {
this.putQueryParameter("UserCidr", userCidr);
this.userCidr = userCidr;
return this;
}
/**
* <p>The name of the VPC.</p>
* <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder vpcName(String vpcName) {
this.putQueryParameter("VpcName", vpcName);
this.vpcName = vpcName;
return this;
}
@Override
public CreateVpcRequest build() {
return new CreateVpcRequest(this);
}
}
/**
*
* {@link CreateVpcRequest} extends {@link TeaModel}
*
* <p>CreateVpcRequest</p>
*/
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;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be at most 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length, but cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcResponse} extends {@link TeaModel}
*
* <p>CreateVpcResponse</p>
*/
public class CreateVpcResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpcResponseBody body;
private CreateVpcResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpcResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpcResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpcResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpcResponseBody body);
@Override
CreateVpcResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpcResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpcResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpcResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpcResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpcResponse build() {
return new CreateVpcResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpcResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpcResponseBody} extends {@link TeaModel}
*
* <p>CreateVpcResponseBody</p>
*/
public class CreateVpcResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
@com.aliyun.core.annotation.NameInMap("VRouterId")
private String vRouterId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private CreateVpcResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.routeTableId = builder.routeTableId;
this.vRouterId = builder.vRouterId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpcResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return vRouterId
*/
public String getVRouterId() {
return this.vRouterId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String requestId;
private String resourceGroupId;
private String routeTableId;
private String vRouterId;
private String vpcId;
private Builder() {
}
private Builder(CreateVpcResponseBody model) {
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.routeTableId = model.routeTableId;
this.vRouterId = model.vRouterId;
this.vpcId = model.vpcId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph6aiy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The ID of the route table that is automatically created by the system after the VPC is created.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzdv****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
/**
* <p>The ID of the vRouter that is automatically created by the system after the VPC is created.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1lhl0taikrteen8****</p>
*/
public Builder vRouterId(String vRouterId) {
this.vRouterId = vRouterId;
return this;
}
/**
* <p>The ID of the created VPC.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72zv****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public CreateVpcResponseBody build() {
return new CreateVpcResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpconnFromVbrRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpconnFromVbrRequest} extends {@link RequestModel}
*
* <p>CreateVpconnFromVbrRequest</p>
*/
public class CreateVpconnFromVbrRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OrderMode")
private String orderMode;
@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("Token")
private String token;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VbrId")
@com.aliyun.core.annotation.Validation(required = true)
private String vbrId;
private CreateVpconnFromVbrRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.orderMode = builder.orderMode;
this.regionId = builder.regionId;
this.token = builder.token;
this.vbrId = builder.vbrId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpconnFromVbrRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return orderMode
*/
public String getOrderMode() {
return this.orderMode;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return token
*/
public String getToken() {
return this.token;
}
/**
* @return vbrId
*/
public String getVbrId() {
return this.vbrId;
}
public static final class Builder extends Request.Builder<CreateVpconnFromVbrRequest, Builder> {
private Boolean dryRun;
private String orderMode;
private String regionId;
private String token;
private String vbrId;
private Builder() {
super();
}
private Builder(CreateVpconnFromVbrRequest request) {
super(request);
this.dryRun = request.dryRun;
this.orderMode = request.orderMode;
this.regionId = request.regionId;
this.token = request.token;
this.vbrId = request.vbrId;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and instance status. If the request fails the dry run, an error message is returned. If the request passes the dry run, the system returns the ID of the request.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The payer for the shared Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>PayByPhysicalConnectionOwner</strong>: the owner of the shared Express Connect circuit</li>
* <li><strong>PayByVirtualPhysicalConnectionOwner</strong>: the owner of the hosted connection</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayByVirtualPhysicalConnectionOwner</p>
*/
public Builder orderMode(String orderMode) {
this.putQueryParameter("OrderMode", orderMode);
this.orderMode = orderMode;
return this;
}
/**
* <p>The region ID of the hosted connection.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>CBCE910E-D396-4944-8****</p>
*/
public Builder token(String token) {
this.putQueryParameter("Token", token);
this.token = token;
return this;
}
/**
* <p>The ID of the associated VBR.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbr-bp136flp1mf8mlq6r****</p>
*/
public Builder vbrId(String vbrId) {
this.putQueryParameter("VbrId", vbrId);
this.vbrId = vbrId;
return this;
}
@Override
public CreateVpconnFromVbrRequest build() {
return new CreateVpconnFromVbrRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpconnFromVbrResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpconnFromVbrResponse} extends {@link TeaModel}
*
* <p>CreateVpconnFromVbrResponse</p>
*/
public class CreateVpconnFromVbrResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpconnFromVbrResponseBody body;
private CreateVpconnFromVbrResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpconnFromVbrResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpconnFromVbrResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpconnFromVbrResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpconnFromVbrResponseBody body);
@Override
CreateVpconnFromVbrResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpconnFromVbrResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpconnFromVbrResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpconnFromVbrResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpconnFromVbrResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpconnFromVbrResponse build() {
return new CreateVpconnFromVbrResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpconnFromVbrResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpconnFromVbrResponseBody} extends {@link TeaModel}
*
* <p>CreateVpconnFromVbrResponseBody</p>
*/
public class CreateVpconnFromVbrResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnection")
private String virtualPhysicalConnection;
private CreateVpconnFromVbrResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.virtualPhysicalConnection = builder.virtualPhysicalConnection;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpconnFromVbrResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return virtualPhysicalConnection
*/
public String getVirtualPhysicalConnection() {
return this.virtualPhysicalConnection;
}
public static final class Builder {
private String requestId;
private String virtualPhysicalConnection;
private Builder() {
}
private Builder(CreateVpconnFromVbrResponseBody model) {
this.requestId = model.requestId;
this.virtualPhysicalConnection = model.virtualPhysicalConnection;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5356F028-0F5C-56FC-8574-897D24379041</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the hosted connection.</p>
*
* <strong>example:</strong>
* <p>pc-bp1mrgfbtmc9brre7****</p>
*/
public Builder virtualPhysicalConnection(String virtualPhysicalConnection) {
this.virtualPhysicalConnection = virtualPhysicalConnection;
return this;
}
public CreateVpconnFromVbrResponseBody build() {
return new CreateVpconnFromVbrResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnAttachmentRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnAttachmentRequest} extends {@link RequestModel}
*
* <p>CreateVpnAttachmentRequest</p>
*/
public class CreateVpnAttachmentRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoConfigRoute")
private Boolean autoConfigRoute;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BgpConfig")
private String bgpConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EffectImmediately")
private Boolean effectImmediately;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableDpd")
private Boolean enableDpd;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableNatTraversal")
private Boolean enableNatTraversal;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp")
private Boolean enableTunnelsBgp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HealthCheckConfig")
private String healthCheckConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IkeConfig")
private String ikeConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpsecConfig")
private String ipsecConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LocalSubnet")
@com.aliyun.core.annotation.Validation(required = true)
private String localSubnet;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@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("RemoteCaCert")
private String remoteCaCert;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RemoteSubnet")
@com.aliyun.core.annotation.Validation(required = true)
private String remoteSubnet;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@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("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification")
private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification;
private CreateVpnAttachmentRequest(Builder builder) {
super(builder);
this.autoConfigRoute = builder.autoConfigRoute;
this.bgpConfig = builder.bgpConfig;
this.clientToken = builder.clientToken;
this.customerGatewayId = builder.customerGatewayId;
this.dryRun = builder.dryRun;
this.effectImmediately = builder.effectImmediately;
this.enableDpd = builder.enableDpd;
this.enableNatTraversal = builder.enableNatTraversal;
this.enableTunnelsBgp = builder.enableTunnelsBgp;
this.healthCheckConfig = builder.healthCheckConfig;
this.ikeConfig = builder.ikeConfig;
this.ipsecConfig = builder.ipsecConfig;
this.localSubnet = builder.localSubnet;
this.name = builder.name;
this.networkType = builder.networkType;
this.ownerAccount = builder.ownerAccount;
this.regionId = builder.regionId;
this.remoteCaCert = builder.remoteCaCert;
this.remoteSubnet = builder.remoteSubnet;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnAttachmentRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoConfigRoute
*/
public Boolean getAutoConfigRoute() {
return this.autoConfigRoute;
}
/**
* @return bgpConfig
*/
public String getBgpConfig() {
return this.bgpConfig;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return effectImmediately
*/
public Boolean getEffectImmediately() {
return this.effectImmediately;
}
/**
* @return enableDpd
*/
public Boolean getEnableDpd() {
return this.enableDpd;
}
/**
* @return enableNatTraversal
*/
public Boolean getEnableNatTraversal() {
return this.enableNatTraversal;
}
/**
* @return enableTunnelsBgp
*/
public Boolean getEnableTunnelsBgp() {
return this.enableTunnelsBgp;
}
/**
* @return healthCheckConfig
*/
public String getHealthCheckConfig() {
return this.healthCheckConfig;
}
/**
* @return ikeConfig
*/
public String getIkeConfig() {
return this.ikeConfig;
}
/**
* @return ipsecConfig
*/
public String getIpsecConfig() {
return this.ipsecConfig;
}
/**
* @return localSubnet
*/
public String getLocalSubnet() {
return this.localSubnet;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return remoteCaCert
*/
public String getRemoteCaCert() {
return this.remoteCaCert;
}
/**
* @return remoteSubnet
*/
public String getRemoteSubnet() {
return this.remoteSubnet;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return tunnelOptionsSpecification
*/
public java.util.List<TunnelOptionsSpecification> getTunnelOptionsSpecification() {
return this.tunnelOptionsSpecification;
}
public static final class Builder extends Request.Builder<CreateVpnAttachmentRequest, Builder> {
private Boolean autoConfigRoute;
private String bgpConfig;
private String clientToken;
private String customerGatewayId;
private Boolean dryRun;
private Boolean effectImmediately;
private Boolean enableDpd;
private Boolean enableNatTraversal;
private Boolean enableTunnelsBgp;
private String healthCheckConfig;
private String ikeConfig;
private String ipsecConfig;
private String localSubnet;
private String name;
private String networkType;
private String ownerAccount;
private String regionId;
private String remoteCaCert;
private String remoteSubnet;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification;
private Builder() {
super();
}
private Builder(CreateVpnAttachmentRequest request) {
super(request);
this.autoConfigRoute = request.autoConfigRoute;
this.bgpConfig = request.bgpConfig;
this.clientToken = request.clientToken;
this.customerGatewayId = request.customerGatewayId;
this.dryRun = request.dryRun;
this.effectImmediately = request.effectImmediately;
this.enableDpd = request.enableDpd;
this.enableNatTraversal = request.enableNatTraversal;
this.enableTunnelsBgp = request.enableTunnelsBgp;
this.healthCheckConfig = request.healthCheckConfig;
this.ikeConfig = request.ikeConfig;
this.ipsecConfig = request.ipsecConfig;
this.localSubnet = request.localSubnet;
this.name = request.name;
this.networkType = request.networkType;
this.ownerAccount = request.ownerAccount;
this.regionId = request.regionId;
this.remoteCaCert = request.remoteCaCert;
this.remoteSubnet = request.remoteSubnet;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
this.tunnelOptionsSpecification = request.tunnelOptionsSpecification;
}
/**
* <p>Specifies whether to automatically configure routes. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default)</li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoConfigRoute(Boolean autoConfigRoute) {
this.putQueryParameter("AutoConfigRoute", autoConfigRoute);
this.autoConfigRoute = autoConfigRoute;
return this;
}
/**
* <p>This parameter is supported when you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>BGP configuration:</p>
* <ul>
* <li><p><strong>BgpConfig.EnableBgp</strong>: specifies whether to enable BGP. Valid values: <strong>true</strong> and <strong>false</strong> (default).</p>
* </li>
* <li><p><strong>BgpConfig.LocalAsn</strong>: the ASN on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>. Default value: <strong>45104</strong>.</p>
* <p>You can enter a value in two segments separated by a period (.). Each segment is 16 bits in length. Enter the number in each segment in decimal format.</p>
* <p>For example, if you enter 123.456, the ASN is 8061384. The ASN is calculated by using the following formula: 123 × 65536 + 456 = 8061384.</p>
* </li>
* <li><p><strong>BgpConfig.TunnelCidr</strong>: The CIDR block of the IPsec tunnel. The CIDR block must fall into 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p>
* </li>
* <li><p><strong>LocalBgpIp</strong>: the BGP address on the Alibaba Cloud side. It must be an IP address that falls within the CIDR block of the IPsec tunnel.</p>
* </li>
* </ul>
* <blockquote>
* <ul>
* <li>Before you add BGP configurations, we recommend that you learn about how BGP works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/445767.html">Configure BGP dynamic routing</a>.</li>
* <li>We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. Refer to the relevant documentation for the private ASN range.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"EnableBgp":"true","LocalAsn":"45104","TunnelCidr":"169.254.11.0/30","LocalBgpIp":"169.254.11.1"}</p>
*/
public Builder bgpConfig(String bgpConfig) {
this.putQueryParameter("BgpConfig", bgpConfig);
this.bgpConfig = bgpConfig;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-4266****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The customer gateway ID.</p>
* <blockquote>
* <p> This parameter is required only when you create a single-tunnel IPsec-VPN connection.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cgw-p0w2jemrcj5u61un8****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.putQueryParameter("CustomerGatewayId", customerGatewayId);
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Specifies whether to immediately start IPsec negotiations after the configuration takes effect. Valid values:</p>
* <ul>
* <li><strong>true</strong>: immediately starts IPsec negotiations after the configuration is complete.</li>
* <li><strong>false</strong> (default): starts IPsec negotiations when inbound traffic is received.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder effectImmediately(Boolean effectImmediately) {
this.putQueryParameter("EffectImmediately", effectImmediately);
this.effectImmediately = effectImmediately;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>Specifies whether to enable DPD. Valid values: Valid values:</p>
* <ul>
* <li><strong>true</strong> (default): enables DPD. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within the specified period of time, the connection fails. In this case, ISAKMP SA and IPsec SA are deleted along with the security tunnel.</li>
* <li><strong>false</strong>: disables DPD. The initiator of the IPsec-VPN connection does not send DPD packets.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableDpd(Boolean enableDpd) {
this.putQueryParameter("EnableDpd", enableDpd);
this.enableDpd = enableDpd;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>Specifies whether to enable NAT traversal. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default): enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li>
* <li><strong>false</strong>: disables NAT traversal.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableNatTraversal(Boolean enableNatTraversal) {
this.putQueryParameter("EnableNatTraversal", enableNatTraversal);
this.enableNatTraversal = enableNatTraversal;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in dual-tunnel mode.</p>
* <p>Specifies whether to enable the BGP feature for the tunnel. Valid values: <strong>true</strong> and <strong>false</strong>. Default value: false.</p>
* <blockquote>
* <p> Before you add BGP configurations, we recommend that you learn about how BGP works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/445767.html">Configure BGP dynamic routing</a></p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) {
this.putQueryParameter("EnableTunnelsBgp", enableTunnelsBgp);
this.enableTunnelsBgp = enableTunnelsBgp;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The health check configurations:</p>
* <ul>
* <li><p><strong>HealthCheckConfig.enable</strong>: indicates whether the health check is enabled. Valid values: <strong>true</strong> and <strong>false</strong> (default).</p>
* </li>
* <li><p><strong>HealthCheckConfig.dip</strong>: the destination IP address configured for health checks. Enter the IP address of the on-premises data center that the VPC can access through the IPsec connection.</p>
* </li>
* <li><p><strong>HealthCheckConfig.sip</strong>: the source IP address configured for health checks. Enter the IP address of the VPC that the on-premises data center can access through the IPsec connection.</p>
* </li>
* <li><p><strong>HealthCheckConfig.interval</strong>: the time interval of health check retries. Unit: seconds. Default value: <strong>3</strong>.</p>
* </li>
* <li><p><strong>HealthCheckConfig.retry</strong>: the maximum number of health check retries. Default value: <strong>3</strong>.</p>
* </li>
* <li><p><strong>HealthCheckConfig.Policy</strong>: specifies whether to withdraw published routes when health checks fail. Valid values:</p>
* <ul>
* <li><strong>revoke_route</strong> (default): withdraws published routes.</li>
* <li><strong>reserve_route</strong>: does not withdraw published routes.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"enable":"true","dip":"192.168.1.1","sip":"10.1.1.1","interval":"3","retry":"3","Policy": "revoke_route"}</p>
*/
public Builder healthCheckConfig(String healthCheckConfig) {
this.putQueryParameter("HealthCheckConfig", healthCheckConfig);
this.healthCheckConfig = healthCheckConfig;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The configurations of Phase 1 negotiations:</p>
* <ul>
* <li><p><strong>IkeConfig.Psk</strong>: the pre-shared key that is used for identity authentication between the VPN gateway and the on-premises data center.</p>
* <ul>
* <li>The key cannot contain space characters. The key must be 1 to 100 characters in length, and can contain digits, letters, and the following special characters: <code>~!`@#$%^&*()_-+={}[]|;:\",.<>/?</code></li>
* <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526951.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</li>
* </ul>
* <blockquote>
* <p>The pre-shared key of the IPsec-VPN connection must be the same as the authentication key of the on-premises data center. Otherwise, connections between the on-premises data center and the VPN gateway cannot be established.</p>
* </blockquote>
* </li>
* <li><p><strong>IkeConfig.IkeVersion</strong>: the version of the Internet Key Exchange (IKE) protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>. Default value: <strong>ikev1</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkeMode</strong>: the negotiation mode. Valid values: <strong>main</strong> and <strong>aggressive</strong>. Default value: <strong>main</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkeEncAlg:</strong> the encryption algorithm that is used in Phase 1 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkeAuthAlg</strong>: the authentication algorithm that is used in Phase 1 negotiations. Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>md5</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkePfs</strong>: the Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>. Default value: <strong>group2</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkeLifetime</strong>: the SA lifetime as a result of Phase 1 negotiations. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.LocalId</strong>: the identifier on the Alibaba Cloud side. The identifier cannot exceed 100 characters in length and cannot contain space characters. This parameter is empty by default.</p>
* </li>
* <li><p><strong>IkeConfig.RemoteId</strong>: the identifier on the data center side. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the customer gateway.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"Psk":"1234****","IkeVersion":"ikev1","IkeMode":"main","IkeEncAlg":"aes","IkeAuthAlg":"sha1","IkePfs":"group2","IkeLifetime":86400,"LocalId":"47.XX.XX.1","RemoteId":"47.XX.XX.2"}</p>
*/
public Builder ikeConfig(String ikeConfig) {
this.putQueryParameter("IkeConfig", ikeConfig);
this.ikeConfig = ikeConfig;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The configurations of Phase 2 negotiations:</p>
* <ul>
* <li><strong>IpsecConfig.IpsecEncAlg</strong>: the encryption algorithm that is used in Phase 2 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</li>
* <li><strong>IpsecConfig. IpsecAuthAlg</strong>: the authentication algorithm that is used in Phase 2 negotiations. Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>md5</strong>.</li>
* <li><strong>IpsecConfig. IpsecPfs</strong>: The Diffie-Hellman key exchange algorithm used in the second phase negotiation. Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>. Default value: <strong>group2</strong>.</li>
* <li><strong>IkeConfig.IkeLifetime</strong>: the SA lifetime determined by Phase 2 negotiations. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"IpsecEncAlg":"aes","IpsecAuthAlg":"sha1","IpsecPfs":"group2","IpsecLifetime":86400}</p>
*/
public Builder ipsecConfig(String ipsecConfig) {
this.putQueryParameter("IpsecConfig", ipsecConfig);
this.ipsecConfig = ipsecConfig;
return this;
}
/**
* <p>The CIDR block on the VPC side. The CIDR block is used in Phase 2 negotiations.</p>
* <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.</p>
* <p>The following routing modes are supported:</p>
* <ul>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.1.1.0/24,10.1.2.0/24</p>
*/
public Builder localSubnet(String localSubnet) {
this.putQueryParameter("LocalSubnet", localSubnet);
this.localSubnet = localSubnet;
return this;
}
/**
* <p>The name of the IPsec-VPN connection.</p>
* <p>The name must be 1 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>nametest</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The network type of the IPsec-VPN connection. Valid values:</p>
* <ul>
* <li><strong>public</strong> (default)</li>
* <li><strong>private</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>public</p>
*/
public Builder networkType(String networkType) {
this.putQueryParameter("NetworkType", networkType);
this.networkType = networkType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* <p>The region ID of the IPsec-VPN connection.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The peer CA certificate when a ShangMi (SM) VPN gateway is used to create the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p>
*/
public Builder remoteCaCert(String remoteCaCert) {
this.putQueryParameter("RemoteCaCert", remoteCaCert);
this.remoteCaCert = remoteCaCert;
return this;
}
/**
* <p>The CIDR block on the data center side. This CIDR block is used in Phase 2 negotiations.</p>
* <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.3.0/24,192.168.4.0/24.</p>
* <p>The following routing modes are supported:</p>
* <ul>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.1.3.0/24,10.1.4.0/24</p>
*/
public Builder remoteSubnet(String remoteSubnet) {
this.putQueryParameter("RemoteSubnet", remoteSubnet);
this.remoteSubnet = remoteSubnet;
return this;
}
/**
* <p>The ID of the resource group to which the IPsec-VPN connection belongs.</p>
* <ul>
* <li>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource group IDs.</li>
* <li>If you do not specify a resource group ID, the IPsec-VPN connection belongs to the default resource group.</li>
* </ul>
*
* <strong>example:</strong>
* <p>rg-acfmzs372yg****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The tag value.</p>
* <p>The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
* <p>Each tag key corresponds to one tag value. You can specify up to 20 tag values in each call.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The tunnel configurations.</p>
* <ul>
* <li>You can specify parameters in the <strong>TunnelOptionsSpecification</strong> array when you create an IPsec-VPN connection in dual tunnel mode.</li>
* <li>When you create a IPsec-VPN connection in dual-tunnel mode, you must add both tunnels to IPsec-VPN connection to ensure that the IPsec-VPN connection has connection redundancy. Each IPsec-VPN connection supports only two tunnels.</li>
* </ul>
*/
public Builder tunnelOptionsSpecification(java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification) {
this.putBodyParameter("TunnelOptionsSpecification", tunnelOptionsSpecification);
this.tunnelOptionsSpecification = tunnelOptionsSpecification;
return this;
}
@Override
public CreateVpnAttachmentRequest build() {
return new CreateVpnAttachmentRequest(this);
}
}
/**
*
* {@link CreateVpnAttachmentRequest} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags 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;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. The tag key cannot be an empty string.</p>
* <p>It can be at most 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
* <p>You can specify at most 20 tag keys in each call.</p>
*
* <strong>example:</strong>
* <p>TagKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <p>The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
* <p>Each tag key corresponds to one tag value. You can specify at most 20 tag values in each call.</p>
*
* <strong>example:</strong>
* <p>TagValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link CreateVpnAttachmentRequest} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentRequest</p>
*/
public static class TunnelBgpConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalAsn")
private Long localAsn;
@com.aliyun.core.annotation.NameInMap("LocalBgpIp")
private String localBgpIp;
@com.aliyun.core.annotation.NameInMap("TunnelCidr")
private String tunnelCidr;
private TunnelBgpConfig(Builder builder) {
this.localAsn = builder.localAsn;
this.localBgpIp = builder.localBgpIp;
this.tunnelCidr = builder.tunnelCidr;
}
public static Builder builder() {
return new Builder();
}
public static TunnelBgpConfig create() {
return builder().build();
}
/**
* @return localAsn
*/
public Long getLocalAsn() {
return this.localAsn;
}
/**
* @return localBgpIp
*/
public String getLocalBgpIp() {
return this.localBgpIp;
}
/**
* @return tunnelCidr
*/
public String getTunnelCidr() {
return this.tunnelCidr;
}
public static final class Builder {
private Long localAsn;
private String localBgpIp;
private String tunnelCidr;
private Builder() {
}
private Builder(TunnelBgpConfig model) {
this.localAsn = model.localAsn;
this.localBgpIp = model.localBgpIp;
this.tunnelCidr = model.tunnelCidr;
}
/**
* <p>The ANS of the tunnel on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>. Default value: <strong>45104</strong>.</p>
* <blockquote>
* <p> We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. Refer to the relevant documentation for the private ASN range.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>65530</p>
*/
public Builder localAsn(Long localAsn) {
this.localAsn = localAsn;
return this;
}
/**
* <p>The BGP IP address of the tunnel on the Alibaba Cloud side. The address is an IP address that falls within the BGP CIDR block.</p>
*
* <strong>example:</strong>
* <p>169.254.10.1</p>
*/
public Builder localBgpIp(String localBgpIp) {
this.localBgpIp = localBgpIp;
return this;
}
/**
* <p>The BGP CIDR block of the tunnel. The CIDR block must fall into 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p>
* <blockquote>
* <p> The two tunnels of an IPsec-VPN connection must use different CIDR blocks.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>169.254.10.0/30</p>
*/
public Builder tunnelCidr(String tunnelCidr) {
this.tunnelCidr = tunnelCidr;
return this;
}
public TunnelBgpConfig build() {
return new TunnelBgpConfig(this);
}
}
}
/**
*
* {@link CreateVpnAttachmentRequest} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentRequest</p>
*/
public static class TunnelIkeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IkeAuthAlg")
private String ikeAuthAlg;
@com.aliyun.core.annotation.NameInMap("IkeEncAlg")
private String ikeEncAlg;
@com.aliyun.core.annotation.NameInMap("IkeLifetime")
private Long ikeLifetime;
@com.aliyun.core.annotation.NameInMap("IkeMode")
private String ikeMode;
@com.aliyun.core.annotation.NameInMap("IkePfs")
private String ikePfs;
@com.aliyun.core.annotation.NameInMap("IkeVersion")
private String ikeVersion;
@com.aliyun.core.annotation.NameInMap("LocalId")
private String localId;
@com.aliyun.core.annotation.NameInMap("Psk")
private String psk;
@com.aliyun.core.annotation.NameInMap("RemoteId")
private String remoteId;
private TunnelIkeConfig(Builder builder) {
this.ikeAuthAlg = builder.ikeAuthAlg;
this.ikeEncAlg = builder.ikeEncAlg;
this.ikeLifetime = builder.ikeLifetime;
this.ikeMode = builder.ikeMode;
this.ikePfs = builder.ikePfs;
this.ikeVersion = builder.ikeVersion;
this.localId = builder.localId;
this.psk = builder.psk;
this.remoteId = builder.remoteId;
}
public static Builder builder() {
return new Builder();
}
public static TunnelIkeConfig create() {
return builder().build();
}
/**
* @return ikeAuthAlg
*/
public String getIkeAuthAlg() {
return this.ikeAuthAlg;
}
/**
* @return ikeEncAlg
*/
public String getIkeEncAlg() {
return this.ikeEncAlg;
}
/**
* @return ikeLifetime
*/
public Long getIkeLifetime() {
return this.ikeLifetime;
}
/**
* @return ikeMode
*/
public String getIkeMode() {
return this.ikeMode;
}
/**
* @return ikePfs
*/
public String getIkePfs() {
return this.ikePfs;
}
/**
* @return ikeVersion
*/
public String getIkeVersion() {
return this.ikeVersion;
}
/**
* @return localId
*/
public String getLocalId() {
return this.localId;
}
/**
* @return psk
*/
public String getPsk() {
return this.psk;
}
/**
* @return remoteId
*/
public String getRemoteId() {
return this.remoteId;
}
public static final class Builder {
private String ikeAuthAlg;
private String ikeEncAlg;
private Long ikeLifetime;
private String ikeMode;
private String ikePfs;
private String ikeVersion;
private String localId;
private String psk;
private String remoteId;
private Builder() {
}
private Builder(TunnelIkeConfig model) {
this.ikeAuthAlg = model.ikeAuthAlg;
this.ikeEncAlg = model.ikeEncAlg;
this.ikeLifetime = model.ikeLifetime;
this.ikeMode = model.ikeMode;
this.ikePfs = model.ikePfs;
this.ikeVersion = model.ikeVersion;
this.localId = model.localId;
this.psk = model.psk;
this.remoteId = model.remoteId;
}
/**
* <p>The authentication algorithm that is used in Phase 1 negotiations. Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>sha1</strong>.</p>
*
* <strong>example:</strong>
* <p>sha1</p>
*/
public Builder ikeAuthAlg(String ikeAuthAlg) {
this.ikeAuthAlg = ikeAuthAlg;
return this;
}
/**
* <p>The encryption algorithm that is used in Phase 1 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ikeEncAlg(String ikeEncAlg) {
this.ikeEncAlg = ikeEncAlg;
return this;
}
/**
* <p>The SA lifetime as a result of Phase 1 negotiations. Unit: seconds.</p>
* <p>Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ikeLifetime(Long ikeLifetime) {
this.ikeLifetime = ikeLifetime;
return this;
}
/**
* <p>The negotiation mode of IKE. Valid values: <strong>main</strong> and <strong>aggressive</strong>. Default value: <strong>main</strong>.</p>
* <ul>
* <li><strong>main:</strong> This mode offers higher security during negotiations.</li>
* <li><strong>aggressive</strong>: This mode is faster with a higher success rate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>main</p>
*/
public Builder ikeMode(String ikeMode) {
this.ikeMode = ikeMode;
return this;
}
/**
* <p>The Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Default value: <strong>group2</strong>.<br>Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ikePfs(String ikePfs) {
this.ikePfs = ikePfs;
return this;
}
/**
* <p>The version of the IKE protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>. Default value: <strong>ikev2</strong>.</p>
* <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and provides better support for scenarios with multiple CIDR blocks.</p>
*
* <strong>example:</strong>
* <p>ikev2</p>
*/
public Builder ikeVersion(String ikeVersion) {
this.ikeVersion = ikeVersion;
return this;
}
/**
* <p>The identifier of the tunnel on the Alibaba Cloud side, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain spaces. The default value is the IP address of the tunnel.</p>
* <p><strong>LocalId</strong> supports fully qualified domain names (FQDNs). If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p>
*
* <strong>example:</strong>
* <p>47.XX.XX.1</p>
*/
public Builder localId(String localId) {
this.localId = localId;
return this;
}
/**
* <p>The pre-shared key that is used for identity authentication between the tunnel and the tunnel peer.</p>
* <ul>
* <li>The key cannot contain spaces. The key must be 1 to 100 characters in length, and can contain digits, letters, and the following special characters: <code>~!\`@#$%^&*()_-+={}[]|;:\",.<>/?</code></li>
* <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526939.html">DescribeVpnAttachments</a> operation to query the pre-shared key that is automatically generated by the system.</li>
* </ul>
* <blockquote>
* <p> The tunnel and the tunnel peer must use the same pre-shared key. Otherwise, the tunnel cannot be established.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123456****</p>
*/
public Builder psk(String psk) {
this.psk = psk;
return this;
}
/**
* <p>The identifier of the tunnel peer, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain spaces. The default value is the IP address of the customer gateway that is associated with the tunnel.</p>
* <p><strong>RemoteId</strong> supports FQDNs. If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p>
*
* <strong>example:</strong>
* <p>47.XX.XX.2</p>
*/
public Builder remoteId(String remoteId) {
this.remoteId = remoteId;
return this;
}
public TunnelIkeConfig build() {
return new TunnelIkeConfig(this);
}
}
}
/**
*
* {@link CreateVpnAttachmentRequest} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentRequest</p>
*/
public static class TunnelIpsecConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpsecAuthAlg")
private String ipsecAuthAlg;
@com.aliyun.core.annotation.NameInMap("IpsecEncAlg")
private String ipsecEncAlg;
@com.aliyun.core.annotation.NameInMap("IpsecLifetime")
private Long ipsecLifetime;
@com.aliyun.core.annotation.NameInMap("IpsecPfs")
private String ipsecPfs;
private TunnelIpsecConfig(Builder builder) {
this.ipsecAuthAlg = builder.ipsecAuthAlg;
this.ipsecEncAlg = builder.ipsecEncAlg;
this.ipsecLifetime = builder.ipsecLifetime;
this.ipsecPfs = builder.ipsecPfs;
}
public static Builder builder() {
return new Builder();
}
public static TunnelIpsecConfig create() {
return builder().build();
}
/**
* @return ipsecAuthAlg
*/
public String getIpsecAuthAlg() {
return this.ipsecAuthAlg;
}
/**
* @return ipsecEncAlg
*/
public String getIpsecEncAlg() {
return this.ipsecEncAlg;
}
/**
* @return ipsecLifetime
*/
public Long getIpsecLifetime() {
return this.ipsecLifetime;
}
/**
* @return ipsecPfs
*/
public String getIpsecPfs() {
return this.ipsecPfs;
}
public static final class Builder {
private String ipsecAuthAlg;
private String ipsecEncAlg;
private Long ipsecLifetime;
private String ipsecPfs;
private Builder() {
}
private Builder(TunnelIpsecConfig model) {
this.ipsecAuthAlg = model.ipsecAuthAlg;
this.ipsecEncAlg = model.ipsecEncAlg;
this.ipsecLifetime = model.ipsecLifetime;
this.ipsecPfs = model.ipsecPfs;
}
/**
* <p>The authentication algorithm that is used in Phase 2 negotiations.</p>
* <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>sha1</strong>.</p>
*
* <strong>example:</strong>
* <p>sha1</p>
*/
public Builder ipsecAuthAlg(String ipsecAuthAlg) {
this.ipsecAuthAlg = ipsecAuthAlg;
return this;
}
/**
* <p>The encryption algorithm that is used in Phase 2 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ipsecEncAlg(String ipsecEncAlg) {
this.ipsecEncAlg = ipsecEncAlg;
return this;
}
/**
* <p>The SA lifetime as a result of Phase 2 negotiations. Unit: seconds.</p>
* <p>Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ipsecLifetime(Long ipsecLifetime) {
this.ipsecLifetime = ipsecLifetime;
return this;
}
/**
* <p>The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiations. Default value: <strong>group2</strong>.</p>
* <p>Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ipsecPfs(String ipsecPfs) {
this.ipsecPfs = ipsecPfs;
return this;
}
public TunnelIpsecConfig build() {
return new TunnelIpsecConfig(this);
}
}
}
/**
*
* {@link CreateVpnAttachmentRequest} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentRequest</p>
*/
public static class TunnelOptionsSpecification extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@com.aliyun.core.annotation.NameInMap("EnableDpd")
private Boolean enableDpd;
@com.aliyun.core.annotation.NameInMap("EnableNatTraversal")
private Boolean enableNatTraversal;
@com.aliyun.core.annotation.NameInMap("TunnelBgpConfig")
private TunnelBgpConfig tunnelBgpConfig;
@com.aliyun.core.annotation.NameInMap("TunnelIkeConfig")
private TunnelIkeConfig tunnelIkeConfig;
@com.aliyun.core.annotation.NameInMap("TunnelIndex")
private Integer tunnelIndex;
@com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig")
private TunnelIpsecConfig tunnelIpsecConfig;
private TunnelOptionsSpecification(Builder builder) {
this.customerGatewayId = builder.customerGatewayId;
this.enableDpd = builder.enableDpd;
this.enableNatTraversal = builder.enableNatTraversal;
this.tunnelBgpConfig = builder.tunnelBgpConfig;
this.tunnelIkeConfig = builder.tunnelIkeConfig;
this.tunnelIndex = builder.tunnelIndex;
this.tunnelIpsecConfig = builder.tunnelIpsecConfig;
}
public static Builder builder() {
return new Builder();
}
public static TunnelOptionsSpecification create() {
return builder().build();
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return enableDpd
*/
public Boolean getEnableDpd() {
return this.enableDpd;
}
/**
* @return enableNatTraversal
*/
public Boolean getEnableNatTraversal() {
return this.enableNatTraversal;
}
/**
* @return tunnelBgpConfig
*/
public TunnelBgpConfig getTunnelBgpConfig() {
return this.tunnelBgpConfig;
}
/**
* @return tunnelIkeConfig
*/
public TunnelIkeConfig getTunnelIkeConfig() {
return this.tunnelIkeConfig;
}
/**
* @return tunnelIndex
*/
public Integer getTunnelIndex() {
return this.tunnelIndex;
}
/**
* @return tunnelIpsecConfig
*/
public TunnelIpsecConfig getTunnelIpsecConfig() {
return this.tunnelIpsecConfig;
}
public static final class Builder {
private String customerGatewayId;
private Boolean enableDpd;
private Boolean enableNatTraversal;
private TunnelBgpConfig tunnelBgpConfig;
private TunnelIkeConfig tunnelIkeConfig;
private Integer tunnelIndex;
private TunnelIpsecConfig tunnelIpsecConfig;
private Builder() {
}
private Builder(TunnelOptionsSpecification model) {
this.customerGatewayId = model.customerGatewayId;
this.enableDpd = model.enableDpd;
this.enableNatTraversal = model.enableNatTraversal;
this.tunnelBgpConfig = model.tunnelBgpConfig;
this.tunnelIkeConfig = model.tunnelIkeConfig;
this.tunnelIndex = model.tunnelIndex;
this.tunnelIpsecConfig = model.tunnelIpsecConfig;
}
/**
* <p>The ID of the customer gateway that is associated with the tunnel.</p>
* <blockquote>
* <p> This parameter is required when you create a dual-tunnel IPsec-VPN connection.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cgw-p0w2jemrcj5u61un8****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* <p>Specifies whether to enable the DPD feature for the tunnel. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default): enables DPD. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within the specified period of time, the connection fails. In this case, ISAKMP SA and IPsec SA are deleted along with the security tunnel.</li>
* <li><strong>false</strong>: disables DPD. The initiator of the IPsec-VPN connection does not send DPD packets.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableDpd(Boolean enableDpd) {
this.enableDpd = enableDpd;
return this;
}
/**
* <p>Specifies whether to enable NAT traversal for the tunnel. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default): enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li>
* <li><strong>false</strong>: disables NAT traversal.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableNatTraversal(Boolean enableNatTraversal) {
this.enableNatTraversal = enableNatTraversal;
return this;
}
/**
* <p>The BGP configurations of the tunnel.</p>
* <blockquote>
* <p> If you enable BGP for an IPsec-VPN connection, you must set <strong>EnableTunnelsBgp</strong> parameter to <strong>true</strong>.</p>
* </blockquote>
*/
public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) {
this.tunnelBgpConfig = tunnelBgpConfig;
return this;
}
/**
* <p>The configurations of Phase 1 negotiations.</p>
*/
public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) {
this.tunnelIkeConfig = tunnelIkeConfig;
return this;
}
/**
* <p>The order in which the tunnel was created.</p>
* <ul>
* <li><strong>1</strong>: Tunnel 1.</li>
* <li><strong>2</strong>: Tunnel 2.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder tunnelIndex(Integer tunnelIndex) {
this.tunnelIndex = tunnelIndex;
return this;
}
/**
* <p>The configurations of Phase 2 negotiations.</p>
*/
public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) {
this.tunnelIpsecConfig = tunnelIpsecConfig;
return this;
}
public TunnelOptionsSpecification build() {
return new TunnelOptionsSpecification(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnAttachmentResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnAttachmentResponse} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentResponse</p>
*/
public class CreateVpnAttachmentResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpnAttachmentResponseBody body;
private CreateVpnAttachmentResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpnAttachmentResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpnAttachmentResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpnAttachmentResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpnAttachmentResponseBody body);
@Override
CreateVpnAttachmentResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpnAttachmentResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpnAttachmentResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpnAttachmentResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpnAttachmentResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpnAttachmentResponse build() {
return new CreateVpnAttachmentResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnAttachmentResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnAttachmentResponseBody} extends {@link TeaModel}
*
* <p>CreateVpnAttachmentResponseBody</p>
*/
public class CreateVpnAttachmentResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
private String vpnConnectionId;
private CreateVpnAttachmentResponseBody(Builder builder) {
this.code = builder.code;
this.createTime = builder.createTime;
this.message = builder.message;
this.name = builder.name;
this.requestId = builder.requestId;
this.success = builder.success;
this.vpnConnectionId = builder.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnAttachmentResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
public static final class Builder {
private String code;
private Long createTime;
private String message;
private String name;
private String requestId;
private Boolean success;
private String vpnConnectionId;
private Builder() {
}
private Builder(CreateVpnAttachmentResponseBody model) {
this.code = model.code;
this.createTime = model.createTime;
this.message = model.message;
this.name = model.name;
this.requestId = model.requestId;
this.success = model.success;
this.vpnConnectionId = model.vpnConnectionId;
}
/**
* <p>The status code returned by the current operation. <strong>200</strong> indicates that the operation is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The timestamp generated when the IPsec-VPN connection was established. Unit: milliseconds.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1658201810000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The information returned by the current operation.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The name of the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>nametest</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>88187252-0E26-3C4D-9D1D-32A04454EBBA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the current operation is successful.</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
/**
* <p>The ID of the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>vco-p0wb09rama8qwwgfn****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.vpnConnectionId = vpnConnectionId;
return this;
}
public CreateVpnAttachmentResponseBody build() {
return new CreateVpnAttachmentResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnConnectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnConnectionRequest} extends {@link RequestModel}
*
* <p>CreateVpnConnectionRequest</p>
*/
public class CreateVpnConnectionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoConfigRoute")
private Boolean autoConfigRoute;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BgpConfig")
private String bgpConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EffectImmediately")
private Boolean effectImmediately;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableDpd")
private Boolean enableDpd;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableNatTraversal")
private Boolean enableNatTraversal;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp")
private Boolean enableTunnelsBgp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HealthCheckConfig")
private String healthCheckConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IkeConfig")
private String ikeConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpsecConfig")
private String ipsecConfig;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("LocalSubnet")
@com.aliyun.core.annotation.Validation(required = true)
private String localSubnet;
@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("RemoteCaCertificate")
private String remoteCaCertificate;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RemoteSubnet")
@com.aliyun.core.annotation.Validation(required = true)
private String remoteSubnet;
@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("Tags")
private java.util.List<Tags> tags;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification")
private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
private CreateVpnConnectionRequest(Builder builder) {
super(builder);
this.autoConfigRoute = builder.autoConfigRoute;
this.bgpConfig = builder.bgpConfig;
this.clientToken = builder.clientToken;
this.customerGatewayId = builder.customerGatewayId;
this.dryRun = builder.dryRun;
this.effectImmediately = builder.effectImmediately;
this.enableDpd = builder.enableDpd;
this.enableNatTraversal = builder.enableNatTraversal;
this.enableTunnelsBgp = builder.enableTunnelsBgp;
this.healthCheckConfig = builder.healthCheckConfig;
this.ikeConfig = builder.ikeConfig;
this.ipsecConfig = builder.ipsecConfig;
this.localSubnet = builder.localSubnet;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.remoteCaCertificate = builder.remoteCaCertificate;
this.remoteSubnet = builder.remoteSubnet;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnConnectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoConfigRoute
*/
public Boolean getAutoConfigRoute() {
return this.autoConfigRoute;
}
/**
* @return bgpConfig
*/
public String getBgpConfig() {
return this.bgpConfig;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return effectImmediately
*/
public Boolean getEffectImmediately() {
return this.effectImmediately;
}
/**
* @return enableDpd
*/
public Boolean getEnableDpd() {
return this.enableDpd;
}
/**
* @return enableNatTraversal
*/
public Boolean getEnableNatTraversal() {
return this.enableNatTraversal;
}
/**
* @return enableTunnelsBgp
*/
public Boolean getEnableTunnelsBgp() {
return this.enableTunnelsBgp;
}
/**
* @return healthCheckConfig
*/
public String getHealthCheckConfig() {
return this.healthCheckConfig;
}
/**
* @return ikeConfig
*/
public String getIkeConfig() {
return this.ikeConfig;
}
/**
* @return ipsecConfig
*/
public String getIpsecConfig() {
return this.ipsecConfig;
}
/**
* @return localSubnet
*/
public String getLocalSubnet() {
return this.localSubnet;
}
/**
* @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 remoteCaCertificate
*/
public String getRemoteCaCertificate() {
return this.remoteCaCertificate;
}
/**
* @return remoteSubnet
*/
public String getRemoteSubnet() {
return this.remoteSubnet;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
/**
* @return tunnelOptionsSpecification
*/
public java.util.List<TunnelOptionsSpecification> getTunnelOptionsSpecification() {
return this.tunnelOptionsSpecification;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<CreateVpnConnectionRequest, Builder> {
private Boolean autoConfigRoute;
private String bgpConfig;
private String clientToken;
private String customerGatewayId;
private Boolean dryRun;
private Boolean effectImmediately;
private Boolean enableDpd;
private Boolean enableNatTraversal;
private Boolean enableTunnelsBgp;
private String healthCheckConfig;
private String ikeConfig;
private String ipsecConfig;
private String localSubnet;
private String name;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String remoteCaCertificate;
private String remoteSubnet;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(CreateVpnConnectionRequest request) {
super(request);
this.autoConfigRoute = request.autoConfigRoute;
this.bgpConfig = request.bgpConfig;
this.clientToken = request.clientToken;
this.customerGatewayId = request.customerGatewayId;
this.dryRun = request.dryRun;
this.effectImmediately = request.effectImmediately;
this.enableDpd = request.enableDpd;
this.enableNatTraversal = request.enableNatTraversal;
this.enableTunnelsBgp = request.enableTunnelsBgp;
this.healthCheckConfig = request.healthCheckConfig;
this.ikeConfig = request.ikeConfig;
this.ipsecConfig = request.ipsecConfig;
this.localSubnet = request.localSubnet;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.remoteCaCertificate = request.remoteCaCertificate;
this.remoteSubnet = request.remoteSubnet;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tags = request.tags;
this.tunnelOptionsSpecification = request.tunnelOptionsSpecification;
this.vpnGatewayId = request.vpnGatewayId;
}
/**
* <p>Specifies whether to automatically configure routes. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default)</li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder autoConfigRoute(Boolean autoConfigRoute) {
this.putQueryParameter("AutoConfigRoute", autoConfigRoute);
this.autoConfigRoute = autoConfigRoute;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>BGP configuration:</p>
* <ul>
* <li><p><strong>BgpConfig.EnableBgp</strong>: specifies whether to enable BGP. Valid values: <strong>true</strong> and <strong>false</strong> (default).</p>
* </li>
* <li><p><strong>BgpConfig.LocalAsn:</strong> the autonomous system number (ASN) on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>. Default value: <strong>45104</strong>.</p>
* <p>You can enter a value in two segments separated by a period (.). Each segment is 16 bits in length. Enter the number in each segment in decimal format.</p>
* <p>For example, if you enter 123.456, the ASN is 8061384. The ASN is calculated by using the following formula: 123 × 65536 + 456 = 8061384.</p>
* </li>
* <li><p><strong>BgpConfig.TunnelCidr</strong>: The CIDR block of the IPsec tunnel. The CIDR block must fall within 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p>
* <blockquote>
* <p>The CIDR block of the IPsec tunnel for each IPsec-VPN connection on a VPN gateway must be unique.</p>
* </blockquote>
* </li>
* <li><p><strong>LocalBgpIp</strong>: the BGP address on the Alibaba Cloud side. It must be an IP address that falls within the CIDR block of the IPsec tunnel.</p>
* </li>
* </ul>
* <blockquote>
* <ul>
* <li>Before you add BGP configurations, we recommend that you learn about how BGP works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/2638220.html">Configure BGP dynamic routing</a>.</li>
* <li>We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. Refer to the relevant documentation for the private ASN range.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>{"EnableBgp":"true","LocalAsn":"45104","TunnelCidr":"169.254.11.0/30","LocalBgpIp":"169.254.11.1"}</p>
*/
public Builder bgpConfig(String bgpConfig) {
this.putQueryParameter("BgpConfig", bgpConfig);
this.bgpConfig = bgpConfig;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-001****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>When you create an IPsec-VPN connection in single-tunnel mode, this parameter is required.</p>
* <p>The ID of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>cgw-p0w2jemrcj5u61un8****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.putQueryParameter("CustomerGatewayId", customerGatewayId);
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Specifies whether to immediately start IPsec negotiations. Valid values:</p>
* <ul>
* <li><strong>true</strong>: immediately starts IPsec negotiations.</li>
* <li><strong>false</strong> (default): starts IPsec negotiations when inbound traffic is detected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder effectImmediately(Boolean effectImmediately) {
this.putQueryParameter("EffectImmediately", effectImmediately);
this.effectImmediately = effectImmediately;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>Specifies whether to enable the dead peer detection (DPD) feature. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default) The initiator of the IPsec-VPN connection sends DPD packets to verify the existence and availability of the peer. If no feedback is received from the peer within a specified period of time, the connection fails. ISAKMP SAs and IPsec SAs are deleted. The IPsec tunnel is also deleted.</li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableDpd(Boolean enableDpd) {
this.putQueryParameter("EnableDpd", enableDpd);
this.enableDpd = enableDpd;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>Specifies whether to enable NAT traversal. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default) After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the VPN tunnel.</li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableNatTraversal(Boolean enableNatTraversal) {
this.putQueryParameter("EnableNatTraversal", enableNatTraversal);
this.enableNatTraversal = enableNatTraversal;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in dual-tunnel mode.</p>
* <p>Specifies whether to enable the BGP feature for the tunnel. Valid values: <strong>true</strong> and <strong>false</strong>. Default value: false.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) {
this.putQueryParameter("EnableTunnelsBgp", enableTunnelsBgp);
this.enableTunnelsBgp = enableTunnelsBgp;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The health check configuration:</p>
* <ul>
* <li><strong>HealthCheckConfig.enable</strong>: specifies whether to enable health checks. Valid values: <strong>true</strong> and <strong>false</strong>. Default value: false.</li>
* <li><strong>HealthCheckConfig.dip</strong>: the destination IP address configured for health checks.</li>
* <li><strong>HealthCheckConfig.sip:</strong> the source IP address that is used for health checks.</li>
* <li><strong>HealthCheckConfig.interval</strong>: the time interval of health check retries. Unit: seconds. Default value: <strong>3</strong>.</li>
* <li><strong>HealthCheckConfig.retry</strong>: the maximum number of health check retries. Default value: <strong>3</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"enable":"true","dip":"192.168.10.1","sip":"10.10.1.1","interval":"3","retry":"3"}</p>
*/
public Builder healthCheckConfig(String healthCheckConfig) {
this.putQueryParameter("HealthCheckConfig", healthCheckConfig);
this.healthCheckConfig = healthCheckConfig;
return this;
}
/**
* <p>This parameter is supported if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The configurations of Phase 1 negotiations:</p>
* <ul>
* <li><p><strong>IkeConfig.Psk</strong>: the pre-shared key that is used for identity authentication between the VPN gateway and the on-premises data center.</p>
* <ul>
* <li><p>The key cannot contain spaces. The key must be 1 to 100 characters in length, and can contain digits, letters, and the following special characters: <code>~!\`@#$%^&*()_-+={}[]|;:\",.<>/?</code></p>
* </li>
* <li><p>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526951.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</p>
* <blockquote>
* <p>The pre-shared key of the IPsec-VPN connection must be the same as the authentication key of the on-premises data center. Otherwise, connections between the on-premises data center and the VPN gateway cannot be established.</p>
* </blockquote>
* </li>
* </ul>
* </li>
* <li><p><strong>IkeConfig.IkeVersion</strong>: the version of the Internet Key Exchange (IKE) protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>. Default value: <strong>ikev1</strong>.</p>
* <p>Compared with IKEv1, IKEv2 simplifies the security association (SA) negotiation process and provides better support for scenarios with multiple CIDR blocks.</p>
* </li>
* <li><p><strong>IkeConfig.IkeMode</strong>: the negotiation mode of IKE. Valid values: <strong>main</strong> and <strong>aggressive</strong>. Default value: <strong>main</strong>.</p>
* <ul>
* <li><strong>main:</strong> This mode offers higher security during negotiations.</li>
* <li><strong>aggressive:</strong> This mode is faster and has a higher success rate.</li>
* </ul>
* </li>
* <li><p><strong>IkeConfig.IkeEncAlg</strong>: the encryption algorithm that is used in Phase 1 negotiations.</p>
* <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkeAuthAlg</strong>: the authentication algorithm that is used in Phase 1 negotiations.</p>
* <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>md5</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkePfs</strong>: the Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>. Default value: <strong>group2</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.IkeLifetime</strong>: the SA lifetime as a result of Phase 1 negotiations. Unit: seconds Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
* </li>
* <li><p><strong>IkeConfig.LocalId</strong>: the identifier of the VPN gateway. It can be up to 100 characters in length and cannot contain space characters. The default value is the IP address of the VPN gateway.</p>
* </li>
* <li><p><strong>IkeConfig.RemoteId</strong>: the identifier of the customer gateway. It can be up to 100 characters in length and cannot contain space characters. The default value is the IP address of the customer gateway.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"Psk":"1234****","IkeVersion":"ikev1","IkeMode":"main","IkeEncAlg":"aes","IkeAuthAlg":"sha1","IkePfs":"group2","IkeLifetime":86400,"LocalId":"47.XX.XX.1","RemoteId":"47.XX.XX.2"}</p>
*/
public Builder ikeConfig(String ikeConfig) {
this.putQueryParameter("IkeConfig", ikeConfig);
this.ikeConfig = ikeConfig;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The configurations of Phase 2 negotiations:</p>
* <ul>
* <li><p><strong>IpsecConfig.IpsecEncAlg</strong>: the encryption algorithm that is used in Phase 2 negotiations.</p>
* <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
* </li>
* <li><p><strong>IpsecConfig. IpsecAuthAlg</strong>: the authentication algorithm that is used in Phase 2 negotiations.</p>
* <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>md5</strong>.</p>
* </li>
* <li><p><strong>IpsecConfig. IpsecPfs</strong>: the DH key exchange algorithm that is used in Phase 2 negotiations. Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>. Default value: <strong>group2</strong>.</p>
* </li>
* <li><p><strong>IpsecConfig. IpsecLifetime</strong>: the SA lifetime that is determined by Phase 2 negotiations. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"IpsecEncAlg":"aes","IpsecAuthAlg":"sha1","IpsecPfs":"group2","IpsecLifetime":86400}</p>
*/
public Builder ipsecConfig(String ipsecConfig) {
this.putQueryParameter("IpsecConfig", ipsecConfig);
this.ipsecConfig = ipsecConfig;
return this;
}
/**
* <p>The CIDR block of the virtual private cloud (VPC) that needs to communicate with the on-premises database. The CIDR block is used in Phase 2 negotiations.</p>
* <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.</p>
* <p>The following routing modes are supported:</p>
* <ul>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.10.1.0/24,10.10.2.0/24</p>
*/
public Builder localSubnet(String localSubnet) {
this.putQueryParameter("LocalSubnet", localSubnet);
this.localSubnet = localSubnet;
return this;
}
/**
* <p>The name of the IPsec-VPN connection.</p>
* <p>The name must be 1 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>IPsec</p>
*/
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;
}
/**
* <p>The ID of the region where the IPsec-VPN connection is created. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>This parameter is available if you create an IPsec-VPN connection in single-tunnel mode.</p>
* <p>The certificate authority (CA) certificate. If the VPN gateway is of the ShangMi (SM) type, you need to configure a CA certificate for the peer gateway device.</p>
* <ul>
* <li>If an SM VPN gateway is used to create the IPsec-VPN connection, this parameter is required.</li>
* <li>If a standard VPN gateway is used to create the IPsec-VPN connection, leave this parameter empty.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p>
*/
public Builder remoteCaCertificate(String remoteCaCertificate) {
this.putQueryParameter("RemoteCaCertificate", remoteCaCertificate);
this.remoteCaCertificate = remoteCaCertificate;
return this;
}
/**
* <p>The CIDR block of the on-premises database that needs to communicate with the VPC. The CIDR block is used in Phase 2 negotiations.</p>
* <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.3.0/24,192.168.4.0/24.</p>
* <p>The following routing modes are supported:</p>
* <ul>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li>
* <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.10.3.0/24,10.10.4.0/24</p>
*/
public Builder remoteSubnet(String remoteSubnet) {
this.putQueryParameter("RemoteSubnet", remoteSubnet);
this.remoteSubnet = remoteSubnet;
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;
}
/**
* <p>The tag value.</p>
* <p>The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
* <p>Each tag key corresponds to one tag value. You can specify up to 20 tag values in each call.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The tunnel configurations.</p>
* <ul>
* <li>You can specify parameters in the <strong>TunnelOptionsSpecification</strong> array when you create an IPsec-VPN connection in dual tunnel mode.</li>
* <li>When you create an IPsec-VPN connection in dual tunnel mode, you must add configurations of the active and standby tunnels for the IPsec-VPN connection. Each IPsec-VPN connection supports only one active tunnel and one standby tunnel.</li>
* </ul>
*/
public Builder tunnelOptionsSpecification(java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification) {
this.putBodyParameter("TunnelOptionsSpecification", tunnelOptionsSpecification);
this.tunnelOptionsSpecification = tunnelOptionsSpecification;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1q8bgx4xnkm****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public CreateVpnConnectionRequest build() {
return new CreateVpnConnectionRequest(this);
}
}
/**
*
* {@link CreateVpnConnectionRequest} extends {@link TeaModel}
*
* <p>CreateVpnConnectionRequest</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tags(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tags 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;
private Builder() {
}
private Builder(Tags model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key. The tag key cannot be an empty string.</p>
* <p>It can be at most 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
* <p>You can specify at most 20 tag keys in each call.</p>
*
* <strong>example:</strong>
* <p>TagKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
* <p>The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
* <p>Each tag key corresponds to one tag value. You can specify at most 20 tag values in each call.</p>
*
* <strong>example:</strong>
* <p>TagValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link CreateVpnConnectionRequest} extends {@link TeaModel}
*
* <p>CreateVpnConnectionRequest</p>
*/
public static class TunnelBgpConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalAsn")
private Long localAsn;
@com.aliyun.core.annotation.NameInMap("LocalBgpIp")
private String localBgpIp;
@com.aliyun.core.annotation.NameInMap("TunnelCidr")
private String tunnelCidr;
private TunnelBgpConfig(Builder builder) {
this.localAsn = builder.localAsn;
this.localBgpIp = builder.localBgpIp;
this.tunnelCidr = builder.tunnelCidr;
}
public static Builder builder() {
return new Builder();
}
public static TunnelBgpConfig create() {
return builder().build();
}
/**
* @return localAsn
*/
public Long getLocalAsn() {
return this.localAsn;
}
/**
* @return localBgpIp
*/
public String getLocalBgpIp() {
return this.localBgpIp;
}
/**
* @return tunnelCidr
*/
public String getTunnelCidr() {
return this.tunnelCidr;
}
public static final class Builder {
private Long localAsn;
private String localBgpIp;
private String tunnelCidr;
private Builder() {
}
private Builder(TunnelBgpConfig model) {
this.localAsn = model.localAsn;
this.localBgpIp = model.localBgpIp;
this.tunnelCidr = model.tunnelCidr;
}
/**
* <p>The autonomous system number (ASN) of the tunnel on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>. Default value: <strong>45104</strong>.</p>
* <blockquote>
* <ul>
* <li>If you set <strong>EnableTunnelsBgp</strong> to <strong>true</strong>, you must set this parameter.</li>
* <li>Before you add BGP configurations, we recommend that you learn about how BGP dynamic routing works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/2638220.html">Configure BGP dynamic routing</a>.</li>
* <li>We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. For information about the range of private ASNs, see the relevant documentation.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>65530</p>
*/
public Builder localAsn(Long localAsn) {
this.localAsn = localAsn;
return this;
}
/**
* <p>The BGP IP address of the tunnel on the Alibaba Cloud side. The address is an IP address that falls within the BGP CIDR block.</p>
*
* <strong>example:</strong>
* <p>169.254.10.1</p>
*/
public Builder localBgpIp(String localBgpIp) {
this.localBgpIp = localBgpIp;
return this;
}
/**
* <p>The BGP CIDR block of the tunnel. The CIDR block must fall within 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p>
* <blockquote>
* <p> The BGP CIDR block of each tunnel must be unique on a VPN gateway.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>169.254.10.0/30</p>
*/
public Builder tunnelCidr(String tunnelCidr) {
this.tunnelCidr = tunnelCidr;
return this;
}
public TunnelBgpConfig build() {
return new TunnelBgpConfig(this);
}
}
}
/**
*
* {@link CreateVpnConnectionRequest} extends {@link TeaModel}
*
* <p>CreateVpnConnectionRequest</p>
*/
public static class TunnelIkeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IkeAuthAlg")
private String ikeAuthAlg;
@com.aliyun.core.annotation.NameInMap("IkeEncAlg")
private String ikeEncAlg;
@com.aliyun.core.annotation.NameInMap("IkeLifetime")
private Long ikeLifetime;
@com.aliyun.core.annotation.NameInMap("IkeMode")
private String ikeMode;
@com.aliyun.core.annotation.NameInMap("IkePfs")
private String ikePfs;
@com.aliyun.core.annotation.NameInMap("IkeVersion")
private String ikeVersion;
@com.aliyun.core.annotation.NameInMap("LocalId")
private String localId;
@com.aliyun.core.annotation.NameInMap("Psk")
private String psk;
@com.aliyun.core.annotation.NameInMap("RemoteId")
private String remoteId;
private TunnelIkeConfig(Builder builder) {
this.ikeAuthAlg = builder.ikeAuthAlg;
this.ikeEncAlg = builder.ikeEncAlg;
this.ikeLifetime = builder.ikeLifetime;
this.ikeMode = builder.ikeMode;
this.ikePfs = builder.ikePfs;
this.ikeVersion = builder.ikeVersion;
this.localId = builder.localId;
this.psk = builder.psk;
this.remoteId = builder.remoteId;
}
public static Builder builder() {
return new Builder();
}
public static TunnelIkeConfig create() {
return builder().build();
}
/**
* @return ikeAuthAlg
*/
public String getIkeAuthAlg() {
return this.ikeAuthAlg;
}
/**
* @return ikeEncAlg
*/
public String getIkeEncAlg() {
return this.ikeEncAlg;
}
/**
* @return ikeLifetime
*/
public Long getIkeLifetime() {
return this.ikeLifetime;
}
/**
* @return ikeMode
*/
public String getIkeMode() {
return this.ikeMode;
}
/**
* @return ikePfs
*/
public String getIkePfs() {
return this.ikePfs;
}
/**
* @return ikeVersion
*/
public String getIkeVersion() {
return this.ikeVersion;
}
/**
* @return localId
*/
public String getLocalId() {
return this.localId;
}
/**
* @return psk
*/
public String getPsk() {
return this.psk;
}
/**
* @return remoteId
*/
public String getRemoteId() {
return this.remoteId;
}
public static final class Builder {
private String ikeAuthAlg;
private String ikeEncAlg;
private Long ikeLifetime;
private String ikeMode;
private String ikePfs;
private String ikeVersion;
private String localId;
private String psk;
private String remoteId;
private Builder() {
}
private Builder(TunnelIkeConfig model) {
this.ikeAuthAlg = model.ikeAuthAlg;
this.ikeEncAlg = model.ikeEncAlg;
this.ikeLifetime = model.ikeLifetime;
this.ikeMode = model.ikeMode;
this.ikePfs = model.ikePfs;
this.ikeVersion = model.ikeVersion;
this.localId = model.localId;
this.psk = model.psk;
this.remoteId = model.remoteId;
}
/**
* <p>The authentication algorithm that is used in Phase 1 negotiations.</p>
* <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>md5</strong>.</p>
*
* <strong>example:</strong>
* <p>md5</p>
*/
public Builder ikeAuthAlg(String ikeAuthAlg) {
this.ikeAuthAlg = ikeAuthAlg;
return this;
}
/**
* <p>The encryption algorithm that is used in Phase 1 negotiations.</p>
* <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ikeEncAlg(String ikeEncAlg) {
this.ikeEncAlg = ikeEncAlg;
return this;
}
/**
* <p>The SA lifetime as a result of Phase 1 negotiations. Unit: seconds</p>
* <p>Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ikeLifetime(Long ikeLifetime) {
this.ikeLifetime = ikeLifetime;
return this;
}
/**
* <p>The negotiation mode of IKE. Valid values: <strong>main</strong> and <strong>aggressive</strong>. Default value: <strong>main</strong>.</p>
* <ul>
* <li><strong>main:</strong> This mode offers higher security during negotiations.</li>
* <li><strong>aggressive:</strong> This mode is faster and has a higher success rate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>main</p>
*/
public Builder ikeMode(String ikeMode) {
this.ikeMode = ikeMode;
return this;
}
/**
* <p>The Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Default value: <strong>group2</strong>.<br>Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ikePfs(String ikePfs) {
this.ikePfs = ikePfs;
return this;
}
/**
* <p>The version of the IKE protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>. Default value: <strong>ikev1</strong>.</p>
* <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and provides better support for scenarios with multiple CIDR blocks.</p>
*
* <strong>example:</strong>
* <p>ikev1</p>
*/
public Builder ikeVersion(String ikeVersion) {
this.ikeVersion = ikeVersion;
return this;
}
/**
* <p>The identifier of the tunnel on the Alibaba Cloud side, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the tunnel.</p>
* <p><strong>LocalId</strong> supports fully qualified domain names (FQDNs). If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p>
*
* <strong>example:</strong>
* <p>47.21.XX.XX</p>
*/
public Builder localId(String localId) {
this.localId = localId;
return this;
}
/**
* <p>The pre-shared key that is used for identity authentication between the tunnel and the tunnel peer.</p>
* <ul>
* <li>The key cannot contain spaces. The key must be 1 to 100 characters in length, and can contain digits, letters, and the following special characters: <code>~!\`@#$%^&*()_-+={}[]|;:\",.<>/?</code></li>
* <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526951.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</li>
* </ul>
* <blockquote>
* <p> The tunnel and the tunnel peer must use the same pre-shared key. Otherwise, the tunnel cannot be established.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123456****</p>
*/
public Builder psk(String psk) {
this.psk = psk;
return this;
}
/**
* <p>The identifier of the tunnel peer, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the customer gateway that is associated with the tunnel.</p>
* <p><strong>RemoteId</strong> supports FQDNs. If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p>
*
* <strong>example:</strong>
* <p>47.42.XX.XX</p>
*/
public Builder remoteId(String remoteId) {
this.remoteId = remoteId;
return this;
}
public TunnelIkeConfig build() {
return new TunnelIkeConfig(this);
}
}
}
/**
*
* {@link CreateVpnConnectionRequest} extends {@link TeaModel}
*
* <p>CreateVpnConnectionRequest</p>
*/
public static class TunnelIpsecConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpsecAuthAlg")
private String ipsecAuthAlg;
@com.aliyun.core.annotation.NameInMap("IpsecEncAlg")
private String ipsecEncAlg;
@com.aliyun.core.annotation.NameInMap("IpsecLifetime")
private Long ipsecLifetime;
@com.aliyun.core.annotation.NameInMap("IpsecPfs")
private String ipsecPfs;
private TunnelIpsecConfig(Builder builder) {
this.ipsecAuthAlg = builder.ipsecAuthAlg;
this.ipsecEncAlg = builder.ipsecEncAlg;
this.ipsecLifetime = builder.ipsecLifetime;
this.ipsecPfs = builder.ipsecPfs;
}
public static Builder builder() {
return new Builder();
}
public static TunnelIpsecConfig create() {
return builder().build();
}
/**
* @return ipsecAuthAlg
*/
public String getIpsecAuthAlg() {
return this.ipsecAuthAlg;
}
/**
* @return ipsecEncAlg
*/
public String getIpsecEncAlg() {
return this.ipsecEncAlg;
}
/**
* @return ipsecLifetime
*/
public Long getIpsecLifetime() {
return this.ipsecLifetime;
}
/**
* @return ipsecPfs
*/
public String getIpsecPfs() {
return this.ipsecPfs;
}
public static final class Builder {
private String ipsecAuthAlg;
private String ipsecEncAlg;
private Long ipsecLifetime;
private String ipsecPfs;
private Builder() {
}
private Builder(TunnelIpsecConfig model) {
this.ipsecAuthAlg = model.ipsecAuthAlg;
this.ipsecEncAlg = model.ipsecEncAlg;
this.ipsecLifetime = model.ipsecLifetime;
this.ipsecPfs = model.ipsecPfs;
}
/**
* <p>The authentication algorithm that is used in Phase 2 negotiations.</p>
* <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>. Default value: <strong>md5</strong>.</p>
*
* <strong>example:</strong>
* <p>md5</p>
*/
public Builder ipsecAuthAlg(String ipsecAuthAlg) {
this.ipsecAuthAlg = ipsecAuthAlg;
return this;
}
/**
* <p>The encryption algorithm that is used in Phase 2 negotiations.</p>
* <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>. Default value: <strong>aes</strong>.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ipsecEncAlg(String ipsecEncAlg) {
this.ipsecEncAlg = ipsecEncAlg;
return this;
}
/**
* <p>The SA lifetime as a result of Phase 2 negotiations. Unit: seconds</p>
* <p>Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ipsecLifetime(Long ipsecLifetime) {
this.ipsecLifetime = ipsecLifetime;
return this;
}
/**
* <p>The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiations. Default value: <strong>group2</strong>.</p>
* <p>Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ipsecPfs(String ipsecPfs) {
this.ipsecPfs = ipsecPfs;
return this;
}
public TunnelIpsecConfig build() {
return new TunnelIpsecConfig(this);
}
}
}
/**
*
* {@link CreateVpnConnectionRequest} extends {@link TeaModel}
*
* <p>CreateVpnConnectionRequest</p>
*/
public static class TunnelOptionsSpecification extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@com.aliyun.core.annotation.NameInMap("EnableDpd")
private Boolean enableDpd;
@com.aliyun.core.annotation.NameInMap("EnableNatTraversal")
private Boolean enableNatTraversal;
@com.aliyun.core.annotation.NameInMap("RemoteCaCertificate")
private String remoteCaCertificate;
@com.aliyun.core.annotation.NameInMap("Role")
private String role;
@com.aliyun.core.annotation.NameInMap("TunnelBgpConfig")
private TunnelBgpConfig tunnelBgpConfig;
@com.aliyun.core.annotation.NameInMap("TunnelIkeConfig")
private TunnelIkeConfig tunnelIkeConfig;
@com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig")
private TunnelIpsecConfig tunnelIpsecConfig;
private TunnelOptionsSpecification(Builder builder) {
this.customerGatewayId = builder.customerGatewayId;
this.enableDpd = builder.enableDpd;
this.enableNatTraversal = builder.enableNatTraversal;
this.remoteCaCertificate = builder.remoteCaCertificate;
this.role = builder.role;
this.tunnelBgpConfig = builder.tunnelBgpConfig;
this.tunnelIkeConfig = builder.tunnelIkeConfig;
this.tunnelIpsecConfig = builder.tunnelIpsecConfig;
}
public static Builder builder() {
return new Builder();
}
public static TunnelOptionsSpecification create() {
return builder().build();
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return enableDpd
*/
public Boolean getEnableDpd() {
return this.enableDpd;
}
/**
* @return enableNatTraversal
*/
public Boolean getEnableNatTraversal() {
return this.enableNatTraversal;
}
/**
* @return remoteCaCertificate
*/
public String getRemoteCaCertificate() {
return this.remoteCaCertificate;
}
/**
* @return role
*/
public String getRole() {
return this.role;
}
/**
* @return tunnelBgpConfig
*/
public TunnelBgpConfig getTunnelBgpConfig() {
return this.tunnelBgpConfig;
}
/**
* @return tunnelIkeConfig
*/
public TunnelIkeConfig getTunnelIkeConfig() {
return this.tunnelIkeConfig;
}
/**
* @return tunnelIpsecConfig
*/
public TunnelIpsecConfig getTunnelIpsecConfig() {
return this.tunnelIpsecConfig;
}
public static final class Builder {
private String customerGatewayId;
private Boolean enableDpd;
private Boolean enableNatTraversal;
private String remoteCaCertificate;
private String role;
private TunnelBgpConfig tunnelBgpConfig;
private TunnelIkeConfig tunnelIkeConfig;
private TunnelIpsecConfig tunnelIpsecConfig;
private Builder() {
}
private Builder(TunnelOptionsSpecification model) {
this.customerGatewayId = model.customerGatewayId;
this.enableDpd = model.enableDpd;
this.enableNatTraversal = model.enableNatTraversal;
this.remoteCaCertificate = model.remoteCaCertificate;
this.role = model.role;
this.tunnelBgpConfig = model.tunnelBgpConfig;
this.tunnelIkeConfig = model.tunnelIkeConfig;
this.tunnelIpsecConfig = model.tunnelIpsecConfig;
}
/**
* <p>The ID of the customer gateway that is associated with the tunnel.</p>
* <blockquote>
* <ul>
* <li>This parameter is required when you create an IPsec-VPN connection in dual-tunnel mode.</li>
* <li>You can specify parameters in the <strong>TunnelOptionsSpecification</strong> array when you create an IPsec-VPN connection in dual tunnel mode.</li>
* <li>When you create an IPsec-VPN connection in dual tunnel mode, you must add configurations of the active and standby tunnels for the IPsec-VPN connection. Each IPsec-VPN connection supports only one active tunnel and one standby tunnel.</li>
* </ul>
* </blockquote>
*
* <strong>example:</strong>
* <p>cgw-p0wy363lucf1uyae8****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* <p>Specifies whether to enable the Dead Peer Detection (DPD) feature for the tunnel. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default): enables DPD. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within the specified period of time, the connection fails. In this case, ISAKMP SA and IPsec SA are deleted. The security tunnel is also deleted.</li>
* <li><strong>false</strong>: disables DPD. The initiator of the IPsec-VPN connection does not send DPD packets.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableDpd(Boolean enableDpd) {
this.enableDpd = enableDpd;
return this;
}
/**
* <p>Specifies whether to enable NAT traversal for the tunnel. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default): enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li>
* <li><strong>false</strong>: disables NAT traversal.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableNatTraversal(Boolean enableNatTraversal) {
this.enableNatTraversal = enableNatTraversal;
return this;
}
/**
* <p>If the VPN gateway uses an SM certificate, you need to configure the CA certificate used by the IPsec peer.</p>
* <ul>
* <li>If the VPN gateway uses an SM certificate, this parameter is required.</li>
* <li>If the VPN gateway does not use an SM certificate, leave this parameter empty.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p>
*/
public Builder remoteCaCertificate(String remoteCaCertificate) {
this.remoteCaCertificate = remoteCaCertificate;
return this;
}
/**
* <p>The role of the tunnel. Valid values:</p>
* <ul>
* <li><strong>master</strong>: The tunnel is an active tunnel.</li>
* <li><strong>slave</strong>: The tunnel is a standby tunnel.</li>
* </ul>
*
* <strong>example:</strong>
* <p>master</p>
*/
public Builder role(String role) {
this.role = role;
return this;
}
/**
* <p>The Border Gateway Protocol (BGP) configurations of the tunnel.</p>
*/
public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) {
this.tunnelBgpConfig = tunnelBgpConfig;
return this;
}
/**
* <p>The configurations of Phase 1 negotiations.</p>
*/
public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) {
this.tunnelIkeConfig = tunnelIkeConfig;
return this;
}
/**
* <p>The configurations of Phase 2 negotiations.</p>
*/
public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) {
this.tunnelIpsecConfig = tunnelIpsecConfig;
return this;
}
public TunnelOptionsSpecification build() {
return new TunnelOptionsSpecification(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnConnectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnConnectionResponse} extends {@link TeaModel}
*
* <p>CreateVpnConnectionResponse</p>
*/
public class CreateVpnConnectionResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpnConnectionResponseBody body;
private CreateVpnConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpnConnectionResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpnConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpnConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpnConnectionResponseBody body);
@Override
CreateVpnConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpnConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpnConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpnConnectionResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpnConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpnConnectionResponse build() {
return new CreateVpnConnectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnConnectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnConnectionResponseBody} extends {@link TeaModel}
*
* <p>CreateVpnConnectionResponseBody</p>
*/
public class CreateVpnConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
private String vpnConnectionId;
private CreateVpnConnectionResponseBody(Builder builder) {
this.createTime = builder.createTime;
this.name = builder.name;
this.requestId = builder.requestId;
this.vpnConnectionId = builder.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnConnectionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
public static final class Builder {
private Long createTime;
private String name;
private String requestId;
private String vpnConnectionId;
private Builder() {
}
private Builder(CreateVpnConnectionResponseBody model) {
this.createTime = model.createTime;
this.name = model.name;
this.requestId = model.requestId;
this.vpnConnectionId = model.vpnConnectionId;
}
/**
* <p>The timestamp generated when the IPsec-VPN connection was established. Unit: milliseconds.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1544666102000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The name of the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>082AD562-B8DB-4BB2-861F-DA1FCA01FD76</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>vco-bp15oes1py4i6****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.vpnConnectionId = vpnConnectionId;
return this;
}
public CreateVpnConnectionResponseBody build() {
return new CreateVpnConnectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnGatewayRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnGatewayRequest} extends {@link RequestModel}
*
* <p>CreateVpnGatewayRequest</p>
*/
public class CreateVpnGatewayRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AutoPay")
private Boolean autoPay;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Bandwidth")
@com.aliyun.core.annotation.Validation(required = true)
private Integer bandwidth;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DisasterRecoveryVSwitchId")
private String disasterRecoveryVSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableIpsec")
private Boolean enableIpsec;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableSsl")
private Boolean enableSsl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@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("Period")
private Integer period;
@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("ResourceGroupId")
private String resourceGroupId;
@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("SslConnections")
private Integer sslConnections;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnType")
private String vpnType;
private CreateVpnGatewayRequest(Builder builder) {
super(builder);
this.autoPay = builder.autoPay;
this.bandwidth = builder.bandwidth;
this.clientToken = builder.clientToken;
this.disasterRecoveryVSwitchId = builder.disasterRecoveryVSwitchId;
this.enableIpsec = builder.enableIpsec;
this.enableSsl = builder.enableSsl;
this.instanceChargeType = builder.instanceChargeType;
this.name = builder.name;
this.networkType = builder.networkType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.period = builder.period;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.sslConnections = builder.sslConnections;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
this.vpnType = builder.vpnType;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnGatewayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return autoPay
*/
public Boolean getAutoPay() {
return this.autoPay;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return disasterRecoveryVSwitchId
*/
public String getDisasterRecoveryVSwitchId() {
return this.disasterRecoveryVSwitchId;
}
/**
* @return enableIpsec
*/
public Boolean getEnableIpsec() {
return this.enableIpsec;
}
/**
* @return enableSsl
*/
public Boolean getEnableSsl() {
return this.enableSsl;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sslConnections
*/
public Integer getSslConnections() {
return this.sslConnections;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return vpnType
*/
public String getVpnType() {
return this.vpnType;
}
public static final class Builder extends Request.Builder<CreateVpnGatewayRequest, Builder> {
private Boolean autoPay;
private Integer bandwidth;
private String clientToken;
private String disasterRecoveryVSwitchId;
private Boolean enableIpsec;
private Boolean enableSsl;
private String instanceChargeType;
private String name;
private String networkType;
private String ownerAccount;
private Long ownerId;
private Integer period;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer sslConnections;
private String vSwitchId;
private String vpcId;
private String vpnType;
private Builder() {
super();
}
private Builder(CreateVpnGatewayRequest request) {
super(request);
this.autoPay = request.autoPay;
this.bandwidth = request.bandwidth;
this.clientToken = request.clientToken;
this.disasterRecoveryVSwitchId = request.disasterRecoveryVSwitchId;
this.enableIpsec = request.enableIpsec;
this.enableSsl = request.enableSsl;
this.instanceChargeType = request.instanceChargeType;
this.name = request.name;
this.networkType = request.networkType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.period = request.period;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.sslConnections = request.sslConnections;
this.vSwitchId = request.vSwitchId;
this.vpcId = request.vpcId;
this.vpnType = request.vpnType;
}
/**
* <p>Specifies whether to enable automatic payment. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <p>To create a VPN gateway, we recommend that you enable automatic payment. If you disable automatic payment, you must manually pay the bill to create the VPN gateway.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(Boolean autoPay) {
this.putQueryParameter("AutoPay", autoPay);
this.autoPay = autoPay;
return this;
}
/**
* <p>The maximum bandwidth of the VPN gateway. Unit: Mbit/s.</p>
* <ul>
* <li>If you want to create a public VPN gateway, valid values are <strong>10</strong>, <strong>100</strong>, <strong>200</strong>, <strong>500</strong>, and <strong>1000</strong>.</li>
* <li>If you want to create a private VPN gateway, valid values are <strong>200</strong> and <strong>1000</strong>.</li>
* </ul>
* <blockquote>
* <p> The maximum bandwidth supported by VPN gateways in some regions is 500 Mbit/s. For more information, see <a href="https://help.aliyun.com/document_detail/65290.html">VPN gateway limits</a>.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder bandwidth(Integer bandwidth) {
this.putQueryParameter("Bandwidth", bandwidth);
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate a value, and you must make sure that each request has a unique token value. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the value of <strong>RequestId</strong> as the value of <strong>ClientToken</strong>. The value of <strong>RequestId</strong> for each API request is different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The second vSwitch with which you want to associate the VPN gateway.</p>
* <ul>
* <li>If you call this operation in a region that supports the IPsec-VPN connections in dual-tunnel mode, this parameter is required.</li>
* <li>You need to specify two vSwitches in different zones in the virtual private cloud (VPC) that is associated with the VPN gateway to implement disaster recovery across zones.</li>
* <li>For a region that supports only one zone, disaster recovery across zones is not supported. We recommend that you specify two vSwitches in the zone to implement high availability. You can specify the same vSwitch.</li>
* </ul>
* <p>For more information about the regions and zones that support the IPsec-VPN connections in dual-tunnel mode, see <a href="https://help.aliyun.com/document_detail/2358946.html">IPsec-VPN connections support the dual-tunnel mode</a>.</p>
*
* <strong>example:</strong>
* <p>vsw-p0wiz7obm0tbimu4r****</p>
*/
public Builder disasterRecoveryVSwitchId(String disasterRecoveryVSwitchId) {
this.putQueryParameter("DisasterRecoveryVSwitchId", disasterRecoveryVSwitchId);
this.disasterRecoveryVSwitchId = disasterRecoveryVSwitchId;
return this;
}
/**
* <p>Specifies whether to enable IPsec-VPN for the VPN gateway. Valid values:</p>
* <ul>
* <li><strong>true</strong> (default)</li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enableIpsec(Boolean enableIpsec) {
this.putQueryParameter("EnableIpsec", enableIpsec);
this.enableIpsec = enableIpsec;
return this;
}
/**
* <p>Specifies whether to enable SSL-VPN. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder enableSsl(Boolean enableSsl) {
this.putQueryParameter("EnableSsl", enableSsl);
this.enableSsl = enableSsl;
return this;
}
/**
* <p>The billing method of the VPN gateway. Set the value to <strong>POSTPAY</strong>, which specifies the pay-as-you-go billing method.</p>
*
* <strong>example:</strong>
* <p>Example value for the Alibaba Cloud China site: PREPAY. Example value for the Alibaba Cloud International site: POSTPAY.</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.putQueryParameter("InstanceChargeType", instanceChargeType);
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The name of the VPN gateway. The default value is the ID of the VPN gateway.</p>
* <p>The name must be 2 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>. It must start with a letter and can contain letters, digits, underscores (_), hyphens (-), and periods (.). Other special characters are not supported.</p>
*
* <strong>example:</strong>
* <p>MYVPN</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* <p>The network type of the VPN gateway. Valid values:</p>
* <ul>
* <li><strong>public</strong> (default)</li>
* <li><strong>private</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>public</p>
*/
public Builder networkType(String networkType) {
this.putQueryParameter("NetworkType", networkType);
this.networkType = networkType;
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;
}
/**
* <p>The subscription duration. Unit: month. Valid values: <strong>1</strong> to <strong>9</strong>, <strong>12</strong>, <strong>24</strong>, and <strong>36</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder period(Integer period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* <p>The region ID of the VPN gateway. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the VPN gateway belongs.</p>
* <ul>
* <li><p>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource group IDs.</p>
* </li>
* <li><p>If you do not specify a resource group ID, the VPN gateway belongs to the default resource group.</p>
* </li>
* <li><p>After the VPN gateway is created, the following resources also belong to the resource group and you cannot change the resource group: SSL servers, SSL client certificates, IPsec servers, and IPsec-VPN connections.</p>
* <p>If you move the VPN gateway to a new resource group, the preceding resources are also moved to the new resource group.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>rg-acfmzs372yg****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
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;
}
/**
* <p>The maximum number of clients that can be connected at the same time. Valid values: <strong>5</strong> (default), <strong>10</strong>, <strong>20</strong>, <strong>50</strong>, <strong>100</strong>, <strong>200</strong>, <strong>500</strong>, and <strong>1000</strong>.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder sslConnections(Integer sslConnections) {
this.putQueryParameter("SslConnections", sslConnections);
this.sslConnections = sslConnections;
return this;
}
/**
* <p>The vSwitch with which you want to associate the VPN gateway.</p>
* <ul>
* <li>If you call this operation in a region that supports the IPsec-VPN connections in dual-tunnel mode, this parameter is required. You must specify a vSwitch and specify <strong>DisasterRecoveryVSwitchId</strong>.</li>
* <li>If you call this operation in a region that supports the IPsec-VPN connections in single-tunnel mode and do not specify a vSwitch, the system automatically specifies a vSwitch.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vsw-bp1j5miw2bae9s2vt****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) where you want to create the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1ub1yt9cvakoelj****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The type of the VPN gateway. Valid values:</p>
* <p>Set the value to <strong>Normal</strong> (default), which specifies a standard NAT gateway.</p>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder vpnType(String vpnType) {
this.putQueryParameter("VpnType", vpnType);
this.vpnType = vpnType;
return this;
}
@Override
public CreateVpnGatewayRequest build() {
return new CreateVpnGatewayRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnGatewayResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnGatewayResponse} extends {@link TeaModel}
*
* <p>CreateVpnGatewayResponse</p>
*/
public class CreateVpnGatewayResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private CreateVpnGatewayResponseBody body;
private CreateVpnGatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static CreateVpnGatewayResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public CreateVpnGatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<CreateVpnGatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(CreateVpnGatewayResponseBody body);
@Override
CreateVpnGatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<CreateVpnGatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private CreateVpnGatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(CreateVpnGatewayResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(CreateVpnGatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public CreateVpnGatewayResponse build() {
return new CreateVpnGatewayResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnGatewayResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnGatewayResponseBody} extends {@link TeaModel}
*
* <p>CreateVpnGatewayResponseBody</p>
*/
public class CreateVpnGatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("OrderId")
private Long orderId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
private String vpnGatewayId;
private CreateVpnGatewayResponseBody(Builder builder) {
this.name = builder.name;
this.orderId = builder.orderId;
this.requestId = builder.requestId;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnGatewayResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return orderId
*/
public Long getOrderId() {
return this.orderId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder {
private String name;
private Long orderId;
private String requestId;
private String vpnGatewayId;
private Builder() {
}
private Builder(CreateVpnGatewayResponseBody model) {
this.name = model.name;
this.orderId = model.orderId;
this.requestId = model.requestId;
this.vpnGatewayId = model.vpnGatewayId;
}
/**
* <p>The name of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>MYVPN</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The order ID.</p>
* <p>If automatic payment is disabled, you must manually complete the payment for the VPN gateway in the <a href="https://usercenter2-intl.aliyun.com/billing/#/account/overview">Alibaba Cloud Management console</a>.</p>
*
* <strong>example:</strong>
* <p>208240895400460</p>
*/
public Builder orderId(Long orderId) {
this.orderId = orderId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>EB2C156A-41F8-49CC-A756-D55AFC8BFD69</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>vpn-uf68lxhgr7ftbqr3p****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.vpnGatewayId = vpnGatewayId;
return this;
}
public CreateVpnGatewayResponseBody build() {
return new CreateVpnGatewayResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/CreateVpnPbrRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.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 CreateVpnPbrRouteEntryRequest} extends {@link RequestModel}
*
* <p>CreateVpnPbrRouteEntryRequest</p>
*/
public class CreateVpnPbrRouteEntryRequest extends Request {
@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("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHop")
@com.aliyun.core.annotation.Validation(required = true)
private String nextHop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OverlayMode")
private String overlayMode;
@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("Priority")
private Integer priority;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PublishVpc")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean publishVpc;
@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("RouteDest")
@com.aliyun.core.annotation.Validation(required = true)
private String routeDest;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteSource")
@com.aliyun.core.annotation.Validation(required = true)
private String routeSource;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Weight")
@com.aliyun.core.annotation.Validation(required = true)
private Integer weight;
private CreateVpnPbrRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.description = builder.description;
this.dryRun = builder.dryRun;
this.nextHop = builder.nextHop;
this.overlayMode = builder.overlayMode;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.priority = builder.priority;
this.publishVpc = builder.publishVpc;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeDest = builder.routeDest;
this.routeSource = builder.routeSource;
this.vpnGatewayId = builder.vpnGatewayId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static CreateVpnPbrRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return overlayMode
*/
public String getOverlayMode() {
return this.overlayMode;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return publishVpc
*/
public Boolean getPublishVpc() {
return this.publishVpc;
}
/**
* @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 routeDest
*/
public String getRouteDest() {
return this.routeDest;
}
/**
* @return routeSource
*/
public String getRouteSource() {
return this.routeSource;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder extends Request.Builder<CreateVpnPbrRouteEntryRequest, Builder> {
private String clientToken;
private String description;
private Boolean dryRun;
private String nextHop;
private String overlayMode;
private String ownerAccount;
private Long ownerId;
private Integer priority;
private Boolean publishVpc;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeDest;
private String routeSource;
private String vpnGatewayId;
private Integer weight;
private Builder() {
super();
}
private Builder(CreateVpnPbrRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.description = request.description;
this.dryRun = request.dryRun;
this.nextHop = request.nextHop;
this.overlayMode = request.overlayMode;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.priority = request.priority;
this.publishVpc = request.publishVpc;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeDest = request.routeDest;
this.routeSource = request.routeSource;
this.vpnGatewayId = request.vpnGatewayId;
this.weight = request.weight;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate a token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID is different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>d7d24a21-f4ba-4454-9173-b3****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The description of the policy-based route.</p>
* <p>The description must be 1 to 100 characters in length, and cannot start with http:// or https://.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* DryRun.
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The next hop of the policy-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-bp15oes1py4i66rmd****</p>
*/
public Builder nextHop(String nextHop) {
this.putQueryParameter("NextHop", nextHop);
this.nextHop = nextHop;
return this;
}
/**
* <p>The tunneling protocol. Set the value to <strong>Ipsec</strong>.</p>
*
* <strong>example:</strong>
* <p>Ipsec</p>
*/
public Builder overlayMode(String overlayMode) {
this.putQueryParameter("OverlayMode", overlayMode);
this.overlayMode = overlayMode;
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;
}
/**
* <p>The priority of the policy-based route. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p>
* <p>A smaller value indicates a higher priority.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder priority(Integer priority) {
this.putQueryParameter("Priority", priority);
this.priority = priority;
return this;
}
/**
* <p>Specifies whether to advertise the policy-based route to a virtual private cloud (VPC) route table. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder publishVpc(Boolean publishVpc) {
this.putQueryParameter("PublishVpc", publishVpc);
this.publishVpc = publishVpc;
return this;
}
/**
* <p>The region ID of the VPN gateway. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
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;
}
/**
* <p>The destination CIDR block of the policy-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder routeDest(String routeDest) {
this.putQueryParameter("RouteDest", routeDest);
this.routeDest = routeDest;
return this;
}
/**
* <p>The source CIDR block of the policy-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.1.0/24</p>
*/
public Builder routeSource(String routeSource) {
this.putQueryParameter("RouteSource", routeSource);
this.routeSource = routeSource;
return this;
}
/**
* <p>The VPN gateway ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1a3kqjiiq9legfx****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
/**
* <p>The weight of the policy-based route.</p>
* <p>If you use the same VPN gateway to establish active/standby IPsec-VPN connections, you can configure route weights to specify which connection is active. A value of 100 specifies the active connection, whereas a value of 0 specifies the standby connection.</p>
* <p>You can configure health checks to automatically check the connectivity of IPsec-VPN connections. If the active connection is down, the standby connection automatically takes over. For more information, see <a href="https://help.aliyun.com/document_detail/120391.html">CreateVpnConnection</a>.</p>
* <ul>
* <li><strong>100</strong>: The IPsec-VPN connection associated with the policy-based route serves as an active connection.</li>
* <li><strong>0</strong>: The IPsec-VPN connection associated with the policy-based route serves as a standby connection.</li>
* </ul>
* <blockquote>
* <p> If you specify active/standby IPsec-VPN connections, the active policy-based route and the standby policy-based route must have the same source and destination CIDR blocks.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder weight(Integer weight) {
this.putQueryParameter("Weight", weight);
this.weight = weight;
return this;
}
@Override
public CreateVpnPbrRouteEntryRequest build() {
return new CreateVpnPbrRouteEntryRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.