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/AttachVbrToVpconnResponseBody.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 AttachVbrToVpconnResponseBody} extends {@link TeaModel} * * <p>AttachVbrToVpconnResponseBody</p> */ public class AttachVbrToVpconnResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnection") private String virtualPhysicalConnection; private AttachVbrToVpconnResponseBody(Builder builder) { this.requestId = builder.requestId; this.virtualPhysicalConnection = builder.virtualPhysicalConnection; } public static Builder builder() { return new Builder(); } public static AttachVbrToVpconnResponseBody 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(AttachVbrToVpconnResponseBody 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 AttachVbrToVpconnResponseBody build() { return new AttachVbrToVpconnResponseBody(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/CancelCommonBandwidthPackageIpBandwidthRequest.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 CancelCommonBandwidthPackageIpBandwidthRequest} extends {@link RequestModel} * * <p>CancelCommonBandwidthPackageIpBandwidthRequest</p> */ public class CancelCommonBandwidthPackageIpBandwidthRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") @com.aliyun.core.annotation.Validation(required = true) private String bandwidthPackageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EipId") @com.aliyun.core.annotation.Validation(required = true) private String eipId; @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 CancelCommonBandwidthPackageIpBandwidthRequest(Builder builder) { super(builder); this.bandwidthPackageId = builder.bandwidthPackageId; this.eipId = builder.eipId; 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 CancelCommonBandwidthPackageIpBandwidthRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return eipId */ public String getEipId() { return this.eipId; } /** * @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<CancelCommonBandwidthPackageIpBandwidthRequest, Builder> { private String bandwidthPackageId; private String eipId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CancelCommonBandwidthPackageIpBandwidthRequest request) { super(request); this.bandwidthPackageId = request.bandwidthPackageId; this.eipId = request.eipId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the Internet Shared Bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cbwp-bp13d0m4e2qv8xxxxxxxx</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.putQueryParameter("BandwidthPackageId", bandwidthPackageId); this.bandwidthPackageId = bandwidthPackageId; return this; } /** * <p>The ID of the EIP that is associated with the Internet Shared Bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-2zewysoansu0sxxxxxxxx</p> */ public Builder eipId(String eipId) { this.putQueryParameter("EipId", eipId); this.eipId = eipId; 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 Internet Shared Bandwidth instance. 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 CancelCommonBandwidthPackageIpBandwidthRequest build() { return new CancelCommonBandwidthPackageIpBandwidthRequest(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/CancelCommonBandwidthPackageIpBandwidthResponse.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 CancelCommonBandwidthPackageIpBandwidthResponse} extends {@link TeaModel} * * <p>CancelCommonBandwidthPackageIpBandwidthResponse</p> */ public class CancelCommonBandwidthPackageIpBandwidthResponse 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 CancelCommonBandwidthPackageIpBandwidthResponseBody body; private CancelCommonBandwidthPackageIpBandwidthResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CancelCommonBandwidthPackageIpBandwidthResponse 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 CancelCommonBandwidthPackageIpBandwidthResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CancelCommonBandwidthPackageIpBandwidthResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CancelCommonBandwidthPackageIpBandwidthResponseBody body); @Override CancelCommonBandwidthPackageIpBandwidthResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CancelCommonBandwidthPackageIpBandwidthResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CancelCommonBandwidthPackageIpBandwidthResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CancelCommonBandwidthPackageIpBandwidthResponse 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(CancelCommonBandwidthPackageIpBandwidthResponseBody body) { this.body = body; return this; } @Override public CancelCommonBandwidthPackageIpBandwidthResponse build() { return new CancelCommonBandwidthPackageIpBandwidthResponse(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/CancelCommonBandwidthPackageIpBandwidthResponseBody.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 CancelCommonBandwidthPackageIpBandwidthResponseBody} extends {@link TeaModel} * * <p>CancelCommonBandwidthPackageIpBandwidthResponseBody</p> */ public class CancelCommonBandwidthPackageIpBandwidthResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CancelCommonBandwidthPackageIpBandwidthResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CancelCommonBandwidthPackageIpBandwidthResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(CancelCommonBandwidthPackageIpBandwidthResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>63D187BF-A30A-4DD6-B68D-FF182C96D8A2</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CancelCommonBandwidthPackageIpBandwidthResponseBody build() { return new CancelCommonBandwidthPackageIpBandwidthResponseBody(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/CancelPhysicalConnectionRequest.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 CancelPhysicalConnectionRequest} extends {@link RequestModel} * * <p>CancelPhysicalConnectionRequest</p> */ public class CancelPhysicalConnectionRequest 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("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("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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private CancelPhysicalConnectionRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.physicalConnectionId = builder.physicalConnectionId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CancelPhysicalConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @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<CancelPhysicalConnectionRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String physicalConnectionId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CancelPhysicalConnectionRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.physicalConnectionId = request.physicalConnectionId; 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 token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; 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 Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-119mfjzm7****</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; } /** * 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 CancelPhysicalConnectionRequest build() { return new CancelPhysicalConnectionRequest(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/CancelPhysicalConnectionResponse.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 CancelPhysicalConnectionResponse} extends {@link TeaModel} * * <p>CancelPhysicalConnectionResponse</p> */ public class CancelPhysicalConnectionResponse 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 CancelPhysicalConnectionResponseBody body; private CancelPhysicalConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CancelPhysicalConnectionResponse 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 CancelPhysicalConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CancelPhysicalConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CancelPhysicalConnectionResponseBody body); @Override CancelPhysicalConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CancelPhysicalConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CancelPhysicalConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CancelPhysicalConnectionResponse 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(CancelPhysicalConnectionResponseBody body) { this.body = body; return this; } @Override public CancelPhysicalConnectionResponse build() { return new CancelPhysicalConnectionResponse(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/CancelPhysicalConnectionResponseBody.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 CancelPhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>CancelPhysicalConnectionResponseBody</p> */ public class CancelPhysicalConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CancelPhysicalConnectionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CancelPhysicalConnectionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(CancelPhysicalConnectionResponseBody model) { this.requestId = model.requestId; } /** * <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; } public CancelPhysicalConnectionResponseBody build() { return new CancelPhysicalConnectionResponseBody(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/ChangeResourceGroupRequest.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 ChangeResourceGroupRequest} extends {@link RequestModel} * * <p>ChangeResourceGroupRequest</p> */ public class ChangeResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String newResourceGroupId; @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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private ChangeResourceGroupRequest(Builder builder) { super(builder); this.newResourceGroupId = builder.newResourceGroupId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static ChangeResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return newResourceGroupId */ public String getNewResourceGroupId() { return this.newResourceGroupId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<ChangeResourceGroupRequest, Builder> { private String newResourceGroupId; private String regionId; private String resourceId; private String resourceType; private Builder() { super(); } private Builder(ChangeResourceGroupRequest request) { super(request); this.newResourceGroupId = request.newResourceGroupId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceType = request.resourceType; } /** * <p>The ID of the new resource group.</p> * <blockquote> * <p> You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see <a href="https://help.aliyun.com/document_detail/94475.html">What is Resource Management?</a></p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rg-bp1drpcfz9srr393h****</p> */ public Builder newResourceGroupId(String newResourceGroupId) { this.putQueryParameter("NewResourceGroupId", newResourceGroupId); this.newResourceGroupId = newResourceGroupId; return this; } /** * <p>The ID of the region to which the new resource group 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 Express Connect circuit whose resource group you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li><strong>PHYSICALCONNECTION</strong>: Express Connect circuit.</li> * <li><strong>VIRTUALBORDERROUTER</strong>: virtual border router (VBR).</li> * <li><strong>ROUTERINTERFACE</strong>: router interface.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public ChangeResourceGroupRequest build() { return new ChangeResourceGroupRequest(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/ChangeResourceGroupResponse.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 ChangeResourceGroupResponse} extends {@link TeaModel} * * <p>ChangeResourceGroupResponse</p> */ public class ChangeResourceGroupResponse 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 ChangeResourceGroupResponseBody body; private ChangeResourceGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ChangeResourceGroupResponse 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 ChangeResourceGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ChangeResourceGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ChangeResourceGroupResponseBody body); @Override ChangeResourceGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ChangeResourceGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ChangeResourceGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ChangeResourceGroupResponse 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(ChangeResourceGroupResponseBody body) { this.body = body; return this; } @Override public ChangeResourceGroupResponse build() { return new ChangeResourceGroupResponse(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/ChangeResourceGroupResponseBody.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 ChangeResourceGroupResponseBody} extends {@link TeaModel} * * <p>ChangeResourceGroupResponseBody</p> */ public class ChangeResourceGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ChangeResourceGroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ChangeResourceGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ChangeResourceGroupResponseBody model) { this.requestId = model.requestId; } /** * <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; } public ChangeResourceGroupResponseBody build() { return new ChangeResourceGroupResponseBody(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/CheckCanAllocateVpcPrivateIpAddressRequest.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 CheckCanAllocateVpcPrivateIpAddressRequest} extends {@link RequestModel} * * <p>CheckCanAllocateVpcPrivateIpAddressRequest</p> */ public class CheckCanAllocateVpcPrivateIpAddressRequest extends Request { @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("PrivateIpAddress") @com.aliyun.core.annotation.Validation(required = true) private String privateIpAddress; @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("VSwitchId") @com.aliyun.core.annotation.Validation(required = true) private String vSwitchId; private CheckCanAllocateVpcPrivateIpAddressRequest(Builder builder) { super(builder); this.ipVersion = builder.ipVersion; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.privateIpAddress = builder.privateIpAddress; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static CheckCanAllocateVpcPrivateIpAddressRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 privateIpAddress */ public String getPrivateIpAddress() { return this.privateIpAddress; } /** * @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 vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder extends Request.Builder<CheckCanAllocateVpcPrivateIpAddressRequest, Builder> { private String ipVersion; private String ownerAccount; private Long ownerId; private String privateIpAddress; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vSwitchId; private Builder() { super(); } private Builder(CheckCanAllocateVpcPrivateIpAddressRequest request) { super(request); this.ipVersion = request.ipVersion; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.privateIpAddress = request.privateIpAddress; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vSwitchId = request.vSwitchId; } /** * <p>The version of the private IP address. Valid values:</p> * <ul> * <li><strong>ipv4</strong> If you want to query an IPv4 address, this parameter is optional.</li> * <li><strong>ipv6</strong> If you want to query an IPv6 address, this parameter is required.</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>To query whether a private IP address is available, the private IP address must belong to the vSwitch specified by the <strong>VSwitchId</strong> parameter.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.7</p> */ public Builder privateIpAddress(String privateIpAddress) { this.putQueryParameter("PrivateIpAddress", privateIpAddress); this.privateIpAddress = privateIpAddress; return this; } /** * <p>The region ID of the vSwitch to which the private IP address that you want to query 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-qingdao</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 vSwitch to which the private IP address to be queried belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vsw-m5ew3t46z2drmifnt****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } @Override public CheckCanAllocateVpcPrivateIpAddressRequest build() { return new CheckCanAllocateVpcPrivateIpAddressRequest(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/CheckCanAllocateVpcPrivateIpAddressResponse.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 CheckCanAllocateVpcPrivateIpAddressResponse} extends {@link TeaModel} * * <p>CheckCanAllocateVpcPrivateIpAddressResponse</p> */ public class CheckCanAllocateVpcPrivateIpAddressResponse 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 CheckCanAllocateVpcPrivateIpAddressResponseBody body; private CheckCanAllocateVpcPrivateIpAddressResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CheckCanAllocateVpcPrivateIpAddressResponse 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 CheckCanAllocateVpcPrivateIpAddressResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CheckCanAllocateVpcPrivateIpAddressResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CheckCanAllocateVpcPrivateIpAddressResponseBody body); @Override CheckCanAllocateVpcPrivateIpAddressResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CheckCanAllocateVpcPrivateIpAddressResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CheckCanAllocateVpcPrivateIpAddressResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CheckCanAllocateVpcPrivateIpAddressResponse 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(CheckCanAllocateVpcPrivateIpAddressResponseBody body) { this.body = body; return this; } @Override public CheckCanAllocateVpcPrivateIpAddressResponse build() { return new CheckCanAllocateVpcPrivateIpAddressResponse(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/CheckCanAllocateVpcPrivateIpAddressResponseBody.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 CheckCanAllocateVpcPrivateIpAddressResponseBody} extends {@link TeaModel} * * <p>CheckCanAllocateVpcPrivateIpAddressResponseBody</p> */ public class CheckCanAllocateVpcPrivateIpAddressResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CanAllocate") private Boolean canAllocate; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CheckCanAllocateVpcPrivateIpAddressResponseBody(Builder builder) { this.canAllocate = builder.canAllocate; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CheckCanAllocateVpcPrivateIpAddressResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return canAllocate */ public Boolean getCanAllocate() { return this.canAllocate; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Boolean canAllocate; private String requestId; private Builder() { } private Builder(CheckCanAllocateVpcPrivateIpAddressResponseBody model) { this.canAllocate = model.canAllocate; this.requestId = model.requestId; } /** * <p>Indicates whether the private IP address is available. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder canAllocate(Boolean canAllocate) { this.canAllocate = canAllocate; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>93360B0-2969-40BF-8542-EBB34FD358AB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CheckCanAllocateVpcPrivateIpAddressResponseBody build() { return new CheckCanAllocateVpcPrivateIpAddressResponseBody(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/CheckVpnBgpEnabledRequest.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 CheckVpnBgpEnabledRequest} extends {@link RequestModel} * * <p>CheckVpnBgpEnabledRequest</p> */ public class CheckVpnBgpEnabledRequest 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("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; private CheckVpnBgpEnabledRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CheckVpnBgpEnabledRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @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; } public static final class Builder extends Request.Builder<CheckVpnBgpEnabledRequest, Builder> { private String clientToken; private String ownerAccount; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CheckVpnBgpEnabledRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; 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 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; } /** * 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; } @Override public CheckVpnBgpEnabledRequest build() { return new CheckVpnBgpEnabledRequest(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/CheckVpnBgpEnabledResponse.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 CheckVpnBgpEnabledResponse} extends {@link TeaModel} * * <p>CheckVpnBgpEnabledResponse</p> */ public class CheckVpnBgpEnabledResponse 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 CheckVpnBgpEnabledResponseBody body; private CheckVpnBgpEnabledResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CheckVpnBgpEnabledResponse 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 CheckVpnBgpEnabledResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CheckVpnBgpEnabledResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CheckVpnBgpEnabledResponseBody body); @Override CheckVpnBgpEnabledResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CheckVpnBgpEnabledResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CheckVpnBgpEnabledResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CheckVpnBgpEnabledResponse 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(CheckVpnBgpEnabledResponseBody body) { this.body = body; return this; } @Override public CheckVpnBgpEnabledResponse build() { return new CheckVpnBgpEnabledResponse(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/CheckVpnBgpEnabledResponseBody.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 CheckVpnBgpEnabledResponseBody} extends {@link TeaModel} * * <p>CheckVpnBgpEnabledResponseBody</p> */ public class CheckVpnBgpEnabledResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BgpEnabled") private Boolean bgpEnabled; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CheckVpnBgpEnabledResponseBody(Builder builder) { this.bgpEnabled = builder.bgpEnabled; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CheckVpnBgpEnabledResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return bgpEnabled */ public Boolean getBgpEnabled() { return this.bgpEnabled; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Boolean bgpEnabled; private String requestId; private Builder() { } private Builder(CheckVpnBgpEnabledResponseBody model) { this.bgpEnabled = model.bgpEnabled; this.requestId = model.requestId; } /** * <p>Indicates whether the region supports BGP.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder bgpEnabled(Boolean bgpEnabled) { this.bgpEnabled = bgpEnabled; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>DF448D2E-215D-334F-B10D-7C3B087EF996</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CheckVpnBgpEnabledResponseBody build() { return new CheckVpnBgpEnabledResponseBody(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/CompletePhysicalConnectionLOARequest.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 CompletePhysicalConnectionLOARequest} extends {@link RequestModel} * * <p>CompletePhysicalConnectionLOARequest</p> */ public class CompletePhysicalConnectionLOARequest 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("FinishWork") private Boolean finishWork; @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("LineCode") private String lineCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LineLabel") private String lineLabel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LineSPContactInfo") private String lineSPContactInfo; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LineServiceProvider") private String lineServiceProvider; @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 CompletePhysicalConnectionLOARequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.finishWork = builder.finishWork; this.instanceId = builder.instanceId; this.lineCode = builder.lineCode; this.lineLabel = builder.lineLabel; this.lineSPContactInfo = builder.lineSPContactInfo; this.lineServiceProvider = builder.lineServiceProvider; 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 CompletePhysicalConnectionLOARequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return finishWork */ public Boolean getFinishWork() { return this.finishWork; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lineCode */ public String getLineCode() { return this.lineCode; } /** * @return lineLabel */ public String getLineLabel() { return this.lineLabel; } /** * @return lineSPContactInfo */ public String getLineSPContactInfo() { return this.lineSPContactInfo; } /** * @return lineServiceProvider */ public String getLineServiceProvider() { return this.lineServiceProvider; } /** * @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<CompletePhysicalConnectionLOARequest, Builder> { private String clientToken; private Boolean finishWork; private String instanceId; private String lineCode; private String lineLabel; private String lineSPContactInfo; private String lineServiceProvider; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CompletePhysicalConnectionLOARequest request) { super(request); this.clientToken = request.clientToken; this.finishWork = request.finishWork; this.instanceId = request.instanceId; this.lineCode = request.lineCode; this.lineLabel = request.lineLabel; this.lineSPContactInfo = request.lineSPContactInfo; this.lineServiceProvider = request.lineServiceProvider; 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 value, but you must ensure that it is unique among different requests.</p> * <blockquote> * <p> If you do not set this parameter, the system automatically uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> of each API request may be different.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-230e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether the construction is completed. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder finishWork(Boolean finishWork) { this.putQueryParameter("FinishWork", finishWork); this.finishWork = finishWork; return this; } /** * <p>The ID of the Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-bp10tvlhnwkw****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The circuit code provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>aaa111****</p> */ public Builder lineCode(String lineCode) { this.putQueryParameter("LineCode", lineCode); this.lineCode = lineCode; return this; } /** * <p>The label of the cable in the data center.</p> * * <strong>example:</strong> * <p>bbb222****</p> */ public Builder lineLabel(String lineLabel) { this.putQueryParameter("LineLabel", lineLabel); this.lineLabel = lineLabel; return this; } /** * <p>The contact information about line O&amp;M.</p> * * <strong>example:</strong> * <p>1388888****</p> */ public Builder lineSPContactInfo(String lineSPContactInfo) { this.putQueryParameter("LineSPContactInfo", lineSPContactInfo); this.lineSPContactInfo = lineSPContactInfo; return this; } /** * <p>The ISP. Valid values:</p> * <ul> * <li><strong>China Telecom</strong></li> * <li><strong>China Unicom</strong></li> * <li><strong>China Mobile</strong></li> * <li><strong>Other ISPs in China</strong></li> * </ul> * * <strong>example:</strong> * <p>Other ISPs in China</p> */ public Builder lineServiceProvider(String lineServiceProvider) { this.putQueryParameter("LineServiceProvider", lineServiceProvider); this.lineServiceProvider = lineServiceProvider; 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 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; } /** * 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 CompletePhysicalConnectionLOARequest build() { return new CompletePhysicalConnectionLOARequest(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/CompletePhysicalConnectionLOAResponse.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 CompletePhysicalConnectionLOAResponse} extends {@link TeaModel} * * <p>CompletePhysicalConnectionLOAResponse</p> */ public class CompletePhysicalConnectionLOAResponse 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 CompletePhysicalConnectionLOAResponseBody body; private CompletePhysicalConnectionLOAResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CompletePhysicalConnectionLOAResponse 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 CompletePhysicalConnectionLOAResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CompletePhysicalConnectionLOAResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CompletePhysicalConnectionLOAResponseBody body); @Override CompletePhysicalConnectionLOAResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CompletePhysicalConnectionLOAResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CompletePhysicalConnectionLOAResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CompletePhysicalConnectionLOAResponse 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(CompletePhysicalConnectionLOAResponseBody body) { this.body = body; return this; } @Override public CompletePhysicalConnectionLOAResponse build() { return new CompletePhysicalConnectionLOAResponse(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/CompletePhysicalConnectionLOAResponseBody.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 CompletePhysicalConnectionLOAResponseBody} extends {@link TeaModel} * * <p>CompletePhysicalConnectionLOAResponseBody</p> */ public class CompletePhysicalConnectionLOAResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CompletePhysicalConnectionLOAResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CompletePhysicalConnectionLOAResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(CompletePhysicalConnectionLOAResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F8983C74-E068-4509-B442-89BD82C8F43B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CompletePhysicalConnectionLOAResponseBody build() { return new CompletePhysicalConnectionLOAResponseBody(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/ConfirmPhysicalConnectionRequest.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 ConfirmPhysicalConnectionRequest} extends {@link RequestModel} * * <p>ConfirmPhysicalConnectionRequest</p> */ public class ConfirmPhysicalConnectionRequest 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("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("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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ConfirmPhysicalConnectionRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.physicalConnectionId = builder.physicalConnectionId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ConfirmPhysicalConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @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<ConfirmPhysicalConnectionRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String physicalConnectionId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ConfirmPhysicalConnectionRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.physicalConnectionId = request.physicalConnectionId; 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 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 <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-0016e0****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; 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 Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-119mf****</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; } /** * 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 ConfirmPhysicalConnectionRequest build() { return new ConfirmPhysicalConnectionRequest(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/ConfirmPhysicalConnectionResponse.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 ConfirmPhysicalConnectionResponse} extends {@link TeaModel} * * <p>ConfirmPhysicalConnectionResponse</p> */ public class ConfirmPhysicalConnectionResponse 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 ConfirmPhysicalConnectionResponseBody body; private ConfirmPhysicalConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ConfirmPhysicalConnectionResponse 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 ConfirmPhysicalConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ConfirmPhysicalConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ConfirmPhysicalConnectionResponseBody body); @Override ConfirmPhysicalConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ConfirmPhysicalConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ConfirmPhysicalConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ConfirmPhysicalConnectionResponse 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(ConfirmPhysicalConnectionResponseBody body) { this.body = body; return this; } @Override public ConfirmPhysicalConnectionResponse build() { return new ConfirmPhysicalConnectionResponse(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/ConfirmPhysicalConnectionResponseBody.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 ConfirmPhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>ConfirmPhysicalConnectionResponseBody</p> */ public class ConfirmPhysicalConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ConfirmPhysicalConnectionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ConfirmPhysicalConnectionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ConfirmPhysicalConnectionResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>API-20365164-5b0d-460a-83c2-2189972b****</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ConfirmPhysicalConnectionResponseBody build() { return new ConfirmPhysicalConnectionResponseBody(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/ConnectRouterInterfaceRequest.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 ConnectRouterInterfaceRequest} extends {@link RequestModel} * * <p>ConnectRouterInterfaceRequest</p> */ public class ConnectRouterInterfaceRequest extends Request { @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("RouterInterfaceId") @com.aliyun.core.annotation.Validation(required = true) private String routerInterfaceId; private ConnectRouterInterfaceRequest(Builder builder) { super(builder); this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routerInterfaceId = builder.routerInterfaceId; } public static Builder builder() { return new Builder(); } public static ConnectRouterInterfaceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 routerInterfaceId */ public String getRouterInterfaceId() { return this.routerInterfaceId; } public static final class Builder extends Request.Builder<ConnectRouterInterfaceRequest, Builder> { private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routerInterfaceId; private Builder() { super(); } private Builder(ConnectRouterInterfaceRequest request) { super(request); this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routerInterfaceId = request.routerInterfaceId; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the router interface 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>The ID of the initiator router interface.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ri-2zeo3xzyf38r4urzd****</p> */ public Builder routerInterfaceId(String routerInterfaceId) { this.putQueryParameter("RouterInterfaceId", routerInterfaceId); this.routerInterfaceId = routerInterfaceId; return this; } @Override public ConnectRouterInterfaceRequest build() { return new ConnectRouterInterfaceRequest(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/ConnectRouterInterfaceResponse.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 ConnectRouterInterfaceResponse} extends {@link TeaModel} * * <p>ConnectRouterInterfaceResponse</p> */ public class ConnectRouterInterfaceResponse 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 ConnectRouterInterfaceResponseBody body; private ConnectRouterInterfaceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ConnectRouterInterfaceResponse 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 ConnectRouterInterfaceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ConnectRouterInterfaceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ConnectRouterInterfaceResponseBody body); @Override ConnectRouterInterfaceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ConnectRouterInterfaceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ConnectRouterInterfaceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ConnectRouterInterfaceResponse 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(ConnectRouterInterfaceResponseBody body) { this.body = body; return this; } @Override public ConnectRouterInterfaceResponse build() { return new ConnectRouterInterfaceResponse(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/ConnectRouterInterfaceResponseBody.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 ConnectRouterInterfaceResponseBody} extends {@link TeaModel} * * <p>ConnectRouterInterfaceResponseBody</p> */ public class ConnectRouterInterfaceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ConnectRouterInterfaceResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ConnectRouterInterfaceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ConnectRouterInterfaceResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ConnectRouterInterfaceResponseBody build() { return new ConnectRouterInterfaceResponseBody(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/ConvertBandwidthPackageRequest.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 ConvertBandwidthPackageRequest} extends {@link RequestModel} * * <p>ConvertBandwidthPackageRequest</p> */ public class ConvertBandwidthPackageRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") @com.aliyun.core.annotation.Validation(required = true) private String bandwidthPackageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @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 ConvertBandwidthPackageRequest(Builder builder) { super(builder); this.bandwidthPackageId = builder.bandwidthPackageId; this.clientToken = builder.clientToken; 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 ConvertBandwidthPackageRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @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<ConvertBandwidthPackageRequest, Builder> { private String bandwidthPackageId; private String clientToken; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ConvertBandwidthPackageRequest request) { super(request); this.bandwidthPackageId = request.bandwidthPackageId; this.clientToken = request.clientToken; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the NAT service plan.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bwp-bp1xea10o8qxw4f****</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.putQueryParameter("BandwidthPackageId", bandwidthPackageId); this.bandwidthPackageId = bandwidthPackageId; return this; } /** * <p>The client token that is used to ensure the idempotency of the request. You can use the client to generate a client token. Make sure that a unique client token is used for each request. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see <a href="https://help.aliyun.com/document_detail/36569.html">How to ensure idempotence</a>.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region where the NAT gateway resides. 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 ConvertBandwidthPackageRequest build() { return new ConvertBandwidthPackageRequest(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/ConvertBandwidthPackageResponse.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 ConvertBandwidthPackageResponse} extends {@link TeaModel} * * <p>ConvertBandwidthPackageResponse</p> */ public class ConvertBandwidthPackageResponse 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 ConvertBandwidthPackageResponseBody body; private ConvertBandwidthPackageResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ConvertBandwidthPackageResponse 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 ConvertBandwidthPackageResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ConvertBandwidthPackageResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ConvertBandwidthPackageResponseBody body); @Override ConvertBandwidthPackageResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ConvertBandwidthPackageResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ConvertBandwidthPackageResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ConvertBandwidthPackageResponse 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(ConvertBandwidthPackageResponseBody body) { this.body = body; return this; } @Override public ConvertBandwidthPackageResponse build() { return new ConvertBandwidthPackageResponse(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/ConvertBandwidthPackageResponseBody.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 ConvertBandwidthPackageResponseBody} extends {@link TeaModel} * * <p>ConvertBandwidthPackageResponseBody</p> */ public class ConvertBandwidthPackageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ConvertInstanceId") private String convertInstanceId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ConvertBandwidthPackageResponseBody(Builder builder) { this.convertInstanceId = builder.convertInstanceId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ConvertBandwidthPackageResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return convertInstanceId */ public String getConvertInstanceId() { return this.convertInstanceId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String convertInstanceId; private String requestId; private Builder() { } private Builder(ConvertBandwidthPackageResponseBody model) { this.convertInstanceId = model.convertInstanceId; this.requestId = model.requestId; } /** * <p>The ID of the Internet Shared Bandwidth instance.</p> * * <strong>example:</strong> * <p>bwp-s6lmotmkkf567b****</p> */ public Builder convertInstanceId(String convertInstanceId) { this.convertInstanceId = convertInstanceId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>455AC20C-7061-446A-BDBD-B3BEE0856304</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ConvertBandwidthPackageResponseBody build() { return new ConvertBandwidthPackageResponseBody(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/CopyNetworkAclEntriesRequest.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 CopyNetworkAclEntriesRequest} extends {@link RequestModel} * * <p>CopyNetworkAclEntriesRequest</p> */ public class CopyNetworkAclEntriesRequest 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("NetworkAclId") @com.aliyun.core.annotation.Validation(required = true) private String networkAclId; @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("SourceNetworkAclId") @com.aliyun.core.annotation.Validation(required = true) private String sourceNetworkAclId; private CopyNetworkAclEntriesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.networkAclId = builder.networkAclId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.sourceNetworkAclId = builder.sourceNetworkAclId; } public static Builder builder() { return new Builder(); } public static CopyNetworkAclEntriesRequest 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 networkAclId */ public String getNetworkAclId() { return this.networkAclId; } /** * @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 sourceNetworkAclId */ public String getSourceNetworkAclId() { return this.sourceNetworkAclId; } public static final class Builder extends Request.Builder<CopyNetworkAclEntriesRequest, Builder> { private String clientToken; private Boolean dryRun; private String networkAclId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sourceNetworkAclId; private Builder() { super(); } private Builder(CopyNetworkAclEntriesRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.networkAclId = request.networkAclId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sourceNetworkAclId = request.sourceNetworkAclId; } /** * <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>123</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 network ACL.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>nacl-a2do9e413e0spxxxxxxxx</p> */ public Builder networkAclId(String networkAclId) { this.putQueryParameter("NetworkAclId", networkAclId); this.networkAclId = networkAclId; 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. 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 network ACL whose rules you want to copy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>nacl-ghuo9ehg3e0spxxxxxxxx</p> */ public Builder sourceNetworkAclId(String sourceNetworkAclId) { this.putQueryParameter("SourceNetworkAclId", sourceNetworkAclId); this.sourceNetworkAclId = sourceNetworkAclId; return this; } @Override public CopyNetworkAclEntriesRequest build() { return new CopyNetworkAclEntriesRequest(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/CopyNetworkAclEntriesResponse.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 CopyNetworkAclEntriesResponse} extends {@link TeaModel} * * <p>CopyNetworkAclEntriesResponse</p> */ public class CopyNetworkAclEntriesResponse 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 CopyNetworkAclEntriesResponseBody body; private CopyNetworkAclEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CopyNetworkAclEntriesResponse 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 CopyNetworkAclEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CopyNetworkAclEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CopyNetworkAclEntriesResponseBody body); @Override CopyNetworkAclEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CopyNetworkAclEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CopyNetworkAclEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CopyNetworkAclEntriesResponse 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(CopyNetworkAclEntriesResponseBody body) { this.body = body; return this; } @Override public CopyNetworkAclEntriesResponse build() { return new CopyNetworkAclEntriesResponse(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/CopyNetworkAclEntriesResponseBody.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 CopyNetworkAclEntriesResponseBody} extends {@link TeaModel} * * <p>CopyNetworkAclEntriesResponseBody</p> */ public class CopyNetworkAclEntriesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CopyNetworkAclEntriesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CopyNetworkAclEntriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(CopyNetworkAclEntriesResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>6608E72F-F276-440F-ABEF-419971CEC4D1</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CopyNetworkAclEntriesResponseBody build() { return new CopyNetworkAclEntriesResponseBody(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/CreateBgpGroupRequest.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 CreateBgpGroupRequest} extends {@link RequestModel} * * <p>CreateBgpGroupRequest</p> */ public class CreateBgpGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AuthKey") private String authKey; @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("IpVersion") private String ipVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsFakeAsn") private Boolean isFakeAsn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @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("PeerAsn") @com.aliyun.core.annotation.Validation(required = true) private Long peerAsn; @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("RouteQuota") private Integer routeQuota; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouterId") @com.aliyun.core.annotation.Validation(required = true) private String routerId; private CreateBgpGroupRequest(Builder builder) { super(builder); this.authKey = builder.authKey; this.clientToken = builder.clientToken; this.description = builder.description; this.ipVersion = builder.ipVersion; this.isFakeAsn = builder.isFakeAsn; this.localAsn = builder.localAsn; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerAsn = builder.peerAsn; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeQuota = builder.routeQuota; this.routerId = builder.routerId; } public static Builder builder() { return new Builder(); } public static CreateBgpGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return authKey */ public String getAuthKey() { return this.authKey; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return isFakeAsn */ public Boolean getIsFakeAsn() { return this.isFakeAsn; } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @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 peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @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 routeQuota */ public Integer getRouteQuota() { return this.routeQuota; } /** * @return routerId */ public String getRouterId() { return this.routerId; } public static final class Builder extends Request.Builder<CreateBgpGroupRequest, Builder> { private String authKey; private String clientToken; private String description; private String ipVersion; private Boolean isFakeAsn; private Long localAsn; private String name; private String ownerAccount; private Long ownerId; private Long peerAsn; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Integer routeQuota; private String routerId; private Builder() { super(); } private Builder(CreateBgpGroupRequest request) { super(request); this.authKey = request.authKey; this.clientToken = request.clientToken; this.description = request.description; this.ipVersion = request.ipVersion; this.isFakeAsn = request.isFakeAsn; this.localAsn = request.localAsn; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerAsn = request.peerAsn; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeQuota = request.routeQuota; this.routerId = request.routerId; } /** * <p>The authentication key of the BGP group.</p> * * <strong>example:</strong> * <p>!PWZ2****</p> */ public Builder authKey(String authKey) { this.putQueryParameter("AuthKey", authKey); this.authKey = authKey; 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 BGP group.</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>BGP</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The IP version. Valid values:</p> * <ul> * <li><strong>IPv4</strong>: This is the default value.</li> * <li><strong>IPv6</strong>: IPv6 is supported only if the VBR for which you want to create the BGP group has IPv6 enabled.</li> * </ul> * * <strong>example:</strong> * <p>IPv4</p> */ public Builder ipVersion(String ipVersion) { this.putQueryParameter("IpVersion", ipVersion); this.ipVersion = ipVersion; return this; } /** * <p>Specifies whether to use a fake ASN. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</li> * <li><strong>true</strong></li> * </ul> * <blockquote> * <p> A router that runs BGP typically belongs to only one AS. If you need to replace an existing AS with a new AS and you cannot immediately modify BGP configurations, you can use fake ASNs to ensure service continuity.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder isFakeAsn(Boolean isFakeAsn) { this.putQueryParameter("IsFakeAsn", isFakeAsn); this.isFakeAsn = isFakeAsn; return this; } /** * <p>The custom ASN on the Alibaba Cloud side. Valid values:</p> * <ul> * <li><strong>45104</strong></li> * <li><strong>64512~65534</strong></li> * <li><strong>4200000000~4294967294</strong></li> * </ul> * <blockquote> * <p> <strong>65025</strong> is reserved by Alibaba Cloud. By default, Alibaba Cloud uses <strong>45104</strong> as <strong>LocalAsn</strong>. If you use custom <strong>LocalAsn</strong> in multi-line access scenarios, loops in BGP may occur.</p> * </blockquote> * * <strong>example:</strong> * <p>45104</p> */ public Builder localAsn(Long localAsn) { this.putQueryParameter("LocalAsn", localAsn); this.localAsn = localAsn; return this; } /** * <p>The name of the BGP group.</p> * <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), 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 ASN of the gateway device in the data center.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1****</p> */ public Builder peerAsn(Long peerAsn) { this.putQueryParameter("PeerAsn", peerAsn); this.peerAsn = peerAsn; return this; } /** * <p>The region ID of the VBR.</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 maximum number of routes supported by a BGP peer. Default value: <strong>110</strong>.</p> * * <strong>example:</strong> * <p>110</p> */ public Builder routeQuota(Integer routeQuota) { this.putQueryParameter("RouteQuota", routeQuota); this.routeQuota = routeQuota; return this; } /** * <p>The ID of the VBR.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vbr-bp1ctxy813985gkuk****</p> */ public Builder routerId(String routerId) { this.putQueryParameter("RouterId", routerId); this.routerId = routerId; return this; } @Override public CreateBgpGroupRequest build() { return new CreateBgpGroupRequest(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/CreateBgpGroupResponse.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 CreateBgpGroupResponse} extends {@link TeaModel} * * <p>CreateBgpGroupResponse</p> */ public class CreateBgpGroupResponse 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 CreateBgpGroupResponseBody body; private CreateBgpGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateBgpGroupResponse 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 CreateBgpGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateBgpGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateBgpGroupResponseBody body); @Override CreateBgpGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateBgpGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateBgpGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateBgpGroupResponse 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(CreateBgpGroupResponseBody body) { this.body = body; return this; } @Override public CreateBgpGroupResponse build() { return new CreateBgpGroupResponse(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/CreateBgpGroupResponseBody.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 CreateBgpGroupResponseBody} extends {@link TeaModel} * * <p>CreateBgpGroupResponseBody</p> */ public class CreateBgpGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BgpGroupId") private String bgpGroupId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateBgpGroupResponseBody(Builder builder) { this.bgpGroupId = builder.bgpGroupId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateBgpGroupResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return bgpGroupId */ public String getBgpGroupId() { return this.bgpGroupId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String bgpGroupId; private String requestId; private Builder() { } private Builder(CreateBgpGroupResponseBody model) { this.bgpGroupId = model.bgpGroupId; this.requestId = model.requestId; } /** * <p>The ID of the BGP group.</p> * * <strong>example:</strong> * <p>bgpg-bp1k25cyp26cllath****</p> */ public Builder bgpGroupId(String bgpGroupId) { this.bgpGroupId = bgpGroupId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C1221A1F-2ACD-4592-8F27-474E02883159</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateBgpGroupResponseBody build() { return new CreateBgpGroupResponseBody(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/CreateBgpPeerRequest.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 CreateBgpPeerRequest} extends {@link RequestModel} * * <p>CreateBgpPeerRequest</p> */ public class CreateBgpPeerRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BfdMultiHop") private Integer bfdMultiHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpGroupId") @com.aliyun.core.annotation.Validation(required = true) private String bgpGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableBfd") private Boolean enableBfd; @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("PeerIpAddress") private String peerIpAddress; @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 CreateBgpPeerRequest(Builder builder) { super(builder); this.bfdMultiHop = builder.bfdMultiHop; this.bgpGroupId = builder.bgpGroupId; this.clientToken = builder.clientToken; this.enableBfd = builder.enableBfd; this.ipVersion = builder.ipVersion; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerIpAddress = builder.peerIpAddress; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CreateBgpPeerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bfdMultiHop */ public Integer getBfdMultiHop() { return this.bfdMultiHop; } /** * @return bgpGroupId */ public String getBgpGroupId() { return this.bgpGroupId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return enableBfd */ public Boolean getEnableBfd() { return this.enableBfd; } /** * @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 peerIpAddress */ public String getPeerIpAddress() { return this.peerIpAddress; } /** * @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<CreateBgpPeerRequest, Builder> { private Integer bfdMultiHop; private String bgpGroupId; private String clientToken; private Boolean enableBfd; private String ipVersion; private String ownerAccount; private Long ownerId; private String peerIpAddress; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateBgpPeerRequest request) { super(request); this.bfdMultiHop = request.bfdMultiHop; this.bgpGroupId = request.bgpGroupId; this.clientToken = request.clientToken; this.enableBfd = request.enableBfd; this.ipVersion = request.ipVersion; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerIpAddress = request.peerIpAddress; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The BFD hop count. Valid values: <strong>1</strong> to <strong>255</strong>.</p> * <p>This parameter is required only if you enable BFD. The parameter specifies the maximum number of network devices that a packet can traverse from the source to the destination. Set a value based on your network topology.</p> * <blockquote> * <p>If you use BFD in a multi-cloud environment or a fiber-optic direct connection network without any bridge device, you need to change the default BFD hop count from <strong>255</strong> to <strong>1</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>3</p> */ public Builder bfdMultiHop(Integer bfdMultiHop) { this.putQueryParameter("BfdMultiHop", bfdMultiHop); this.bfdMultiHop = bfdMultiHop; return this; } /** * <p>The ID of the BGP group.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bgpg-wz9f62v4fbg****</p> */ public Builder bgpGroupId(String bgpGroupId) { this.putQueryParameter("BgpGroupId", bgpGroupId); this.bgpGroupId = bgpGroupId; 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 the value 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, the system uses the value of <strong>RequestId</strong> as <strong>ClientToken</strong>. The value of <strong>RequestId</strong> for each API request is 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 enable the Bidirectional Forwarding Detection (BFD) feature. Valid values:</p> * <ul> * <li><strong>true</strong>: enables BFD.</li> * <li><strong>false</strong>: disables BFD.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBfd(Boolean enableBfd) { this.putQueryParameter("EnableBfd", enableBfd); this.enableBfd = enableBfd; return this; } /** * <p>The IP version. Valid values:</p> * <ul> * <li><strong>IPv4</strong>: This is the default value.</li> * <li><strong>IPv6</strong>: IPv6 is supported only if the VBR for which you want to create the BGP group has IPv6 enabled.</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 IP address of the BGP peer.</p> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder peerIpAddress(String peerIpAddress) { this.putQueryParameter("PeerIpAddress", peerIpAddress); this.peerIpAddress = peerIpAddress; return this; } /** * <p>The ID of the region to which the BGP group 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-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; } @Override public CreateBgpPeerRequest build() { return new CreateBgpPeerRequest(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/CreateBgpPeerResponse.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 CreateBgpPeerResponse} extends {@link TeaModel} * * <p>CreateBgpPeerResponse</p> */ public class CreateBgpPeerResponse 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 CreateBgpPeerResponseBody body; private CreateBgpPeerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateBgpPeerResponse 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 CreateBgpPeerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateBgpPeerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateBgpPeerResponseBody body); @Override CreateBgpPeerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateBgpPeerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateBgpPeerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateBgpPeerResponse 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(CreateBgpPeerResponseBody body) { this.body = body; return this; } @Override public CreateBgpPeerResponse build() { return new CreateBgpPeerResponse(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/CreateBgpPeerResponseBody.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 CreateBgpPeerResponseBody} extends {@link TeaModel} * * <p>CreateBgpPeerResponseBody</p> */ public class CreateBgpPeerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BgpPeerId") private String bgpPeerId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateBgpPeerResponseBody(Builder builder) { this.bgpPeerId = builder.bgpPeerId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateBgpPeerResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return bgpPeerId */ public String getBgpPeerId() { return this.bgpPeerId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String bgpPeerId; private String requestId; private Builder() { } private Builder(CreateBgpPeerResponseBody model) { this.bgpPeerId = model.bgpPeerId; this.requestId = model.requestId; } /** * <p>The ID of the BGP peer.</p> * * <strong>example:</strong> * <p>bgp-m5eoyp2mwegk8ce9v****</p> */ public Builder bgpPeerId(String bgpPeerId) { this.bgpPeerId = bgpPeerId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>D4B7649A-61BB-4C64-A586-1DFF1EDA6A42</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateBgpPeerResponseBody build() { return new CreateBgpPeerResponseBody(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/CreateCommonBandwidthPackageRequest.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 CreateCommonBandwidthPackageRequest} extends {@link RequestModel} * * <p>CreateCommonBandwidthPackageRequest</p> */ public class CreateCommonBandwidthPackageRequest extends Request { @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("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ISP") private String ISP; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternetChargeType") private String internetChargeType; @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("Ratio") @com.aliyun.core.annotation.Validation(maximum = 100) private Integer ratio; @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("Zone") private String zone; private CreateCommonBandwidthPackageRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.clientToken = builder.clientToken; this.description = builder.description; this.ISP = builder.ISP; this.internetChargeType = builder.internetChargeType; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.ratio = builder.ratio; 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.zone = builder.zone; } public static Builder builder() { return new Builder(); } public static CreateCommonBandwidthPackageRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ISP */ public String getISP() { return this.ISP; } /** * @return internetChargeType */ public String getInternetChargeType() { return this.internetChargeType; } /** * @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 ratio */ public Integer getRatio() { return this.ratio; } /** * @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 zone */ public String getZone() { return this.zone; } public static final class Builder extends Request.Builder<CreateCommonBandwidthPackageRequest, Builder> { private Integer bandwidth; private String clientToken; private String description; private String ISP; private String internetChargeType; private String name; private String ownerAccount; private Long ownerId; private Integer ratio; 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 String zone; private Builder() { super(); } private Builder(CreateCommonBandwidthPackageRequest request) { super(request); this.bandwidth = request.bandwidth; this.clientToken = request.clientToken; this.description = request.description; this.ISP = request.ISP; this.internetChargeType = request.internetChargeType; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.ratio = request.ratio; 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.zone = request.zone; } /** * <p>The maximum bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.</p> * <p>Valid values: <strong>1</strong> to <strong>1000</strong>. Default value: <strong>1</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1000</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 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>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 Internet Shared Bandwidth instance.</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>abc</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The line type. Valid values:</p> * <ul> * <li><strong>BGP</strong> (default) All regions support BGP (Multi-ISP).</li> * <li><strong>BGP_PRO</strong> BGP (Multi-ISP) Pro lines are available in the China (Hong Kong), Singapore, Japan (Tokyo), Philippines (Manila), Malaysia (Kuala Lumpur), Indonesia (Jakarta), and Thailand (Bangkok) regions.</li> * </ul> * <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> * <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> * * <strong>example:</strong> * <p>BGP</p> */ public Builder ISP(String ISP) { this.putQueryParameter("ISP", ISP); this.ISP = ISP; return this; } /** * <p>The billing method of the Internet Shared Bandwidth instance. Set the value to <strong>PayByTraffic</strong>, which specifies the pay-by-data-transfer billing method.</p> */ public Builder internetChargeType(String internetChargeType) { this.putQueryParameter("InternetChargeType", internetChargeType); this.internetChargeType = internetChargeType; return this; } /** * <p>The name of the Internet Shared Bandwidth instance.</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>test123</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 percentage of the minimum bandwidth commitment. Set the parameter to <strong>20</strong>.</p> * <blockquote> * <p>This parameter is available only on the Alibaba Cloud China site.</p> * </blockquote> * * <strong>example:</strong> * <p>20</p> */ public Builder ratio(Integer ratio) { this.putQueryParameter("Ratio", ratio); this.ratio = ratio; return this; } /** * <p>The region ID of the Internet Shared Bandwidth instance.</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> * * <strong>example:</strong> * <p>rg-acfmxazdjdhd****</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; } /** * SecurityProtectionTypes. */ public Builder securityProtectionTypes(java.util.List<String> securityProtectionTypes) { this.putQueryParameter("SecurityProtectionTypes", securityProtectionTypes); this.securityProtectionTypes = securityProtectionTypes; return this; } /** * Tag. */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The zone of the Internet Shared Bandwidth instance. This parameter is required if you create an Internet Shared Bandwidth instance for a cloud box.</p> * * <strong>example:</strong> * <p>ap-southeast-1-lzdvn-cb</p> */ public Builder zone(String zone) { this.putQueryParameter("Zone", zone); this.zone = zone; return this; } @Override public CreateCommonBandwidthPackageRequest build() { return new CreateCommonBandwidthPackageRequest(this); } } /** * * {@link CreateCommonBandwidthPackageRequest} extends {@link TeaModel} * * <p>CreateCommonBandwidthPackageRequest</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; } /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
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/CreateCommonBandwidthPackageResponse.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 CreateCommonBandwidthPackageResponse} extends {@link TeaModel} * * <p>CreateCommonBandwidthPackageResponse</p> */ public class CreateCommonBandwidthPackageResponse 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 CreateCommonBandwidthPackageResponseBody body; private CreateCommonBandwidthPackageResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateCommonBandwidthPackageResponse 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 CreateCommonBandwidthPackageResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateCommonBandwidthPackageResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateCommonBandwidthPackageResponseBody body); @Override CreateCommonBandwidthPackageResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateCommonBandwidthPackageResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateCommonBandwidthPackageResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateCommonBandwidthPackageResponse 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(CreateCommonBandwidthPackageResponseBody body) { this.body = body; return this; } @Override public CreateCommonBandwidthPackageResponse build() { return new CreateCommonBandwidthPackageResponse(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/CreateCommonBandwidthPackageResponseBody.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 CreateCommonBandwidthPackageResponseBody} extends {@link TeaModel} * * <p>CreateCommonBandwidthPackageResponseBody</p> */ public class CreateCommonBandwidthPackageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") private String bandwidthPackageId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private CreateCommonBandwidthPackageResponseBody(Builder builder) { this.bandwidthPackageId = builder.bandwidthPackageId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static CreateCommonBandwidthPackageResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder { private String bandwidthPackageId; private String requestId; private String resourceGroupId; private Builder() { } private Builder(CreateCommonBandwidthPackageResponseBody model) { this.bandwidthPackageId = model.bandwidthPackageId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; } /** * <p>The ID of the Internet Shared Bandwidth instance.</p> * * <strong>example:</strong> * <p>cbwp-bp1vevu8h3ieh****</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.bandwidthPackageId = bandwidthPackageId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>FF39F653-033E-4CD9-9EDF-3CCA5A71FBC3</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazdjdhd****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } public CreateCommonBandwidthPackageResponseBody build() { return new CreateCommonBandwidthPackageResponseBody(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/CreateCustomerGatewayRequest.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 CreateCustomerGatewayRequest} extends {@link RequestModel} * * <p>CreateCustomerGatewayRequest</p> */ public class CreateCustomerGatewayRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Asn") private String asn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AuthKey") private String authKey; @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("IpAddress") @com.aliyun.core.annotation.Validation(required = true) private String ipAddress; @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("Tags") private java.util.List<Tags> tags; private CreateCustomerGatewayRequest(Builder builder) { super(builder); this.asn = builder.asn; this.authKey = builder.authKey; this.clientToken = builder.clientToken; this.description = builder.description; this.ipAddress = builder.ipAddress; 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.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static CreateCustomerGatewayRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return asn */ public String getAsn() { return this.asn; } /** * @return authKey */ public String getAuthKey() { return this.authKey; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @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 tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<CreateCustomerGatewayRequest, Builder> { private String asn; private String authKey; private String clientToken; private String description; private String ipAddress; 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<Tags> tags; private Builder() { super(); } private Builder(CreateCustomerGatewayRequest request) { super(request); this.asn = request.asn; this.authKey = request.authKey; this.clientToken = request.clientToken; this.description = request.description; this.ipAddress = request.ipAddress; 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.tags = request.tags; } /** * <p>The autonomous system number (ASN) of the gateway device in your data center. This parameter is required If you want to use Border Gateway Protocol (BGP) for the IPsec-VPN connection. Valid values: 1 to 4294967295. 45104 is not supported.</p> * <p><strong>Asn</strong> is a 4-byte number. You can enter it in two segments and separate the first 16 bits from the following 16 bits with a period (.). 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> * <blockquote> * <ul> * <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> * <li>45104 is a unique identifier assigned by IANA to Alibaba Cloud. It is used to identify Alibaba Cloud during route selection and data transmission over the Internet.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>65530</p> */ public Builder asn(String asn) { this.putQueryParameter("Asn", asn); this.asn = asn; return this; } /** * <p>The authentication key of the BGP routing protocol for the gateway device in the data center.</p> * <p>The key must be 1 to 64 characters in length. It can contain only ASCII characters and cannot contain spaces or question marks (?).</p> * * <strong>example:</strong> * <p>AuthKey****</p> */ public Builder authKey(String authKey) { this.putQueryParameter("AuthKey", authKey); this.authKey = authKey; 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 and cannot exceed 64 characters in length.</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****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of the customer gateway.</p> * <p>The description must be 1 to 100 characters in length, and 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>The static IP address of the gateway device in the data center.</p> * <ul> * <li>If you want to create a public IPsec-VPN connection, enter a public IP address.</li> * <li>If you want to create a private IPsec-VPN connection, enter a private IP address.</li> * </ul> * <p>You cannot use the following IP addresses. Otherwise, a IPsec-VPN connection cannot be established:</p> * <ul> * <li>100.64.0.0~100.127.255.255</li> * <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>101.12.XX.XX</p> */ public Builder ipAddress(String ipAddress) { this.putQueryParameter("IpAddress", ipAddress); this.ipAddress = ipAddress; return this; } /** * <p>The name of the customer gateway.</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; } /** * 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 customer 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; } /** * <p>The ID of the resource group to which the customer 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 the resource group list.</p> * </li> * <li><p>If you do not specify a resource group, the customer gateway will belong to the default resource group after being created.</p> * </li> * </ul> * * <strong>example:</strong> * <p>rg-aek2qo2h4jy****</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; } @Override public CreateCustomerGatewayRequest build() { return new CreateCustomerGatewayRequest(this); } } /** * * {@link CreateCustomerGatewayRequest} extends {@link TeaModel} * * <p>CreateCustomerGatewayRequest</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); } } } }
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/CreateCustomerGatewayResponse.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 CreateCustomerGatewayResponse} extends {@link TeaModel} * * <p>CreateCustomerGatewayResponse</p> */ public class CreateCustomerGatewayResponse 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 CreateCustomerGatewayResponseBody body; private CreateCustomerGatewayResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateCustomerGatewayResponse 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 CreateCustomerGatewayResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateCustomerGatewayResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateCustomerGatewayResponseBody body); @Override CreateCustomerGatewayResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateCustomerGatewayResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateCustomerGatewayResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateCustomerGatewayResponse 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(CreateCustomerGatewayResponseBody body) { this.body = body; return this; } @Override public CreateCustomerGatewayResponse build() { return new CreateCustomerGatewayResponse(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/CreateCustomerGatewayResponseBody.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 CreateCustomerGatewayResponseBody} extends {@link TeaModel} * * <p>CreateCustomerGatewayResponseBody</p> */ public class CreateCustomerGatewayResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("IpAddress") private String ipAddress; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateCustomerGatewayResponseBody(Builder builder) { this.createTime = builder.createTime; this.customerGatewayId = builder.customerGatewayId; this.description = builder.description; this.ipAddress = builder.ipAddress; this.name = builder.name; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateCustomerGatewayResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @return name */ public String getName() { return this.name; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Long createTime; private String customerGatewayId; private String description; private String ipAddress; private String name; private String requestId; private Builder() { } private Builder(CreateCustomerGatewayResponseBody model) { this.createTime = model.createTime; this.customerGatewayId = model.customerGatewayId; this.description = model.description; this.ipAddress = model.ipAddress; this.name = model.name; this.requestId = model.requestId; } /** * <p>The timestamp generated when the customer gateway was created. 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>1493363486000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The ID of the customer gateway.</p> * * <strong>example:</strong> * <p>cgw-bp1jrawp82av6bws9****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>The description of the customer gateway.</p> * * <strong>example:</strong> * <p>desctest</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The static IP address of the gateway device in the on-premises data center.</p> * * <strong>example:</strong> * <p>101.12.XX.XX</p> */ public Builder ipAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } /** * <p>The name of the customer gateway.</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>D32B3C26-6C6C-4988-93E9-D2A6444CE6AE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateCustomerGatewayResponseBody build() { return new CreateCustomerGatewayResponseBody(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/CreateDefaultVSwitchRequest.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 CreateDefaultVSwitchRequest} extends {@link RequestModel} * * <p>CreateDefaultVSwitchRequest</p> */ public class CreateDefaultVSwitchRequest 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("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") @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("ZoneId") @com.aliyun.core.annotation.Validation(required = true) private String zoneId; private CreateDefaultVSwitchRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; 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.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static CreateDefaultVSwitchRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @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 zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder<CreateDefaultVSwitchRequest, Builder> { private String clientToken; private Integer ipv6CidrBlock; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String zoneId; private Builder() { super(); } private Builder(CreateDefaultVSwitchRequest request) { super(request); this.clientToken = request.clientToken; 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.zoneId = request.zoneId; } /** * <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 set 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-88e9fe63****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; 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 default 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> * <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 zone ID of the default 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 CreateDefaultVSwitchRequest build() { return new CreateDefaultVSwitchRequest(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/CreateDefaultVSwitchResponse.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 CreateDefaultVSwitchResponse} extends {@link TeaModel} * * <p>CreateDefaultVSwitchResponse</p> */ public class CreateDefaultVSwitchResponse 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 CreateDefaultVSwitchResponseBody body; private CreateDefaultVSwitchResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateDefaultVSwitchResponse 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 CreateDefaultVSwitchResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateDefaultVSwitchResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateDefaultVSwitchResponseBody body); @Override CreateDefaultVSwitchResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateDefaultVSwitchResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateDefaultVSwitchResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateDefaultVSwitchResponse 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(CreateDefaultVSwitchResponseBody body) { this.body = body; return this; } @Override public CreateDefaultVSwitchResponse build() { return new CreateDefaultVSwitchResponse(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/CreateDefaultVSwitchResponseBody.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 CreateDefaultVSwitchResponseBody} extends {@link TeaModel} * * <p>CreateDefaultVSwitchResponseBody</p> */ public class CreateDefaultVSwitchResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; private CreateDefaultVSwitchResponseBody(Builder builder) { this.requestId = builder.requestId; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static CreateDefaultVSwitchResponseBody 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(CreateDefaultVSwitchResponseBody model) { this.requestId = model.requestId; this.vSwitchId = model.vSwitchId; } /** * <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 ID of the default vSwitch.</p> * * <strong>example:</strong> * <p>vsw-bp1a4b5qhmxftjimq****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } public CreateDefaultVSwitchResponseBody build() { return new CreateDefaultVSwitchResponseBody(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/CreateDefaultVpcRequest.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 CreateDefaultVpcRequest} extends {@link RequestModel} * * <p>CreateDefaultVpcRequest</p> */ public class CreateDefaultVpcRequest 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("EnableIpv6") private Boolean enableIpv6; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String 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") @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; private CreateDefaultVpcRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.enableIpv6 = builder.enableIpv6; this.ipv6CidrBlock = builder.ipv6CidrBlock; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CreateDefaultVpcRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @return ipv6CidrBlock */ public String 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 resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<CreateDefaultVpcRequest, Builder> { private String clientToken; private Boolean enableIpv6; private String ipv6CidrBlock; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateDefaultVpcRequest request) { super(request); this.clientToken = request.clientToken; this.enableIpv6 = request.enableIpv6; this.ipv6CidrBlock = request.ipv6CidrBlock; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; 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 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 enable IPv6. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableIpv6(Boolean enableIpv6) { this.putQueryParameter("EnableIpv6", enableIpv6); this.enableIpv6 = enableIpv6; return this; } /** * <p>The IPv6 CIDR block of the default VPC.</p> * <blockquote> * <p>When <strong>EnableIpv6</strong> is set to <strong>true</strong>, this parameter is required.</p> * </blockquote> * * <strong>example:</strong> * <p>2408:XXXX:346:b600::/56</p> */ public Builder ipv6CidrBlock(String 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 ID of the region to which the default 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> * * <strong>example:</strong> * <p>rg-acfmystnjq4****</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; } @Override public CreateDefaultVpcRequest build() { return new CreateDefaultVpcRequest(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/CreateDefaultVpcResponse.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 CreateDefaultVpcResponse} extends {@link TeaModel} * * <p>CreateDefaultVpcResponse</p> */ public class CreateDefaultVpcResponse 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 CreateDefaultVpcResponseBody body; private CreateDefaultVpcResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateDefaultVpcResponse 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 CreateDefaultVpcResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateDefaultVpcResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateDefaultVpcResponseBody body); @Override CreateDefaultVpcResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateDefaultVpcResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateDefaultVpcResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateDefaultVpcResponse 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(CreateDefaultVpcResponseBody body) { this.body = body; return this; } @Override public CreateDefaultVpcResponse build() { return new CreateDefaultVpcResponse(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/CreateDefaultVpcResponseBody.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 CreateDefaultVpcResponseBody} extends {@link TeaModel} * * <p>CreateDefaultVpcResponseBody</p> */ public class CreateDefaultVpcResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @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 CreateDefaultVpcResponseBody(Builder builder) { this.requestId = builder.requestId; this.routeTableId = builder.routeTableId; this.vRouterId = builder.vRouterId; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static CreateDefaultVpcResponseBody 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; } /** * @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 routeTableId; private String vRouterId; private String vpcId; private Builder() { } private Builder(CreateDefaultVpcResponseBody model) { this.requestId = model.requestId; 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 route table ID that is automatically created by the system after you create a default VPC.</p> * * <strong>example:</strong> * <p>vtb-bp1q1uirugzb1x32m****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } /** * <p>The vRouter ID that is automatically created by the system after you create a default VPC.</p> * * <strong>example:</strong> * <p>vrt-bp1lhl0taikrteen8****</p> */ public Builder vRouterId(String vRouterId) { this.vRouterId = vRouterId; return this; } /** * <p>The ID of the default VPC.</p> * * <strong>example:</strong> * <p>vpc-bp15zckdt37pq72zv****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public CreateDefaultVpcResponseBody build() { return new CreateDefaultVpcResponseBody(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/CreateDhcpOptionsSetRequest.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 CreateDhcpOptionsSetRequest} extends {@link RequestModel} * * <p>CreateDhcpOptionsSetRequest</p> */ public class CreateDhcpOptionsSetRequest 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("DhcpOptionsSetDescription") private String dhcpOptionsSetDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetName") private String dhcpOptionsSetName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DomainName") private String domainName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DomainNameServers") private String domainNameServers; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6LeaseTime") private String ipv6LeaseTime; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LeaseTime") private String leaseTime; @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; private CreateDhcpOptionsSetRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dhcpOptionsSetDescription = builder.dhcpOptionsSetDescription; this.dhcpOptionsSetName = builder.dhcpOptionsSetName; this.domainName = builder.domainName; this.domainNameServers = builder.domainNameServers; this.dryRun = builder.dryRun; this.ipv6LeaseTime = builder.ipv6LeaseTime; this.leaseTime = builder.leaseTime; 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; } public static Builder builder() { return new Builder(); } public static CreateDhcpOptionsSetRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dhcpOptionsSetDescription */ public String getDhcpOptionsSetDescription() { return this.dhcpOptionsSetDescription; } /** * @return dhcpOptionsSetName */ public String getDhcpOptionsSetName() { return this.dhcpOptionsSetName; } /** * @return domainName */ public String getDomainName() { return this.domainName; } /** * @return domainNameServers */ public String getDomainNameServers() { return this.domainNameServers; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipv6LeaseTime */ public String getIpv6LeaseTime() { return this.ipv6LeaseTime; } /** * @return leaseTime */ public String getLeaseTime() { return this.leaseTime; } /** * @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; } public static final class Builder extends Request.Builder<CreateDhcpOptionsSetRequest, Builder> { private String clientToken; private String dhcpOptionsSetDescription; private String dhcpOptionsSetName; private String domainName; private String domainNameServers; private Boolean dryRun; private String ipv6LeaseTime; private String leaseTime; 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 Builder() { super(); } private Builder(CreateDhcpOptionsSetRequest request) { super(request); this.clientToken = request.clientToken; this.dhcpOptionsSetDescription = request.dhcpOptionsSetDescription; this.dhcpOptionsSetName = request.dhcpOptionsSetName; this.domainName = request.domainName; this.domainNameServers = request.domainNameServers; this.dryRun = request.dryRun; this.ipv6LeaseTime = request.ipv6LeaseTime; this.leaseTime = request.leaseTime; 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; } /** * <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>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 DHCP options set.</p> * <p>The description must be 1 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>description</p> */ public Builder dhcpOptionsSetDescription(String dhcpOptionsSetDescription) { this.putQueryParameter("DhcpOptionsSetDescription", dhcpOptionsSetDescription); this.dhcpOptionsSetDescription = dhcpOptionsSetDescription; return this; } /** * <p>The name of the DHCP options set.</p> * <p>The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder dhcpOptionsSetName(String dhcpOptionsSetName) { this.putQueryParameter("DhcpOptionsSetName", dhcpOptionsSetName); this.dhcpOptionsSetName = dhcpOptionsSetName; return this; } /** * <p>The root domain. For example, you can set the value to example.com.</p> * <p>After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.</p> * * <strong>example:</strong> * <p>example.com</p> */ public Builder domainName(String domainName) { this.putQueryParameter("DomainName", domainName); this.domainName = domainName; return this; } /** * <p>The IP address of the DNS server. You can enter at most four DNS server IP addresses. Separate IP addresses with commas (,).</p> * <blockquote> * <p> If no IP address is specified, the Elastic Compute Service (ECS) instance uses the IP addresses 100.100.2.136 and 100.100.2.138, which are provided by Alibaba Cloud by default.</p> * </blockquote> * * <strong>example:</strong> * <p>192.XX.XX.123</p> */ public Builder domainNameServers(String domainNameServers) { this.putQueryParameter("DomainNameServers", domainNameServers); this.domainNameServers = domainNameServers; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request.</p> * <p><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 dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</p> * <p><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.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The lease time of the IPv6 addresses for the DHCP options set.</p> * <ul> * <li>If you use hours as the unit, valid values are <strong>24h to 1176h</strong> and <strong>87600h to 175200h</strong>. Default value: <strong>87600h</strong>.</li> * <li>If you use days as the unit, valid values are <strong>1d to 49d</strong> and <strong>3650d to 7300d</strong>. Default value: <strong>3650d</strong>.</li> * </ul> * <blockquote> * <p> When you enter a value, you must also specify the unit.</p> * </blockquote> * * <strong>example:</strong> * <p>3650d</p> */ public Builder ipv6LeaseTime(String ipv6LeaseTime) { this.putQueryParameter("Ipv6LeaseTime", ipv6LeaseTime); this.ipv6LeaseTime = ipv6LeaseTime; return this; } /** * <p>The lease time of the IPv4 addresses for the DHCP options set.</p> * <ul> * <li>If you use hours as the unit, valid values are <strong>24h to 1176h</strong> and <strong>87600h to 175200h</strong>. Default value: <strong>87600h</strong>.</li> * <li>If you use days as the unit, valid values are <strong>1d to 49d</strong> and <strong>3650d to 7300d</strong>. Default value: <strong>3650d</strong>.</li> * </ul> * <blockquote> * <p> When you enter a value, you must also specify the unit.</p> * </blockquote> * * <strong>example:</strong> * <p>3650d</p> */ public Builder leaseTime(String leaseTime) { this.putQueryParameter("LeaseTime", leaseTime); this.leaseTime = leaseTime; 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 to which the DHCP options set 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 to which the DHCP options set 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 tag of the resource.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateDhcpOptionsSetRequest build() { return new CreateDhcpOptionsSetRequest(this); } } /** * * {@link CreateDhcpOptionsSetRequest} extends {@link TeaModel} * * <p>CreateDhcpOptionsSetRequest</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>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 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/CreateDhcpOptionsSetResponse.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 CreateDhcpOptionsSetResponse} extends {@link TeaModel} * * <p>CreateDhcpOptionsSetResponse</p> */ public class CreateDhcpOptionsSetResponse 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 CreateDhcpOptionsSetResponseBody body; private CreateDhcpOptionsSetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateDhcpOptionsSetResponse 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 CreateDhcpOptionsSetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateDhcpOptionsSetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateDhcpOptionsSetResponseBody body); @Override CreateDhcpOptionsSetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateDhcpOptionsSetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateDhcpOptionsSetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateDhcpOptionsSetResponse 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(CreateDhcpOptionsSetResponseBody body) { this.body = body; return this; } @Override public CreateDhcpOptionsSetResponse build() { return new CreateDhcpOptionsSetResponse(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/CreateDhcpOptionsSetResponseBody.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 CreateDhcpOptionsSetResponseBody} extends {@link TeaModel} * * <p>CreateDhcpOptionsSetResponseBody</p> */ public class CreateDhcpOptionsSetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId") private String dhcpOptionsSetId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private CreateDhcpOptionsSetResponseBody(Builder builder) { this.dhcpOptionsSetId = builder.dhcpOptionsSetId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static CreateDhcpOptionsSetResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return dhcpOptionsSetId */ public String getDhcpOptionsSetId() { return this.dhcpOptionsSetId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder { private String dhcpOptionsSetId; private String requestId; private String resourceGroupId; private Builder() { } private Builder(CreateDhcpOptionsSetResponseBody model) { this.dhcpOptionsSetId = model.dhcpOptionsSetId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; } /** * <p>The ID of the DHCP options set that is created.</p> * * <strong>example:</strong> * <p>dopt-o6w0df4epg9zo8isy****</p> */ public Builder dhcpOptionsSetId(String dhcpOptionsSetId) { this.dhcpOptionsSetId = dhcpOptionsSetId; 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 ID of the resource group to which the DHCP options set belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } public CreateDhcpOptionsSetResponseBody build() { return new CreateDhcpOptionsSetResponseBody(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/CreateExpressCloudConnectionRequest.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 CreateExpressCloudConnectionRequest} extends {@link RequestModel} * * <p>CreateExpressCloudConnectionRequest</p> */ public class CreateExpressCloudConnectionRequest extends Request { @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("ContactMail") private String contactMail; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ContactTel") private String contactTel; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IDCardNo") private String IDCardNo; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IdcSP") @com.aliyun.core.annotation.Validation(required = true) private String idcSP; @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("PeerCity") private String peerCity; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerLocation") @com.aliyun.core.annotation.Validation(required = true) 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("RedundantEccId") private String redundantEccId; @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 CreateExpressCloudConnectionRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.contactMail = builder.contactMail; this.contactTel = builder.contactTel; this.description = builder.description; this.IDCardNo = builder.IDCardNo; this.idcSP = builder.idcSP; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerCity = builder.peerCity; this.peerLocation = builder.peerLocation; this.portType = builder.portType; this.redundantEccId = builder.redundantEccId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CreateExpressCloudConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return contactMail */ public String getContactMail() { return this.contactMail; } /** * @return contactTel */ public String getContactTel() { return this.contactTel; } /** * @return description */ public String getDescription() { return this.description; } /** * @return IDCardNo */ public String getIDCardNo() { return this.IDCardNo; } /** * @return idcSP */ public String getIdcSP() { return this.idcSP; } /** * @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 peerCity */ public String getPeerCity() { return this.peerCity; } /** * @return peerLocation */ public String getPeerLocation() { return this.peerLocation; } /** * @return portType */ public String getPortType() { return this.portType; } /** * @return redundantEccId */ public String getRedundantEccId() { return this.redundantEccId; } /** * @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<CreateExpressCloudConnectionRequest, Builder> { private Integer bandwidth; private String contactMail; private String contactTel; private String description; private String IDCardNo; private String idcSP; private String name; private String ownerAccount; private Long ownerId; private String peerCity; private String peerLocation; private String portType; private String redundantEccId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateExpressCloudConnectionRequest request) { super(request); this.bandwidth = request.bandwidth; this.contactMail = request.contactMail; this.contactTel = request.contactTel; this.description = request.description; this.IDCardNo = request.IDCardNo; this.idcSP = request.idcSP; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerCity = request.peerCity; this.peerLocation = request.peerLocation; this.portType = request.portType; this.redundantEccId = request.redundantEccId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The bandwidth for ECC, which corresponds to the bandwidth for the underlying circuit.</p> * <p>Unit: Mbit/s.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The email address of the contact who applies for ECC.</p> * * <strong>example:</strong> * <p><a href="mailto:XX@example.com">XX@example.com</a></p> */ public Builder contactMail(String contactMail) { this.putQueryParameter("ContactMail", contactMail); this.contactMail = contactMail; return this; } /** * <p>The phone number of the contact who applies for ECC.</p> * * <strong>example:</strong> * <p>132*********</p> */ public Builder contactTel(String contactTel) { this.putQueryParameter("ContactTel", contactTel); this.contactTel = contactTel; return this; } /** * <p>The description of ECC.</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>ECC</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The ID card number of the contact who applies for ECC.</p> * * <strong>example:</strong> * <p>32*****************</p> */ public Builder IDCardNo(String IDCardNo) { this.putQueryParameter("IDCardNo", IDCardNo); this.IDCardNo = IDCardNo; return this; } /** * <p>The Internet service provider (ISP) for the data center.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>CU</p> */ public Builder idcSP(String idcSP) { this.putQueryParameter("IdcSP", idcSP); this.idcSP = idcSP; return this; } /** * <p>The name of the ECC instance.</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 but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>doctest</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 city where the data center is located.</p> * * <strong>example:</strong> * <p>Hangzhou</p> */ public Builder peerCity(String peerCity) { this.putQueryParameter("PeerCity", peerCity); this.peerCity = peerCity; return this; } /** * <p>The geographical location of the data center.</p> * <blockquote> * <p>It must be accurate to house number-floor-room number-server rack number.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>**city**district/county**road**number**property or building name**building**floor**room number**server rack number**server rack name**device**port</p> */ public Builder peerLocation(String peerLocation) { this.putQueryParameter("PeerLocation", peerLocation); this.peerLocation = peerLocation; return this; } /** * <p>The port of the Express Connect circuit. Valid values:</p> * <ul> * <li>100Base-T</li> * <li>1000Base-T</li> * <li>1000Base-LX</li> * <li>10GBase-T</li> * <li>10GBase-LR</li> * </ul> * * <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 standby Express Connect circuit.</p> * * <strong>example:</strong> * <p>ecc-d****</p> */ public Builder redundantEccId(String redundantEccId) { this.putQueryParameter("RedundantEccId", redundantEccId); this.redundantEccId = redundantEccId; return this; } /** * <p>The region ID of the ECC instance.</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 CreateExpressCloudConnectionRequest build() { return new CreateExpressCloudConnectionRequest(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/CreateExpressCloudConnectionResponse.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 CreateExpressCloudConnectionResponse} extends {@link TeaModel} * * <p>CreateExpressCloudConnectionResponse</p> */ public class CreateExpressCloudConnectionResponse 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 CreateExpressCloudConnectionResponseBody body; private CreateExpressCloudConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateExpressCloudConnectionResponse 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 CreateExpressCloudConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateExpressCloudConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateExpressCloudConnectionResponseBody body); @Override CreateExpressCloudConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateExpressCloudConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateExpressCloudConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateExpressCloudConnectionResponse 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(CreateExpressCloudConnectionResponseBody body) { this.body = body; return this; } @Override public CreateExpressCloudConnectionResponse build() { return new CreateExpressCloudConnectionResponse(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/CreateExpressCloudConnectionResponseBody.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 CreateExpressCloudConnectionResponseBody} extends {@link TeaModel} * * <p>CreateExpressCloudConnectionResponseBody</p> */ public class CreateExpressCloudConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("EccId") private String eccId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateExpressCloudConnectionResponseBody(Builder builder) { this.eccId = builder.eccId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateExpressCloudConnectionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return eccId */ public String getEccId() { return this.eccId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String eccId; private String requestId; private Builder() { } private Builder(CreateExpressCloudConnectionResponseBody model) { this.eccId = model.eccId; this.requestId = model.requestId; } /** * <p>The ID of the ECC instance.</p> * * <strong>example:</strong> * <p>ecc-jg************</p> */ public Builder eccId(String eccId) { this.eccId = eccId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C004F022-1CC2-4958-9937-675513A2CD7E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateExpressCloudConnectionResponseBody build() { return new CreateExpressCloudConnectionResponseBody(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/CreateExpressConnectTrafficQosQueueRequest.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 CreateExpressConnectTrafficQosQueueRequest} extends {@link RequestModel} * * <p>CreateExpressConnectTrafficQosQueueRequest</p> */ public class CreateExpressConnectTrafficQosQueueRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPercent") private String bandwidthPercent; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @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("QosId") @com.aliyun.core.annotation.Validation(required = true) private String qosId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueDescription") private String queueDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueName") private String queueName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueType") @com.aliyun.core.annotation.Validation(required = true) private String queueType; @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; private CreateExpressConnectTrafficQosQueueRequest(Builder builder) { super(builder); this.bandwidthPercent = builder.bandwidthPercent; this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.qosId = builder.qosId; this.queueDescription = builder.queueDescription; this.queueName = builder.queueName; this.queueType = builder.queueType; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static CreateExpressConnectTrafficQosQueueRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPercent */ public String getBandwidthPercent() { return this.bandwidthPercent; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return queueDescription */ public String getQueueDescription() { return this.queueDescription; } /** * @return queueName */ public String getQueueName() { return this.queueName; } /** * @return queueType */ public String getQueueType() { return this.queueType; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder<CreateExpressConnectTrafficQosQueueRequest, Builder> { private String bandwidthPercent; private String clientToken; private String ownerAccount; private Long ownerId; private String qosId; private String queueDescription; private String queueName; private String queueType; private String regionId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(CreateExpressConnectTrafficQosQueueRequest request) { super(request); this.bandwidthPercent = request.bandwidthPercent; this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.qosId = request.qosId; this.queueDescription = request.queueDescription; this.queueName = request.queueName; this.queueType = request.queueType; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The percentage of bandwidth allocated to the QoS queue.</p> * <ul> * <li>If QueueType is set to <strong>Medium</strong>, this parameter is required. Valid values: 1 to 100.</li> * <li>If QueueType is set to <strong>Default</strong>, a value of - is returned.</li> * </ul> * * <strong>example:</strong> * <p>100</p> */ public Builder bandwidthPercent(String bandwidthPercent) { this.putQueryParameter("BandwidthPercent", bandwidthPercent); this.bandwidthPercent = bandwidthPercent; 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. 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>0c593ea1-3bea-11e9-b96b-88e9fe637760</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; 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 QoS policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.putQueryParameter("QosId", qosId); this.qosId = qosId; return this; } /** * <p>The description of the QoS queue.</p> * <p>It must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>qos-queue-test</p> */ public Builder queueDescription(String queueDescription) { this.putQueryParameter("QueueDescription", queueDescription); this.queueDescription = queueDescription; return this; } /** * <p>The name of the QoS queue.</p> * <p>It must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>qos-queue-test</p> */ public Builder queueName(String queueName) { this.putQueryParameter("QueueName", queueName); this.queueName = queueName; return this; } /** * <p>The priority of the QoS queue. Valid values:</p> * <ul> * <li><strong>High</strong></li> * <li><strong>Medium</strong></li> * <li><strong>Default</strong>: default queue.</li> * </ul> * <blockquote> * <p>You cannot create a QoS queue of the default priority.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>High</p> */ public Builder queueType(String queueType) { this.putQueryParameter("QueueType", queueType); this.queueType = queueType; return this; } /** * <p>The region ID of the QoS policy.</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; } @Override public CreateExpressConnectTrafficQosQueueRequest build() { return new CreateExpressConnectTrafficQosQueueRequest(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/CreateExpressConnectTrafficQosQueueResponse.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 CreateExpressConnectTrafficQosQueueResponse} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosQueueResponse</p> */ public class CreateExpressConnectTrafficQosQueueResponse 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 CreateExpressConnectTrafficQosQueueResponseBody body; private CreateExpressConnectTrafficQosQueueResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateExpressConnectTrafficQosQueueResponse 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 CreateExpressConnectTrafficQosQueueResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateExpressConnectTrafficQosQueueResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateExpressConnectTrafficQosQueueResponseBody body); @Override CreateExpressConnectTrafficQosQueueResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateExpressConnectTrafficQosQueueResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateExpressConnectTrafficQosQueueResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateExpressConnectTrafficQosQueueResponse 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(CreateExpressConnectTrafficQosQueueResponseBody body) { this.body = body; return this; } @Override public CreateExpressConnectTrafficQosQueueResponse build() { return new CreateExpressConnectTrafficQosQueueResponse(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/CreateExpressConnectTrafficQosQueueResponseBody.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 CreateExpressConnectTrafficQosQueueResponseBody} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosQueueResponseBody</p> */ public class CreateExpressConnectTrafficQosQueueResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("QosId") private String qosId; @com.aliyun.core.annotation.NameInMap("QueueId") private String queueId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateExpressConnectTrafficQosQueueResponseBody(Builder builder) { this.qosId = builder.qosId; this.queueId = builder.queueId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateExpressConnectTrafficQosQueueResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return queueId */ public String getQueueId() { return this.queueId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String qosId; private String queueId; private String requestId; private Builder() { } private Builder(CreateExpressConnectTrafficQosQueueResponseBody model) { this.qosId = model.qosId; this.queueId = model.queueId; this.requestId = model.requestId; } /** * <p>The ID of the QoS policy.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.qosId = qosId; return this; } /** * <p>The ID of the QoS queue.</p> * * <strong>example:</strong> * <p>qos-queue-9nyx2u7n71s2rcy4n5</p> */ public Builder queueId(String queueId) { this.queueId = queueId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateExpressConnectTrafficQosQueueResponseBody build() { return new CreateExpressConnectTrafficQosQueueResponseBody(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/CreateExpressConnectTrafficQosRequest.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 CreateExpressConnectTrafficQosRequest} extends {@link RequestModel} * * <p>CreateExpressConnectTrafficQosRequest</p> */ public class CreateExpressConnectTrafficQosRequest 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("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("QosDescription") private String qosDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosName") private String qosName; @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("Tags") private java.util.List<Tags> tags; private CreateExpressConnectTrafficQosRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.qosDescription = builder.qosDescription; this.qosName = builder.qosName; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static CreateExpressConnectTrafficQosRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return qosDescription */ public String getQosDescription() { return this.qosDescription; } /** * @return qosName */ public String getQosName() { return this.qosName; } /** * @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 tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<CreateExpressConnectTrafficQosRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String qosDescription; private String qosName; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(CreateExpressConnectTrafficQosRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.qosDescription = request.qosDescription; this.qosName = request.qosName; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.tags = request.tags; } /** * <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>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; 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 QoS policy.</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>qos-test</p> */ public Builder qosDescription(String qosDescription) { this.putQueryParameter("QosDescription", qosDescription); this.qosDescription = qosDescription; return this; } /** * <p>The name of the QoS policy.</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>qos-test</p> */ public Builder qosName(String qosName) { this.putQueryParameter("QosName", qosName); this.qosName = qosName; return this; } /** * <p>The region ID of the QoS policy.</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.</p> * * <strong>example:</strong> * <p>rg-acfmxazfdgdg****</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; } /** * <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 CreateExpressConnectTrafficQosRequest build() { return new CreateExpressConnectTrafficQosRequest(this); } } /** * * {@link CreateExpressConnectTrafficQosRequest} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosRequest</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 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 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/CreateExpressConnectTrafficQosResponse.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 CreateExpressConnectTrafficQosResponse} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosResponse</p> */ public class CreateExpressConnectTrafficQosResponse 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 CreateExpressConnectTrafficQosResponseBody body; private CreateExpressConnectTrafficQosResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateExpressConnectTrafficQosResponse 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 CreateExpressConnectTrafficQosResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateExpressConnectTrafficQosResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateExpressConnectTrafficQosResponseBody body); @Override CreateExpressConnectTrafficQosResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateExpressConnectTrafficQosResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateExpressConnectTrafficQosResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateExpressConnectTrafficQosResponse 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(CreateExpressConnectTrafficQosResponseBody body) { this.body = body; return this; } @Override public CreateExpressConnectTrafficQosResponse build() { return new CreateExpressConnectTrafficQosResponse(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/CreateExpressConnectTrafficQosResponseBody.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 CreateExpressConnectTrafficQosResponseBody} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosResponseBody</p> */ public class CreateExpressConnectTrafficQosResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("QosId") private String qosId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateExpressConnectTrafficQosResponseBody(Builder builder) { this.qosId = builder.qosId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateExpressConnectTrafficQosResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String qosId; private String requestId; private Builder() { } private Builder(CreateExpressConnectTrafficQosResponseBody model) { this.qosId = model.qosId; this.requestId = model.requestId; } /** * <p>The ID of the QoS policy.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.qosId = qosId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>DC668356-BCB4-42FD-9BC3-FA2B2E04B634</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateExpressConnectTrafficQosResponseBody build() { return new CreateExpressConnectTrafficQosResponseBody(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/CreateExpressConnectTrafficQosRuleRequest.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 CreateExpressConnectTrafficQosRuleRequest} extends {@link RequestModel} * * <p>CreateExpressConnectTrafficQosRuleRequest</p> */ public class CreateExpressConnectTrafficQosRuleRequest 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("DstCidr") private String dstCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DstIPv6Cidr") private String dstIPv6Cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DstPortRange") private String dstPortRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MatchDscp") private Integer matchDscp; @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") @com.aliyun.core.annotation.Validation(required = true) private Integer priority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Protocol") @com.aliyun.core.annotation.Validation(required = true) private String protocol; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosId") @com.aliyun.core.annotation.Validation(required = true) private String qosId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueId") @com.aliyun.core.annotation.Validation(required = true) private String queueId; @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("RemarkingDscp") private Integer remarkingDscp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleDescription") private String ruleDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleName") private String ruleName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SrcCidr") private String srcCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SrcIPv6Cidr") private String srcIPv6Cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SrcPortRange") private String srcPortRange; private CreateExpressConnectTrafficQosRuleRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dstCidr = builder.dstCidr; this.dstIPv6Cidr = builder.dstIPv6Cidr; this.dstPortRange = builder.dstPortRange; this.matchDscp = builder.matchDscp; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.priority = builder.priority; this.protocol = builder.protocol; this.qosId = builder.qosId; this.queueId = builder.queueId; this.regionId = builder.regionId; this.remarkingDscp = builder.remarkingDscp; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.ruleDescription = builder.ruleDescription; this.ruleName = builder.ruleName; this.srcCidr = builder.srcCidr; this.srcIPv6Cidr = builder.srcIPv6Cidr; this.srcPortRange = builder.srcPortRange; } public static Builder builder() { return new Builder(); } public static CreateExpressConnectTrafficQosRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dstCidr */ public String getDstCidr() { return this.dstCidr; } /** * @return dstIPv6Cidr */ public String getDstIPv6Cidr() { return this.dstIPv6Cidr; } /** * @return dstPortRange */ public String getDstPortRange() { return this.dstPortRange; } /** * @return matchDscp */ public Integer getMatchDscp() { return this.matchDscp; } /** * @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 protocol */ public String getProtocol() { return this.protocol; } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return queueId */ public String getQueueId() { return this.queueId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remarkingDscp */ public Integer getRemarkingDscp() { return this.remarkingDscp; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return ruleDescription */ public String getRuleDescription() { return this.ruleDescription; } /** * @return ruleName */ public String getRuleName() { return this.ruleName; } /** * @return srcCidr */ public String getSrcCidr() { return this.srcCidr; } /** * @return srcIPv6Cidr */ public String getSrcIPv6Cidr() { return this.srcIPv6Cidr; } /** * @return srcPortRange */ public String getSrcPortRange() { return this.srcPortRange; } public static final class Builder extends Request.Builder<CreateExpressConnectTrafficQosRuleRequest, Builder> { private String clientToken; private String dstCidr; private String dstIPv6Cidr; private String dstPortRange; private Integer matchDscp; private String ownerAccount; private Long ownerId; private Integer priority; private String protocol; private String qosId; private String queueId; private String regionId; private Integer remarkingDscp; private String resourceOwnerAccount; private String ruleDescription; private String ruleName; private String srcCidr; private String srcIPv6Cidr; private String srcPortRange; private Builder() { super(); } private Builder(CreateExpressConnectTrafficQosRuleRequest request) { super(request); this.clientToken = request.clientToken; this.dstCidr = request.dstCidr; this.dstIPv6Cidr = request.dstIPv6Cidr; this.dstPortRange = request.dstPortRange; this.matchDscp = request.matchDscp; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.priority = request.priority; this.protocol = request.protocol; this.qosId = request.qosId; this.queueId = request.queueId; this.regionId = request.regionId; this.remarkingDscp = request.remarkingDscp; this.resourceOwnerAccount = request.resourceOwnerAccount; this.ruleDescription = request.ruleDescription; this.ruleName = request.ruleName; this.srcCidr = request.srcCidr; this.srcIPv6Cidr = request.srcIPv6Cidr; this.srcPortRange = request.srcPortRange; } /** * <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.</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 destination IPv4 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1.1.1.0/24</p> */ public Builder dstCidr(String dstCidr) { this.putQueryParameter("DstCidr", dstCidr); this.dstCidr = dstCidr; return this; } /** * <p>The destination IPv6 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>2001:0db8:1234:5678::/64</p> */ public Builder dstIPv6Cidr(String dstIPv6Cidr) { this.putQueryParameter("DstIPv6Cidr", dstIPv6Cidr); this.dstIPv6Cidr = dstIPv6Cidr; return this; } /** * <p>The range of destination ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number. Different protocols correspond to different ports. Valid values:</p> * <ul> * <li><strong>ALL</strong> (uneditable): -1/-1.</li> * <li><strong>ICMP(IPv4)</strong> (uneditable): -1/-1.</li> * <li><strong>ICMPv6(IPv6)</strong> (uneditable): -1/-1.</li> * <li><strong>TCP</strong> (editable): -1/-1.</li> * <li><strong>UDP</strong> (editable): -1/-1.</li> * <li><strong>GRE</strong> (uneditable): -1/-1.</li> * <li><strong>SSH</strong> (uneditable): 22/22.</li> * <li><strong>Telnet</strong> (uneditable): 23/23.</li> * <li><strong>HTTP</strong> (uneditable): 80/80.</li> * <li><strong>HTTPS</strong> (uneditable): 443/443.</li> * <li><strong>MS SQL</strong> (uneditable): 1443/1443.</li> * <li><strong>Oracle</strong> (uneditable): 1521/1521.</li> * <li><strong>MySql</strong> (uneditable): 3306/3306.</li> * <li><strong>RDP</strong> (uneditable): 3389/3389.</li> * <li><strong>PostgreSQL</strong> (uneditable): 5432/5432.</li> * <li><strong>Redis</strong> (uneditable): 6379/6379.</li> * </ul> * * <strong>example:</strong> * <p>-1/-1</p> */ public Builder dstPortRange(String dstPortRange) { this.putQueryParameter("DstPortRange", dstPortRange); this.dstPortRange = dstPortRange; return this; } /** * <p>The DSCP value that matches the QoS rule traffic. Valid values: <strong>0</strong> to <strong>63</strong>. If no value is matched, the value is -1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder matchDscp(Integer matchDscp) { this.putQueryParameter("MatchDscp", matchDscp); this.matchDscp = matchDscp; 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 QoS rule. Valid values: <strong>1</strong> to <strong>9000</strong>. A larger value indicates a higher priority. The priority of each QoS rule must be unique in the same QoS policy.</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 protocol of the QoS rule. Valid values:</p> * <ul> * <li><strong>ALL</strong></li> * <li><strong>ICMP(IPv4)</strong></li> * <li><strong>ICMPv6(IPv6)</strong></li> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * <li><strong>GRE</strong></li> * <li><strong>SSH</strong></li> * <li><strong>Telnet</strong></li> * <li><strong>HTTP</strong></li> * <li><strong>HTTPS</strong></li> * <li><strong>MS SQL</strong></li> * <li><strong>Oracle</strong></li> * <li><strong>MySql</strong></li> * <li><strong>RDP</strong></li> * <li><strong>PostgreSQL</strong></li> * <li><strong>Redis</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ALL</p> */ public Builder protocol(String protocol) { this.putQueryParameter("Protocol", protocol); this.protocol = protocol; return this; } /** * <p>The ID of the QoS policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.putQueryParameter("QosId", qosId); this.qosId = qosId; return this; } /** * <p>The ID of the QoS queue.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-queue-9nyx2u7n71s2rcy4n5</p> */ public Builder queueId(String queueId) { this.putQueryParameter("QueueId", queueId); this.queueId = queueId; return this; } /** * <p>The region ID of the QoS policy.</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 new DSCP value. Valid values: <strong>0</strong> to <strong>63</strong>. If you do not change the value, set the value to -1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder remarkingDscp(Integer remarkingDscp) { this.putQueryParameter("RemarkingDscp", remarkingDscp); this.remarkingDscp = remarkingDscp; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The description of the QoS 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>qos-rule-test</p> */ public Builder ruleDescription(String ruleDescription) { this.putQueryParameter("RuleDescription", ruleDescription); this.ruleDescription = ruleDescription; return this; } /** * <p>The name of the QoS 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>qos-rule-test</p> */ public Builder ruleName(String ruleName) { this.putQueryParameter("RuleName", ruleName); this.ruleName = ruleName; return this; } /** * <p>The source IPv4 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1.1.1.0/24</p> */ public Builder srcCidr(String srcCidr) { this.putQueryParameter("SrcCidr", srcCidr); this.srcCidr = srcCidr; return this; } /** * <p>The source IPv6 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>2001:0db8:1234:5678::/64</p> */ public Builder srcIPv6Cidr(String srcIPv6Cidr) { this.putQueryParameter("SrcIPv6Cidr", srcIPv6Cidr); this.srcIPv6Cidr = srcIPv6Cidr; return this; } /** * <p>The range of source ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number.</p> * * <strong>example:</strong> * <p>-1/-1</p> */ public Builder srcPortRange(String srcPortRange) { this.putQueryParameter("SrcPortRange", srcPortRange); this.srcPortRange = srcPortRange; return this; } @Override public CreateExpressConnectTrafficQosRuleRequest build() { return new CreateExpressConnectTrafficQosRuleRequest(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/CreateExpressConnectTrafficQosRuleResponse.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 CreateExpressConnectTrafficQosRuleResponse} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosRuleResponse</p> */ public class CreateExpressConnectTrafficQosRuleResponse 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 CreateExpressConnectTrafficQosRuleResponseBody body; private CreateExpressConnectTrafficQosRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateExpressConnectTrafficQosRuleResponse 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 CreateExpressConnectTrafficQosRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateExpressConnectTrafficQosRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateExpressConnectTrafficQosRuleResponseBody body); @Override CreateExpressConnectTrafficQosRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateExpressConnectTrafficQosRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateExpressConnectTrafficQosRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateExpressConnectTrafficQosRuleResponse 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(CreateExpressConnectTrafficQosRuleResponseBody body) { this.body = body; return this; } @Override public CreateExpressConnectTrafficQosRuleResponse build() { return new CreateExpressConnectTrafficQosRuleResponse(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/CreateExpressConnectTrafficQosRuleResponseBody.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 CreateExpressConnectTrafficQosRuleResponseBody} extends {@link TeaModel} * * <p>CreateExpressConnectTrafficQosRuleResponseBody</p> */ public class CreateExpressConnectTrafficQosRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("QosId") private String qosId; @com.aliyun.core.annotation.NameInMap("QueueId") private String queueId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("RuleId") private String ruleId; private CreateExpressConnectTrafficQosRuleResponseBody(Builder builder) { this.qosId = builder.qosId; this.queueId = builder.queueId; this.requestId = builder.requestId; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static CreateExpressConnectTrafficQosRuleResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return queueId */ public String getQueueId() { return this.queueId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return ruleId */ public String getRuleId() { return this.ruleId; } public static final class Builder { private String qosId; private String queueId; private String requestId; private String ruleId; private Builder() { } private Builder(CreateExpressConnectTrafficQosRuleResponseBody model) { this.qosId = model.qosId; this.queueId = model.queueId; this.requestId = model.requestId; this.ruleId = model.ruleId; } /** * <p>The ID of the QoS policy.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.qosId = qosId; return this; } /** * <p>The ID of the QoS queue.</p> * * <strong>example:</strong> * <p>qos-queue-9nyx2u7n71s2rcy4n5</p> */ public Builder queueId(String queueId) { this.queueId = queueId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>606998F0-B94D-48FE-8316-ACA81BB230DA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the QoS rule.</p> * * <strong>example:</strong> * <p>qos-rule-iugg0l9x27f2nocouj</p> */ public Builder ruleId(String ruleId) { this.ruleId = ruleId; return this; } public CreateExpressConnectTrafficQosRuleResponseBody build() { return new CreateExpressConnectTrafficQosRuleResponseBody(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/CreateFailoverTestJobRequest.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 CreateFailoverTestJobRequest} extends {@link RequestModel} * * <p>CreateFailoverTestJobRequest</p> */ public class CreateFailoverTestJobRequest 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("JobDuration") @com.aliyun.core.annotation.Validation(required = true, maximum = 4320, minimum = 1) private Integer jobDuration; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("JobType") @com.aliyun.core.annotation.Validation(required = true) private String jobType; @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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private CreateFailoverTestJobRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.dryRun = builder.dryRun; this.jobDuration = builder.jobDuration; this.jobType = builder.jobType; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static CreateFailoverTestJobRequest 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 jobDuration */ public Integer getJobDuration() { return this.jobDuration; } /** * @return jobType */ public String getJobType() { return this.jobType; } /** * @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 resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<CreateFailoverTestJobRequest, Builder> { private String clientToken; private String description; private Boolean dryRun; private Integer jobDuration; private String jobType; private String name; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private String resourceType; private Builder() { super(); } private Builder(CreateFailoverTestJobRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.dryRun = request.dryRun; this.jobDuration = request.jobDuration; this.jobType = request.jobType; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceType = request.resourceType; } /** * <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-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of the failover test.</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>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>If you set the value to true, the system performs only a dry run without actually performing the actual request. If you set the value to false, the system 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.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The duration of the failover test. Unit: minutes. Valid values: <strong>1 to 4320</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>60</p> */ public Builder jobDuration(Integer jobDuration) { this.putQueryParameter("JobDuration", jobDuration); this.jobDuration = jobDuration; return this; } /** * <p>The type of the failover test. Valid values:</p> * <ul> * <li><strong>StartNow</strong></li> * <li><strong>StartLater</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>StartNow</p> */ public Builder jobType(String jobType) { this.putQueryParameter("JobType", jobType); this.jobType = jobType; return this; } /** * <p>The name of the failover test.</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>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 region ID of the failover test.</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; } /** * <p>The IDs of failover test resources. You can add at most 16 resources.</p> * <p>This parameter is required.</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The resource type of the failover test. Set the value to <strong>PHYSICALCONNECTION</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public CreateFailoverTestJobRequest build() { return new CreateFailoverTestJobRequest(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/CreateFailoverTestJobResponse.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 CreateFailoverTestJobResponse} extends {@link TeaModel} * * <p>CreateFailoverTestJobResponse</p> */ public class CreateFailoverTestJobResponse 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 CreateFailoverTestJobResponseBody body; private CreateFailoverTestJobResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFailoverTestJobResponse 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 CreateFailoverTestJobResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFailoverTestJobResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFailoverTestJobResponseBody body); @Override CreateFailoverTestJobResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFailoverTestJobResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFailoverTestJobResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFailoverTestJobResponse 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(CreateFailoverTestJobResponseBody body) { this.body = body; return this; } @Override public CreateFailoverTestJobResponse build() { return new CreateFailoverTestJobResponse(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/CreateFailoverTestJobResponseBody.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 CreateFailoverTestJobResponseBody} extends {@link TeaModel} * * <p>CreateFailoverTestJobResponseBody</p> */ public class CreateFailoverTestJobResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("JobId") private String jobId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateFailoverTestJobResponseBody(Builder builder) { this.jobId = builder.jobId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateFailoverTestJobResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String jobId; private String requestId; private Builder() { } private Builder(CreateFailoverTestJobResponseBody model) { this.jobId = model.jobId; this.requestId = model.requestId; } /** * <p>The ID of the failover test.</p> * * <strong>example:</strong> * <p>ftj-xxxxxxxxx</p> */ public Builder jobId(String jobId) { this.jobId = jobId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C44F62BE-9CE7-4277-B117-69243F3988BF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateFailoverTestJobResponseBody build() { return new CreateFailoverTestJobResponseBody(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/CreateFlowLogRequest.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 CreateFlowLogRequest} extends {@link RequestModel} * * <p>CreateFlowLogRequest</p> */ public class CreateFlowLogRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AggregationInterval") private Integer aggregationInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FlowLogName") private String flowLogName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogStoreName") private String logStoreName; @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("ProjectName") private String projectName; @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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @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("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @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("TrafficPath") private java.util.List<String> trafficPath; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficType") @com.aliyun.core.annotation.Validation(required = true) private String trafficType; private CreateFlowLogRequest(Builder builder) { super(builder); this.aggregationInterval = builder.aggregationInterval; this.description = builder.description; this.flowLogName = builder.flowLogName; this.ipVersion = builder.ipVersion; this.logStoreName = builder.logStoreName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.projectName = builder.projectName; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; this.tag = builder.tag; this.trafficPath = builder.trafficPath; this.trafficType = builder.trafficType; } public static Builder builder() { return new Builder(); } public static CreateFlowLogRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aggregationInterval */ public Integer getAggregationInterval() { return this.aggregationInterval; } /** * @return description */ public String getDescription() { return this.description; } /** * @return flowLogName */ public String getFlowLogName() { return this.flowLogName; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return logStoreName */ public String getLogStoreName() { return this.logStoreName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return projectName */ public String getProjectName() { return this.projectName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return trafficPath */ public java.util.List<String> getTrafficPath() { return this.trafficPath; } /** * @return trafficType */ public String getTrafficType() { return this.trafficType; } public static final class Builder extends Request.Builder<CreateFlowLogRequest, Builder> { private Integer aggregationInterval; private String description; private String flowLogName; private String ipVersion; private String logStoreName; private String ownerAccount; private Long ownerId; private String projectName; private String regionId; private String resourceGroupId; private String resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private java.util.List<Tag> tag; private java.util.List<String> trafficPath; private String trafficType; private Builder() { super(); } private Builder(CreateFlowLogRequest request) { super(request); this.aggregationInterval = request.aggregationInterval; this.description = request.description; this.flowLogName = request.flowLogName; this.ipVersion = request.ipVersion; this.logStoreName = request.logStoreName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.projectName = request.projectName; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.tag = request.tag; this.trafficPath = request.trafficPath; this.trafficType = request.trafficType; } /** * <p>The sampling interval of the flow log. Unit: seconds. Valid values: <strong>1</strong>, <strong>5</strong>, and <strong>10</strong> (default).</p> * * <strong>example:</strong> * <p>10</p> */ public Builder aggregationInterval(Integer aggregationInterval) { this.putQueryParameter("AggregationInterval", aggregationInterval); this.aggregationInterval = aggregationInterval; return this; } /** * <p>The description of the flow log.</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 Flowlog.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the flow log.</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>myFlowlog</p> */ public Builder flowLogName(String flowLogName) { this.putQueryParameter("FlowLogName", flowLogName); this.flowLogName = flowLogName; return this; } /** * IpVersion. */ public Builder ipVersion(String ipVersion) { this.putQueryParameter("IpVersion", ipVersion); this.ipVersion = ipVersion; return this; } /** * <p>The name of the Logstore that stores the captured traffic data.</p> * <ul> * <li>The name can contain only lowercase letters, digits, hyphens (-), and underscores (_).</li> * <li>The name must start and end with a lowercase letter or a digit.</li> * <li>The name must be 3 to 63 characters in length.</li> * </ul> * * <strong>example:</strong> * <p>FlowLogStore</p> */ public Builder logStoreName(String logStoreName) { this.putQueryParameter("LogStoreName", logStoreName); this.logStoreName = logStoreName; 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 name of the project that stores the captured traffic data.</p> * <ul> * <li>The name can contain only lowercase letters, digits, and hyphens (-).</li> * <li>The name must start and end with a lowercase letter or a digit.</li> * <li>The name must be 3 to 63 characters in length.</li> * </ul> * * <strong>example:</strong> * <p>FlowLogProject</p> */ public Builder projectName(String projectName) { this.putQueryParameter("ProjectName", projectName); this.projectName = projectName; return this; } /** * <p>The ID of the region where you want to create the flow log. 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-qingdao</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazdjdhd****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the resource whose traffic you want to capture.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eni-askldfas****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; 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 type of the resource whose traffic you want to capture. Valid values:</p> * <ul> * <li><strong>NetworkInterface</strong>: elastic network interface (ENI)</li> * <li><strong>VSwitch</strong>: all ENIs in a vSwitch</li> * <li><strong>VPC</strong>: all ENIs in a virtual private cloud (VPC)</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>NetworkInterface</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; 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 scope of the traffic that you want to capture. Valid values:</p> * <ul> * <li><strong>all</strong>: all traffic.</li> * <li><strong>internetGateway</strong>: Internet traffic.</li> * </ul> */ public Builder trafficPath(java.util.List<String> trafficPath) { this.putQueryParameter("TrafficPath", trafficPath); this.trafficPath = trafficPath; return this; } /** * <p>The type of traffic that you want to capture. Valid values:</p> * <ul> * <li><strong>All</strong>: all traffic</li> * <li><strong>Allow</strong>: traffic that is allowed</li> * <li><strong>Drop</strong>: traffic that is rejected</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>All</p> */ public Builder trafficType(String trafficType) { this.putQueryParameter("TrafficType", trafficType); this.trafficType = trafficType; return this; } @Override public CreateFlowLogRequest build() { return new CreateFlowLogRequest(this); } } /** * * {@link CreateFlowLogRequest} extends {@link TeaModel} * * <p>CreateFlowLogRequest</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 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 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/CreateFlowLogResponse.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 CreateFlowLogResponse} extends {@link TeaModel} * * <p>CreateFlowLogResponse</p> */ public class CreateFlowLogResponse 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 CreateFlowLogResponseBody body; private CreateFlowLogResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFlowLogResponse 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 CreateFlowLogResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFlowLogResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFlowLogResponseBody body); @Override CreateFlowLogResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFlowLogResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFlowLogResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFlowLogResponse 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(CreateFlowLogResponseBody body) { this.body = body; return this; } @Override public CreateFlowLogResponse build() { return new CreateFlowLogResponse(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/CreateFlowLogResponseBody.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 CreateFlowLogResponseBody} extends {@link TeaModel} * * <p>CreateFlowLogResponseBody</p> */ public class CreateFlowLogResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FlowLogId") private String flowLogId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Success") private String success; private CreateFlowLogResponseBody(Builder builder) { this.flowLogId = builder.flowLogId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static CreateFlowLogResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return flowLogId */ public String getFlowLogId() { return this.flowLogId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return success */ public String getSuccess() { return this.success; } public static final class Builder { private String flowLogId; private String requestId; private String resourceGroupId; private String success; private Builder() { } private Builder(CreateFlowLogResponseBody model) { this.flowLogId = model.flowLogId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.success = model.success; } /** * <p>The ID of the flow log.</p> * * <strong>example:</strong> * <p>fl-m5e8vhz2t21sel1nq****</p> */ public Builder flowLogId(String flowLogId) { this.flowLogId = flowLogId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>54B48E3D-DF70-471B-AA93-08E683A1B457</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazdjdhd****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>Indicates whether the operation is successful. Valid values:</p> * <ul> * <li><strong>true</strong>: yes</li> * <li><strong>false</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } public CreateFlowLogResponseBody build() { return new CreateFlowLogResponseBody(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/CreateForwardEntryRequest.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 CreateForwardEntryRequest} extends {@link RequestModel} * * <p>CreateForwardEntryRequest</p> */ public class CreateForwardEntryRequest 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("ExternalIp") @com.aliyun.core.annotation.Validation(required = true) private String externalIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExternalPort") @com.aliyun.core.annotation.Validation(required = true) private String externalPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ForwardEntryName") private String forwardEntryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ForwardTableId") @com.aliyun.core.annotation.Validation(required = true) private String forwardTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternalIp") @com.aliyun.core.annotation.Validation(required = true) private String internalIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternalPort") @com.aliyun.core.annotation.Validation(required = true) private String internalPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpProtocol") @com.aliyun.core.annotation.Validation(required = true) private String ipProtocol; @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("PortBreak") private Boolean portBreak; @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 CreateForwardEntryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.externalIp = builder.externalIp; this.externalPort = builder.externalPort; this.forwardEntryName = builder.forwardEntryName; this.forwardTableId = builder.forwardTableId; this.internalIp = builder.internalIp; this.internalPort = builder.internalPort; this.ipProtocol = builder.ipProtocol; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.portBreak = builder.portBreak; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static CreateForwardEntryRequest 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 externalIp */ public String getExternalIp() { return this.externalIp; } /** * @return externalPort */ public String getExternalPort() { return this.externalPort; } /** * @return forwardEntryName */ public String getForwardEntryName() { return this.forwardEntryName; } /** * @return forwardTableId */ public String getForwardTableId() { return this.forwardTableId; } /** * @return internalIp */ public String getInternalIp() { return this.internalIp; } /** * @return internalPort */ public String getInternalPort() { return this.internalPort; } /** * @return ipProtocol */ public String getIpProtocol() { return this.ipProtocol; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return portBreak */ public Boolean getPortBreak() { return this.portBreak; } /** * @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<CreateForwardEntryRequest, Builder> { private String clientToken; private Boolean dryRun; private String externalIp; private String externalPort; private String forwardEntryName; private String forwardTableId; private String internalIp; private String internalPort; private String ipProtocol; private String ownerAccount; private Long ownerId; private Boolean portBreak; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateForwardEntryRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.externalIp = request.externalIp; this.externalPort = request.externalPort; this.forwardEntryName = request.forwardEntryName; this.forwardTableId = request.forwardTableId; this.internalIp = request.internalIp; this.internalPort = request.internalPort; this.ipProtocol = request.ipProtocol; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.portBreak = request.portBreak; 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 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-88e9fe6****</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; } /** * <ul> * <li>The EIP that can be accessed over the Internet when you configure a DNAT entry for an Internet NAT gateway.</li> * <li>The NAT IP address that can be accessed by external networks when you configure a DNAT entry for a VPC NAT gateway.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>116.28.XX.XX</p> */ public Builder externalIp(String externalIp) { this.putQueryParameter("ExternalIp", externalIp); this.externalIp = externalIp; return this; } /** * <ul> * <li><p>The external port range that is used for port forwarding when you configure a DNAT entry for an Internet NAT gateway.</p> * <ul> * <li>Valid values: <strong>1</strong> to <strong>65535</strong>.</li> * <li>To specify a port range, separate the first port and the last port with a forward slash (/), for example, <code>10/20</code>.</li> * <li>If you set <strong>ExternalPort</strong> to a port range, you must also set <strong>InternalPort</strong> to a port range, and the number of ports specified by these parameters must be the same. For example, if you set <strong>ExternalPort</strong> to <code>10/20</code>, you can set <strong>InternalPort</strong> to <code>80/90</code>.</li> * </ul> * </li> * <li><p>The port that can be accessed by external networks when you configure a DNAT entry for a VPC NAT gateway. Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * </li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>8080</p> */ public Builder externalPort(String externalPort) { this.putQueryParameter("ExternalPort", externalPort); this.externalPort = externalPort; return this; } /** * <p>The name of the DNAT 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>ForwardEntry-1</p> */ public Builder forwardEntryName(String forwardEntryName) { this.putQueryParameter("ForwardEntryName", forwardEntryName); this.forwardEntryName = forwardEntryName; return this; } /** * <p>The ID of the DNAT table.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ftb-bp1mbjubq34hlcqpa****</p> */ public Builder forwardTableId(String forwardTableId) { this.putQueryParameter("ForwardTableId", forwardTableId); this.forwardTableId = forwardTableId; return this; } /** * <ul> * <li><p>The private IP address of the ECS instance that needs to communicate with the Internet when you configure a DNAT entry for an Internet NAT gateway. The private IP address must meet the following requirements:</p> * <ul> * <li>It must belong to the CIDR block of the VPC where the NAT gateway is deployed.</li> * <li>The DNAT entry takes effect only if the private IP address is assigned to an ECS instance and the ECS instance is not associated with an EIP.</li> * </ul> * </li> * <li><p>The private IP address that uses DNAT when you add a DNAT entry to a VPC NAT gateway.</p> * </li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder internalIp(String internalIp) { this.putQueryParameter("InternalIp", internalIp); this.internalIp = internalIp; return this; } /** * <ul> * <li>The internal port or port range that is used for port forwarding when you configure a DNAT entry for an Internet NAT gateway. Valid values: <strong>1</strong> to <strong>65535</strong>.</li> * <li>The port of the destination ECS instance to be mapped when you configure a DNAT entry for a VPC NAT gateway. Valid values: <strong>1</strong> to <strong>65535</strong>.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder internalPort(String internalPort) { this.putQueryParameter("InternalPort", internalPort); this.internalPort = internalPort; return this; } /** * <p>The protocol. Valid values:</p> * <ul> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * <li><strong>Any</strong> If you set <strong>IpProtocol</strong> to <strong>Any</strong>, you must also set <strong>ExternalPort</strong> and <strong>InternalPort</strong> to <strong>Any</strong> to implement DNAT IP mapping.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>TCP</p> */ public Builder ipProtocol(String ipProtocol) { this.putQueryParameter("IpProtocol", ipProtocol); this.ipProtocol = ipProtocol; 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>Specifies whether to remove limits on the port range. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * <blockquote> * <p> If a DNAT entry and an SNAT entry have the same public IP address, ou must specify a port that is larger that 1024, and set <strong>PortBreak</strong> to <strong>true</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder portBreak(Boolean portBreak) { this.putQueryParameter("PortBreak", portBreak); this.portBreak = portBreak; 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; } @Override public CreateForwardEntryRequest build() { return new CreateForwardEntryRequest(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/CreateForwardEntryResponse.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 CreateForwardEntryResponse} extends {@link TeaModel} * * <p>CreateForwardEntryResponse</p> */ public class CreateForwardEntryResponse 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 CreateForwardEntryResponseBody body; private CreateForwardEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateForwardEntryResponse 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 CreateForwardEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateForwardEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateForwardEntryResponseBody body); @Override CreateForwardEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateForwardEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateForwardEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateForwardEntryResponse 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(CreateForwardEntryResponseBody body) { this.body = body; return this; } @Override public CreateForwardEntryResponse build() { return new CreateForwardEntryResponse(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/CreateForwardEntryResponseBody.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 CreateForwardEntryResponseBody} extends {@link TeaModel} * * <p>CreateForwardEntryResponseBody</p> */ public class CreateForwardEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ForwardEntryId") private String forwardEntryId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateForwardEntryResponseBody(Builder builder) { this.forwardEntryId = builder.forwardEntryId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateForwardEntryResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return forwardEntryId */ public String getForwardEntryId() { return this.forwardEntryId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String forwardEntryId; private String requestId; private Builder() { } private Builder(CreateForwardEntryResponseBody model) { this.forwardEntryId = model.forwardEntryId; this.requestId = model.requestId; } /** * <p>The ID of the DNAT entry.</p> * * <strong>example:</strong> * <p>fwd-119smw5tkasdf****</p> */ public Builder forwardEntryId(String forwardEntryId) { this.forwardEntryId = forwardEntryId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A4AEE536-A97A-40EB-9EBE-53A6948A6928</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateForwardEntryResponseBody build() { return new CreateForwardEntryResponseBody(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/CreateFullNatEntryRequest.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 CreateFullNatEntryRequest} extends {@link RequestModel} * * <p>CreateFullNatEntryRequest</p> */ public class CreateFullNatEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessIp") @com.aliyun.core.annotation.Validation(required = true) private String accessIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessPort") @com.aliyun.core.annotation.Validation(required = true) private String accessPort; @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("FullNatEntryDescription") private String fullNatEntryDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FullNatEntryName") private String fullNatEntryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FullNatTableId") @com.aliyun.core.annotation.Validation(required = true) private String fullNatTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpProtocol") @com.aliyun.core.annotation.Validation(required = true) private String ipProtocol; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIp") @com.aliyun.core.annotation.Validation(required = true) private String natIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpPort") private String natIpPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkInterfaceId") @com.aliyun.core.annotation.Validation(required = true) 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; private CreateFullNatEntryRequest(Builder builder) { super(builder); this.accessIp = builder.accessIp; this.accessPort = builder.accessPort; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.fullNatEntryDescription = builder.fullNatEntryDescription; this.fullNatEntryName = builder.fullNatEntryName; this.fullNatTableId = builder.fullNatTableId; this.ipProtocol = builder.ipProtocol; this.natIp = builder.natIp; this.natIpPort = builder.natIpPort; this.networkInterfaceId = builder.networkInterfaceId; 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 CreateFullNatEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accessIp */ public String getAccessIp() { return this.accessIp; } /** * @return accessPort */ public String getAccessPort() { return this.accessPort; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return fullNatEntryDescription */ public String getFullNatEntryDescription() { return this.fullNatEntryDescription; } /** * @return fullNatEntryName */ public String getFullNatEntryName() { return this.fullNatEntryName; } /** * @return fullNatTableId */ public String getFullNatTableId() { return this.fullNatTableId; } /** * @return ipProtocol */ public String getIpProtocol() { return this.ipProtocol; } /** * @return natIp */ public String getNatIp() { return this.natIp; } /** * @return natIpPort */ public String getNatIpPort() { return this.natIpPort; } /** * @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; } public static final class Builder extends Request.Builder<CreateFullNatEntryRequest, Builder> { private String accessIp; private String accessPort; private String clientToken; private Boolean dryRun; private String fullNatEntryDescription; private String fullNatEntryName; private String fullNatTableId; private String ipProtocol; private String natIp; private String natIpPort; private String networkInterfaceId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateFullNatEntryRequest request) { super(request); this.accessIp = request.accessIp; this.accessPort = request.accessPort; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.fullNatEntryDescription = request.fullNatEntryDescription; this.fullNatEntryName = request.fullNatEntryName; this.fullNatTableId = request.fullNatTableId; this.ipProtocol = request.ipProtocol; this.natIp = request.natIp; this.natIpPort = request.natIpPort; this.networkInterfaceId = request.networkInterfaceId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The backend IP address to be modified in FULLNAT address translation.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder accessIp(String accessIp) { this.putQueryParameter("AccessIp", accessIp); this.accessIp = accessIp; return this; } /** * <p>The backend port to be modified in the mapping of FULLNAT port. Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder accessPort(String accessPort) { this.putQueryParameter("AccessPort", accessPort); this.accessPort = accessPort; 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 <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 only precheck this request. Valid values:</p> * <ul> * <li><strong>true</strong>: prechecks the request without adding the FULLNAT entry. The system checks whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are set. 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 API request. This is the default value. After the request passes the precheck, a 2XX HTTP status code is returned and the FULLNAT entry is added.</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 FULLNAT entry.</p> * <p>This parameter is optional. 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>abc</p> */ public Builder fullNatEntryDescription(String fullNatEntryDescription) { this.putQueryParameter("FullNatEntryDescription", fullNatEntryDescription); this.fullNatEntryDescription = fullNatEntryDescription; return this; } /** * <p>The FULLNAT entry name. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder fullNatEntryName(String fullNatEntryName) { this.putQueryParameter("FullNatEntryName", fullNatEntryName); this.fullNatEntryName = fullNatEntryName; return this; } /** * <p>The ID of the FULLNAT table to which the FULLNAT entry belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>fulltb-gw88z7hhlv43rmb26****</p> */ public Builder fullNatTableId(String fullNatTableId) { this.putQueryParameter("FullNatTableId", fullNatTableId); this.fullNatTableId = fullNatTableId; return this; } /** * <p>The protocol of the packets that are forwarded by the port. Valid values:</p> * <ul> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>TCP</p> */ public Builder ipProtocol(String ipProtocol) { this.putQueryParameter("IpProtocol", ipProtocol); this.ipProtocol = ipProtocol; return this; } /** * <p>The NAT IP address that provides address translation.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder natIp(String natIp) { this.putQueryParameter("NatIp", natIp); this.natIp = natIp; return this; } /** * <p>The frontend port to be modified in the mapping of FULLNAT port. Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder natIpPort(String natIpPort) { this.putQueryParameter("NatIpPort", natIpPort); this.natIpPort = natIpPort; return this; } /** * <p>The elastic network interface (ENI) ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eni-gw8g131ef2dnbu3k****</p> */ 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 Virtual Private Cloud (VPC) NAT gateway to which the FULLNAT entry to be added 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>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 CreateFullNatEntryRequest build() { return new CreateFullNatEntryRequest(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/CreateFullNatEntryResponse.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 CreateFullNatEntryResponse} extends {@link TeaModel} * * <p>CreateFullNatEntryResponse</p> */ public class CreateFullNatEntryResponse 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 CreateFullNatEntryResponseBody body; private CreateFullNatEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateFullNatEntryResponse 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 CreateFullNatEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateFullNatEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateFullNatEntryResponseBody body); @Override CreateFullNatEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateFullNatEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateFullNatEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateFullNatEntryResponse 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(CreateFullNatEntryResponseBody body) { this.body = body; return this; } @Override public CreateFullNatEntryResponse build() { return new CreateFullNatEntryResponse(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/CreateFullNatEntryResponseBody.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 CreateFullNatEntryResponseBody} extends {@link TeaModel} * * <p>CreateFullNatEntryResponseBody</p> */ public class CreateFullNatEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("FullNatEntryId") private String fullNatEntryId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateFullNatEntryResponseBody(Builder builder) { this.fullNatEntryId = builder.fullNatEntryId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateFullNatEntryResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return fullNatEntryId */ public String getFullNatEntryId() { return this.fullNatEntryId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String fullNatEntryId; private String requestId; private Builder() { } private Builder(CreateFullNatEntryResponseBody model) { this.fullNatEntryId = model.fullNatEntryId; this.requestId = model.requestId; } /** * <p>The FULLNAT entry ID.</p> * * <strong>example:</strong> * <p>fullnat-gw8fz23jezpbblf1j****</p> */ public Builder fullNatEntryId(String fullNatEntryId) { this.fullNatEntryId = fullNatEntryId; 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; } public CreateFullNatEntryResponseBody build() { return new CreateFullNatEntryResponseBody(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/CreateGlobalAccelerationInstanceRequest.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 CreateGlobalAccelerationInstanceRequest} extends {@link RequestModel} * * <p>CreateGlobalAccelerationInstanceRequest</p> */ public class CreateGlobalAccelerationInstanceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(required = true) private String bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthType") private String bandwidthType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServiceLocation") @com.aliyun.core.annotation.Validation(required = true) private String serviceLocation; private CreateGlobalAccelerationInstanceRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.bandwidthType = builder.bandwidthType; this.clientToken = builder.clientToken; this.description = builder.description; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.serviceLocation = builder.serviceLocation; } public static Builder builder() { return new Builder(); } public static CreateGlobalAccelerationInstanceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return bandwidthType */ public String getBandwidthType() { return this.bandwidthType; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return serviceLocation */ public String getServiceLocation() { return this.serviceLocation; } public static final class Builder extends Request.Builder<CreateGlobalAccelerationInstanceRequest, Builder> { private String bandwidth; private String bandwidthType; private String clientToken; private String description; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serviceLocation; private Builder() { super(); } private Builder(CreateGlobalAccelerationInstanceRequest request) { super(request); this.bandwidth = request.bandwidth; this.bandwidthType = request.bandwidthType; this.clientToken = request.clientToken; this.description = request.description; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.serviceLocation = request.serviceLocation; } /** * <p>The maximum bandwidth of the GA instance. Set the value to <strong>10</strong>. Unit: Mbit/s.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder bandwidth(String bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The bandwidth type. Valid values:</p> * <ul> * <li><strong>Sharing</strong></li> * <li><strong>Exclusive</strong></li> * </ul> * * <strong>example:</strong> * <p>Exclusive</p> */ public Builder bandwidthType(String bandwidthType) { this.putQueryParameter("BandwidthType", bandwidthType); this.bandwidthType = bandwidthType; 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 and cannot exceed 64 characters in length.</p> * * <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 description of the GA instance.</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>My GA</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the GA instance.</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 and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>GA-1</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 GA instance.</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 acceleration area. Valid values:</p> * <ul> * <li><strong>china-mainland</strong></li> * <li><strong>north-america</strong></li> * <li><strong>asia-pacific</strong></li> * <li><strong>europe</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>china-mainland</p> */ public Builder serviceLocation(String serviceLocation) { this.putQueryParameter("ServiceLocation", serviceLocation); this.serviceLocation = serviceLocation; return this; } @Override public CreateGlobalAccelerationInstanceRequest build() { return new CreateGlobalAccelerationInstanceRequest(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/CreateGlobalAccelerationInstanceResponse.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 CreateGlobalAccelerationInstanceResponse} extends {@link TeaModel} * * <p>CreateGlobalAccelerationInstanceResponse</p> */ public class CreateGlobalAccelerationInstanceResponse 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 CreateGlobalAccelerationInstanceResponseBody body; private CreateGlobalAccelerationInstanceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateGlobalAccelerationInstanceResponse 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 CreateGlobalAccelerationInstanceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateGlobalAccelerationInstanceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateGlobalAccelerationInstanceResponseBody body); @Override CreateGlobalAccelerationInstanceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateGlobalAccelerationInstanceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateGlobalAccelerationInstanceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateGlobalAccelerationInstanceResponse 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(CreateGlobalAccelerationInstanceResponseBody body) { this.body = body; return this; } @Override public CreateGlobalAccelerationInstanceResponse build() { return new CreateGlobalAccelerationInstanceResponse(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/CreateGlobalAccelerationInstanceResponseBody.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 CreateGlobalAccelerationInstanceResponseBody} extends {@link TeaModel} * * <p>CreateGlobalAccelerationInstanceResponseBody</p> */ public class CreateGlobalAccelerationInstanceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstanceId") private String globalAccelerationInstanceId; @com.aliyun.core.annotation.NameInMap("IpAddress") private String ipAddress; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateGlobalAccelerationInstanceResponseBody(Builder builder) { this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId; this.ipAddress = builder.ipAddress; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateGlobalAccelerationInstanceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return globalAccelerationInstanceId */ public String getGlobalAccelerationInstanceId() { return this.globalAccelerationInstanceId; } /** * @return ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String globalAccelerationInstanceId; private String ipAddress; private String requestId; private Builder() { } private Builder(CreateGlobalAccelerationInstanceResponseBody model) { this.globalAccelerationInstanceId = model.globalAccelerationInstanceId; this.ipAddress = model.ipAddress; this.requestId = model.requestId; } /** * <p>The ID of the GA instance.</p> * * <strong>example:</strong> * <p>ga-bp1fi6sq7npnicmjj****</p> */ public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) { this.globalAccelerationInstanceId = globalAccelerationInstanceId; return this; } /** * <p>The public IP address of the GA instance.</p> * <p>If <strong>BandwidthType</strong> is set to <strong>Sharing</strong>, this parameter is not returned.</p> * * <strong>example:</strong> * <p>12.xx.xx.78</p> */ public Builder ipAddress(String ipAddress) { this.ipAddress = ipAddress; 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; } public CreateGlobalAccelerationInstanceResponseBody build() { return new CreateGlobalAccelerationInstanceResponseBody(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/CreateHaVipRequest.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 CreateHaVipRequest} extends {@link RequestModel} * * <p>CreateHaVipRequest</p> */ public class CreateHaVipRequest 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("IpAddress") private String ipAddress; @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("VSwitchId") @com.aliyun.core.annotation.Validation(required = true) private String vSwitchId; private CreateHaVipRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.ipAddress = builder.ipAddress; 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.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static CreateHaVipRequest 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 ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @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 vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder extends Request.Builder<CreateHaVipRequest, Builder> { private String clientToken; private String description; private String ipAddress; 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 vSwitchId; private Builder() { super(); } private Builder(CreateHaVipRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.ipAddress = request.ipAddress; 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.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 value, but you must make sure that the value 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> for each API request may be different.</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 HaVip.</p> * <p>The description must be 1 to 255 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This is my HaVip.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The IP address of the HaVip.</p> * <p>The specified IP address must be an idle IP address that falls within the CIDR block of the vSwitch. If this parameter is not set, an idle IP address from the CIDR block of the vSwitch is randomly assigned to the HaVip.</p> * * <strong>example:</strong> * <p>192.XX.XX.10</p> */ public Builder ipAddress(String ipAddress) { this.putQueryParameter("IpAddress", ipAddress); this.ipAddress = ipAddress; return this; } /** * <p>The name of the HaVip.</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.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 HaVip. 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 HaVip 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 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 vSwitch to which the HaVip belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vsw-asdfjlnaue4g****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } @Override public CreateHaVipRequest build() { return new CreateHaVipRequest(this); } } /** * * {@link CreateHaVipRequest} extends {@link TeaModel} * * <p>CreateHaVipRequest</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, 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/CreateHaVipResponse.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 CreateHaVipResponse} extends {@link TeaModel} * * <p>CreateHaVipResponse</p> */ public class CreateHaVipResponse 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 CreateHaVipResponseBody body; private CreateHaVipResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateHaVipResponse 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 CreateHaVipResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateHaVipResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateHaVipResponseBody body); @Override CreateHaVipResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateHaVipResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateHaVipResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateHaVipResponse 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(CreateHaVipResponseBody body) { this.body = body; return this; } @Override public CreateHaVipResponse build() { return new CreateHaVipResponse(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/CreateHaVipResponseBody.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 CreateHaVipResponseBody} extends {@link TeaModel} * * <p>CreateHaVipResponseBody</p> */ public class CreateHaVipResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("HaVipId") private String haVipId; @com.aliyun.core.annotation.NameInMap("IpAddress") private String ipAddress; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateHaVipResponseBody(Builder builder) { this.haVipId = builder.haVipId; this.ipAddress = builder.ipAddress; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateHaVipResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return haVipId */ public String getHaVipId() { return this.haVipId; } /** * @return ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String haVipId; private String ipAddress; private String requestId; private Builder() { } private Builder(CreateHaVipResponseBody model) { this.haVipId = model.haVipId; this.ipAddress = model.ipAddress; this.requestId = model.requestId; } /** * <p>The ID of the HaVip.</p> * * <strong>example:</strong> * <p>havip-2zeo05qre24nhrqpy****</p> */ public Builder haVipId(String haVipId) { this.haVipId = haVipId; return this; } /** * <p>The IP address of the HaVip.</p> * * <strong>example:</strong> * <p>192.XX.XX.10</p> */ public Builder ipAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C44F62BE-9CE7-4277-B117-69243F3988BF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateHaVipResponseBody build() { return new CreateHaVipResponseBody(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/CreateHighReliablePhysicalConnectionRequest.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 CreateHighReliablePhysicalConnectionRequest} extends {@link RequestModel} * * <p>CreateHighReliablePhysicalConnectionRequest</p> */ public class CreateHighReliablePhysicalConnectionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AcceptLanguage") private String acceptLanguage; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ApList") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<ApList> apList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @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("DryRun") private String dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HighReliableType") @com.aliyun.core.annotation.Validation(required = true) private String highReliableType; @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") @com.aliyun.core.annotation.Validation(required = true) private String portType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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 CreateHighReliablePhysicalConnectionRequest(Builder builder) { super(builder); this.acceptLanguage = builder.acceptLanguage; this.apList = builder.apList; this.clientToken = builder.clientToken; this.deviceAdvancedCapacity = builder.deviceAdvancedCapacity; this.dryRun = builder.dryRun; this.highReliableType = builder.highReliableType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.portType = builder.portType; 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 CreateHighReliablePhysicalConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return acceptLanguage */ public String getAcceptLanguage() { return this.acceptLanguage; } /** * @return apList */ public java.util.List<ApList> getApList() { return this.apList; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return deviceAdvancedCapacity */ public java.util.List<String> getDeviceAdvancedCapacity() { return this.deviceAdvancedCapacity; } /** * @return dryRun */ public String getDryRun() { return this.dryRun; } /** * @return highReliableType */ public String getHighReliableType() { return this.highReliableType; } /** * @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 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<CreateHighReliablePhysicalConnectionRequest, Builder> { private String acceptLanguage; private java.util.List<ApList> apList; private String clientToken; private java.util.List<String> deviceAdvancedCapacity; private String dryRun; private String highReliableType; private String ownerAccount; private Long ownerId; private String portType; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(CreateHighReliablePhysicalConnectionRequest request) { super(request); this.acceptLanguage = request.acceptLanguage; this.apList = request.apList; this.clientToken = request.clientToken; this.deviceAdvancedCapacity = request.deviceAdvancedCapacity; this.dryRun = request.dryRun; this.highReliableType = request.highReliableType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.portType = request.portType; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; } /** * <p>The language to display the results. Valid values:</p> * <ul> * <li><strong>zh-CN</strong> (default): Chinese</li> * <li><strong>en-US</strong>: English</li> * </ul> * * <strong>example:</strong> * <p>zh-CN</p> */ public Builder acceptLanguage(String acceptLanguage) { this.putQueryParameter("AcceptLanguage", acceptLanguage); this.acceptLanguage = acceptLanguage; return this; } /** * <p>The access points.</p> * <p>This parameter is required.</p> */ public Builder apList(java.util.List<ApList> apList) { this.putQueryParameter("ApList", apList); this.apList = apList; 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 advanced features of the device.</p> */ public Builder deviceAdvancedCapacity(java.util.List<String> deviceAdvancedCapacity) { this.putQueryParameter("DeviceAdvancedCapacity", deviceAdvancedCapacity); this.deviceAdvancedCapacity = deviceAdvancedCapacity; 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(String dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The high availability mode. Valid values:</p> * <ul> * <li><strong>MultiApMultiDevice</strong> : This mode supports two access points and two devices, and provides the maximum disaster recovery capability.</li> * <li><strong>MultiApSingleDevice</strong> : This mode supports two access points and one device, and provides robust disaster recovery capability.</li> * <li><strong>SingleApMultiDevice</strong> : This mode supports one access point and two devices, and is recommended for non-critical business test and development.</li> * <li><strong>SingleApMultiConnection</strong> : This mode supports one access point, one device, and multiple physical ports. Only users in the whitelist can use this mode. To use this mode, contact your account manager.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>MultiApMultiDevice</p> */ public Builder highReliableType(String highReliableType) { this.putQueryParameter("HighReliableType", highReliableType); this.highReliableType = highReliableType; 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. 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> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1000Base-T</p> */ public Builder portType(String portType) { this.putQueryParameter("PortType", portType); this.portType = portType; 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> * * <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.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4p****</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; } @Override public CreateHighReliablePhysicalConnectionRequest build() { return new CreateHighReliablePhysicalConnectionRequest(this); } } /** * * {@link CreateHighReliablePhysicalConnectionRequest} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionRequest</p> */ public static class ApList extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessPointId") @com.aliyun.core.annotation.Validation(required = true) private String accessPointId; @com.aliyun.core.annotation.NameInMap("Bandwidth") private Long bandwidth; @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("LineOperator") @com.aliyun.core.annotation.Validation(required = true) private String lineOperator; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("PeerLocation") private String peerLocation; @com.aliyun.core.annotation.NameInMap("PortNum") private Integer portNum; @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.NameInMap("Type") private String type; private ApList(Builder builder) { this.accessPointId = builder.accessPointId; this.bandwidth = builder.bandwidth; this.circuitCode = builder.circuitCode; this.description = builder.description; this.lineOperator = builder.lineOperator; this.name = builder.name; this.peerLocation = builder.peerLocation; this.portNum = builder.portNum; this.regionId = builder.regionId; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static ApList create() { return builder().build(); } /** * @return accessPointId */ public String getAccessPointId() { return this.accessPointId; } /** * @return bandwidth */ public Long getBandwidth() { return this.bandwidth; } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return description */ public String getDescription() { return this.description; } /** * @return lineOperator */ public String getLineOperator() { return this.lineOperator; } /** * @return name */ public String getName() { return this.name; } /** * @return peerLocation */ public String getPeerLocation() { return this.peerLocation; } /** * @return portNum */ public Integer getPortNum() { return this.portNum; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String accessPointId; private Long bandwidth; private String circuitCode; private String description; private String lineOperator; private String name; private String peerLocation; private Integer portNum; private String regionId; private String type; private Builder() { } private Builder(ApList model) { this.accessPointId = model.accessPointId; this.bandwidth = model.bandwidth; this.circuitCode = model.circuitCode; this.description = model.description; this.lineOperator = model.lineOperator; this.name = model.name; this.peerLocation = model.peerLocation; this.portNum = model.portNum; this.regionId = model.regionId; this.type = model.type; } /** * <p>The ID of the access point that is associated with the Express Connect circuit.</p> * <blockquote> * <p>Two access points must be specified when <strong>HighReliableType</strong> is set to <strong>MultiApMultiDevice</strong> or <strong>MultiApSingleDevice</strong>. One access point must be specified when <strong>HighReliableType</strong> is set to <strong>SingleApMultiDevice</strong> or <strong>SingleApMultiConnection</strong>.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ap-cn-beijing-ft-A</p> */ public Builder accessPointId(String accessPointId) { this.accessPointId = accessPointId; return this; } /** * <p>The maximum bandwidth of the hosted connection. Unit: Mbit/s.</p> * <p>Valid values: 50, 100, 200, 300, 400, 500, 1000, 2000, 4000, 5000, 8000, and 10000.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder bandwidth(Long bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The circuit code of the Express Connect circuit, which is provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>longtel001</p> */ public Builder circuitCode(String circuitCode) { this.circuitCode = circuitCode; return this; } /** * <p>The description of the Express Connect circuit.</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>description</p> */ public Builder description(String description) { this.description = description; 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.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 (-). It 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.name = name; return this; } /** * <p>The geographical location of the data center.</p> * * <strong>example:</strong> * <p>ram-test</p> */ public Builder peerLocation(String peerLocation) { this.peerLocation = peerLocation; return this; } /** * <p>The number of ports. Valid values: 2 to 16. This parameter is required only when <strong>HighReliableType</strong> is set to <strong>SingleApMultiConnection</strong>.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder portNum(Integer portNum) { this.portNum = portNum; 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.regionId = regionId; return this; } /** * <p>The type of the Express Connect circuit. Default value: <strong>VPC</strong>.</p> * * <strong>example:</strong> * <p>VPC</p> */ public Builder type(String type) { this.type = type; return this; } public ApList build() { return new ApList(this); } } } /** * * {@link CreateHighReliablePhysicalConnectionRequest} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionRequest</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. Valid values of N: 1 to 20. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. It 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. Valid values of N: 1 to 20. The tag value cannot be an empty string.</p> * <p>The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</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 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/CreateHighReliablePhysicalConnectionResponse.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 CreateHighReliablePhysicalConnectionResponse} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionResponse</p> */ public class CreateHighReliablePhysicalConnectionResponse 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 CreateHighReliablePhysicalConnectionResponseBody body; private CreateHighReliablePhysicalConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateHighReliablePhysicalConnectionResponse 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 CreateHighReliablePhysicalConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateHighReliablePhysicalConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateHighReliablePhysicalConnectionResponseBody body); @Override CreateHighReliablePhysicalConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateHighReliablePhysicalConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateHighReliablePhysicalConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateHighReliablePhysicalConnectionResponse 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(CreateHighReliablePhysicalConnectionResponseBody body) { this.body = body; return this; } @Override public CreateHighReliablePhysicalConnectionResponse build() { return new CreateHighReliablePhysicalConnectionResponse(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/CreateHighReliablePhysicalConnectionResponseBody.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 CreateHighReliablePhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionResponseBody</p> */ public class CreateHighReliablePhysicalConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorInfoList") private ErrorInfoList errorInfoList; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionList") private PhysicalConnectionList physicalConnectionList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateHighReliablePhysicalConnectionResponseBody(Builder builder) { this.errorInfoList = builder.errorInfoList; this.physicalConnectionList = builder.physicalConnectionList; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateHighReliablePhysicalConnectionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return errorInfoList */ public ErrorInfoList getErrorInfoList() { return this.errorInfoList; } /** * @return physicalConnectionList */ public PhysicalConnectionList getPhysicalConnectionList() { return this.physicalConnectionList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private ErrorInfoList errorInfoList; private PhysicalConnectionList physicalConnectionList; private String requestId; private Builder() { } private Builder(CreateHighReliablePhysicalConnectionResponseBody model) { this.errorInfoList = model.errorInfoList; this.physicalConnectionList = model.physicalConnectionList; this.requestId = model.requestId; } /** * <p>If the request fails the dry run, the following error codes and error messages may be returned:</p> * <ul> * <li>pconn.high.reliable.dryrun.error.disable.outbound.data.transfer.billing. Billing for outbound data transfer is not enabled.</li> * <li>pconn.high.reliable.dryrun.error.incompatable.device.capacity. No device in the access point supports advanced features.</li> * <li>pconn.high.reliable.dryrun.error.quota.exceeded. The quota is insufficient.</li> * <li>pconn.high.reliable.dryrun.error.not.enough.resource. The access point resources are insufficient.</li> * </ul> */ public Builder errorInfoList(ErrorInfoList errorInfoList) { this.errorInfoList = errorInfoList; return this; } /** * <p>The Express Connect circuits.</p> */ public Builder physicalConnectionList(PhysicalConnectionList physicalConnectionList) { this.physicalConnectionList = physicalConnectionList; 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 CreateHighReliablePhysicalConnectionResponseBody build() { return new CreateHighReliablePhysicalConnectionResponseBody(this); } } /** * * {@link CreateHighReliablePhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionResponseBody</p> */ public static class ErrorInfoListErrorInfoList extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorMessage") private String errorMessage; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; private ErrorInfoListErrorInfoList(Builder builder) { this.errorCode = builder.errorCode; this.errorMessage = builder.errorMessage; this.instanceId = builder.instanceId; } public static Builder builder() { return new Builder(); } public static ErrorInfoListErrorInfoList create() { return builder().build(); } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorMessage */ public String getErrorMessage() { return this.errorMessage; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } public static final class Builder { private String errorCode; private String errorMessage; private String instanceId; private Builder() { } private Builder(ErrorInfoListErrorInfoList model) { this.errorCode = model.errorCode; this.errorMessage = model.errorMessage; this.instanceId = model.instanceId; } /** * <p>Error codes.</p> * * <strong>example:</strong> * <p>pconn.high.reliable.dryrun.error.disable.outbound.data.transfer.billing</p> */ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * <p>The returned error message.</p> * * <strong>example:</strong> * <p>pconn.high.reliable.dryrun.error.disable.outbound.data.transfer.billing</p> */ public Builder errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } /** * <p>The ID of the Express Connect circuit.</p> * * <strong>example:</strong> * <p>pc-j5e5qqo616p81ncspbll1</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } public ErrorInfoListErrorInfoList build() { return new ErrorInfoListErrorInfoList(this); } } } /** * * {@link CreateHighReliablePhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionResponseBody</p> */ public static class ErrorInfoList extends TeaModel { @com.aliyun.core.annotation.NameInMap("errorInfoList") private java.util.List<ErrorInfoListErrorInfoList> errorInfoList; private ErrorInfoList(Builder builder) { this.errorInfoList = builder.errorInfoList; } public static Builder builder() { return new Builder(); } public static ErrorInfoList create() { return builder().build(); } /** * @return errorInfoList */ public java.util.List<ErrorInfoListErrorInfoList> getErrorInfoList() { return this.errorInfoList; } public static final class Builder { private java.util.List<ErrorInfoListErrorInfoList> errorInfoList; private Builder() { } private Builder(ErrorInfoList model) { this.errorInfoList = model.errorInfoList; } /** * errorInfoList. */ public Builder errorInfoList(java.util.List<ErrorInfoListErrorInfoList> errorInfoList) { this.errorInfoList = errorInfoList; return this; } public ErrorInfoList build() { return new ErrorInfoList(this); } } } /** * * {@link CreateHighReliablePhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionResponseBody</p> */ public static class PhysicalConnectionListPhysicalConnectionList extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("RegionNo") private String regionNo; private PhysicalConnectionListPhysicalConnectionList(Builder builder) { this.instanceId = builder.instanceId; this.regionNo = builder.regionNo; } public static Builder builder() { return new Builder(); } public static PhysicalConnectionListPhysicalConnectionList create() { return builder().build(); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionNo */ public String getRegionNo() { return this.regionNo; } public static final class Builder { private String instanceId; private String regionNo; private Builder() { } private Builder(PhysicalConnectionListPhysicalConnectionList model) { this.instanceId = model.instanceId; this.regionNo = model.regionNo; } /** * <p>The ID of the Express Connect circuit.</p> * * <strong>example:</strong> * <p>pc-j5e5qqo616p81ncspbll1</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The region ID of the Express Connect circuit.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionNo(String regionNo) { this.regionNo = regionNo; return this; } public PhysicalConnectionListPhysicalConnectionList build() { return new PhysicalConnectionListPhysicalConnectionList(this); } } } /** * * {@link CreateHighReliablePhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>CreateHighReliablePhysicalConnectionResponseBody</p> */ public static class PhysicalConnectionList extends TeaModel { @com.aliyun.core.annotation.NameInMap("physicalConnectionList") private java.util.List<PhysicalConnectionListPhysicalConnectionList> physicalConnectionList; private PhysicalConnectionList(Builder builder) { this.physicalConnectionList = builder.physicalConnectionList; } public static Builder builder() { return new Builder(); } public static PhysicalConnectionList create() { return builder().build(); } /** * @return physicalConnectionList */ public java.util.List<PhysicalConnectionListPhysicalConnectionList> getPhysicalConnectionList() { return this.physicalConnectionList; } public static final class Builder { private java.util.List<PhysicalConnectionListPhysicalConnectionList> physicalConnectionList; private Builder() { } private Builder(PhysicalConnectionList model) { this.physicalConnectionList = model.physicalConnectionList; } /** * physicalConnectionList. */ public Builder physicalConnectionList(java.util.List<PhysicalConnectionListPhysicalConnectionList> physicalConnectionList) { this.physicalConnectionList = physicalConnectionList; return this; } public PhysicalConnectionList build() { return new PhysicalConnectionList(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/CreateIPv6TranslatorAclListRequest.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 CreateIPv6TranslatorAclListRequest} extends {@link RequestModel} * * <p>CreateIPv6TranslatorAclListRequest</p> */ public class CreateIPv6TranslatorAclListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclName") @com.aliyun.core.annotation.Validation(required = true) private String aclName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @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 CreateIPv6TranslatorAclListRequest(Builder builder) { super(builder); this.aclName = builder.aclName; this.clientToken = builder.clientToken; 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 CreateIPv6TranslatorAclListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclName */ public String getAclName() { return this.aclName; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @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<CreateIPv6TranslatorAclListRequest, Builder> { private String aclName; private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(CreateIPv6TranslatorAclListRequest request) { super(request); this.aclName = request.aclName; this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ACL name.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder aclName(String aclName) { this.putQueryParameter("AclName", aclName); this.aclName = aclName; return this; } /** * ClientToken. */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; 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 of the IPv6 Translation Service instance. You can call the DescribeRegions 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 CreateIPv6TranslatorAclListRequest build() { return new CreateIPv6TranslatorAclListRequest(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/CreateIPv6TranslatorAclListResponse.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 CreateIPv6TranslatorAclListResponse} extends {@link TeaModel} * * <p>CreateIPv6TranslatorAclListResponse</p> */ public class CreateIPv6TranslatorAclListResponse 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 CreateIPv6TranslatorAclListResponseBody body; private CreateIPv6TranslatorAclListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIPv6TranslatorAclListResponse 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 CreateIPv6TranslatorAclListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIPv6TranslatorAclListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIPv6TranslatorAclListResponseBody body); @Override CreateIPv6TranslatorAclListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIPv6TranslatorAclListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIPv6TranslatorAclListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIPv6TranslatorAclListResponse 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(CreateIPv6TranslatorAclListResponseBody body) { this.body = body; return this; } @Override public CreateIPv6TranslatorAclListResponse build() { return new CreateIPv6TranslatorAclListResponse(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/CreateIPv6TranslatorAclListResponseBody.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 CreateIPv6TranslatorAclListResponseBody} extends {@link TeaModel} * * <p>CreateIPv6TranslatorAclListResponseBody</p> */ public class CreateIPv6TranslatorAclListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AclId") private String aclId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateIPv6TranslatorAclListResponseBody(Builder builder) { this.aclId = builder.aclId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateIPv6TranslatorAclListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String aclId; private String requestId; private Builder() { } private Builder(CreateIPv6TranslatorAclListResponseBody model) { this.aclId = model.aclId; this.requestId = model.requestId; } /** * <p>The ACL ID.</p> * * <strong>example:</strong> * <p>ipv6transacl-bp1de2xxxx</p> */ public Builder aclId(String aclId) { this.aclId = aclId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8B2F5262-6B57-43F2-xxxxx</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateIPv6TranslatorAclListResponseBody build() { return new CreateIPv6TranslatorAclListResponseBody(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/CreateIPv6TranslatorEntryRequest.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 CreateIPv6TranslatorEntryRequest} extends {@link RequestModel} * * <p>CreateIPv6TranslatorEntryRequest</p> */ public class CreateIPv6TranslatorEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclStatus") private String aclStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclType") private String aclType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocateIpv6Port") @com.aliyun.core.annotation.Validation(required = true) private Integer allocateIpv6Port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendIpv4Addr") @com.aliyun.core.annotation.Validation(required = true) private String backendIpv4Addr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendIpv4Port") @com.aliyun.core.annotation.Validation(required = true) private Integer backendIpv4Port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EntryBandwidth") private Integer entryBandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EntryDescription") private String entryDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EntryName") private String entryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6TranslatorId") @com.aliyun.core.annotation.Validation(required = true) private String ipv6TranslatorId; @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("TransProtocol") @com.aliyun.core.annotation.Validation(required = true) private String transProtocol; private CreateIPv6TranslatorEntryRequest(Builder builder) { super(builder); this.aclId = builder.aclId; this.aclStatus = builder.aclStatus; this.aclType = builder.aclType; this.allocateIpv6Port = builder.allocateIpv6Port; this.backendIpv4Addr = builder.backendIpv4Addr; this.backendIpv4Port = builder.backendIpv4Port; this.entryBandwidth = builder.entryBandwidth; this.entryDescription = builder.entryDescription; this.entryName = builder.entryName; this.ipv6TranslatorId = builder.ipv6TranslatorId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.transProtocol = builder.transProtocol; } public static Builder builder() { return new Builder(); } public static CreateIPv6TranslatorEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @return aclStatus */ public String getAclStatus() { return this.aclStatus; } /** * @return aclType */ public String getAclType() { return this.aclType; } /** * @return allocateIpv6Port */ public Integer getAllocateIpv6Port() { return this.allocateIpv6Port; } /** * @return backendIpv4Addr */ public String getBackendIpv4Addr() { return this.backendIpv4Addr; } /** * @return backendIpv4Port */ public Integer getBackendIpv4Port() { return this.backendIpv4Port; } /** * @return entryBandwidth */ public Integer getEntryBandwidth() { return this.entryBandwidth; } /** * @return entryDescription */ public String getEntryDescription() { return this.entryDescription; } /** * @return entryName */ public String getEntryName() { return this.entryName; } /** * @return ipv6TranslatorId */ public String getIpv6TranslatorId() { return this.ipv6TranslatorId; } /** * @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 transProtocol */ public String getTransProtocol() { return this.transProtocol; } public static final class Builder extends Request.Builder<CreateIPv6TranslatorEntryRequest, Builder> { private String aclId; private String aclStatus; private String aclType; private Integer allocateIpv6Port; private String backendIpv4Addr; private Integer backendIpv4Port; private Integer entryBandwidth; private String entryDescription; private String entryName; private String ipv6TranslatorId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String transProtocol; private Builder() { super(); } private Builder(CreateIPv6TranslatorEntryRequest request) { super(request); this.aclId = request.aclId; this.aclStatus = request.aclStatus; this.aclType = request.aclType; this.allocateIpv6Port = request.allocateIpv6Port; this.backendIpv4Addr = request.backendIpv4Addr; this.backendIpv4Port = request.backendIpv4Port; this.entryBandwidth = request.entryBandwidth; this.entryDescription = request.entryDescription; this.entryName = request.entryName; this.ipv6TranslatorId = request.ipv6TranslatorId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.transProtocol = request.transProtocol; } /** * <p>The ID of the associated ACL.</p> * * <strong>example:</strong> * <p>ipv6transacl-bp1g8bhrdexnrxxxx</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>Specifies whether to enable access control lists (ACLs). Valid values:</p> * <ul> * <li><strong>on</strong></li> * <li><strong>off</strong></li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder aclStatus(String aclStatus) { this.putQueryParameter("AclStatus", aclStatus); this.aclStatus = aclStatus; return this; } /** * <p>Specifies whether to enable ACLs. Valid values:</p> * <ul> * <li><strong>white</strong>: a whitelist. IPv6 addresses in the ACL are allowed to access backend services.</li> * <li><strong>black</strong>: a blacklist. IPv6 addresses in the ACL are not allowed to access backend services.</li> * </ul> * * <strong>example:</strong> * <p>white</p> */ public Builder aclType(String aclType) { this.putQueryParameter("AclType", aclType); this.aclType = aclType; return this; } /** * <p>The port that is used by the IPv6 address allocated to the IPv6 Translation Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder allocateIpv6Port(Integer allocateIpv6Port) { this.putQueryParameter("AllocateIpv6Port", allocateIpv6Port); this.allocateIpv6Port = allocateIpv6Port; return this; } /** * <p>The public IPv4 address that needs to provide IPv6 services.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>46.22.xx.xx</p> */ public Builder backendIpv4Addr(String backendIpv4Addr) { this.putQueryParameter("BackendIpv4Addr", backendIpv4Addr); this.backendIpv4Addr = backendIpv4Addr; return this; } /** * <p>The port of the public IPv4 address that needs to provide IPv6 services.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder backendIpv4Port(Integer backendIpv4Port) { this.putQueryParameter("BackendIpv4Port", backendIpv4Port); this.backendIpv4Port = backendIpv4Port; return this; } /** * <p>The maximum bandwidth specified in the IPv6 mapping entry. Valid values:</p> * <ul> * <li>-1 (default): does not limit the maximum bandwidth specified in the IPv6 mapping entry.</li> * <li>1 to 200: the bandwidth value specified in the IPv6 mapping entry. Unit: Mbit/s.</li> * </ul> * <blockquote> * <p>The sum of the maximum bandwidth values specified in all IPv6 entries cannot exceed the maximum bandwidth supported by the instance.</p> * </blockquote> * * <strong>example:</strong> * <p>2</p> */ public Builder entryBandwidth(Integer entryBandwidth) { this.putQueryParameter("EntryBandwidth", entryBandwidth); this.entryBandwidth = entryBandwidth; return this; } /** * <p>The description of the IPv6 mapping entry.</p> * * <strong>example:</strong> * <p>description</p> */ public Builder entryDescription(String entryDescription) { this.putQueryParameter("EntryDescription", entryDescription); this.entryDescription = entryDescription; return this; } /** * <p>The name of the IPv6 mapping entry. It must be 2 to 100 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>name1</p> */ public Builder entryName(String entryName) { this.putQueryParameter("EntryName", entryName); this.entryName = entryName; return this; } /** * <p>The ID of the IPv6 Translation Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6trans-bp1858ys57xxxxxx</p> */ public Builder ipv6TranslatorId(String ipv6TranslatorId) { this.putQueryParameter("Ipv6TranslatorId", ipv6TranslatorId); this.ipv6TranslatorId = ipv6TranslatorId; 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 of the IPv6 Translation Service instance. You can call the <strong>DescribeRegions</strong> 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 protocol. Valid values:</p> * <ul> * <li><strong>tcp</strong></li> * <li><strong>udp</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>tcp</p> */ public Builder transProtocol(String transProtocol) { this.putQueryParameter("TransProtocol", transProtocol); this.transProtocol = transProtocol; return this; } @Override public CreateIPv6TranslatorEntryRequest build() { return new CreateIPv6TranslatorEntryRequest(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/CreateIPv6TranslatorEntryResponse.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 CreateIPv6TranslatorEntryResponse} extends {@link TeaModel} * * <p>CreateIPv6TranslatorEntryResponse</p> */ public class CreateIPv6TranslatorEntryResponse 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 CreateIPv6TranslatorEntryResponseBody body; private CreateIPv6TranslatorEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIPv6TranslatorEntryResponse 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 CreateIPv6TranslatorEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIPv6TranslatorEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIPv6TranslatorEntryResponseBody body); @Override CreateIPv6TranslatorEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIPv6TranslatorEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIPv6TranslatorEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIPv6TranslatorEntryResponse 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(CreateIPv6TranslatorEntryResponseBody body) { this.body = body; return this; } @Override public CreateIPv6TranslatorEntryResponse build() { return new CreateIPv6TranslatorEntryResponse(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/CreateIPv6TranslatorEntryResponseBody.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 CreateIPv6TranslatorEntryResponseBody} extends {@link TeaModel} * * <p>CreateIPv6TranslatorEntryResponseBody</p> */ public class CreateIPv6TranslatorEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv6TranslatorEntryId") private String ipv6TranslatorEntryId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private CreateIPv6TranslatorEntryResponseBody(Builder builder) { this.ipv6TranslatorEntryId = builder.ipv6TranslatorEntryId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static CreateIPv6TranslatorEntryResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipv6TranslatorEntryId */ public String getIpv6TranslatorEntryId() { return this.ipv6TranslatorEntryId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String ipv6TranslatorEntryId; private String requestId; private Builder() { } private Builder(CreateIPv6TranslatorEntryResponseBody model) { this.ipv6TranslatorEntryId = model.ipv6TranslatorEntryId; this.requestId = model.requestId; } /** * <p>The ID of the IPv6 Translation Service instance.</p> * * <strong>example:</strong> * <p>ipv6transentry-xxxxxxxx</p> */ public Builder ipv6TranslatorEntryId(String ipv6TranslatorEntryId) { this.ipv6TranslatorEntryId = ipv6TranslatorEntryId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>DCE5D25-FFC9-492A-8371-12A4E0EE2E05</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public CreateIPv6TranslatorEntryResponseBody build() { return new CreateIPv6TranslatorEntryResponseBody(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/CreateIPv6TranslatorRequest.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 CreateIPv6TranslatorRequest} extends {@link RequestModel} * * <p>CreateIPv6TranslatorRequest</p> */ public class CreateIPv6TranslatorRequest 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") 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("Duration") private Integer duration; @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("PayType") private String payType; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Spec") private String spec; private CreateIPv6TranslatorRequest(Builder builder) { super(builder); this.autoPay = builder.autoPay; this.bandwidth = builder.bandwidth; this.clientToken = builder.clientToken; this.duration = builder.duration; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.payType = builder.payType; this.pricingCycle = builder.pricingCycle; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.spec = builder.spec; } public static Builder builder() { return new Builder(); } public static CreateIPv6TranslatorRequest 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 duration */ public Integer getDuration() { return this.duration; } /** * @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 payType */ public String getPayType() { return this.payType; } /** * @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; } /** * @return spec */ public String getSpec() { return this.spec; } public static final class Builder extends Request.Builder<CreateIPv6TranslatorRequest, Builder> { private Boolean autoPay; private Integer bandwidth; private String clientToken; private Integer duration; private String name; private String ownerAccount; private Long ownerId; private String payType; private String pricingCycle; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String spec; private Builder() { super(); } private Builder(CreateIPv6TranslatorRequest request) { super(request); this.autoPay = request.autoPay; this.bandwidth = request.bandwidth; this.clientToken = request.clientToken; this.duration = request.duration; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.payType = request.payType; this.pricingCycle = request.pricingCycle; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.spec = request.spec; } /** * <p>Specifies whether to enable automatic payment. Valid values: <strong>true and false</strong>.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder autoPay(Boolean autoPay) { this.putQueryParameter("AutoPay", autoPay); this.autoPay = autoPay; return this; } /** * <p>The bandwidth of the IPv6 Translation Service instance. Unit: Mbit/s. Valid values: <strong>1</strong> to <strong>200</strong>. If you do not specify the bandwidth for the mapping entry, the bandwidth is shared with the mapping entry.</p> * <blockquote> * <p>If you do not specify this parameter, the default bandwidth is 10 Mbit/s.</p> * </blockquote> * * <strong>example:</strong> * <p>10</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. 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>sha111</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The subscription duration.</p> * <ul> * <li>If the billing cycle is <strong>Month</strong>, valid values are <strong>1</strong> to <strong>9</strong>.</li> * <li>If the billing cycle is <strong>Year</strong>, set the value to <strong>3</strong>.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder duration(Integer duration) { this.putQueryParameter("Duration", duration); this.duration = duration; return this; } /** * <p>The name of the IPv6 Translation Service instance. The default name is the instance ID. It must be 2 to 100 characters in length and must start with a letter. It can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>ipv6_1</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 billing method of the IPv6 Translation Service instance. Valid values:</p> * <ul> * <li><strong>PREPAY</strong>: subscription</li> * <li><strong>POSTPAY</strong>: pay-as-you-go</li> * </ul> * * <strong>example:</strong> * <p>PREPAY</p> */ public Builder payType(String payType) { this.putQueryParameter("PayType", payType); this.payType = payType; 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 of the IPv6 Translation Service instance. 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>cm-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 specification of the IPv6 Translation Service instance. Set the value to <strong>small</strong>.</p> * * <strong>example:</strong> * <p>small</p> */ public Builder spec(String spec) { this.putQueryParameter("Spec", spec); this.spec = spec; return this; } @Override public CreateIPv6TranslatorRequest build() { return new CreateIPv6TranslatorRequest(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/CreateIPv6TranslatorResponse.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 CreateIPv6TranslatorResponse} extends {@link TeaModel} * * <p>CreateIPv6TranslatorResponse</p> */ public class CreateIPv6TranslatorResponse 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 CreateIPv6TranslatorResponseBody body; private CreateIPv6TranslatorResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIPv6TranslatorResponse 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 CreateIPv6TranslatorResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIPv6TranslatorResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIPv6TranslatorResponseBody body); @Override CreateIPv6TranslatorResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIPv6TranslatorResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIPv6TranslatorResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIPv6TranslatorResponse 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(CreateIPv6TranslatorResponseBody body) { this.body = body; return this; } @Override public CreateIPv6TranslatorResponse build() { return new CreateIPv6TranslatorResponse(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/CreateIPv6TranslatorResponseBody.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 CreateIPv6TranslatorResponseBody} extends {@link TeaModel} * * <p>CreateIPv6TranslatorResponseBody</p> */ public class CreateIPv6TranslatorResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv6TranslatorId") private String ipv6TranslatorId; @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("Spec") private String spec; private CreateIPv6TranslatorResponseBody(Builder builder) { this.ipv6TranslatorId = builder.ipv6TranslatorId; this.name = builder.name; this.orderId = builder.orderId; this.requestId = builder.requestId; this.spec = builder.spec; } public static Builder builder() { return new Builder(); } public static CreateIPv6TranslatorResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipv6TranslatorId */ public String getIpv6TranslatorId() { return this.ipv6TranslatorId; } /** * @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 spec */ public String getSpec() { return this.spec; } public static final class Builder { private String ipv6TranslatorId; private String name; private Long orderId; private String requestId; private String spec; private Builder() { } private Builder(CreateIPv6TranslatorResponseBody model) { this.ipv6TranslatorId = model.ipv6TranslatorId; this.name = model.name; this.orderId = model.orderId; this.requestId = model.requestId; this.spec = model.spec; } /** * <p>The ID of the IPv6 Translation Service instance.</p> * * <strong>example:</strong> * <p>ipv6trans-bp1i8ahxut1xxxx</p> */ public Builder ipv6TranslatorId(String ipv6TranslatorId) { this.ipv6TranslatorId = ipv6TranslatorId; return this; } /** * <p>The name of the IPv6 Translation Service instance.</p> * * <strong>example:</strong> * <p>test_nat64gw</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The order ID.</p> * * <strong>example:</strong> * <p>202303300940739</p> */ public Builder orderId(Long orderId) { this.orderId = orderId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>1AE05898-06E5-4782-xxxxx</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The specification of the IPv6 Translation Service instance.</p> * * <strong>example:</strong> * <p>small</p> */ public Builder spec(String spec) { this.spec = spec; return this; } public CreateIPv6TranslatorResponseBody build() { return new CreateIPv6TranslatorResponseBody(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/CreateIpsecServerRequest.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 CreateIpsecServerRequest} extends {@link RequestModel} * * <p>CreateIpsecServerRequest</p> */ public class CreateIpsecServerRequest extends Request { @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("DryRun") private String 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("IkeConfig") private String ikeConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpSecServerName") @com.aliyun.core.annotation.Validation(maxLength = 100) private String ipSecServerName; @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("Psk") private String psk; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PskEnabled") private Boolean pskEnabled; @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("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; private CreateIpsecServerRequest(Builder builder) { super(builder); this.clientIpPool = builder.clientIpPool; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.effectImmediately = builder.effectImmediately; this.ikeConfig = builder.ikeConfig; this.ipSecServerName = builder.ipSecServerName; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.psk = builder.psk; this.pskEnabled = builder.pskEnabled; this.regionId = builder.regionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static CreateIpsecServerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientIpPool */ public String getClientIpPool() { return this.clientIpPool; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public String getDryRun() { return this.dryRun; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return ikeConfig */ public String getIkeConfig() { return this.ikeConfig; } /** * @return ipSecServerName */ public String getIpSecServerName() { return this.ipSecServerName; } /** * @return ipsecConfig */ public String getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return pskEnabled */ public Boolean getPskEnabled() { return this.pskEnabled; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<CreateIpsecServerRequest, Builder> { private String clientIpPool; private String clientToken; private String dryRun; private Boolean effectImmediately; private String ikeConfig; private String ipSecServerName; private String ipsecConfig; private String localSubnet; private String psk; private Boolean pskEnabled; private String regionId; private String vpnGatewayId; private Builder() { super(); } private Builder(CreateIpsecServerRequest request) { super(request); this.clientIpPool = request.clientIpPool; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.effectImmediately = request.effectImmediately; this.ikeConfig = request.ikeConfig; this.ipSecServerName = request.ipSecServerName; this.ipsecConfig = request.ipsecConfig; this.localSubnet = request.localSubnet; this.psk = request.psk; this.pskEnabled = request.pskEnabled; this.regionId = request.regionId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The client CIDR block from which an IP address is allocated to the virtual network interface controller (NIC) of the client.</p> * <blockquote> * <p> The client CIDR block must not overlap with the CIDR blocks of the VPC.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.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>d7d24a21-f4ba-4454-9173-b38****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to only precheck this request. Valid values:</p> * <ul> * <li><strong>true</strong>: prechecks the request without creating the IPsec server. 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> (default): sends the request. This is the default value. If the request passes the precheck, the system creates the IPsec server.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(String dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>Specify whether to start connection negotiations immediately. Valid values:</p> * <ul> * <li><strong>true</strong>: immediately initiates negotiations after the configuration is complete.</li> * <li><strong>false</strong> (default): initiates negotiations when inbound traffic is detected. This is the default value.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.putQueryParameter("EffectImmediately", effectImmediately); this.effectImmediately = effectImmediately; return this; } /** * <p>The configuration of Phase 1 negotiation. Valid values:</p> * <ul> * <li><strong>IkeVersion</strong>: the IKE version. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>. Default value: <strong>ikev2</strong>.</li> * <li><strong>IkeMode</strong>: the IKE negotiation mode. Default value: <strong>main</strong>.</li> * <li><strong>IkeEncAlg</strong>: the encryption algorithm that is used in Phase 1 negotiation. Default value: <strong>aes</strong>.</li> * <li><strong>IkeAuthAlg</strong>: the authentication algorithm that is used in Phase 1 negotiation. Default value: <strong>sha1</strong>.</li> * <li><strong>IkePfs</strong>: the Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiation. Default value: <strong>group2</strong>.</li> * <li><strong>IkeLifetime</strong>: the security association (SA) lifetime determined by Phase 1 negotiation. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</li> * <li><strong>LocalId</strong>: the identifier of the IPsec server. The value can be a fully qualified domain name (FQDN) or an IP address. The default value is the public IP address of the VPN gateway.</li> * <li><strong>RemoteId</strong>: the peer identifier. The value can be an FQDN or an IP address. The default value is empty.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;IkeVersion&quot;:&quot;ikev2&quot;,&quot;IkeMode&quot;:&quot;main&quot;,&quot;IkeEncAlg&quot;:&quot;aes&quot;,&quot;IkeAuthAlg&quot;:&quot;sha1&quot;,&quot;IkePfs&quot;:&quot;group2&quot;,&quot;IkeLifetime&quot;:86400}</p> */ public Builder ikeConfig(String ikeConfig) { this.putQueryParameter("IkeConfig", ikeConfig); this.ikeConfig = ikeConfig; return this; } /** * <p>The name of the IPsec server.</p> * <p>The name must be 1 to 100 characters in length.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipSecServerName(String ipSecServerName) { this.putQueryParameter("IpSecServerName", ipSecServerName); this.ipSecServerName = ipSecServerName; return this; } /** * <p>The configuration of Phase 2 negotiation. Valid values:</p> * <ul> * <li><strong>IpsecEncAlg</strong>: the encryption algorithm that is used in Phase 2 negotiation. Default value: <strong>aes</strong>.</li> * <li><strong>IpsecAuthAlg</strong>: the authentication algorithm that is used in Phase 2 negotiation. Default value: <strong>sha1</strong>.</li> * <li><strong>IpsecPfs</strong>: forwards packets of all protocols. The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiation. Default value: <strong>group2</strong>.</li> * <li><strong>IpsecLifetime</strong>: the SA lifetime determined by Phase 2 negotiation. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>. Default value: <strong>86400</strong>.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;IpsecEncAlg&quot;:&quot;aes&quot;,&quot;IpsecAuthAlg&quot;:&quot;sha1&quot;,&quot;IpsecPfs&quot;:&quot;group2&quot;,&quot;IpsecLifetime&quot;:86400}</p> */ public Builder ipsecConfig(String ipsecConfig) { this.putQueryParameter("IpsecConfig", ipsecConfig); this.ipsecConfig = ipsecConfig; return this; } /** * <p>The local CIDR blocks, which are the CIDR blocks of the virtual private cloud (VPC) for the client to access.</p> * <p>Multiple CIDR blocks are separated with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder localSubnet(String localSubnet) { this.putQueryParameter("LocalSubnet", localSubnet); this.localSubnet = localSubnet; return this; } /** * <p>The pre-shared key.</p> * <p>The pre-shared key that is used for authentication between the IPsec-VPN server and the client. It must be 1 to 100 characters in length.</p> * <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 <a href="https://help.aliyun.com/document_detail/2794120.html">ListIpsecServers</a> to query keys generated by the system.</p> * <blockquote> * <p>The pre-shared key of the IPsec server key must be the same as that of the client. Otherwise, the connection between the IPsec server and the client cannot be established.</p> * </blockquote> * * <strong>example:</strong> * <p>Cfd123****</p> */ public Builder psk(String psk) { this.putQueryParameter("Psk", psk); this.psk = psk; return this; } /** * <p>Indicates whether pre-shared key authentication is enabled. If you set the value to <strong>true</strong>, pre-shared key authentication is enabled.</p> * <blockquote> * <p> This parameter is required.</p> * </blockquote> * * <strong>example:</strong> * <p>true</p> */ public Builder pskEnabled(Boolean pskEnabled) { this.putQueryParameter("PskEnabled", pskEnabled); this.pskEnabled = pskEnabled; return this; } /** * <p>The ID of the region where the VPN gateway 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; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp17lofy9fd0dnvzv****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public CreateIpsecServerRequest build() { return new CreateIpsecServerRequest(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/CreateIpsecServerResponse.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 CreateIpsecServerResponse} extends {@link TeaModel} * * <p>CreateIpsecServerResponse</p> */ public class CreateIpsecServerResponse 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 CreateIpsecServerResponseBody body; private CreateIpsecServerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpsecServerResponse 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 CreateIpsecServerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpsecServerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpsecServerResponseBody body); @Override CreateIpsecServerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpsecServerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpsecServerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpsecServerResponse 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(CreateIpsecServerResponseBody body) { this.body = body; return this; } @Override public CreateIpsecServerResponse build() { return new CreateIpsecServerResponse(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/CreateIpsecServerResponseBody.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 CreateIpsecServerResponseBody} extends {@link TeaModel} * * <p>CreateIpsecServerResponseBody</p> */ public class CreateIpsecServerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IpsecServerId") private String ipsecServerId; @com.aliyun.core.annotation.NameInMap("IpsecServerName") private String ipsecServerName; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private CreateIpsecServerResponseBody(Builder builder) { this.creationTime = builder.creationTime; this.ipsecServerId = builder.ipsecServerId; this.ipsecServerName = builder.ipsecServerName; this.regionId = builder.regionId; this.requestId = builder.requestId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static CreateIpsecServerResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return ipsecServerId */ public String getIpsecServerId() { return this.ipsecServerId; } /** * @return ipsecServerName */ public String getIpsecServerName() { return this.ipsecServerName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String creationTime; private String ipsecServerId; private String ipsecServerName; private String regionId; private String requestId; private String vpnGatewayId; private Builder() { } private Builder(CreateIpsecServerResponseBody model) { this.creationTime = model.creationTime; this.ipsecServerId = model.ipsecServerId; this.ipsecServerName = model.ipsecServerName; this.regionId = model.regionId; this.requestId = model.requestId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The time when the IPsec server was created.</p> * <p>T is used as a delimiter. Z indicates that the time is in UTC.</p> * * <strong>example:</strong> * <p>2021-02-22T03:24:28Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The IPsec server ID.</p> * * <strong>example:</strong> * <p>iss-bp1jougp8cfsbo8y9****</p> */ public Builder ipsecServerId(String ipsecServerId) { this.ipsecServerId = ipsecServerId; return this; } /** * <p>The IPsec server name.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipsecServerName(String ipsecServerName) { this.ipsecServerName = ipsecServerName; return this; } /** * <p>The ID of the region where the VPN gateway is deployed.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>690A967E-D4CD-4B69-8C78-94FE828BA10B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp17lofy9fd0dnvzv****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public CreateIpsecServerResponseBody build() { return new CreateIpsecServerResponseBody(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/CreateIpv4GatewayRequest.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 CreateIpv4GatewayRequest} extends {@link RequestModel} * * <p>CreateIpv4GatewayRequest</p> */ public class CreateIpv4GatewayRequest 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("Ipv4GatewayDescription") private String ipv4GatewayDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv4GatewayName") private String ipv4GatewayName; @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 CreateIpv4GatewayRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipv4GatewayDescription = builder.ipv4GatewayDescription; this.ipv4GatewayName = builder.ipv4GatewayName; 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 CreateIpv4GatewayRequest 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 ipv4GatewayDescription */ public String getIpv4GatewayDescription() { return this.ipv4GatewayDescription; } /** * @return ipv4GatewayName */ public String getIpv4GatewayName() { return this.ipv4GatewayName; } /** * @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<CreateIpv4GatewayRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipv4GatewayDescription; private String ipv4GatewayName; 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(CreateIpv4GatewayRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipv4GatewayDescription = request.ipv4GatewayDescription; this.ipv4GatewayName = request.ipv4GatewayName; 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 value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters.</p> * <blockquote> * <p> If you do not set this parameter, the system sets <strong>ClientToken</strong> to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> for each API request is 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 description of the IPv4 gateway.</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 ipv4GatewayDescription(String ipv4GatewayDescription) { this.putQueryParameter("Ipv4GatewayDescription", ipv4GatewayDescription); this.ipv4GatewayDescription = ipv4GatewayDescription; return this; } /** * <p>The name of the IPv4 gateway.</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>ipv4</p> */ public Builder ipv4GatewayName(String ipv4GatewayName) { this.putQueryParameter("Ipv4GatewayName", ipv4GatewayName); this.ipv4GatewayName = ipv4GatewayName; 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 IPv4 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>ap-southeast-6</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group.</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 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 where you want to create the IPv4 gateway.</p> * <p>You can create only one IPv4 gateway in a VPC.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-5tss06uvoyps5xoya****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public CreateIpv4GatewayRequest build() { return new CreateIpv4GatewayRequest(this); } } /** * * {@link CreateIpv4GatewayRequest} extends {@link TeaModel} * * <p>CreateIpv4GatewayRequest</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/CreateIpv4GatewayResponse.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 CreateIpv4GatewayResponse} extends {@link TeaModel} * * <p>CreateIpv4GatewayResponse</p> */ public class CreateIpv4GatewayResponse 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 CreateIpv4GatewayResponseBody body; private CreateIpv4GatewayResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static CreateIpv4GatewayResponse 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 CreateIpv4GatewayResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<CreateIpv4GatewayResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(CreateIpv4GatewayResponseBody body); @Override CreateIpv4GatewayResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<CreateIpv4GatewayResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private CreateIpv4GatewayResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(CreateIpv4GatewayResponse 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(CreateIpv4GatewayResponseBody body) { this.body = body; return this; } @Override public CreateIpv4GatewayResponse build() { return new CreateIpv4GatewayResponse(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/CreateIpv4GatewayResponseBody.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 CreateIpv4GatewayResponseBody} extends {@link TeaModel} * * <p>CreateIpv4GatewayResponseBody</p> */ public class CreateIpv4GatewayResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv4GatewayId") private String ipv4GatewayId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private CreateIpv4GatewayResponseBody(Builder builder) { this.ipv4GatewayId = builder.ipv4GatewayId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static CreateIpv4GatewayResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipv4GatewayId */ public String getIpv4GatewayId() { return this.ipv4GatewayId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder { private String ipv4GatewayId; private String requestId; private String resourceGroupId; private Builder() { } private Builder(CreateIpv4GatewayResponseBody model) { this.ipv4GatewayId = model.ipv4GatewayId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; } /** * <p>The ID of the IPv4 gateway.</p> * * <strong>example:</strong> * <p>ipv4gw-5tsnc6s4ogsedtp3k****</p> */ public Builder ipv4GatewayId(String ipv4GatewayId) { this.ipv4GatewayId = ipv4GatewayId; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F282742B-1BBB-5F63-A3AF-E92EC575A1A6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } public CreateIpv4GatewayResponseBody build() { return new CreateIpv4GatewayResponseBody(this); } } }