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/ModifyForwardEntryResponse.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 ModifyForwardEntryResponse} extends {@link TeaModel} * * <p>ModifyForwardEntryResponse</p> */ public class ModifyForwardEntryResponse 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 ModifyForwardEntryResponseBody body; private ModifyForwardEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyForwardEntryResponse 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 ModifyForwardEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyForwardEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyForwardEntryResponseBody body); @Override ModifyForwardEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyForwardEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyForwardEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyForwardEntryResponse 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(ModifyForwardEntryResponseBody body) { this.body = body; return this; } @Override public ModifyForwardEntryResponse build() { return new ModifyForwardEntryResponse(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/ModifyForwardEntryResponseBody.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 ModifyForwardEntryResponseBody} extends {@link TeaModel} * * <p>ModifyForwardEntryResponseBody</p> */ public class ModifyForwardEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyForwardEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyForwardEntryResponseBody 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(ModifyForwardEntryResponseBody model) { this.requestId = model.requestId; } /** * <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 ModifyForwardEntryResponseBody build() { return new ModifyForwardEntryResponseBody(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/ModifyFullNatEntryAttributeRequest.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 ModifyFullNatEntryAttributeRequest} extends {@link RequestModel} * * <p>ModifyFullNatEntryAttributeRequest</p> */ public class ModifyFullNatEntryAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessIp") private String accessIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccessPort") 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("FullNatEntryId") @com.aliyun.core.annotation.Validation(required = true) private String fullNatEntryId; @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") private String ipProtocol; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIp") 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") 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 ModifyFullNatEntryAttributeRequest(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.fullNatEntryId = builder.fullNatEntryId; 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 ModifyFullNatEntryAttributeRequest 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 fullNatEntryId */ public String getFullNatEntryId() { return this.fullNatEntryId; } /** * @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<ModifyFullNatEntryAttributeRequest, Builder> { private String accessIp; private String accessPort; private String clientToken; private Boolean dryRun; private String fullNatEntryDescription; private String fullNatEntryId; 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(ModifyFullNatEntryAttributeRequest request) { super(request); this.accessIp = request.accessIp; this.accessPort = request.accessPort; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.fullNatEntryDescription = request.fullNatEntryDescription; this.fullNatEntryId = request.fullNatEntryId; 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> * * <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 FULLNAT port mapping. Valid values: <strong>1</strong> to <strong>65535</strong>.</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 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>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong>: 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 new description of the FULLNAT entry.</p> * <p>You can leave this parameter empty or enter a description. If you enter a description, the description must be 2 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>abcd</p> */ public Builder fullNatEntryDescription(String fullNatEntryDescription) { this.putQueryParameter("FullNatEntryDescription", fullNatEntryDescription); this.fullNatEntryDescription = fullNatEntryDescription; return this; } /** * <p>The ID of the FULLNAT entry to be modified.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>fullnat-gw8fz23jezpbblf1j****</p> */ public Builder fullNatEntryId(String fullNatEntryId) { this.putQueryParameter("FullNatEntryId", fullNatEntryId); this.fullNatEntryId = fullNatEntryId; return this; } /** * <p>The new name of the FULLNAT 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>modify</p> */ public Builder fullNatEntryName(String fullNatEntryName) { this.putQueryParameter("FullNatEntryName", fullNatEntryName); this.fullNatEntryName = fullNatEntryName; return this; } /** * <p>The ID of the FULLNAT table to be modified.</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>: TCP</li> * <li><strong>UDP</strong></li> * </ul> * * <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 to be modified.</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 FULLNAT port mapping. 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 ID of the elastic network interface (ENI) to be modified.</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 modified 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 ModifyFullNatEntryAttributeRequest build() { return new ModifyFullNatEntryAttributeRequest(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/ModifyFullNatEntryAttributeResponse.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 ModifyFullNatEntryAttributeResponse} extends {@link TeaModel} * * <p>ModifyFullNatEntryAttributeResponse</p> */ public class ModifyFullNatEntryAttributeResponse 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 ModifyFullNatEntryAttributeResponseBody body; private ModifyFullNatEntryAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyFullNatEntryAttributeResponse 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 ModifyFullNatEntryAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyFullNatEntryAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyFullNatEntryAttributeResponseBody body); @Override ModifyFullNatEntryAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyFullNatEntryAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyFullNatEntryAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyFullNatEntryAttributeResponse 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(ModifyFullNatEntryAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyFullNatEntryAttributeResponse build() { return new ModifyFullNatEntryAttributeResponse(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/ModifyFullNatEntryAttributeResponseBody.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 ModifyFullNatEntryAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyFullNatEntryAttributeResponseBody</p> */ public class ModifyFullNatEntryAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyFullNatEntryAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyFullNatEntryAttributeResponseBody 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(ModifyFullNatEntryAttributeResponseBody model) { this.requestId = model.requestId; } /** * <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 ModifyFullNatEntryAttributeResponseBody build() { return new ModifyFullNatEntryAttributeResponseBody(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/ModifyGlobalAccelerationInstanceAttributesRequest.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 ModifyGlobalAccelerationInstanceAttributesRequest} extends {@link RequestModel} * * <p>ModifyGlobalAccelerationInstanceAttributesRequest</p> */ public class ModifyGlobalAccelerationInstanceAttributesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String globalAccelerationInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyGlobalAccelerationInstanceAttributesRequest(Builder builder) { super(builder); this.description = builder.description; this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyGlobalAccelerationInstanceAttributesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return globalAccelerationInstanceId */ public String getGlobalAccelerationInstanceId() { return this.globalAccelerationInstanceId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyGlobalAccelerationInstanceAttributesRequest, Builder> { private String description; private String globalAccelerationInstanceId; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyGlobalAccelerationInstanceAttributesRequest request) { super(request); this.description = request.description; this.globalAccelerationInstanceId = request.globalAccelerationInstanceId; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The 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 ID of the GA instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ga-14fdsf3****</p> */ public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) { this.putQueryParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); this.globalAccelerationInstanceId = globalAccelerationInstanceId; 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 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; } @Override public ModifyGlobalAccelerationInstanceAttributesRequest build() { return new ModifyGlobalAccelerationInstanceAttributesRequest(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/ModifyGlobalAccelerationInstanceAttributesResponse.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 ModifyGlobalAccelerationInstanceAttributesResponse} extends {@link TeaModel} * * <p>ModifyGlobalAccelerationInstanceAttributesResponse</p> */ public class ModifyGlobalAccelerationInstanceAttributesResponse 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 ModifyGlobalAccelerationInstanceAttributesResponseBody body; private ModifyGlobalAccelerationInstanceAttributesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyGlobalAccelerationInstanceAttributesResponse 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 ModifyGlobalAccelerationInstanceAttributesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyGlobalAccelerationInstanceAttributesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyGlobalAccelerationInstanceAttributesResponseBody body); @Override ModifyGlobalAccelerationInstanceAttributesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyGlobalAccelerationInstanceAttributesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyGlobalAccelerationInstanceAttributesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyGlobalAccelerationInstanceAttributesResponse 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(ModifyGlobalAccelerationInstanceAttributesResponseBody body) { this.body = body; return this; } @Override public ModifyGlobalAccelerationInstanceAttributesResponse build() { return new ModifyGlobalAccelerationInstanceAttributesResponse(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/ModifyGlobalAccelerationInstanceAttributesResponseBody.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 ModifyGlobalAccelerationInstanceAttributesResponseBody} extends {@link TeaModel} * * <p>ModifyGlobalAccelerationInstanceAttributesResponseBody</p> */ public class ModifyGlobalAccelerationInstanceAttributesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyGlobalAccelerationInstanceAttributesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyGlobalAccelerationInstanceAttributesResponseBody 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(ModifyGlobalAccelerationInstanceAttributesResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BD5BCEE8-F62C-40C2-9AC3-89XXXXXXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyGlobalAccelerationInstanceAttributesResponseBody build() { return new ModifyGlobalAccelerationInstanceAttributesResponseBody(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/ModifyGlobalAccelerationInstanceSpecRequest.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 ModifyGlobalAccelerationInstanceSpecRequest} extends {@link RequestModel} * * <p>ModifyGlobalAccelerationInstanceSpecRequest</p> */ public class ModifyGlobalAccelerationInstanceSpecRequest 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("GlobalAccelerationInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String globalAccelerationInstanceId; @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 ModifyGlobalAccelerationInstanceSpecRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId; 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 ModifyGlobalAccelerationInstanceSpecRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return globalAccelerationInstanceId */ public String getGlobalAccelerationInstanceId() { return this.globalAccelerationInstanceId; } /** * @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<ModifyGlobalAccelerationInstanceSpecRequest, Builder> { private String bandwidth; private String globalAccelerationInstanceId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyGlobalAccelerationInstanceSpecRequest request) { super(request); this.bandwidth = request.bandwidth; this.globalAccelerationInstanceId = request.globalAccelerationInstanceId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The maximum bandwidth of the GA instance. Unit: Mbit/s. Set the value to <strong>10</strong>.</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 ID of the GA instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ga-32s33s****</p> */ public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) { this.putQueryParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); this.globalAccelerationInstanceId = globalAccelerationInstanceId; 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; } @Override public ModifyGlobalAccelerationInstanceSpecRequest build() { return new ModifyGlobalAccelerationInstanceSpecRequest(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/ModifyGlobalAccelerationInstanceSpecResponse.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 ModifyGlobalAccelerationInstanceSpecResponse} extends {@link TeaModel} * * <p>ModifyGlobalAccelerationInstanceSpecResponse</p> */ public class ModifyGlobalAccelerationInstanceSpecResponse 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 ModifyGlobalAccelerationInstanceSpecResponseBody body; private ModifyGlobalAccelerationInstanceSpecResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyGlobalAccelerationInstanceSpecResponse 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 ModifyGlobalAccelerationInstanceSpecResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyGlobalAccelerationInstanceSpecResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyGlobalAccelerationInstanceSpecResponseBody body); @Override ModifyGlobalAccelerationInstanceSpecResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyGlobalAccelerationInstanceSpecResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyGlobalAccelerationInstanceSpecResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyGlobalAccelerationInstanceSpecResponse 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(ModifyGlobalAccelerationInstanceSpecResponseBody body) { this.body = body; return this; } @Override public ModifyGlobalAccelerationInstanceSpecResponse build() { return new ModifyGlobalAccelerationInstanceSpecResponse(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/ModifyGlobalAccelerationInstanceSpecResponseBody.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 ModifyGlobalAccelerationInstanceSpecResponseBody} extends {@link TeaModel} * * <p>ModifyGlobalAccelerationInstanceSpecResponseBody</p> */ public class ModifyGlobalAccelerationInstanceSpecResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyGlobalAccelerationInstanceSpecResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyGlobalAccelerationInstanceSpecResponseBody 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(ModifyGlobalAccelerationInstanceSpecResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>BD5BCEE8-F62C-40C2-9AC3-89XXXXXXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyGlobalAccelerationInstanceSpecResponseBody build() { return new ModifyGlobalAccelerationInstanceSpecResponseBody(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/ModifyHaVipAttributeRequest.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 ModifyHaVipAttributeRequest} extends {@link RequestModel} * * <p>ModifyHaVipAttributeRequest</p> */ public class ModifyHaVipAttributeRequest 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("HaVipId") @com.aliyun.core.annotation.Validation(required = true) private String haVipId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyHaVipAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.haVipId = builder.haVipId; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyHaVipAttributeRequest 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 haVipId */ public String getHaVipId() { return this.haVipId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyHaVipAttributeRequest, Builder> { private String clientToken; private String description; private String haVipId; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyHaVipAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.haVipId = request.haVipId; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate 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>02fb3da4-130e-11e9-8e44-0016e0****</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 ID of the HaVip.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>havip-2zeo05qre24nhrqp****</p> */ public Builder haVipId(String haVipId) { this.putQueryParameter("HaVipId", haVipId); this.haVipId = haVipId; 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 ID of the region to which the HaVip 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 ModifyHaVipAttributeRequest build() { return new ModifyHaVipAttributeRequest(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/ModifyHaVipAttributeResponse.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 ModifyHaVipAttributeResponse} extends {@link TeaModel} * * <p>ModifyHaVipAttributeResponse</p> */ public class ModifyHaVipAttributeResponse 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 ModifyHaVipAttributeResponseBody body; private ModifyHaVipAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyHaVipAttributeResponse 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 ModifyHaVipAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyHaVipAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyHaVipAttributeResponseBody body); @Override ModifyHaVipAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyHaVipAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyHaVipAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyHaVipAttributeResponse 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(ModifyHaVipAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyHaVipAttributeResponse build() { return new ModifyHaVipAttributeResponse(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/ModifyHaVipAttributeResponseBody.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 ModifyHaVipAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyHaVipAttributeResponseBody</p> */ public class ModifyHaVipAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyHaVipAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyHaVipAttributeResponseBody 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(ModifyHaVipAttributeResponseBody model) { this.requestId = model.requestId; } /** * <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 ModifyHaVipAttributeResponseBody build() { return new ModifyHaVipAttributeResponseBody(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/ModifyIPv6TranslatorAclAttributeRequest.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 ModifyIPv6TranslatorAclAttributeRequest} extends {@link RequestModel} * * <p>ModifyIPv6TranslatorAclAttributeRequest</p> */ public class ModifyIPv6TranslatorAclAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") @com.aliyun.core.annotation.Validation(required = true) private String aclId; @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 ModifyIPv6TranslatorAclAttributeRequest(Builder builder) { super(builder); this.aclId = builder.aclId; 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 ModifyIPv6TranslatorAclAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @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<ModifyIPv6TranslatorAclAttributeRequest, Builder> { private String aclId; 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(ModifyIPv6TranslatorAclAttributeRequest request) { super(request); this.aclId = request.aclId; 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 ID of the ACL that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6transacl-bp1de2****</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>The name of the ACL.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>acl1</p> */ public Builder aclName(String aclName) { this.putQueryParameter("AclName", aclName); this.aclName = aclName; 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> * * <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 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 ModifyIPv6TranslatorAclAttributeRequest build() { return new ModifyIPv6TranslatorAclAttributeRequest(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/ModifyIPv6TranslatorAclAttributeResponse.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 ModifyIPv6TranslatorAclAttributeResponse} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorAclAttributeResponse</p> */ public class ModifyIPv6TranslatorAclAttributeResponse 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 ModifyIPv6TranslatorAclAttributeResponseBody body; private ModifyIPv6TranslatorAclAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIPv6TranslatorAclAttributeResponse 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 ModifyIPv6TranslatorAclAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIPv6TranslatorAclAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIPv6TranslatorAclAttributeResponseBody body); @Override ModifyIPv6TranslatorAclAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIPv6TranslatorAclAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIPv6TranslatorAclAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIPv6TranslatorAclAttributeResponse 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(ModifyIPv6TranslatorAclAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyIPv6TranslatorAclAttributeResponse build() { return new ModifyIPv6TranslatorAclAttributeResponse(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/ModifyIPv6TranslatorAclAttributeResponseBody.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 ModifyIPv6TranslatorAclAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorAclAttributeResponseBody</p> */ public class ModifyIPv6TranslatorAclAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIPv6TranslatorAclAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIPv6TranslatorAclAttributeResponseBody 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(ModifyIPv6TranslatorAclAttributeResponseBody 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 ModifyIPv6TranslatorAclAttributeResponseBody build() { return new ModifyIPv6TranslatorAclAttributeResponseBody(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/ModifyIPv6TranslatorAclListEntryRequest.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 ModifyIPv6TranslatorAclListEntryRequest} extends {@link RequestModel} * * <p>ModifyIPv6TranslatorAclListEntryRequest</p> */ public class ModifyIPv6TranslatorAclListEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclEntryComment") @com.aliyun.core.annotation.Validation(required = true) private String aclEntryComment; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclEntryId") @com.aliyun.core.annotation.Validation(required = true) private String aclEntryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") @com.aliyun.core.annotation.Validation(required = true) private String aclId; @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 ModifyIPv6TranslatorAclListEntryRequest(Builder builder) { super(builder); this.aclEntryComment = builder.aclEntryComment; this.aclEntryId = builder.aclEntryId; this.aclId = builder.aclId; 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 ModifyIPv6TranslatorAclListEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclEntryComment */ public String getAclEntryComment() { return this.aclEntryComment; } /** * @return aclEntryId */ public String getAclEntryId() { return this.aclEntryId; } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @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<ModifyIPv6TranslatorAclListEntryRequest, Builder> { private String aclEntryComment; private String aclEntryId; private String aclId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyIPv6TranslatorAclListEntryRequest request) { super(request); this.aclEntryComment = request.aclEntryComment; this.aclEntryId = request.aclEntryId; this.aclId = request.aclId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The remarks of the ACL rule.</p> * <p>It must be 2 to 100 characters in length, and can contain digits, underscores (_), and hyphens (-). It must start with a letter.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>client IP</p> */ public Builder aclEntryComment(String aclEntryComment) { this.putQueryParameter("AclEntryComment", aclEntryComment); this.aclEntryComment = aclEntryComment; return this; } /** * <p>The ID of the ACL rule to which the IP entry belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6transaclentry-bp1jzyn7ra8pyxehd****</p> */ public Builder aclEntryId(String aclEntryId) { this.putQueryParameter("AclEntryId", aclEntryId); this.aclEntryId = aclEntryId; return this; } /** * <p>The ID of the ACL to which the IP entry belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6transacl-bp1b4z3tleyhq1s50****</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; 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 ACL.</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 ModifyIPv6TranslatorAclListEntryRequest build() { return new ModifyIPv6TranslatorAclListEntryRequest(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/ModifyIPv6TranslatorAclListEntryResponse.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 ModifyIPv6TranslatorAclListEntryResponse} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorAclListEntryResponse</p> */ public class ModifyIPv6TranslatorAclListEntryResponse 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 ModifyIPv6TranslatorAclListEntryResponseBody body; private ModifyIPv6TranslatorAclListEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIPv6TranslatorAclListEntryResponse 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 ModifyIPv6TranslatorAclListEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIPv6TranslatorAclListEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIPv6TranslatorAclListEntryResponseBody body); @Override ModifyIPv6TranslatorAclListEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIPv6TranslatorAclListEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIPv6TranslatorAclListEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIPv6TranslatorAclListEntryResponse 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(ModifyIPv6TranslatorAclListEntryResponseBody body) { this.body = body; return this; } @Override public ModifyIPv6TranslatorAclListEntryResponse build() { return new ModifyIPv6TranslatorAclListEntryResponse(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/ModifyIPv6TranslatorAclListEntryResponseBody.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 ModifyIPv6TranslatorAclListEntryResponseBody} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorAclListEntryResponseBody</p> */ public class ModifyIPv6TranslatorAclListEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIPv6TranslatorAclListEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIPv6TranslatorAclListEntryResponseBody 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(ModifyIPv6TranslatorAclListEntryResponseBody 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 ModifyIPv6TranslatorAclListEntryResponseBody build() { return new ModifyIPv6TranslatorAclListEntryResponseBody(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/ModifyIPv6TranslatorAttributeRequest.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 ModifyIPv6TranslatorAttributeRequest} extends {@link RequestModel} * * <p>ModifyIPv6TranslatorAttributeRequest</p> */ public class ModifyIPv6TranslatorAttributeRequest 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("Ipv6TranslatorId") @com.aliyun.core.annotation.Validation(required = true) private String ipv6TranslatorId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyIPv6TranslatorAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.ipv6TranslatorId = builder.ipv6TranslatorId; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyIPv6TranslatorAttributeRequest 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 ipv6TranslatorId */ public String getIpv6TranslatorId() { return this.ipv6TranslatorId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyIPv6TranslatorAttributeRequest, Builder> { private String clientToken; private String description; private String ipv6TranslatorId; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyIPv6TranslatorAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.ipv6TranslatorId = request.ipv6TranslatorId; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * * <strong>example:</strong> * <p>sha1111</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of IPv6 Translation Service. This parameter is empty by default. It must be 2 to 100 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with http:// or <a href="https://%E3%80%82">https://</a>.</p> * * <strong>example:</strong> * <p>instancedescription</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The ID of the IPv6 Translation Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6trans-bp1858ys****</p> */ public Builder ipv6TranslatorId(String ipv6TranslatorId) { this.putQueryParameter("Ipv6TranslatorId", ipv6TranslatorId); this.ipv6TranslatorId = ipv6TranslatorId; 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 can contain letters, digits, periods (.), underscores (_), and hyphens (-). It cannot start with http:// or <a href="https://%E3%80%82">https://</a>.</p> * * <strong>example:</strong> * <p>instancename</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 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; } @Override public ModifyIPv6TranslatorAttributeRequest build() { return new ModifyIPv6TranslatorAttributeRequest(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/ModifyIPv6TranslatorAttributeResponse.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 ModifyIPv6TranslatorAttributeResponse} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorAttributeResponse</p> */ public class ModifyIPv6TranslatorAttributeResponse 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 ModifyIPv6TranslatorAttributeResponseBody body; private ModifyIPv6TranslatorAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIPv6TranslatorAttributeResponse 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 ModifyIPv6TranslatorAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIPv6TranslatorAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIPv6TranslatorAttributeResponseBody body); @Override ModifyIPv6TranslatorAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIPv6TranslatorAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIPv6TranslatorAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIPv6TranslatorAttributeResponse 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(ModifyIPv6TranslatorAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyIPv6TranslatorAttributeResponse build() { return new ModifyIPv6TranslatorAttributeResponse(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/ModifyIPv6TranslatorAttributeResponseBody.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 ModifyIPv6TranslatorAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorAttributeResponseBody</p> */ public class ModifyIPv6TranslatorAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIPv6TranslatorAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIPv6TranslatorAttributeResponseBody 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(ModifyIPv6TranslatorAttributeResponseBody model) { this.requestId = model.requestId; } /** * <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 ModifyIPv6TranslatorAttributeResponseBody build() { return new ModifyIPv6TranslatorAttributeResponseBody(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/ModifyIPv6TranslatorBandwidthRequest.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 ModifyIPv6TranslatorBandwidthRequest} extends {@link RequestModel} * * <p>ModifyIPv6TranslatorBandwidthRequest</p> */ public class ModifyIPv6TranslatorBandwidthRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoPay") private Boolean autoPay; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(required = true) private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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; private ModifyIPv6TranslatorBandwidthRequest(Builder builder) { super(builder); this.autoPay = builder.autoPay; this.bandwidth = builder.bandwidth; this.clientToken = builder.clientToken; this.ipv6TranslatorId = builder.ipv6TranslatorId; 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 ModifyIPv6TranslatorBandwidthRequest 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 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; } public static final class Builder extends Request.Builder<ModifyIPv6TranslatorBandwidthRequest, Builder> { private Boolean autoPay; private Integer bandwidth; private String clientToken; private String ipv6TranslatorId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyIPv6TranslatorBandwidthRequest request) { super(request); this.autoPay = request.autoPay; this.bandwidth = request.bandwidth; this.clientToken = request.clientToken; this.ipv6TranslatorId = request.ipv6TranslatorId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>Specifies whether to enable auto-payment for the instance. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder autoPay(Boolean autoPay) { this.putQueryParameter("AutoPay", autoPay); this.autoPay = autoPay; return this; } /** * <p>The maximum bandwidth of the IPv6 Translation Service instance. Valid values: <strong>1</strong> to <strong>200</strong>. 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 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> * * <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 ID of the IPv6 Translation Service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6trans-bp1858ys****</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; } @Override public ModifyIPv6TranslatorBandwidthRequest build() { return new ModifyIPv6TranslatorBandwidthRequest(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/ModifyIPv6TranslatorBandwidthResponse.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 ModifyIPv6TranslatorBandwidthResponse} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorBandwidthResponse</p> */ public class ModifyIPv6TranslatorBandwidthResponse 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 ModifyIPv6TranslatorBandwidthResponseBody body; private ModifyIPv6TranslatorBandwidthResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIPv6TranslatorBandwidthResponse 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 ModifyIPv6TranslatorBandwidthResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIPv6TranslatorBandwidthResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIPv6TranslatorBandwidthResponseBody body); @Override ModifyIPv6TranslatorBandwidthResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIPv6TranslatorBandwidthResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIPv6TranslatorBandwidthResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIPv6TranslatorBandwidthResponse 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(ModifyIPv6TranslatorBandwidthResponseBody body) { this.body = body; return this; } @Override public ModifyIPv6TranslatorBandwidthResponse build() { return new ModifyIPv6TranslatorBandwidthResponse(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/ModifyIPv6TranslatorBandwidthResponseBody.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 ModifyIPv6TranslatorBandwidthResponseBody} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorBandwidthResponseBody</p> */ public class ModifyIPv6TranslatorBandwidthResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("OrderId") private String orderId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIPv6TranslatorBandwidthResponseBody(Builder builder) { this.orderId = builder.orderId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIPv6TranslatorBandwidthResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return orderId */ public String getOrderId() { return this.orderId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String orderId; private String requestId; private Builder() { } private Builder(ModifyIPv6TranslatorBandwidthResponseBody model) { this.orderId = model.orderId; this.requestId = model.requestId; } /** * <p>The order ID.</p> * * <strong>example:</strong> * <p>202304500950739</p> */ public Builder orderId(String orderId) { this.orderId = orderId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>EF8198EE-8FC9-49C2-A22E-xxxx</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyIPv6TranslatorBandwidthResponseBody build() { return new ModifyIPv6TranslatorBandwidthResponseBody(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/ModifyIPv6TranslatorEntryRequest.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 ModifyIPv6TranslatorEntryRequest} extends {@link RequestModel} * * <p>ModifyIPv6TranslatorEntryRequest</p> */ public class ModifyIPv6TranslatorEntryRequest 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") private Integer allocateIpv6Port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendIpv4Addr") private String backendIpv4Addr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BackendIpv4Port") 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("Ipv6TranslatorEntryId") @com.aliyun.core.annotation.Validation(required = true) private String ipv6TranslatorEntryId; @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") private String transProtocol; private ModifyIPv6TranslatorEntryRequest(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.ipv6TranslatorEntryId = builder.ipv6TranslatorEntryId; 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 ModifyIPv6TranslatorEntryRequest 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 ipv6TranslatorEntryId */ public String getIpv6TranslatorEntryId() { return this.ipv6TranslatorEntryId; } /** * @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<ModifyIPv6TranslatorEntryRequest, 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 ipv6TranslatorEntryId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String transProtocol; private Builder() { super(); } private Builder(ModifyIPv6TranslatorEntryRequest 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.ipv6TranslatorEntryId = request.ipv6TranslatorEntryId; 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-bp1de27sou71g0lf****</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>off</p> */ public Builder aclStatus(String aclStatus) { this.putQueryParameter("AclStatus", aclStatus); this.aclStatus = aclStatus; return this; } /** * <p>The ACL type. 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> * * <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> * * <strong>example:</strong> * <p>47.11.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> * * <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. Unit: Mbit/s. Valid values:</p> * <ul> * <li><strong>-1</strong> (default): does not limit the maximum bandwidth specified in the IPv6 mapping entry.</li> * <li><strong>1</strong> to <strong>200</strong>: changes the maximum bandwidth specified in the IPv6 mapping entry.</li> * </ul> * <blockquote> * <p>The sum of maximum bandwidth values specified in all IPv6 entries cannot exceed the maximum bandwidth supported by the instance.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder entryBandwidth(Integer entryBandwidth) { this.putQueryParameter("EntryBandwidth", entryBandwidth); this.entryBandwidth = entryBandwidth; return this; } /** * <p>The description of the IPv6 mapping entry. It must be 2 to 100 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with http:// or <a href="https://%E3%80%82">https://</a>.</p> * * <strong>example:</strong> * <p>entrydescription</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 digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with http:// or <a href="https://%E3%80%82">https://</a>.</p> * * <strong>example:</strong> * <p>entry1</p> */ public Builder entryName(String entryName) { this.putQueryParameter("EntryName", entryName); this.entryName = entryName; return this; } /** * <p>The ID of the IPv6 mapping entry.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6trans-bp1858ys****</p> */ public Builder ipv6TranslatorEntryId(String ipv6TranslatorEntryId) { this.putQueryParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); this.ipv6TranslatorEntryId = ipv6TranslatorEntryId; 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; } /** * <p>The protocol. Valid values:</p> * <ul> * <li><strong>tcp</strong></li> * <li><strong>udp</strong></li> * </ul> * * <strong>example:</strong> * <p>tcp</p> */ public Builder transProtocol(String transProtocol) { this.putQueryParameter("TransProtocol", transProtocol); this.transProtocol = transProtocol; return this; } @Override public ModifyIPv6TranslatorEntryRequest build() { return new ModifyIPv6TranslatorEntryRequest(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/ModifyIPv6TranslatorEntryResponse.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 ModifyIPv6TranslatorEntryResponse} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorEntryResponse</p> */ public class ModifyIPv6TranslatorEntryResponse 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 ModifyIPv6TranslatorEntryResponseBody body; private ModifyIPv6TranslatorEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIPv6TranslatorEntryResponse 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 ModifyIPv6TranslatorEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIPv6TranslatorEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIPv6TranslatorEntryResponseBody body); @Override ModifyIPv6TranslatorEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIPv6TranslatorEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIPv6TranslatorEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIPv6TranslatorEntryResponse 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(ModifyIPv6TranslatorEntryResponseBody body) { this.body = body; return this; } @Override public ModifyIPv6TranslatorEntryResponse build() { return new ModifyIPv6TranslatorEntryResponse(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/ModifyIPv6TranslatorEntryResponseBody.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 ModifyIPv6TranslatorEntryResponseBody} extends {@link TeaModel} * * <p>ModifyIPv6TranslatorEntryResponseBody</p> */ public class ModifyIPv6TranslatorEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIPv6TranslatorEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIPv6TranslatorEntryResponseBody 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(ModifyIPv6TranslatorEntryResponseBody 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 ModifyIPv6TranslatorEntryResponseBody build() { return new ModifyIPv6TranslatorEntryResponseBody(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/ModifyIpv6AddressAttributeRequest.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 ModifyIpv6AddressAttributeRequest} extends {@link RequestModel} * * <p>ModifyIpv6AddressAttributeRequest</p> */ public class ModifyIpv6AddressAttributeRequest 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("Ipv6AddressId") @com.aliyun.core.annotation.Validation(required = true) private String ipv6AddressId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyIpv6AddressAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.dryRun = builder.dryRun; this.ipv6AddressId = builder.ipv6AddressId; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyIpv6AddressAttributeRequest 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 ipv6AddressId */ public String getIpv6AddressId() { return this.ipv6AddressId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyIpv6AddressAttributeRequest, Builder> { private String clientToken; private String description; private Boolean dryRun; private String ipv6AddressId; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyIpv6AddressAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.dryRun = request.dryRun; this.ipv6AddressId = request.ipv6AddressId; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate 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>d7d24a21-f4ba-4454-9173-b3828dae492b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of the IPv6 address.</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>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 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 IPv6 address.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6-hp32vv2klzw4yerdf****</p> */ public Builder ipv6AddressId(String ipv6AddressId) { this.putQueryParameter("Ipv6AddressId", ipv6AddressId); this.ipv6AddressId = ipv6AddressId; return this; } /** * <p>The name of the IPv6 address.</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 IPv6 address. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-huhehaote</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * 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 ModifyIpv6AddressAttributeRequest build() { return new ModifyIpv6AddressAttributeRequest(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/ModifyIpv6AddressAttributeResponse.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 ModifyIpv6AddressAttributeResponse} extends {@link TeaModel} * * <p>ModifyIpv6AddressAttributeResponse</p> */ public class ModifyIpv6AddressAttributeResponse 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 ModifyIpv6AddressAttributeResponseBody body; private ModifyIpv6AddressAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIpv6AddressAttributeResponse 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 ModifyIpv6AddressAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIpv6AddressAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIpv6AddressAttributeResponseBody body); @Override ModifyIpv6AddressAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIpv6AddressAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIpv6AddressAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIpv6AddressAttributeResponse 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(ModifyIpv6AddressAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyIpv6AddressAttributeResponse build() { return new ModifyIpv6AddressAttributeResponse(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/ModifyIpv6AddressAttributeResponseBody.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 ModifyIpv6AddressAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyIpv6AddressAttributeResponseBody</p> */ public class ModifyIpv6AddressAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIpv6AddressAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIpv6AddressAttributeResponseBody 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(ModifyIpv6AddressAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D560AF68-4CE8-4A5C-B3FE-469F558094D0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyIpv6AddressAttributeResponseBody build() { return new ModifyIpv6AddressAttributeResponseBody(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/ModifyIpv6GatewayAttributeRequest.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 ModifyIpv6GatewayAttributeRequest} extends {@link RequestModel} * * <p>ModifyIpv6GatewayAttributeRequest</p> */ public class ModifyIpv6GatewayAttributeRequest 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("Ipv6GatewayId") @com.aliyun.core.annotation.Validation(required = true) private String ipv6GatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyIpv6GatewayAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.dryRun = builder.dryRun; this.ipv6GatewayId = builder.ipv6GatewayId; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyIpv6GatewayAttributeRequest 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 ipv6GatewayId */ public String getIpv6GatewayId() { return this.ipv6GatewayId; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyIpv6GatewayAttributeRequest, Builder> { private String clientToken; private String description; private Boolean dryRun; private String ipv6GatewayId; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyIpv6GatewayAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.dryRun = request.dryRun; this.ipv6GatewayId = request.ipv6GatewayId; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate 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-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of the IPv6 gateway.</p> * <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>ipv6description</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including invalid AccessKey pairs, unauthorized RAM users, and missing parameter values. If the request fails the dry run, an error message is returned. If the request passes dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong>: sends the API request. After the request passes the check, a 2XX HTTP status code is returned and the gateway endpoint is associated with the route table. This is the default value.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPv6 gateway that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6gw-hp39kh1ya51yzp2lu****</p> */ public Builder ipv6GatewayId(String ipv6GatewayId) { this.putQueryParameter("Ipv6GatewayId", ipv6GatewayId); this.ipv6GatewayId = ipv6GatewayId; return this; } /** * <p>The name of the IPv6 gateway.</p> * <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>ipv6name</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the IPv6 gateway. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-huhehaote</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * 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 ModifyIpv6GatewayAttributeRequest build() { return new ModifyIpv6GatewayAttributeRequest(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/ModifyIpv6GatewayAttributeResponse.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 ModifyIpv6GatewayAttributeResponse} extends {@link TeaModel} * * <p>ModifyIpv6GatewayAttributeResponse</p> */ public class ModifyIpv6GatewayAttributeResponse 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 ModifyIpv6GatewayAttributeResponseBody body; private ModifyIpv6GatewayAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIpv6GatewayAttributeResponse 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 ModifyIpv6GatewayAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIpv6GatewayAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIpv6GatewayAttributeResponseBody body); @Override ModifyIpv6GatewayAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIpv6GatewayAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIpv6GatewayAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIpv6GatewayAttributeResponse 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(ModifyIpv6GatewayAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyIpv6GatewayAttributeResponse build() { return new ModifyIpv6GatewayAttributeResponse(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/ModifyIpv6GatewayAttributeResponseBody.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 ModifyIpv6GatewayAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyIpv6GatewayAttributeResponseBody</p> */ public class ModifyIpv6GatewayAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIpv6GatewayAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIpv6GatewayAttributeResponseBody 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(ModifyIpv6GatewayAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyIpv6GatewayAttributeResponseBody build() { return new ModifyIpv6GatewayAttributeResponseBody(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/ModifyIpv6InternetBandwidthRequest.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 ModifyIpv6InternetBandwidthRequest} extends {@link RequestModel} * * <p>ModifyIpv6InternetBandwidthRequest</p> */ public class ModifyIpv6InternetBandwidthRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(required = true) private Long 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("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6AddressId") private String ipv6AddressId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6InternetBandwidthId") private String ipv6InternetBandwidthId; @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 ModifyIpv6InternetBandwidthRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipv6AddressId = builder.ipv6AddressId; this.ipv6InternetBandwidthId = builder.ipv6InternetBandwidthId; 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 ModifyIpv6InternetBandwidthRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public Long getBandwidth() { return this.bandwidth; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ipv6AddressId */ public String getIpv6AddressId() { return this.ipv6AddressId; } /** * @return ipv6InternetBandwidthId */ public String getIpv6InternetBandwidthId() { return this.ipv6InternetBandwidthId; } /** * @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<ModifyIpv6InternetBandwidthRequest, Builder> { private Long bandwidth; private String clientToken; private Boolean dryRun; private String ipv6AddressId; private String ipv6InternetBandwidthId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyIpv6InternetBandwidthRequest request) { super(request); this.bandwidth = request.bandwidth; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipv6AddressId = request.ipv6AddressId; this.ipv6InternetBandwidthId = request.ipv6InternetBandwidthId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The Internet bandwidth value of the IPv6 address. Unit: Mbit/s.</p> * <ul> * <li>If the billing method is pay-by-data-transfer, valid values are <strong>1</strong> to <strong>1000</strong>.</li> * <li>If the billing method is pay-by-bandwidth, valid values are <strong>1</strong> to <strong>2000</strong>.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder bandwidth(Long 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 token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform a dry run, without sending the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: pre-checks the request but does not create the IPv4 gateway. 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): sends the API request. After the request passes the check, an HTTP 2xx status code is returned and the IPv4 gateway is created.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPv6 address.</p> * <blockquote> * <p> You must specify one of <strong>Ipv6AddressId</strong> and <strong>Ipv6InternetBandwidthId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>ipv6-2zen5j4axcp5l5qyy****</p> */ public Builder ipv6AddressId(String ipv6AddressId) { this.putQueryParameter("Ipv6AddressId", ipv6AddressId); this.ipv6AddressId = ipv6AddressId; return this; } /** * <p>The instance ID of the Internet bandwidth of the IPv6 address.</p> * * <strong>example:</strong> * <p>ipv6bw-uf6hcyzu65v98v3du****</p> */ public Builder ipv6InternetBandwidthId(String ipv6InternetBandwidthId) { this.putQueryParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); this.ipv6InternetBandwidthId = ipv6InternetBandwidthId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the IPv6 gateway is deployed. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-huhehaote</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * 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 ModifyIpv6InternetBandwidthRequest build() { return new ModifyIpv6InternetBandwidthRequest(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/ModifyIpv6InternetBandwidthResponse.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 ModifyIpv6InternetBandwidthResponse} extends {@link TeaModel} * * <p>ModifyIpv6InternetBandwidthResponse</p> */ public class ModifyIpv6InternetBandwidthResponse 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 ModifyIpv6InternetBandwidthResponseBody body; private ModifyIpv6InternetBandwidthResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyIpv6InternetBandwidthResponse 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 ModifyIpv6InternetBandwidthResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyIpv6InternetBandwidthResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyIpv6InternetBandwidthResponseBody body); @Override ModifyIpv6InternetBandwidthResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyIpv6InternetBandwidthResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyIpv6InternetBandwidthResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyIpv6InternetBandwidthResponse 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(ModifyIpv6InternetBandwidthResponseBody body) { this.body = body; return this; } @Override public ModifyIpv6InternetBandwidthResponse build() { return new ModifyIpv6InternetBandwidthResponse(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/ModifyIpv6InternetBandwidthResponseBody.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 ModifyIpv6InternetBandwidthResponseBody} extends {@link TeaModel} * * <p>ModifyIpv6InternetBandwidthResponseBody</p> */ public class ModifyIpv6InternetBandwidthResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyIpv6InternetBandwidthResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyIpv6InternetBandwidthResponseBody 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(ModifyIpv6InternetBandwidthResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D560AF68-4CE8-4A5C-B3FE-469F558094D0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyIpv6InternetBandwidthResponseBody build() { return new ModifyIpv6InternetBandwidthResponseBody(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/ModifyNatGatewayAttributeRequest.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 ModifyNatGatewayAttributeRequest} extends {@link RequestModel} * * <p>ModifyNatGatewayAttributeRequest</p> */ public class ModifyNatGatewayAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EipBindMode") private String eipBindMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableSessionLog") private Boolean enableSessionLog; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IcmpReplyEnabled") private Boolean icmpReplyEnabled; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogDelivery") private LogDelivery logDelivery; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String natGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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 ModifyNatGatewayAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.eipBindMode = builder.eipBindMode; this.enableSessionLog = builder.enableSessionLog; this.icmpReplyEnabled = builder.icmpReplyEnabled; this.logDelivery = builder.logDelivery; this.name = builder.name; this.natGatewayId = builder.natGatewayId; 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 ModifyNatGatewayAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return eipBindMode */ public String getEipBindMode() { return this.eipBindMode; } /** * @return enableSessionLog */ public Boolean getEnableSessionLog() { return this.enableSessionLog; } /** * @return icmpReplyEnabled */ public Boolean getIcmpReplyEnabled() { return this.icmpReplyEnabled; } /** * @return logDelivery */ public LogDelivery getLogDelivery() { return this.logDelivery; } /** * @return name */ public String getName() { return this.name; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @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<ModifyNatGatewayAttributeRequest, Builder> { private String description; private String eipBindMode; private Boolean enableSessionLog; private Boolean icmpReplyEnabled; private LogDelivery logDelivery; private String name; private String natGatewayId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyNatGatewayAttributeRequest request) { super(request); this.description = request.description; this.eipBindMode = request.eipBindMode; this.enableSessionLog = request.enableSessionLog; this.icmpReplyEnabled = request.icmpReplyEnabled; this.logDelivery = request.logDelivery; this.name = request.name; this.natGatewayId = request.natGatewayId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The description of the NAT gateway.</p> * <p>The description must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>Description</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The mode in which the NAT gateway is associated with an elastic IP address (EIP). You can leave this parameter empty. If you want to specify a value for this parameter, set the value to <strong>NAT</strong>, which indicates that the NAT gateway is associated with the EIP in NAT mode.</p> * <p>**</p> * <p><strong>Description</strong></p> * <ul> * <li><p>If EipBindMode is set to MULTI_BINDED when the NAT gateway is created, you can change the value of this parameter from <strong>MULTI_BINDED</strong> to <strong>NAT</strong>. If EipBindMode is set to NAT when the NAT gateway is created, you cannot change the value of this parameter from <strong>NAT</strong> to <strong>MULTI_BINDED</strong>. For more information about <strong>MULTI_BINDED</strong>, see <a href="https://help.aliyun.com/document_detail/120219.html">CreateNatGateway</a>.</p> * </li> * <li><p>When the mode in which the NAT gateway is associated with an EIP is being changed, a transient connection that lasts a few seconds may occur. If the number of EIPs with which the NAT gateway is associated increases, the transient connection lasts longer. You can change the mode only for a NAT gateway that is associated with up to five EIPs. We recommend that you change the mode during off-peak hours.</p> * </li> * <li><p>After the mode is changed to <strong>NAT</strong>, the Internet NAT gateway is compatible with the IPv4 gateway. However, if you associate an EIP with the NAT gateway, the EIP occupies one private IP address on the vSwitch of the NAT gateway. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the EIP fails to be associated with the NAT gateway.</p> * </li> * </ul> * * <strong>example:</strong> * <p>NAT</p> */ public Builder eipBindMode(String eipBindMode) { this.putQueryParameter("EipBindMode", eipBindMode); this.eipBindMode = eipBindMode; return this; } /** * EnableSessionLog. */ public Builder enableSessionLog(Boolean enableSessionLog) { this.putQueryParameter("EnableSessionLog", enableSessionLog); this.enableSessionLog = enableSessionLog; return this; } /** * <p>Specifies whether to enable the Internet Control Message Protocol (ICMP) non-retrieval feature. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder icmpReplyEnabled(Boolean icmpReplyEnabled) { this.putQueryParameter("IcmpReplyEnabled", icmpReplyEnabled); this.icmpReplyEnabled = icmpReplyEnabled; return this; } /** * LogDelivery. */ public Builder logDelivery(LogDelivery logDelivery) { String logDeliveryShrink = shrink(logDelivery, "LogDelivery", "json"); this.putQueryParameter("LogDelivery", logDeliveryShrink); this.logDelivery = logDelivery; return this; } /** * <p>The name of the NAT 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>nat123</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The ID of the NAT gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ngw-2ze0dcn4mq31qx2jc****</p> */ public Builder natGatewayId(String natGatewayId) { this.putQueryParameter("NatGatewayId", natGatewayId); this.natGatewayId = natGatewayId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the NAT gateway.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>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 ModifyNatGatewayAttributeRequest build() { return new ModifyNatGatewayAttributeRequest(this); } } /** * * {@link ModifyNatGatewayAttributeRequest} extends {@link TeaModel} * * <p>ModifyNatGatewayAttributeRequest</p> */ public static class LogDelivery extends TeaModel { @com.aliyun.core.annotation.NameInMap("LogDeliveryType") private String logDeliveryType; @com.aliyun.core.annotation.NameInMap("LogDestination") private String logDestination; private LogDelivery(Builder builder) { this.logDeliveryType = builder.logDeliveryType; this.logDestination = builder.logDestination; } public static Builder builder() { return new Builder(); } public static LogDelivery create() { return builder().build(); } /** * @return logDeliveryType */ public String getLogDeliveryType() { return this.logDeliveryType; } /** * @return logDestination */ public String getLogDestination() { return this.logDestination; } public static final class Builder { private String logDeliveryType; private String logDestination; private Builder() { } private Builder(LogDelivery model) { this.logDeliveryType = model.logDeliveryType; this.logDestination = model.logDestination; } /** * LogDeliveryType. */ public Builder logDeliveryType(String logDeliveryType) { this.logDeliveryType = logDeliveryType; return this; } /** * LogDestination. */ public Builder logDestination(String logDestination) { this.logDestination = logDestination; return this; } public LogDelivery build() { return new LogDelivery(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/ModifyNatGatewayAttributeResponse.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 ModifyNatGatewayAttributeResponse} extends {@link TeaModel} * * <p>ModifyNatGatewayAttributeResponse</p> */ public class ModifyNatGatewayAttributeResponse 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 ModifyNatGatewayAttributeResponseBody body; private ModifyNatGatewayAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyNatGatewayAttributeResponse 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 ModifyNatGatewayAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyNatGatewayAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyNatGatewayAttributeResponseBody body); @Override ModifyNatGatewayAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyNatGatewayAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyNatGatewayAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyNatGatewayAttributeResponse 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(ModifyNatGatewayAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyNatGatewayAttributeResponse build() { return new ModifyNatGatewayAttributeResponse(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/ModifyNatGatewayAttributeResponseBody.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 ModifyNatGatewayAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyNatGatewayAttributeResponseBody</p> */ public class ModifyNatGatewayAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyNatGatewayAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyNatGatewayAttributeResponseBody 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(ModifyNatGatewayAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>AB5F62CF-2B60-4458-A756-42C9DFE108D1</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyNatGatewayAttributeResponseBody build() { return new ModifyNatGatewayAttributeResponseBody(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/ModifyNatGatewaySpecRequest.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 ModifyNatGatewaySpecRequest} extends {@link RequestModel} * * <p>ModifyNatGatewaySpecRequest</p> */ public class ModifyNatGatewaySpecRequest 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("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String natGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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("Spec") @com.aliyun.core.annotation.Validation(required = true) private String spec; private ModifyNatGatewaySpecRequest(Builder builder) { super(builder); this.autoPay = builder.autoPay; this.clientToken = builder.clientToken; this.natGatewayId = builder.natGatewayId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; 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 ModifyNatGatewaySpecRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return autoPay */ public Boolean getAutoPay() { return this.autoPay; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @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 spec */ public String getSpec() { return this.spec; } public static final class Builder extends Request.Builder<ModifyNatGatewaySpecRequest, Builder> { private Boolean autoPay; private String clientToken; private String natGatewayId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String spec; private Builder() { super(); } private Builder(ModifyNatGatewaySpecRequest request) { super(request); this.autoPay = request.autoPay; this.clientToken = request.clientToken; this.natGatewayId = request.natGatewayId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.spec = request.spec; } /** * <p>Specifies whether to automatically complete the payment.</p> * <ul> * <li><strong>true</strong>: enables automatic payment. Payments are automatically completed.</li> * <li><strong>false</strong> (default): disables automatic payment. If you select this option, you must go to the Order Center to complete the payment after an order is generated.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder autoPay(Boolean autoPay) { this.putQueryParameter("AutoPay", autoPay); this.autoPay = autoPay; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the Internet NAT gateway that you want to upgrade.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ngw-bp1uewa15k4iy5770****</p> */ public Builder natGatewayId(String natGatewayId) { this.putQueryParameter("NatGatewayId", natGatewayId); this.natGatewayId = natGatewayId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the Internet NAT gateway is deployed.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the 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 size of the Internet NAT gateway. Valid values:</p> * <ul> * <li><strong>Small</strong>: small</li> * <li><strong>Middle</strong>: medium</li> * <li><strong>Large</strong>: large</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Middle</p> */ public Builder spec(String spec) { this.putQueryParameter("Spec", spec); this.spec = spec; return this; } @Override public ModifyNatGatewaySpecRequest build() { return new ModifyNatGatewaySpecRequest(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/ModifyNatGatewaySpecResponse.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 ModifyNatGatewaySpecResponse} extends {@link TeaModel} * * <p>ModifyNatGatewaySpecResponse</p> */ public class ModifyNatGatewaySpecResponse 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 ModifyNatGatewaySpecResponseBody body; private ModifyNatGatewaySpecResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyNatGatewaySpecResponse 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 ModifyNatGatewaySpecResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyNatGatewaySpecResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyNatGatewaySpecResponseBody body); @Override ModifyNatGatewaySpecResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyNatGatewaySpecResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyNatGatewaySpecResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyNatGatewaySpecResponse 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(ModifyNatGatewaySpecResponseBody body) { this.body = body; return this; } @Override public ModifyNatGatewaySpecResponse build() { return new ModifyNatGatewaySpecResponse(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/ModifyNatGatewaySpecResponseBody.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 ModifyNatGatewaySpecResponseBody} extends {@link TeaModel} * * <p>ModifyNatGatewaySpecResponseBody</p> */ public class ModifyNatGatewaySpecResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyNatGatewaySpecResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyNatGatewaySpecResponseBody 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(ModifyNatGatewaySpecResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>DBD4E4A2-786E-4BD2-8EB6-107FFC2B5B7D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyNatGatewaySpecResponseBody build() { return new ModifyNatGatewaySpecResponseBody(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/ModifyNatIpAttributeRequest.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 ModifyNatIpAttributeRequest} extends {@link RequestModel} * * <p>ModifyNatIpAttributeRequest</p> */ public class ModifyNatIpAttributeRequest 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("NatIpDescription") private String natIpDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpId") @com.aliyun.core.annotation.Validation(required = true) private String natIpId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpName") private String natIpName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyNatIpAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.natIpDescription = builder.natIpDescription; this.natIpId = builder.natIpId; this.natIpName = builder.natIpName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyNatIpAttributeRequest 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 natIpDescription */ public String getNatIpDescription() { return this.natIpDescription; } /** * @return natIpId */ public String getNatIpId() { return this.natIpId; } /** * @return natIpName */ public String getNatIpName() { return this.natIpName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyNatIpAttributeRequest, Builder> { private String clientToken; private Boolean dryRun; private String natIpDescription; private String natIpId; private String natIpName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyNatIpAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.natIpDescription = request.natIpDescription; this.natIpId = request.natIpId; this.natIpName = request.natIpName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request.</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): sends the request. If the request passes the precheck, a 2xx HTTP status code is returned and the name and description of the NAT IP address are modified.</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 NAT IP address that you want to modify.</p> * <p>The description must be 2 to 256 characters in length and start with a letter. The description cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder natIpDescription(String natIpDescription) { this.putQueryParameter("NatIpDescription", natIpDescription); this.natIpDescription = natIpDescription; return this; } /** * <p>The ID of the NAT IP address that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpcnatip-gw8e1n11f44wpg****</p> */ public Builder natIpId(String natIpId) { this.putQueryParameter("NatIpId", natIpId); this.natIpId = natIpId; return this; } /** * <p>The name of the NAT IP address that you want to modify.</p> * <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>newname</p> */ public Builder natIpName(String natIpName) { this.putQueryParameter("NatIpName", natIpName); this.natIpName = natIpName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the NAT gateway to which the NAT IP address that you want to modify 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 ModifyNatIpAttributeRequest build() { return new ModifyNatIpAttributeRequest(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/ModifyNatIpAttributeResponse.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 ModifyNatIpAttributeResponse} extends {@link TeaModel} * * <p>ModifyNatIpAttributeResponse</p> */ public class ModifyNatIpAttributeResponse 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 ModifyNatIpAttributeResponseBody body; private ModifyNatIpAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyNatIpAttributeResponse 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 ModifyNatIpAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyNatIpAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyNatIpAttributeResponseBody body); @Override ModifyNatIpAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyNatIpAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyNatIpAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyNatIpAttributeResponse 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(ModifyNatIpAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyNatIpAttributeResponse build() { return new ModifyNatIpAttributeResponse(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/ModifyNatIpAttributeResponseBody.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 ModifyNatIpAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyNatIpAttributeResponseBody</p> */ public class ModifyNatIpAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyNatIpAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyNatIpAttributeResponseBody 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(ModifyNatIpAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>6CC9456C-2E29-452A-9180-B6926E51B5CA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyNatIpAttributeResponseBody build() { return new ModifyNatIpAttributeResponseBody(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/ModifyNatIpCidrAttributeRequest.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 ModifyNatIpCidrAttributeRequest} extends {@link RequestModel} * * <p>ModifyNatIpCidrAttributeRequest</p> */ public class ModifyNatIpCidrAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String natGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidr") @com.aliyun.core.annotation.Validation(required = true) private String natIpCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidrDescription") private String natIpCidrDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidrName") private String natIpCidrName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyNatIpCidrAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.natGatewayId = builder.natGatewayId; this.natIpCidr = builder.natIpCidr; this.natIpCidrDescription = builder.natIpCidrDescription; this.natIpCidrName = builder.natIpCidrName; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyNatIpCidrAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return natIpCidr */ public String getNatIpCidr() { return this.natIpCidr; } /** * @return natIpCidrDescription */ public String getNatIpCidrDescription() { return this.natIpCidrDescription; } /** * @return natIpCidrName */ public String getNatIpCidrName() { return this.natIpCidrName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyNatIpCidrAttributeRequest, Builder> { private String clientToken; private Boolean dryRun; private String natGatewayId; private String natIpCidr; private String natIpCidrDescription; private String natIpCidrName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyNatIpCidrAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.natGatewayId = request.natGatewayId; this.natIpCidr = request.natIpCidr; this.natIpCidrDescription = request.natIpCidrDescription; this.natIpCidrName = request.natIpCidrName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the Virtual Private Cloud (VPC) NAT gateway to which the NAT CIDR block belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ngw-gw8v16wgvtq26vh59****</p> */ public Builder natGatewayId(String natGatewayId) { this.putQueryParameter("NatGatewayId", natGatewayId); this.natGatewayId = natGatewayId; return this; } /** * <p>The NAT CIDR block whose name and description you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>172.16.0.0/24</p> */ public Builder natIpCidr(String natIpCidr) { this.putQueryParameter("NatIpCidr", natIpCidr); this.natIpCidr = natIpCidr; return this; } /** * <p>The new description of the NAT CIDR block.</p> * <p>The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>newtest</p> */ public Builder natIpCidrDescription(String natIpCidrDescription) { this.putQueryParameter("NatIpCidrDescription", natIpCidrDescription); this.natIpCidrDescription = natIpCidrDescription; return this; } /** * <p>The new name of the NAT CIDR block.</p> * <p>The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.</p> * * <strong>example:</strong> * <p>newname</p> */ public Builder natIpCidrName(String natIpCidrName) { this.putQueryParameter("NatIpCidrName", natIpCidrName); this.natIpCidrName = natIpCidrName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the NAT gateway to which the NAT CIDR block 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 ModifyNatIpCidrAttributeRequest build() { return new ModifyNatIpCidrAttributeRequest(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/ModifyNatIpCidrAttributeResponse.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 ModifyNatIpCidrAttributeResponse} extends {@link TeaModel} * * <p>ModifyNatIpCidrAttributeResponse</p> */ public class ModifyNatIpCidrAttributeResponse 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 ModifyNatIpCidrAttributeResponseBody body; private ModifyNatIpCidrAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyNatIpCidrAttributeResponse 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 ModifyNatIpCidrAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyNatIpCidrAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyNatIpCidrAttributeResponseBody body); @Override ModifyNatIpCidrAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyNatIpCidrAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyNatIpCidrAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyNatIpCidrAttributeResponse 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(ModifyNatIpCidrAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyNatIpCidrAttributeResponse build() { return new ModifyNatIpCidrAttributeResponse(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/ModifyNatIpCidrAttributeResponseBody.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 ModifyNatIpCidrAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyNatIpCidrAttributeResponseBody</p> */ public class ModifyNatIpCidrAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyNatIpCidrAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyNatIpCidrAttributeResponseBody 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(ModifyNatIpCidrAttributeResponseBody model) { this.requestId = model.requestId; } /** * <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 ModifyNatIpCidrAttributeResponseBody build() { return new ModifyNatIpCidrAttributeResponseBody(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/ModifyNetworkAclAttributesRequest.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 ModifyNetworkAclAttributesRequest} extends {@link RequestModel} * * <p>ModifyNetworkAclAttributesRequest</p> */ public class ModifyNetworkAclAttributesRequest 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("NetworkAclId") @com.aliyun.core.annotation.Validation(required = true) private String networkAclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkAclName") private String networkAclName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyNetworkAclAttributesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.description = builder.description; this.dryRun = builder.dryRun; this.networkAclId = builder.networkAclId; this.networkAclName = builder.networkAclName; 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 ModifyNetworkAclAttributesRequest 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 networkAclId */ public String getNetworkAclId() { return this.networkAclId; } /** * @return networkAclName */ public String getNetworkAclName() { return this.networkAclName; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyNetworkAclAttributesRequest, Builder> { private String clientToken; private String description; private Boolean dryRun; private String networkAclId; private String networkAclName; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyNetworkAclAttributesRequest request) { super(request); this.clientToken = request.clientToken; this.description = request.description; this.dryRun = request.dryRun; this.networkAclId = request.networkAclId; this.networkAclName = request.networkAclName; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The 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 network ACL.</p> * <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This is my NetworkAcl.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong>: 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>acl-bp1lhl0taikrxxxxxxxx</p> */ public Builder networkAclId(String networkAclId) { this.putQueryParameter("NetworkAclId", networkAclId); this.networkAclId = networkAclId; return this; } /** * <p>The name of the network ACL.</p> * <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>acl-1</p> */ public Builder networkAclName(String networkAclName) { this.putQueryParameter("NetworkAclName", networkAclName); this.networkAclName = networkAclName; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the network ACL.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyNetworkAclAttributesRequest build() { return new ModifyNetworkAclAttributesRequest(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/ModifyNetworkAclAttributesResponse.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 ModifyNetworkAclAttributesResponse} extends {@link TeaModel} * * <p>ModifyNetworkAclAttributesResponse</p> */ public class ModifyNetworkAclAttributesResponse 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 ModifyNetworkAclAttributesResponseBody body; private ModifyNetworkAclAttributesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyNetworkAclAttributesResponse 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 ModifyNetworkAclAttributesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyNetworkAclAttributesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyNetworkAclAttributesResponseBody body); @Override ModifyNetworkAclAttributesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyNetworkAclAttributesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyNetworkAclAttributesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyNetworkAclAttributesResponse 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(ModifyNetworkAclAttributesResponseBody body) { this.body = body; return this; } @Override public ModifyNetworkAclAttributesResponse build() { return new ModifyNetworkAclAttributesResponse(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/ModifyNetworkAclAttributesResponseBody.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 ModifyNetworkAclAttributesResponseBody} extends {@link TeaModel} * * <p>ModifyNetworkAclAttributesResponseBody</p> */ public class ModifyNetworkAclAttributesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyNetworkAclAttributesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyNetworkAclAttributesResponseBody 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(ModifyNetworkAclAttributesResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8F76C3E4-B39F-465D-B8B3-50BAF03CA833</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyNetworkAclAttributesResponseBody build() { return new ModifyNetworkAclAttributesResponseBody(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/ModifyPhysicalConnectionAttributeRequest.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 ModifyPhysicalConnectionAttributeRequest} extends {@link RequestModel} * * <p>ModifyPhysicalConnectionAttributeRequest</p> */ public class ModifyPhysicalConnectionAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LineOperator") private String lineOperator; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerLocation") private String peerLocation; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PhysicalConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String physicalConnectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PortType") private String portType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RedundantPhysicalConnectionId") private String redundantPhysicalConnectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("bandwidth") private Integer bandwidth; private ModifyPhysicalConnectionAttributeRequest(Builder builder) { super(builder); this.circuitCode = builder.circuitCode; this.clientToken = builder.clientToken; this.description = builder.description; this.lineOperator = builder.lineOperator; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerLocation = builder.peerLocation; this.physicalConnectionId = builder.physicalConnectionId; this.portType = builder.portType; this.redundantPhysicalConnectionId = builder.redundantPhysicalConnectionId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.bandwidth = builder.bandwidth; } public static Builder builder() { return new Builder(); } public static ModifyPhysicalConnectionAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return lineOperator */ public String getLineOperator() { return this.lineOperator; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return peerLocation */ public String getPeerLocation() { return this.peerLocation; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @return portType */ public String getPortType() { return this.portType; } /** * @return redundantPhysicalConnectionId */ public String getRedundantPhysicalConnectionId() { return this.redundantPhysicalConnectionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } public static final class Builder extends Request.Builder<ModifyPhysicalConnectionAttributeRequest, Builder> { private String circuitCode; private String clientToken; private String description; private String lineOperator; private String name; private String ownerAccount; private Long ownerId; private String peerLocation; private String physicalConnectionId; private String portType; private String redundantPhysicalConnectionId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Integer bandwidth; private Builder() { super(); } private Builder(ModifyPhysicalConnectionAttributeRequest request) { super(request); this.circuitCode = request.circuitCode; this.clientToken = request.clientToken; this.description = request.description; this.lineOperator = request.lineOperator; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerLocation = request.peerLocation; this.physicalConnectionId = request.physicalConnectionId; this.portType = request.portType; this.redundantPhysicalConnectionId = request.redundantPhysicalConnectionId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.bandwidth = request.bandwidth; } /** * <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>longtel001</p> */ public Builder circuitCode(String circuitCode) { this.putQueryParameter("CircuitCode", circuitCode); this.circuitCode = circuitCode; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The 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>efefe566754h</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of the Express Connect circuit.</p> * <p>The description must be 2 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>The description of the Express Connect circuit.</p> */ public Builder description(String description) { this.putQueryParameter("Description", 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> * * <strong>example:</strong> * <p>CT</p> */ public Builder lineOperator(String lineOperator) { this.putQueryParameter("LineOperator", lineOperator); this.lineOperator = lineOperator; return this; } /** * <p>The name of the Express Connect circuit.</p> * <p>The name must be 2 to 128 characters in length and can contain letters, digits, 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>Name</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The geographical location of the data center.</p> * * <strong>example:</strong> * <p>XX Number, XX Road, XX Town, XX District, Hangzhou City, Zhejiang Province.</p> */ public Builder peerLocation(String peerLocation) { this.putQueryParameter("PeerLocation", peerLocation); this.peerLocation = peerLocation; return this; } /** * <p>The ID of the Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-119mfjzm******</p> */ public Builder physicalConnectionId(String physicalConnectionId) { this.putQueryParameter("PhysicalConnectionId", physicalConnectionId); this.physicalConnectionId = physicalConnectionId; return this; } /** * <p>The port type of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>100Base-T</strong>: 100 Mbit/s copper Ethernet port</li> * <li><strong>1000Base-T</strong> (default): 1,000 Mbit/s copper Ethernet port</li> * <li><strong>1000Base-LX</strong>: 1,000 Mbit/s single-mode optical port (10 kilometers)</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 kilometers)</li> * <li><strong>40GBase-LR</strong>: 40,000 Mbit/s single-mode optical port</li> * <li><strong>100GBase-LR</strong>: 100,000 Mbit/s single-mode optical port</li> * </ul> * <blockquote> * <p> To use ports 40GBase-LR and 100GBase-LR, you must first contact your account manager.</p> * </blockquote> * * <strong>example:</strong> * <p>1000Base-LX</p> */ public Builder portType(String portType) { this.putQueryParameter("PortType", portType); this.portType = portType; return this; } /** * <p>The ID of the redundant Express Connect circuit. The redundant Express Connect circuit must be in the <strong>Allocated</strong>, <strong>Confirmed</strong>, or <strong>Enabled</strong> state.</p> * * <strong>example:</strong> * <p>pc-119mfjzm7</p> */ public Builder redundantPhysicalConnectionId(String redundantPhysicalConnectionId) { this.putQueryParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); this.redundantPhysicalConnectionId = redundantPhysicalConnectionId; return this; } /** * <p>The region ID of the Express Connect circuit.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * 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 bandwidth value for the connection over the Express Connect circuit. Unit: Mbit/s. Valid values: 2 to 10240.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } @Override public ModifyPhysicalConnectionAttributeRequest build() { return new ModifyPhysicalConnectionAttributeRequest(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/ModifyPhysicalConnectionAttributeResponse.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 ModifyPhysicalConnectionAttributeResponse} extends {@link TeaModel} * * <p>ModifyPhysicalConnectionAttributeResponse</p> */ public class ModifyPhysicalConnectionAttributeResponse 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 ModifyPhysicalConnectionAttributeResponseBody body; private ModifyPhysicalConnectionAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyPhysicalConnectionAttributeResponse 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 ModifyPhysicalConnectionAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyPhysicalConnectionAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyPhysicalConnectionAttributeResponseBody body); @Override ModifyPhysicalConnectionAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyPhysicalConnectionAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyPhysicalConnectionAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyPhysicalConnectionAttributeResponse 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(ModifyPhysicalConnectionAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyPhysicalConnectionAttributeResponse build() { return new ModifyPhysicalConnectionAttributeResponse(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/ModifyPhysicalConnectionAttributeResponseBody.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 ModifyPhysicalConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyPhysicalConnectionAttributeResponseBody</p> */ public class ModifyPhysicalConnectionAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyPhysicalConnectionAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyPhysicalConnectionAttributeResponseBody 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(ModifyPhysicalConnectionAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>013EE132-A109-4247-91B0-099A8FF49AD7</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyPhysicalConnectionAttributeResponseBody build() { return new ModifyPhysicalConnectionAttributeResponseBody(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/ModifyRouteEntryRequest.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 ModifyRouteEntryRequest} extends {@link RequestModel} * * <p>ModifyRouteEntryRequest</p> */ public class ModifyRouteEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") private String destinationCidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewNextHopId") private String newNextHopId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewNextHopType") private String newNextHopType; @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("RouteEntryId") private String routeEntryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteEntryName") private String routeEntryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; private ModifyRouteEntryRequest(Builder builder) { super(builder); this.description = builder.description; this.destinationCidrBlock = builder.destinationCidrBlock; this.dryRun = builder.dryRun; this.newNextHopId = builder.newNextHopId; this.newNextHopType = builder.newNextHopType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeEntryId = builder.routeEntryId; this.routeEntryName = builder.routeEntryName; this.routeTableId = builder.routeTableId; } public static Builder builder() { return new Builder(); } public static ModifyRouteEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return newNextHopId */ public String getNewNextHopId() { return this.newNextHopId; } /** * @return newNextHopType */ public String getNewNextHopType() { return this.newNextHopType; } /** * @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 routeEntryId */ public String getRouteEntryId() { return this.routeEntryId; } /** * @return routeEntryName */ public String getRouteEntryName() { return this.routeEntryName; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } public static final class Builder extends Request.Builder<ModifyRouteEntryRequest, Builder> { private String description; private String destinationCidrBlock; private Boolean dryRun; private String newNextHopId; private String newNextHopType; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeEntryId; private String routeEntryName; private String routeTableId; private Builder() { super(); } private Builder(ModifyRouteEntryRequest request) { super(request); this.description = request.description; this.destinationCidrBlock = request.destinationCidrBlock; this.dryRun = request.dryRun; this.newNextHopId = request.newNextHopId; this.newNextHopType = request.newNextHopType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeEntryId = request.routeEntryId; this.routeEntryName = request.routeEntryName; this.routeTableId = request.routeTableId; } /** * <p>The description of the route entry.</p> * <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>EntryDescription</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The destination CIDR block of the route entry. Only IPv4 CIDR blocks, IPv6 CIDR blocks, and prefix lists are supported.</p> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.putQueryParameter("DestinationCidrBlock", destinationCidrBlock); this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs a dry run. The system checks the request for potential issues, including the AccessKey pair, the permissions of the RAM user, and the required parameters. 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 new next hop instance.</p> * * <strong>example:</strong> * <p>eni-bp17y37ytsenqyim****</p> */ public Builder newNextHopId(String newNextHopId) { this.putQueryParameter("NewNextHopId", newNextHopId); this.newNextHopId = newNextHopId; return this; } /** * <p>The new next hop type of the route.</p> * * <strong>example:</strong> * <p>NetworkInterface</p> */ public Builder newNextHopType(String newNextHopType) { this.putQueryParameter("NewNextHopType", newNextHopType); this.newNextHopType = newNextHopType; 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 route 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; } /** * 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 custom route entry.</p> * * <strong>example:</strong> * <p>rte-acfvgfsghfdd****</p> */ public Builder routeEntryId(String routeEntryId) { this.putQueryParameter("RouteEntryId", routeEntryId); this.routeEntryId = routeEntryId; return this; } /** * <p>The name of the route entry.</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>EntryName</p> */ public Builder routeEntryName(String routeEntryName) { this.putQueryParameter("RouteEntryName", routeEntryName); this.routeEntryName = routeEntryName; return this; } /** * <p>The ID of the route table to which the route entry belongs.</p> * * <strong>example:</strong> * <p>vtb-bp1nk7zk65du3pni8z9td</p> */ public Builder routeTableId(String routeTableId) { this.putQueryParameter("RouteTableId", routeTableId); this.routeTableId = routeTableId; return this; } @Override public ModifyRouteEntryRequest build() { return new ModifyRouteEntryRequest(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/ModifyRouteEntryResponse.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 ModifyRouteEntryResponse} extends {@link TeaModel} * * <p>ModifyRouteEntryResponse</p> */ public class ModifyRouteEntryResponse 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 ModifyRouteEntryResponseBody body; private ModifyRouteEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyRouteEntryResponse 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 ModifyRouteEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyRouteEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyRouteEntryResponseBody body); @Override ModifyRouteEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyRouteEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyRouteEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyRouteEntryResponse 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(ModifyRouteEntryResponseBody body) { this.body = body; return this; } @Override public ModifyRouteEntryResponse build() { return new ModifyRouteEntryResponse(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/ModifyRouteEntryResponseBody.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 ModifyRouteEntryResponseBody} extends {@link TeaModel} * * <p>ModifyRouteEntryResponseBody</p> */ public class ModifyRouteEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyRouteEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyRouteEntryResponseBody 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(ModifyRouteEntryResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>861E6630-AEC0-4B2D-B214-6CB5E44B7F04</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyRouteEntryResponseBody build() { return new ModifyRouteEntryResponseBody(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/ModifyRouteTableAttributesRequest.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 ModifyRouteTableAttributesRequest} extends {@link RequestModel} * * <p>ModifyRouteTableAttributesRequest</p> */ public class ModifyRouteTableAttributesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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("RoutePropagationEnable") private Boolean routePropagationEnable; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteTableId") @com.aliyun.core.annotation.Validation(required = true) private String routeTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteTableName") private String routeTableName; private ModifyRouteTableAttributesRequest(Builder builder) { super(builder); this.description = builder.description; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routePropagationEnable = builder.routePropagationEnable; this.routeTableId = builder.routeTableId; this.routeTableName = builder.routeTableName; } public static Builder builder() { return new Builder(); } public static ModifyRouteTableAttributesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routePropagationEnable */ public Boolean getRoutePropagationEnable() { return this.routePropagationEnable; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return routeTableName */ public String getRouteTableName() { return this.routeTableName; } public static final class Builder extends Request.Builder<ModifyRouteTableAttributesRequest, Builder> { private String description; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Boolean routePropagationEnable; private String routeTableId; private String routeTableName; private Builder() { super(); } private Builder(ModifyRouteTableAttributesRequest request) { super(request); this.description = request.description; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routePropagationEnable = request.routePropagationEnable; this.routeTableId = request.routeTableId; this.routeTableName = request.routeTableName; } /** * <p>The description of the route table.</p> * <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the virtual private cloud (VPC) to which the custom route table belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-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>Indicates whether to enable route propagation to receive dynamic routes. Valid values:</p> * <ul> * <li><p><strong>true</strong> (default): enables route propagation.</p> * </li> * <li><p><strong>false</strong>: disables route propagation.</p> * </li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder routePropagationEnable(Boolean routePropagationEnable) { this.putQueryParameter("RoutePropagationEnable", routePropagationEnable); this.routePropagationEnable = routePropagationEnable; return this; } /** * <p>The ID of the route table.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vtb-bp145q7glnuzdvzu2****</p> */ public Builder routeTableId(String routeTableId) { this.putQueryParameter("RouteTableId", routeTableId); this.routeTableId = routeTableId; return this; } /** * <p>The name of the route table.</p> * <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>doctest</p> */ public Builder routeTableName(String routeTableName) { this.putQueryParameter("RouteTableName", routeTableName); this.routeTableName = routeTableName; return this; } @Override public ModifyRouteTableAttributesRequest build() { return new ModifyRouteTableAttributesRequest(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/ModifyRouteTableAttributesResponse.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 ModifyRouteTableAttributesResponse} extends {@link TeaModel} * * <p>ModifyRouteTableAttributesResponse</p> */ public class ModifyRouteTableAttributesResponse 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 ModifyRouteTableAttributesResponseBody body; private ModifyRouteTableAttributesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyRouteTableAttributesResponse 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 ModifyRouteTableAttributesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyRouteTableAttributesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyRouteTableAttributesResponseBody body); @Override ModifyRouteTableAttributesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyRouteTableAttributesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyRouteTableAttributesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyRouteTableAttributesResponse 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(ModifyRouteTableAttributesResponseBody body) { this.body = body; return this; } @Override public ModifyRouteTableAttributesResponse build() { return new ModifyRouteTableAttributesResponse(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/ModifyRouteTableAttributesResponseBody.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 ModifyRouteTableAttributesResponseBody} extends {@link TeaModel} * * <p>ModifyRouteTableAttributesResponseBody</p> */ public class ModifyRouteTableAttributesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyRouteTableAttributesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyRouteTableAttributesResponseBody 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(ModifyRouteTableAttributesResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>62172DD5-6BAC-45DF-8D44</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyRouteTableAttributesResponseBody build() { return new ModifyRouteTableAttributesResponseBody(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/ModifyRouterInterfaceAttributeRequest.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 ModifyRouterInterfaceAttributeRequest} extends {@link RequestModel} * * <p>ModifyRouterInterfaceAttributeRequest</p> */ public class ModifyRouterInterfaceAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DeleteHealthCheckIp") private Boolean deleteHealthCheckIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HcRate") private Integer hcRate; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HcThreshold") private Integer hcThreshold; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckSourceIp") private String healthCheckSourceIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckTargetIp") private String healthCheckTargetIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OppositeInterfaceId") private String oppositeInterfaceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OppositeInterfaceOwnerId") private Long oppositeInterfaceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OppositeRouterId") private String oppositeRouterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OppositeRouterType") private String oppositeRouterType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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 ModifyRouterInterfaceAttributeRequest(Builder builder) { super(builder); this.deleteHealthCheckIp = builder.deleteHealthCheckIp; this.description = builder.description; this.hcRate = builder.hcRate; this.hcThreshold = builder.hcThreshold; this.healthCheckSourceIp = builder.healthCheckSourceIp; this.healthCheckTargetIp = builder.healthCheckTargetIp; this.name = builder.name; this.oppositeInterfaceId = builder.oppositeInterfaceId; this.oppositeInterfaceOwnerId = builder.oppositeInterfaceOwnerId; this.oppositeRouterId = builder.oppositeRouterId; this.oppositeRouterType = builder.oppositeRouterType; 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 ModifyRouterInterfaceAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return deleteHealthCheckIp */ public Boolean getDeleteHealthCheckIp() { return this.deleteHealthCheckIp; } /** * @return description */ public String getDescription() { return this.description; } /** * @return hcRate */ public Integer getHcRate() { return this.hcRate; } /** * @return hcThreshold */ public Integer getHcThreshold() { return this.hcThreshold; } /** * @return healthCheckSourceIp */ public String getHealthCheckSourceIp() { return this.healthCheckSourceIp; } /** * @return healthCheckTargetIp */ public String getHealthCheckTargetIp() { return this.healthCheckTargetIp; } /** * @return name */ public String getName() { return this.name; } /** * @return oppositeInterfaceId */ public String getOppositeInterfaceId() { return this.oppositeInterfaceId; } /** * @return oppositeInterfaceOwnerId */ public Long getOppositeInterfaceOwnerId() { return this.oppositeInterfaceOwnerId; } /** * @return oppositeRouterId */ public String getOppositeRouterId() { return this.oppositeRouterId; } /** * @return oppositeRouterType */ public String getOppositeRouterType() { return this.oppositeRouterType; } /** * @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<ModifyRouterInterfaceAttributeRequest, Builder> { private Boolean deleteHealthCheckIp; private String description; private Integer hcRate; private Integer hcThreshold; private String healthCheckSourceIp; private String healthCheckTargetIp; private String name; private String oppositeInterfaceId; private Long oppositeInterfaceOwnerId; private String oppositeRouterId; private String oppositeRouterType; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routerInterfaceId; private Builder() { super(); } private Builder(ModifyRouterInterfaceAttributeRequest request) { super(request); this.deleteHealthCheckIp = request.deleteHealthCheckIp; this.description = request.description; this.hcRate = request.hcRate; this.hcThreshold = request.hcThreshold; this.healthCheckSourceIp = request.healthCheckSourceIp; this.healthCheckTargetIp = request.healthCheckTargetIp; this.name = request.name; this.oppositeInterfaceId = request.oppositeInterfaceId; this.oppositeInterfaceOwnerId = request.oppositeInterfaceOwnerId; this.oppositeRouterId = request.oppositeRouterId; this.oppositeRouterType = request.oppositeRouterType; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routerInterfaceId = request.routerInterfaceId; } /** * <p>Specifies whether to delete the health check IP addresses configured on the router interface. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder deleteHealthCheckIp(Boolean deleteHealthCheckIp) { this.putQueryParameter("DeleteHealthCheckIp", deleteHealthCheckIp); this.deleteHealthCheckIp = deleteHealthCheckIp; return this; } /** * <p>The description of the router interface.</p> * <p>The value 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>The description of the router interface.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The rate of health checks. Unit: milliseconds. The recommended value is <strong>2000</strong>. This value specifies the interval at which probe packets are sent during a health check.</p> * <p>In this example, <strong>HcThreshold</strong> is set to <strong>8</strong> and <strong>HcRate</strong> is set to <strong>2000</strong>. In this example, probe packets are sent from <strong>HealthCheckSourceIp</strong> (source address) to <strong>HealthCheckTargetIp</strong> (destination address) every 2,000 seconds. If no response is returned for eight consecutive times, the health check fails.</p> * * <strong>example:</strong> * <p>2000</p> */ public Builder hcRate(Integer hcRate) { this.putQueryParameter("HcRate", hcRate); this.hcRate = hcRate; return this; } /** * <p>The healthy threshold. Unit: packets. We recommend that you set the value to <strong>8</strong>. This value specifies the number of probe packets that are sent during a health check.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder hcThreshold(Integer hcThreshold) { this.putQueryParameter("HcThreshold", hcThreshold); this.hcThreshold = hcThreshold; return this; } /** * <p>The source IP address that is used to perform health checks. The source IP address must be an idle IP address of the local virtual private cloud (VPC).</p> * <blockquote> * <p> You can set this parameter when an Express Connect circuit is used.</p> * </blockquote> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder healthCheckSourceIp(String healthCheckSourceIp) { this.putQueryParameter("HealthCheckSourceIp", healthCheckSourceIp); this.healthCheckSourceIp = healthCheckSourceIp; return this; } /** * <p>The destination IP address that is used to perform health checks.</p> * <blockquote> * <p> This parameter is required when <strong>HealthCheckSourceIp</strong> is specified.</p> * </blockquote> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder healthCheckTargetIp(String healthCheckTargetIp) { this.putQueryParameter("HealthCheckTargetIp", healthCheckTargetIp); this.healthCheckTargetIp = healthCheckTargetIp; return this; } /** * <p>The name of the router interface.</p> * <p>The name must be 2 to 128 characters in length, and can contain letters, digits, 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; } /** * <p>The ID of the peer router interface.</p> * * <strong>example:</strong> * <p>ri-2zeo3xzyf38r4urz****</p> */ public Builder oppositeInterfaceId(String oppositeInterfaceId) { this.putQueryParameter("OppositeInterfaceId", oppositeInterfaceId); this.oppositeInterfaceId = oppositeInterfaceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the peer router interface belongs.</p> * * <strong>example:</strong> * <p>28768383240243****</p> */ public Builder oppositeInterfaceOwnerId(Long oppositeInterfaceOwnerId) { this.putQueryParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId; return this; } /** * <p>The ID of the peer router.</p> * * <strong>example:</strong> * <p>vrt-bp1jcg5cmxjbl9xgc****</p> */ public Builder oppositeRouterId(String oppositeRouterId) { this.putQueryParameter("OppositeRouterId", oppositeRouterId); this.oppositeRouterId = oppositeRouterId; return this; } /** * <p>The type of router to which the peer router interface belongs. Valid values:</p> * <ul> * <li><strong>VRouter</strong></li> * <li><strong>VBR</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>VBR</p> */ public Builder oppositeRouterType(String oppositeRouterType) { this.putQueryParameter("OppositeRouterType", oppositeRouterType); this.oppositeRouterType = oppositeRouterType; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the router interface.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the router interface.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ri-2zeo3xzyf38r4urz****</p> */ public Builder routerInterfaceId(String routerInterfaceId) { this.putQueryParameter("RouterInterfaceId", routerInterfaceId); this.routerInterfaceId = routerInterfaceId; return this; } @Override public ModifyRouterInterfaceAttributeRequest build() { return new ModifyRouterInterfaceAttributeRequest(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/ModifyRouterInterfaceAttributeResponse.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 ModifyRouterInterfaceAttributeResponse} extends {@link TeaModel} * * <p>ModifyRouterInterfaceAttributeResponse</p> */ public class ModifyRouterInterfaceAttributeResponse 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 ModifyRouterInterfaceAttributeResponseBody body; private ModifyRouterInterfaceAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyRouterInterfaceAttributeResponse 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 ModifyRouterInterfaceAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyRouterInterfaceAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyRouterInterfaceAttributeResponseBody body); @Override ModifyRouterInterfaceAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyRouterInterfaceAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyRouterInterfaceAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyRouterInterfaceAttributeResponse 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(ModifyRouterInterfaceAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyRouterInterfaceAttributeResponse build() { return new ModifyRouterInterfaceAttributeResponse(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/ModifyRouterInterfaceAttributeResponseBody.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 ModifyRouterInterfaceAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyRouterInterfaceAttributeResponseBody</p> */ public class ModifyRouterInterfaceAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyRouterInterfaceAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyRouterInterfaceAttributeResponseBody 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(ModifyRouterInterfaceAttributeResponseBody 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 ModifyRouterInterfaceAttributeResponseBody build() { return new ModifyRouterInterfaceAttributeResponseBody(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/ModifyRouterInterfaceSpecRequest.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 ModifyRouterInterfaceSpecRequest} extends {@link RequestModel} * * <p>ModifyRouterInterfaceSpecRequest</p> */ public class ModifyRouterInterfaceSpecRequest 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("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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Spec") @com.aliyun.core.annotation.Validation(required = true) private String spec; private ModifyRouterInterfaceSpecRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routerInterfaceId = builder.routerInterfaceId; this.spec = builder.spec; } public static Builder builder() { return new Builder(); } public static ModifyRouterInterfaceSpecRequest 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 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; } /** * @return spec */ public String getSpec() { return this.spec; } public static final class Builder extends Request.Builder<ModifyRouterInterfaceSpecRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routerInterfaceId; private String spec; private Builder() { super(); } private Builder(ModifyRouterInterfaceSpecRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routerInterfaceId = request.routerInterfaceId; this.spec = request.spec; } /** * <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-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 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 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; } /** * <p>The specification of the router interface. Valid specifications and bandwidth values:</p> * <ul> * <li><strong>Mini.2</strong>: 2 Mbit/s</li> * <li><strong>Mini.5</strong>: 5 Mbit/s</li> * <li><strong>Small.1</strong>: 10 Mbit/s</li> * <li><strong>Small.2</strong>: 20 Mbit/s</li> * <li><strong>Small.5</strong>: 50 Mbit/s</li> * <li><strong>Middle.1</strong>: 100 Mbit/s</li> * <li><strong>Middle.2</strong>: 200 Mbit/s</li> * <li><strong>Middle.5</strong>: 500 Mbit/s</li> * <li><strong>Large.1</strong>: 1,000 Mbit/s</li> * <li><strong>Large.2</strong>: 2,000 Mbit/s</li> * <li><strong>Large.5</strong>: 5,000 Mbit/s</li> * <li><strong>Xlarge.1</strong>: 10,000 Mbit/s</li> * </ul> * <blockquote> * <p> When <strong>Role</strong> is set to <strong>AcceptingSide</strong>, set <strong>Spec</strong> to <strong>Negative</strong>.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Small.1</p> */ public Builder spec(String spec) { this.putQueryParameter("Spec", spec); this.spec = spec; return this; } @Override public ModifyRouterInterfaceSpecRequest build() { return new ModifyRouterInterfaceSpecRequest(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/ModifyRouterInterfaceSpecResponse.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 ModifyRouterInterfaceSpecResponse} extends {@link TeaModel} * * <p>ModifyRouterInterfaceSpecResponse</p> */ public class ModifyRouterInterfaceSpecResponse 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 ModifyRouterInterfaceSpecResponseBody body; private ModifyRouterInterfaceSpecResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyRouterInterfaceSpecResponse 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 ModifyRouterInterfaceSpecResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyRouterInterfaceSpecResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyRouterInterfaceSpecResponseBody body); @Override ModifyRouterInterfaceSpecResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyRouterInterfaceSpecResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyRouterInterfaceSpecResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyRouterInterfaceSpecResponse 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(ModifyRouterInterfaceSpecResponseBody body) { this.body = body; return this; } @Override public ModifyRouterInterfaceSpecResponse build() { return new ModifyRouterInterfaceSpecResponse(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/ModifyRouterInterfaceSpecResponseBody.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 ModifyRouterInterfaceSpecResponseBody} extends {@link TeaModel} * * <p>ModifyRouterInterfaceSpecResponseBody</p> */ public class ModifyRouterInterfaceSpecResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; private ModifyRouterInterfaceSpecResponseBody(Builder builder) { this.requestId = builder.requestId; this.spec = builder.spec; } public static Builder builder() { return new Builder(); } public static ModifyRouterInterfaceSpecResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return spec */ public String getSpec() { return this.spec; } public static final class Builder { private String requestId; private String spec; private Builder() { } private Builder(ModifyRouterInterfaceSpecResponseBody model) { this.requestId = model.requestId; this.spec = model.spec; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The specification of the router interface. Valid values:</p> * <ul> * <li><strong>Mini.2</strong>: 2 Mbit/s</li> * <li><strong>Mini.5</strong>: 5 Mbit/s</li> * <li><strong>Small.1</strong>: 10 Mbit/s</li> * <li><strong>Small.2</strong>: 20 Mbit/s</li> * <li><strong>Small.5</strong>: 50 Mbit/s</li> * <li><strong>Middle.1</strong>: 100 Mbit/s</li> * <li><strong>Middle.2</strong>: 200 Mbit/s</li> * <li><strong>Middle.5</strong>: 500 Mbit/s</li> * <li><strong>Large.1</strong>: 1,000 Mbit/s</li> * <li><strong>Large.2</strong>: 2,000 Mbit/s</li> * <li><strong>Large.5</strong>: 5,000 Mbit/s</li> * <li><strong>Xlarge.1</strong>: 10,000 Mbit/s</li> * </ul> * * <strong>example:</strong> * <p>Small.1</p> */ public Builder spec(String spec) { this.spec = spec; return this; } public ModifyRouterInterfaceSpecResponseBody build() { return new ModifyRouterInterfaceSpecResponseBody(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/ModifySnatEntryRequest.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 ModifySnatEntryRequest} extends {@link RequestModel} * * <p>ModifySnatEntryRequest</p> */ public class ModifySnatEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EipAffinity") private Integer eipAffinity; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkInterfaceId") private String networkInterfaceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatEntryId") @com.aliyun.core.annotation.Validation(required = true) private String snatEntryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatEntryName") private String snatEntryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatIp") private String snatIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatTableId") @com.aliyun.core.annotation.Validation(required = true) private String snatTableId; private ModifySnatEntryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.eipAffinity = builder.eipAffinity; this.networkInterfaceId = builder.networkInterfaceId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.snatEntryId = builder.snatEntryId; this.snatEntryName = builder.snatEntryName; this.snatIp = builder.snatIp; this.snatTableId = builder.snatTableId; } public static Builder builder() { return new Builder(); } public static ModifySnatEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return eipAffinity */ public Integer getEipAffinity() { return this.eipAffinity; } /** * @return networkInterfaceId */ public String getNetworkInterfaceId() { return this.networkInterfaceId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return snatEntryId */ public String getSnatEntryId() { return this.snatEntryId; } /** * @return snatEntryName */ public String getSnatEntryName() { return this.snatEntryName; } /** * @return snatIp */ public String getSnatIp() { return this.snatIp; } /** * @return snatTableId */ public String getSnatTableId() { return this.snatTableId; } public static final class Builder extends Request.Builder<ModifySnatEntryRequest, Builder> { private String clientToken; private Boolean dryRun; private Integer eipAffinity; private String networkInterfaceId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String snatEntryId; private String snatEntryName; private String snatIp; private String snatTableId; private Builder() { super(); } private Builder(ModifySnatEntryRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.eipAffinity = request.eipAffinity; this.networkInterfaceId = request.networkInterfaceId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.snatEntryId = request.snatEntryId; this.snatEntryName = request.snatEntryName; this.snatIp = request.snatIp; this.snatTableId = request.snatTableId; } /** * <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; } /** * DryRun. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * EipAffinity. */ public Builder eipAffinity(Integer eipAffinity) { this.putQueryParameter("EipAffinity", eipAffinity); this.eipAffinity = eipAffinity; return this; } /** * NetworkInterfaceId. */ public Builder networkInterfaceId(String networkInterfaceId) { this.putQueryParameter("NetworkInterfaceId", networkInterfaceId); this.networkInterfaceId = networkInterfaceId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the NAT gateway.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the SNAT entry that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>snat-bp1vcgcf8tm0plqcg****</p> */ public Builder snatEntryId(String snatEntryId) { this.putQueryParameter("SnatEntryId", snatEntryId); this.snatEntryId = snatEntryId; return this; } /** * <p>The name of the SNAT entry.</p> * <p>The name must be 2 to 128 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>SnatEntry-1</p> */ public Builder snatEntryName(String snatEntryName) { this.putQueryParameter("SnatEntryName", snatEntryName); this.snatEntryName = snatEntryName; return this; } /** * <ul> * <li><p>The elastic IP addresses (EIPs) specified in the SNAT entry when you modify an SNAT entry of an Internet NAT gateway. Separate EIPs with commas (,).</p> * <p>If you select multiple EIPs to create an SNAT address pool, connections are hashed to these EIPs. Network traffic may not be evenly distributed to the EIPs because the amount of traffic passes through each connection varies. We recommend that you associate these EIPs with the same EIP bandwidth plan to prevent service interruptions due to the bandwidth limit of an individual EIP.</p> * </li> * <li><p>When you modify an SNAT entry of a VPC NAT gateway, this parameter specifies the NAT IP address in the SNAT entry.</p> * </li> * </ul> * * <strong>example:</strong> * <p>47.98.XX.XX</p> */ public Builder snatIp(String snatIp) { this.putQueryParameter("SnatIp", snatIp); this.snatIp = snatIp; return this; } /** * <p>The ID of the SNAT table to which the SNAT entry belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>stb-8vbczigrhop8x5u3t****</p> */ public Builder snatTableId(String snatTableId) { this.putQueryParameter("SnatTableId", snatTableId); this.snatTableId = snatTableId; return this; } @Override public ModifySnatEntryRequest build() { return new ModifySnatEntryRequest(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/ModifySnatEntryResponse.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 ModifySnatEntryResponse} extends {@link TeaModel} * * <p>ModifySnatEntryResponse</p> */ public class ModifySnatEntryResponse 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 ModifySnatEntryResponseBody body; private ModifySnatEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifySnatEntryResponse 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 ModifySnatEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifySnatEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifySnatEntryResponseBody body); @Override ModifySnatEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifySnatEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifySnatEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifySnatEntryResponse 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(ModifySnatEntryResponseBody body) { this.body = body; return this; } @Override public ModifySnatEntryResponse build() { return new ModifySnatEntryResponse(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/ModifySnatEntryResponseBody.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 ModifySnatEntryResponseBody} extends {@link TeaModel} * * <p>ModifySnatEntryResponseBody</p> */ public class ModifySnatEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifySnatEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifySnatEntryResponseBody 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(ModifySnatEntryResponseBody model) { this.requestId = model.requestId; } /** * <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 ModifySnatEntryResponseBody build() { return new ModifySnatEntryResponseBody(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/ModifySslVpnClientCertRequest.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 ModifySslVpnClientCertRequest} extends {@link RequestModel} * * <p>ModifySslVpnClientCertRequest</p> */ public class ModifySslVpnClientCertRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SslVpnClientCertId") @com.aliyun.core.annotation.Validation(required = true) private String sslVpnClientCertId; private ModifySslVpnClientCertRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.sslVpnClientCertId = builder.sslVpnClientCertId; } public static Builder builder() { return new Builder(); } public static ModifySslVpnClientCertRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } public static final class Builder extends Request.Builder<ModifySslVpnClientCertRequest, Builder> { private String clientToken; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sslVpnClientCertId; private Builder() { super(); } private Builder(ModifySslVpnClientCertRequest request) { super(request); this.clientToken = request.clientToken; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sslVpnClientCertId = request.sslVpnClientCertId; } /** * <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-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new name of the SSL client certificate. This parameter cannot be left empty.</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>cert2</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the SSL client certificate is created.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the SSL client certificate.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vsc-bp1n8wcf134yl0osrc****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.putQueryParameter("SslVpnClientCertId", sslVpnClientCertId); this.sslVpnClientCertId = sslVpnClientCertId; return this; } @Override public ModifySslVpnClientCertRequest build() { return new ModifySslVpnClientCertRequest(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/ModifySslVpnClientCertResponse.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 ModifySslVpnClientCertResponse} extends {@link TeaModel} * * <p>ModifySslVpnClientCertResponse</p> */ public class ModifySslVpnClientCertResponse 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 ModifySslVpnClientCertResponseBody body; private ModifySslVpnClientCertResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifySslVpnClientCertResponse 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 ModifySslVpnClientCertResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifySslVpnClientCertResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifySslVpnClientCertResponseBody body); @Override ModifySslVpnClientCertResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifySslVpnClientCertResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifySslVpnClientCertResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifySslVpnClientCertResponse 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(ModifySslVpnClientCertResponseBody body) { this.body = body; return this; } @Override public ModifySslVpnClientCertResponse build() { return new ModifySslVpnClientCertResponse(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/ModifySslVpnClientCertResponseBody.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 ModifySslVpnClientCertResponseBody} extends {@link TeaModel} * * <p>ModifySslVpnClientCertResponseBody</p> */ public class ModifySslVpnClientCertResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SslVpnClientCertId") private String sslVpnClientCertId; private ModifySslVpnClientCertResponseBody(Builder builder) { this.name = builder.name; this.requestId = builder.requestId; this.sslVpnClientCertId = builder.sslVpnClientCertId; } public static Builder builder() { return new Builder(); } public static ModifySslVpnClientCertResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return name */ public String getName() { return this.name; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } public static final class Builder { private String name; private String requestId; private String sslVpnClientCertId; private Builder() { } private Builder(ModifySslVpnClientCertResponseBody model) { this.name = model.name; this.requestId = model.requestId; this.sslVpnClientCertId = model.sslVpnClientCertId; } /** * <p>The name of the SSL client certificate.</p> * * <strong>example:</strong> * <p>cert2</p> */ public Builder name(String name) { this.name = name; 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 SSL client certificate.</p> * * <strong>example:</strong> * <p>vsc-bp1n8wcf134yl0osr****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.sslVpnClientCertId = sslVpnClientCertId; return this; } public ModifySslVpnClientCertResponseBody build() { return new ModifySslVpnClientCertResponseBody(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/ModifySslVpnServerRequest.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 ModifySslVpnServerRequest} extends {@link RequestModel} * * <p>ModifySslVpnServerRequest</p> */ public class ModifySslVpnServerRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Cipher") private String cipher; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientIpPool") private String clientIpPool; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Compress") private Boolean compress; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableMultiFactorAuth") private Boolean enableMultiFactorAuth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IDaaSApplicationId") private String iDaaSApplicationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IDaaSInstanceId") private String iDaaSInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IDaaSRegionId") private String iDaaSRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Proto") private String proto; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SslVpnServerId") @com.aliyun.core.annotation.Validation(required = true) private String sslVpnServerId; private ModifySslVpnServerRequest(Builder builder) { super(builder); this.cipher = builder.cipher; this.clientIpPool = builder.clientIpPool; this.clientToken = builder.clientToken; this.compress = builder.compress; this.dryRun = builder.dryRun; this.enableMultiFactorAuth = builder.enableMultiFactorAuth; this.iDaaSApplicationId = builder.iDaaSApplicationId; this.iDaaSInstanceId = builder.iDaaSInstanceId; this.iDaaSRegionId = builder.iDaaSRegionId; this.localSubnet = builder.localSubnet; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.port = builder.port; this.proto = builder.proto; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.sslVpnServerId = builder.sslVpnServerId; } public static Builder builder() { return new Builder(); } public static ModifySslVpnServerRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cipher */ public String getCipher() { return this.cipher; } /** * @return clientIpPool */ public String getClientIpPool() { return this.clientIpPool; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return compress */ public Boolean getCompress() { return this.compress; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return enableMultiFactorAuth */ public Boolean getEnableMultiFactorAuth() { return this.enableMultiFactorAuth; } /** * @return iDaaSApplicationId */ public String getIDaaSApplicationId() { return this.iDaaSApplicationId; } /** * @return iDaaSInstanceId */ public String getIDaaSInstanceId() { return this.iDaaSInstanceId; } /** * @return iDaaSRegionId */ public String getIDaaSRegionId() { return this.iDaaSRegionId; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return proto */ public String getProto() { return this.proto; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } public static final class Builder extends Request.Builder<ModifySslVpnServerRequest, Builder> { private String cipher; private String clientIpPool; private String clientToken; private Boolean compress; private Boolean dryRun; private Boolean enableMultiFactorAuth; private String iDaaSApplicationId; private String iDaaSInstanceId; private String iDaaSRegionId; private String localSubnet; private String name; private String ownerAccount; private Long ownerId; private Integer port; private String proto; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sslVpnServerId; private Builder() { super(); } private Builder(ModifySslVpnServerRequest request) { super(request); this.cipher = request.cipher; this.clientIpPool = request.clientIpPool; this.clientToken = request.clientToken; this.compress = request.compress; this.dryRun = request.dryRun; this.enableMultiFactorAuth = request.enableMultiFactorAuth; this.iDaaSApplicationId = request.iDaaSApplicationId; this.iDaaSInstanceId = request.iDaaSInstanceId; this.iDaaSRegionId = request.iDaaSRegionId; this.localSubnet = request.localSubnet; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.port = request.port; this.proto = request.proto; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sslVpnServerId = request.sslVpnServerId; } /** * <p>The encryption algorithm that is used in the SSL-VPN connection. Valid values:</p> * <ul> * <li><strong>AES-128-CBC</strong> (default)</li> * <li><strong>AES-192-CBC</strong></li> * <li><strong>AES-256-CBC</strong></li> * <li><strong>none</strong></li> * </ul> * * <strong>example:</strong> * <p>AES-128-CBC</p> */ public Builder cipher(String cipher) { this.putQueryParameter("Cipher", cipher); this.cipher = cipher; return this; } /** * <p>The client CIDR block.</p> * <p>The CIDR block from which an IP address is allocated to the virtual network interface controller (NIC) of the client, rather than the private CIDR block.</p> * <p>If the client accesses the SSL server over an SSL-VPN connection, the VPN gateway assigns an IP address from the specified client CIDR block for the client to access cloud resources.</p> * <p>Make sure that the number of IP addresses in the client CIDR block is at least four times the maximum number of SSL-VPN connections supported by the VPN gateway.</p> * <details> * <summary>Click to view the reason.</summary> * * <p>For example, if you specify 192.168.0.0/24 as the client CIDR block, the system first divides a subnet CIDR block with a subnet mask of 30 from 192.168.0.0/24, such as 192.168.0.4/30. This subnet provides up to four IP addresses. Then, the system allocates an IP address from 192.168.0.4/30 to the client and uses the other three IP addresses to ensure network communication. In this case, one client consumes four IP addresses. Therefore, to ensure that an IP address is assigned to your client, the number of IP addresses in the client CIDR block must be at least four times the maximum number of SSL-VPN connections supported by the VPN gateway with which the SSL server is associated.</p> * </details> * <details> * <summary>Click to view the CIDR blocks that are not supported.</summary> * * <ul> * <li><p>100.64.0.0~100.127.255.255</p> * </li> * <li><p>127.0.0.0~127.255.255.255</p> * </li> * <li><p>169.254.0.0~169.254.255.255</p> * </li> * <li><p>224.0.0.0~239.255.255.255</p> * </li> * <li><p>255.0.0.0~255.255.255.255</p> * </details> * <details> * <summary>Click to view the recommended client CIDR blocks for different numbers of SSL-VPN connections.</summary> * </li> * <li><p>If the number of SSL-VPN connections is 5, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 27 bits in length. Examples: 10.0.0.0/27 and 10.0.0.0/26.</p> * </li> * <li><p>If the number of SSL-VPN connections is 10, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 26 bits in length. Examples: 10.0.0.0/26 and 10.0.0.0/25.</p> * </li> * <li><p>If the number of SSL-VPN connections is 20, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 25 bits in length. Examples: 10.0.0.0/25 and 10.0.0.0/24.</p> * </li> * <li><p>If the number of SSL-VPN connections is 50, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 24 bits in length. Examples: 10.0.0.0/24 and 10.0.0.0/23.</p> * </li> * <li><p>If the number of SSL-VPN connections is 100, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 23 bits in length. Examples: 10.0.0.0/23 and 10.0.0.0/22.</p> * </li> * <li><p>If the number of SSL-VPN connections is 200, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 22 bits in length. Examples: 10.0.0.0/22 and 10.0.0.0/21.</p> * </li> * <li><p>If the number of SSL-VPN connections is 500, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 21 bits in length. Examples: 10.0.0.0/21 and 10.0.0.0/20.</p> * </li> * <li><p>If the number of SSL-VPN connections is 1,000, we recommend that you specify a client CIDR block with a subnet mask that is less than or equal to 20 bits in length. Examples: 10.0.0.0/20 and 10.0.0.0/19.</p> * </details></li> * </ul> * <blockquote> * <ul> * <li>The subnet mask of the client CIDR block must be 16 to 29 bits in length.</li> * <li>Make sure that the client CIDR block does not overlap with the local CIDR block, the VPC CIDR block, or route CIDR blocks associated with the client.</li> * <li>We recommend that you use 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets as the client CIDR block. If you want to specify a public CIDR block as the client CIDR block, you must specify the public CIDR block as the user CIDR block of the virtual private cloud (VPC). This way, the VPC can access the public CIDR block. For more information, see <a href="https://help.aliyun.com/document_detail/185311.html">VPC FAQs</a>.</li> * <li>After you create an SSL server, the system automatically adds routes that point to the client CIDR block to the VPC route table. Do not manually add routes that point to the client CIDR block. Otherwise, SSL-VPN connections cannot work as expected.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>10.30.30.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 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> is different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to enable data compression. Valid values:</p> * <ul> * <li><strong>true</strong> (default)</li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder compress(Boolean compress) { this.putQueryParameter("Compress", compress); this.compress = compress; return this; } /** * DryRun. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>Specifies whether to enable two-factor authentication. To enable two-factor authentication, you need to specify <strong>IDaaSInstanceId</strong>, <strong>IDaaSRegionId</strong>, and <strong>IDaaSApplicationId</strong>. Valid values:</p> * <ul> * <li><strong>true</strong>: enables the feature.</li> * <li><strong>false</strong>: disables the feature.</li> * </ul> * <blockquote> * <ul> * <li>If you use two-factor authentication for the first time, you must first complete <a href="https://ram.console.aliyun.com/role/authorization?request=%7B%22Services%22%3A%5B%7B%22Service%22%3A%22VPN%22%2C%22Roles%22%3A%5B%7B%22RoleName%22%3A%22AliyunVpnAccessingIdaasRole%22%2C%22TemplateId%22%3A%22IdaasRole%22%7D%5D%7D%5D%2C%22ReturnUrl%22%3A%22https%3A%2F%2Fvpc.console.aliyun.com%2Fsslvpn%2Fcn-shanghai%2Fvpn-servers%22%7D">authorization</a>.</li> * <li>When you create an SSL server in the UAE (Dubai) region, we recommend that you associate the SSL server with an IDaaS EIAM 2.0 instance in Singapore to reduce latency.</li> * <li>IDaaS EIAM 1.0 instances are no longer available for purchase. If your Alibaba Cloud account has IDaaS EIAM 1.0 instances, the IDaaS EIAM 1.0 instances can be associated after two-factor authentication is enabled. If your Alibaba Cloud account does not have IDaaS EIAM 1.0 instances, only IDaaS EIAM 2.0 instances can be associated after two-factor authentication is enabled.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder enableMultiFactorAuth(Boolean enableMultiFactorAuth) { this.putQueryParameter("EnableMultiFactorAuth", enableMultiFactorAuth); this.enableMultiFactorAuth = enableMultiFactorAuth; return this; } /** * <p>The ID of the IDaaS application.</p> * <ul> * <li>If an IDaaS EIAM 2.0 instance is associated, you need to specify an IDaaS application ID.</li> * <li>If an IDaaS EIAM 1.0 instance is associated, you do not need to specify an IDaaS application ID.</li> * </ul> * * <strong>example:</strong> * <p>app_my6g4qmvnwxzj2f****</p> */ public Builder iDaaSApplicationId(String iDaaSApplicationId) { this.putQueryParameter("IDaaSApplicationId", iDaaSApplicationId); this.iDaaSApplicationId = iDaaSApplicationId; return this; } /** * <p>The ID of the IDaaS EIAM instance.</p> * * <strong>example:</strong> * <p>idaas-cn-hangzhou-****</p> */ public Builder iDaaSInstanceId(String iDaaSInstanceId) { this.putQueryParameter("IDaaSInstanceId", iDaaSInstanceId); this.iDaaSInstanceId = iDaaSInstanceId; return this; } /** * <p>The region ID of the IDaaS EIAM instance.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder iDaaSRegionId(String iDaaSRegionId) { this.putQueryParameter("IDaaSRegionId", iDaaSRegionId); this.iDaaSRegionId = iDaaSRegionId; return this; } /** * <p>The local CIDR block.</p> * <p>The CIDR block that your client needs to access by using the SSL-VPN connection.</p> * <p>This value can be the CIDR block of a VPC, a vSwitch, a data center that is connected to a VPC by using an Express Connect circuit, or an Alibaba Cloud service such as Object Storage Service (OSS).</p> * <p>The subnet mask of the specified local CIDR block must be 8 to 32 bits in length. You cannot specify the following CIDR blocks as the local CIDR blocks:</p> * <ul> * <li>127.0.0.0~127.255.255.255</li> * <li>169.254.0.0~169.254.255.255</li> * <li>224.0.0.0~239.255.255.255</li> * <li>255.0.0.0~255.255.255.255</li> * </ul> * * <strong>example:</strong> * <p>10.20.20.0/24</p> */ public Builder localSubnet(String localSubnet) { this.putQueryParameter("LocalSubnet", localSubnet); this.localSubnet = localSubnet; return this; } /** * <p>The name of the SSL server.</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>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 port that is used by the SSL server. Valid values of port numbers: <strong>1</strong> to <strong>65535</strong>. Default value: <strong>1194</strong>.</p> * <p>The following ports are not supported: <strong>22</strong>, <strong>2222</strong>, <strong>22222</strong>, <strong>9000</strong>, <strong>9001</strong>, <strong>9002</strong>, <strong>7505</strong>, <strong>80</strong>, <strong>443</strong>, <strong>53</strong>, <strong>68</strong>, <strong>123</strong>, <strong>4510</strong>, <strong>4560</strong>, <strong>500</strong>, and <strong>4500</strong>.</p> * * <strong>example:</strong> * <p>1194</p> */ public Builder port(Integer port) { this.putQueryParameter("Port", port); this.port = port; return this; } /** * <p>The protocol that is used by the SSL server. Valid values:</p> * <ul> * <li><strong>TCP</strong> (default)</li> * <li><strong>UDP</strong></li> * </ul> * * <strong>example:</strong> * <p>UDP</p> */ public Builder proto(String proto) { this.putQueryParameter("Proto", proto); this.proto = proto; return this; } /** * <p>The region ID of the VPN gateway.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the SSL server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vss-bp18q7hzj6largv4v****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.putQueryParameter("SslVpnServerId", sslVpnServerId); this.sslVpnServerId = sslVpnServerId; return this; } @Override public ModifySslVpnServerRequest build() { return new ModifySslVpnServerRequest(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/ModifySslVpnServerResponse.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 ModifySslVpnServerResponse} extends {@link TeaModel} * * <p>ModifySslVpnServerResponse</p> */ public class ModifySslVpnServerResponse 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 ModifySslVpnServerResponseBody body; private ModifySslVpnServerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifySslVpnServerResponse 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 ModifySslVpnServerResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifySslVpnServerResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifySslVpnServerResponseBody body); @Override ModifySslVpnServerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifySslVpnServerResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifySslVpnServerResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifySslVpnServerResponse 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(ModifySslVpnServerResponseBody body) { this.body = body; return this; } @Override public ModifySslVpnServerResponse build() { return new ModifySslVpnServerResponse(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/ModifySslVpnServerResponseBody.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 ModifySslVpnServerResponseBody} extends {@link TeaModel} * * <p>ModifySslVpnServerResponseBody</p> */ public class ModifySslVpnServerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cipher") private String cipher; @com.aliyun.core.annotation.NameInMap("ClientIpPool") private String clientIpPool; @com.aliyun.core.annotation.NameInMap("Compress") private Boolean compress; @com.aliyun.core.annotation.NameInMap("Connections") private Integer connections; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("EnableMultiFactorAuth") private Boolean enableMultiFactorAuth; @com.aliyun.core.annotation.NameInMap("IDaaSApplicationId") private String iDaaSApplicationId; @com.aliyun.core.annotation.NameInMap("IDaaSInstanceId") private String iDaaSInstanceId; @com.aliyun.core.annotation.NameInMap("IDaaSInstanceVersion") private String iDaaSInstanceVersion; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("MaxConnections") private Integer maxConnections; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.NameInMap("Proto") private String proto; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SslVpnServerId") private String sslVpnServerId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private ModifySslVpnServerResponseBody(Builder builder) { this.cipher = builder.cipher; this.clientIpPool = builder.clientIpPool; this.compress = builder.compress; this.connections = builder.connections; this.createTime = builder.createTime; this.enableMultiFactorAuth = builder.enableMultiFactorAuth; this.iDaaSApplicationId = builder.iDaaSApplicationId; this.iDaaSInstanceId = builder.iDaaSInstanceId; this.iDaaSInstanceVersion = builder.iDaaSInstanceVersion; this.internetIp = builder.internetIp; this.localSubnet = builder.localSubnet; this.maxConnections = builder.maxConnections; this.name = builder.name; this.port = builder.port; this.proto = builder.proto; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.sslVpnServerId = builder.sslVpnServerId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ModifySslVpnServerResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return cipher */ public String getCipher() { return this.cipher; } /** * @return clientIpPool */ public String getClientIpPool() { return this.clientIpPool; } /** * @return compress */ public Boolean getCompress() { return this.compress; } /** * @return connections */ public Integer getConnections() { return this.connections; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return enableMultiFactorAuth */ public Boolean getEnableMultiFactorAuth() { return this.enableMultiFactorAuth; } /** * @return iDaaSApplicationId */ public String getIDaaSApplicationId() { return this.iDaaSApplicationId; } /** * @return iDaaSInstanceId */ public String getIDaaSInstanceId() { return this.iDaaSInstanceId; } /** * @return iDaaSInstanceVersion */ public String getIDaaSInstanceVersion() { return this.iDaaSInstanceVersion; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return maxConnections */ public Integer getMaxConnections() { return this.maxConnections; } /** * @return name */ public String getName() { return this.name; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return proto */ public String getProto() { return this.proto; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String cipher; private String clientIpPool; private Boolean compress; private Integer connections; private Long createTime; private Boolean enableMultiFactorAuth; private String iDaaSApplicationId; private String iDaaSInstanceId; private String iDaaSInstanceVersion; private String internetIp; private String localSubnet; private Integer maxConnections; private String name; private Integer port; private String proto; private String regionId; private String requestId; private String resourceGroupId; private String sslVpnServerId; private String vpnGatewayId; private Builder() { } private Builder(ModifySslVpnServerResponseBody model) { this.cipher = model.cipher; this.clientIpPool = model.clientIpPool; this.compress = model.compress; this.connections = model.connections; this.createTime = model.createTime; this.enableMultiFactorAuth = model.enableMultiFactorAuth; this.iDaaSApplicationId = model.iDaaSApplicationId; this.iDaaSInstanceId = model.iDaaSInstanceId; this.iDaaSInstanceVersion = model.iDaaSInstanceVersion; this.internetIp = model.internetIp; this.localSubnet = model.localSubnet; this.maxConnections = model.maxConnections; this.name = model.name; this.port = model.port; this.proto = model.proto; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.sslVpnServerId = model.sslVpnServerId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The encryption algorithm.</p> * * <strong>example:</strong> * <p>AES-128-CBC</p> */ public Builder cipher(String cipher) { this.cipher = cipher; return this; } /** * <p>The client CIDR block.</p> * * <strong>example:</strong> * <p>10.30.30.0/24</p> */ public Builder clientIpPool(String clientIpPool) { this.clientIpPool = clientIpPool; return this; } /** * <p>Indicates whether data compression is enabled.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder compress(Boolean compress) { this.compress = compress; return this; } /** * <p>The total number of current connections.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder connections(Integer connections) { this.connections = connections; return this; } /** * <p>The time when the SSL server was created.</p> * * <strong>example:</strong> * <p>1492753580000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>Indicates whether two-factor authentication is enabled.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableMultiFactorAuth(Boolean enableMultiFactorAuth) { this.enableMultiFactorAuth = enableMultiFactorAuth; return this; } /** * <p>The ID of the IDaaS application.</p> * * <strong>example:</strong> * <p>app_my6g4qmvnwxzj2f****</p> */ public Builder iDaaSApplicationId(String iDaaSApplicationId) { this.iDaaSApplicationId = iDaaSApplicationId; return this; } /** * <p>The ID of the IDaaS EIAM instance.</p> * * <strong>example:</strong> * <p>idaas-cn-hangzhou-****</p> */ public Builder iDaaSInstanceId(String iDaaSInstanceId) { this.iDaaSInstanceId = iDaaSInstanceId; return this; } /** * <p>The version of the IDaaS EIAM instance.</p> * <ul> * <li>This parameter is returned only if the SSL server is associated with an IDaaS EIAM 2.0 instance. Only <strong>EIAM 2.0</strong> is returned.</li> * <li>If the SSL server is associated with an IDaaS EIAM 1.0 instance, no value is returned.</li> * </ul> * * <strong>example:</strong> * <p>EIAM 2.0</p> */ public Builder iDaaSInstanceVersion(String iDaaSInstanceVersion) { this.iDaaSInstanceVersion = iDaaSInstanceVersion; return this; } /** * <p>The public IP address.</p> * * <strong>example:</strong> * <p>47.98.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The local CIDR block.</p> * * <strong>example:</strong> * <p>10.20.20.0/24</p> */ public Builder localSubnet(String localSubnet) { this.localSubnet = localSubnet; return this; } /** * <p>The maximum number of connections.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder maxConnections(Integer maxConnections) { this.maxConnections = maxConnections; return this; } /** * <p>The name of the SSL server.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The port that is used by the SSL server.</p> * * <strong>example:</strong> * <p>1194</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The protocol that is used by the SSL server.</p> * * <strong>example:</strong> * <p>UDP</p> */ public Builder proto(String proto) { this.proto = proto; return this; } /** * <p>The ID of the region where the SSL server is created.</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>DF11D6F6-E35A-41C3-9B20-6FC8A901FE65</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the SSL server belongs.</p> * <p>The SSL server and the VPN gateway associated with the SSL server belong to the same resource group. You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource groups.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the SSL server.</p> * * <strong>example:</strong> * <p>vss-bp18q7hzj6largv4v****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.sslVpnServerId = sslVpnServerId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm2ogj****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public ModifySslVpnServerResponseBody build() { return new ModifySslVpnServerResponseBody(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/ModifyTunnelAttributeRequest.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 ModifyTunnelAttributeRequest} extends {@link RequestModel} * * <p>ModifyTunnelAttributeRequest</p> */ public class ModifyTunnelAttributeRequest 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("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TunnelId") @com.aliyun.core.annotation.Validation(required = true) private String tunnelId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private TunnelOptionsSpecification tunnelOptionsSpecification; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; private ModifyTunnelAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tunnelId = builder.tunnelId; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static ModifyTunnelAttributeRequest 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 regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelOptionsSpecification */ public TunnelOptionsSpecification getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<ModifyTunnelAttributeRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String tunnelId; private TunnelOptionsSpecification tunnelOptionsSpecification; private String vpnConnectionId; private Builder() { super(); } private Builder(ModifyTunnelAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tunnelId = request.tunnelId; this.tunnelOptionsSpecification = request.tunnelOptionsSpecification; this.vpnConnectionId = request.vpnConnectionId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate a token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the value of <strong>RequestId</strong> as the <strong>client token</strong>. The value of <strong>RequestId</strong> is different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region in which the IPsec connection is established.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region ID.</p> * * <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 tunnel ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>tun-gbyz2e070xzo93****</p> */ public Builder tunnelId(String tunnelId) { this.putQueryParameter("TunnelId", tunnelId); this.tunnelId = tunnelId; return this; } /** * <p>The tunnel configurations.</p> */ public Builder tunnelOptionsSpecification(TunnelOptionsSpecification tunnelOptionsSpecification) { this.putQueryParameter("TunnelOptionsSpecification", tunnelOptionsSpecification); this.tunnelOptionsSpecification = tunnelOptionsSpecification; return this; } /** * <p>The ID of the IPsec connection.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-gw69vm1i71y354****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } @Override public ModifyTunnelAttributeRequest build() { return new ModifyTunnelAttributeRequest(this); } } /** * * {@link ModifyTunnelAttributeRequest} extends {@link TeaModel} * * <p>ModifyTunnelAttributeRequest</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private Long localAsn; private String localBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The local autonomous system number (ASN). Valid values: <strong>1</strong> to <strong>4294967295</strong>.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address of the tunnel. The address needs to be an IP address within the <strong>TunnelCidr</strong>.</p> * * <strong>example:</strong> * <p>169.254.11.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The CIDR block of the tunnel.</p> * <p>The CIDR block must fall within 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p> * <blockquote> * <p> The CIDR block of the IPsec tunnel for each IPsec-VPN connection on a VPN gateway must be unique.</p> * </blockquote> * * <strong>example:</strong> * <p>169.254.11.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link ModifyTunnelAttributeRequest} extends {@link TeaModel} * * <p>ModifyTunnelAttributeRequest</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm that is used in IKE Phase 1 negotiations.</p> * <p>&lt;props=&quot;china&quot;&gt;</p> * <ul> * <li>If an IPsec-VPN gateway is associated with a standard VPN gateway, the valid values are <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</li> * <li>If the IPsec-VPN gateway is associated with an SSL-VPN gateway, the valid value is <strong>sm3</strong>.</li> * </ul> * <p>&lt;props=&quot;intl&quot;&gt;</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm that is used in IKE Phase 1 negotiations.</p> * <p>&lt;props=&quot;china&quot;&gt;</p> * <ul> * <li>If an IPsec-VPN gateway is associated with a standard VPN gateway, the valid values are <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</li> * <li>If the IPsec-VPN gateway is associated with an SSL-VPN gateway, set the value to <strong>sm4</strong>.</li> * </ul> * <p>&lt;props=&quot;intl&quot;&gt;</p> * <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The SA lifetime as a result of Phase 1 negotiations. Unit: seconds Valid values: <strong>0 to 86400</strong>.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The negotiation mode of IKE. Valid values:</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>.</p> * * <strong>example:</strong> * <p>ikev2</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The tunnel identifier. The identifier can be up to 100 characters in length and cannot contain spaces. It supports fully qualified domain names (FQDNs) and IP addresses. The default value is the IP address of the tunnel.</p> * * <strong>example:</strong> * <p>47.XX.XX.87</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key that is used to verify identities between the tunnel and peer.</p> * <ul> * <li>The key must be 1 to 100 characters in length, and can contain digits, and letters. It cannot contain spaces. <code>~!`@#$%^&amp;*()_-+={}[]|;:\&quot;,.&lt;&gt;/?</code></li> * <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the key. You can call the <a href="https://help.aliyun.com/document_detail/120374.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</li> * </ul> * <blockquote> * <p> The pre-shared key that is configured for the tunnel and the tunnel peer must be the same. Otherwise, the system cannot establish the tunnel.</p> * </blockquote> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The peer identifier. The identifier can be up to 100 characters in length, and cannot contain spaces. It supports FQDNs and IP addresses. The default identifier is the IP address of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>47.XX.XX.207</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link ModifyTunnelAttributeRequest} extends {@link TeaModel} * * <p>ModifyTunnelAttributeRequest</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Long ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Long getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Long ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm that is used in IPsec Phase 2 negotiations.</p> * <p>&lt;props=&quot;china&quot;&gt;</p> * <ul> * <li>If an IPsec-VPN gateway is associated with a standard VPN gateway, the valid values are <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</li> * <li>If the IPsec-VPN gateway is associated with an SSL-VPN gateway, set the value to <strong>sm3</strong>.</li> * </ul> * <p>&lt;props=&quot;intl&quot;&gt;</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm that is used in IPsec Phase 2 negotiations.</p> * <p>&lt;props=&quot;china&quot;&gt;</p> * <ul> * <li>If an IPsec-VPN gateway is associated with a standard VPN gateway, the valid values are <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</li> * <li>If the IPsec connection is attached to a VPN gateway that uses an SM certificate, set the value to <strong>sm4</strong>.</li> * </ul> * <p>&lt;props=&quot;intl&quot;&gt;</p> * <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The SA lifetime as a result of Phase 2 negotiations. Unit: seconds Valid values: <strong>0 to 86400</strong>.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Long ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiations. Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link ModifyTunnelAttributeRequest} extends {@link TeaModel} * * <p>ModifyTunnelAttributeRequest</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; private TunnelOptionsSpecification(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.remoteCaCertificate = builder.remoteCaCertificate; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } public static final class Builder { private String customerGatewayId; private Boolean enableDpd; private Boolean enableNatTraversal; private String remoteCaCertificate; private TunnelBgpConfig tunnelBgpConfig; private TunnelIkeConfig tunnelIkeConfig; private TunnelIpsecConfig tunnelIpsecConfig; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.remoteCaCertificate = model.remoteCaCertificate; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIpsecConfig = model.tunnelIpsecConfig; } /** * <p>The ID of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>cgw-1nmwbpgrp7ssqm1yn****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Specifies whether to enable dead peer detection (DPD). Valid values:</p> * <ul> * <li><strong>true</strong> The IPsec initiator sends DPD packets to check the IPsec peer is alive. If no response is received from the peer within a specified period of time, the IPsec peer is considered disconnected. Then, the ISAKMP SA, IPsec SA, and IPsec tunnel are deleted.</li> * <li><strong>false</strong>: DPD is disabled. The IPsec initiator does not send DPD packets.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Specifies whether to enable NAT traversal. Valid values:</p> * <ul> * <li><strong>true</strong>: enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li> * <li><strong>false</strong>: disables NAT traversal.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>The peer certificate authority (CA) certificate when you want to attach the IPsec connection to a virtual private network (VPN) gateway that uses a ShangMi (SM) certificate.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The Border Gateway Protocol (BGP) configurations of the tunnel.</p> * <p>If the BGP feature is not enabled for the tunnel, you must call the <a href="https://help.aliyun.com/document_detail/120381.html">ModifyVpnConnectionAttribute</a> operation to enable the feature and configure BGP.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The configurations of IKE Phase 1.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The configurations of IPsec Phase 2.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyTunnelAttributeResponse.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 ModifyTunnelAttributeResponse} extends {@link TeaModel} * * <p>ModifyTunnelAttributeResponse</p> */ public class ModifyTunnelAttributeResponse 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 ModifyTunnelAttributeResponseBody body; private ModifyTunnelAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyTunnelAttributeResponse 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 ModifyTunnelAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyTunnelAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyTunnelAttributeResponseBody body); @Override ModifyTunnelAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyTunnelAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyTunnelAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyTunnelAttributeResponse 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(ModifyTunnelAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyTunnelAttributeResponse build() { return new ModifyTunnelAttributeResponse(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/ModifyTunnelAttributeResponseBody.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 ModifyTunnelAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyTunnelAttributeResponseBody</p> */ public class ModifyTunnelAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Role") private String role; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; @com.aliyun.core.annotation.NameInMap("ZoneNo") private String zoneNo; private ModifyTunnelAttributeResponseBody(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.internetIp = builder.internetIp; this.remoteCaCertificate = builder.remoteCaCertificate; this.requestId = builder.requestId; this.role = builder.role; this.state = builder.state; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; this.zoneNo = builder.zoneNo; } public static Builder builder() { return new Builder(); } public static ModifyTunnelAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return role */ public String getRole() { return this.role; } /** * @return state */ public String getState() { return this.state; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } /** * @return zoneNo */ public String getZoneNo() { return this.zoneNo; } public static final class Builder { private String customerGatewayId; private Boolean enableDpd; private Boolean enableNatTraversal; private String internetIp; private String remoteCaCertificate; private String requestId; private String role; private String state; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private TunnelIpsecConfig tunnelIpsecConfig; private String zoneNo; private Builder() { } private Builder(ModifyTunnelAttributeResponseBody model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.internetIp = model.internetIp; this.remoteCaCertificate = model.remoteCaCertificate; this.requestId = model.requestId; this.role = model.role; this.state = model.state; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIpsecConfig = model.tunnelIpsecConfig; this.zoneNo = model.zoneNo; } /** * <p>The ID of the customer gateway associated with the customer gateway.</p> * * <strong>example:</strong> * <p>cgw-p0wx48ayhrygitm80****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Indicates whether DPD is enabled. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>The tunnel IP address.</p> * * <strong>example:</strong> * <p>47.XX.XX.87</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The peer CA certificate when a VPN gateway that uses an SM certificate is used to create the IPsec connection.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>E6F36FF0-9544-3AEE-8673-A4647D50064C</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The tunnel role. Valid values:</p> * <ul> * <li><strong>master</strong></li> * <li><strong>slave</strong></li> * </ul> * * <strong>example:</strong> * <p>master</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The tunnel status. Valid values:</p> * <ul> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The BGP configuration.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-gbyz2e070xzo93****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The Phase 1 configuration.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The configurations of IPsec Phase 2.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } /** * <p>The tunnel zone.</p> * * <strong>example:</strong> * <p>cn-hangzhou-h</p> */ public Builder zoneNo(String zoneNo) { this.zoneNo = zoneNo; return this; } public ModifyTunnelAttributeResponseBody build() { return new ModifyTunnelAttributeResponseBody(this); } } /** * * {@link ModifyTunnelAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyTunnelAttributeResponseBody</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("EnableBgp") private Boolean enableBgp; @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.enableBgp = builder.enableBgp; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return enableBgp */ public Boolean getEnableBgp() { return this.enableBgp; } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private Boolean enableBgp; private Long localAsn; private String localBgpIp; private Long peerAsn; private String peerBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.enableBgp = model.enableBgp; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>Indicates whether the BGP feature is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(Boolean enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The local ASN.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address of the tunnel.</p> * * <strong>example:</strong> * <p>169.254.11.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The peer ASN.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder peerAsn(Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the peer.</p> * * <strong>example:</strong> * <p>169.254.11.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The CIDR block to which the tunnel BGP IP address belongs.</p> * * <strong>example:</strong> * <p>169.254.11.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link ModifyTunnelAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyTunnelAttributeResponseBody</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The IKE authentication algorithm.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The IKE encryption algorithm.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The IKE lifetime. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The DH group.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The IKE version.</p> * <ul> * <li><strong>ikev1</strong></li> * <li><strong>ikev2</strong></li> * </ul> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and provides better support for scenarios with multiple CIDR blocks.</p> * * <strong>example:</strong> * <p>ikev2</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The tunnel identifier. The identifier supports FQDNs and IP addresses. The default value is the tunnel IP address.</p> * * <strong>example:</strong> * <p>47.XX.XX.87</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The peer identifier. The identifier supports FQDNs and IP addresses. The default identifier is the IP address of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>47.XX.XX.207</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link ModifyTunnelAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyTunnelAttributeResponseBody</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Long ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Long getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Long ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The IPsec authentication algorithm.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The IPsec encryption algorithm.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The IPsec lifetime. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Long ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The DH group.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public TunnelIpsecConfig build() { return new TunnelIpsecConfig(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/ModifyVRouterAttributeRequest.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 ModifyVRouterAttributeRequest} extends {@link RequestModel} * * <p>ModifyVRouterAttributeRequest</p> */ public class ModifyVRouterAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VRouterId") @com.aliyun.core.annotation.Validation(required = true) private String vRouterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VRouterName") private String vRouterName; private ModifyVRouterAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vRouterId = builder.vRouterId; this.vRouterName = builder.vRouterName; } public static Builder builder() { return new Builder(); } public static ModifyVRouterAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return vRouterId */ public String getVRouterId() { return this.vRouterId; } /** * @return vRouterName */ public String getVRouterName() { return this.vRouterName; } public static final class Builder extends Request.Builder<ModifyVRouterAttributeRequest, Builder> { private String description; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vRouterId; private String vRouterName; private Builder() { super(); } private Builder(ModifyVRouterAttributeRequest request) { super(request); this.description = request.description; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vRouterId = request.vRouterId; this.vRouterName = request.vRouterName; } /** * <p>The description of the vRouter.</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>My VRouter</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the vRouter.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The vRouter ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vrt-gw0p7zigake75znix****</p> */ public Builder vRouterId(String vRouterId) { this.putQueryParameter("VRouterId", vRouterId); this.vRouterId = vRouterId; return this; } /** * <p>The name of the vRouter.</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>VRouter-1</p> */ public Builder vRouterName(String vRouterName) { this.putQueryParameter("VRouterName", vRouterName); this.vRouterName = vRouterName; return this; } @Override public ModifyVRouterAttributeRequest build() { return new ModifyVRouterAttributeRequest(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/ModifyVRouterAttributeResponse.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 ModifyVRouterAttributeResponse} extends {@link TeaModel} * * <p>ModifyVRouterAttributeResponse</p> */ public class ModifyVRouterAttributeResponse 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 ModifyVRouterAttributeResponseBody body; private ModifyVRouterAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVRouterAttributeResponse 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 ModifyVRouterAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVRouterAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVRouterAttributeResponseBody body); @Override ModifyVRouterAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVRouterAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVRouterAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVRouterAttributeResponse 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(ModifyVRouterAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVRouterAttributeResponse build() { return new ModifyVRouterAttributeResponse(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/ModifyVRouterAttributeResponseBody.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 ModifyVRouterAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVRouterAttributeResponseBody</p> */ public class ModifyVRouterAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVRouterAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVRouterAttributeResponseBody 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(ModifyVRouterAttributeResponseBody 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 ModifyVRouterAttributeResponseBody build() { return new ModifyVRouterAttributeResponseBody(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/ModifyVSwitchAttributeRequest.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 ModifyVSwitchAttributeRequest} extends {@link RequestModel} * * <p>ModifyVSwitchAttributeRequest</p> */ public class ModifyVSwitchAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableIPv6") private Boolean enableIPv6; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private Integer ipv6CidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") @com.aliyun.core.annotation.Validation(required = true) private String vSwitchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchName") private String vSwitchName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcIpv6CidrBlock") private String vpcIpv6CidrBlock; private ModifyVSwitchAttributeRequest(Builder builder) { super(builder); this.description = builder.description; this.enableIPv6 = builder.enableIPv6; 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.vSwitchId = builder.vSwitchId; this.vSwitchName = builder.vSwitchName; this.vpcIpv6CidrBlock = builder.vpcIpv6CidrBlock; } public static Builder builder() { return new Builder(); } public static ModifyVSwitchAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return enableIPv6 */ public Boolean getEnableIPv6() { return this.enableIPv6; } /** * @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 vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vSwitchName */ public String getVSwitchName() { return this.vSwitchName; } /** * @return vpcIpv6CidrBlock */ public String getVpcIpv6CidrBlock() { return this.vpcIpv6CidrBlock; } public static final class Builder extends Request.Builder<ModifyVSwitchAttributeRequest, Builder> { private String description; private Boolean enableIPv6; private Integer ipv6CidrBlock; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vSwitchId; private String vSwitchName; private String vpcIpv6CidrBlock; private Builder() { super(); } private Builder(ModifyVSwitchAttributeRequest request) { super(request); this.description = request.description; this.enableIPv6 = request.enableIPv6; 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.vSwitchId = request.vSwitchId; this.vSwitchName = request.vSwitchName; this.vpcIpv6CidrBlock = request.vpcIpv6CidrBlock; } /** * <p>The new description for the vSwitch.</p> * <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This is my vswitch.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to enable the IPv6 feature for the vSwitch. Valid values:</p> * <ul> * <li><strong>true</strong>: enables the IPv6 feature.</li> * <li><strong>false</strong>: disables the IPv6 feature. This is the default value.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableIPv6(Boolean enableIPv6) { this.putQueryParameter("EnableIPv6", enableIPv6); this.enableIPv6 = enableIPv6; 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> * <p>You can set this parameter only when the IPv6 feature is enabled for the virtual private cloud (VPC) to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>10</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 ID of the region where the vSwitch is deployed. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the vSwitch.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vsw-25nacdfvue4****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } /** * <p>The new name for the vSwitch.</p> * <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>VSwitch-1</p> */ public Builder vSwitchName(String vSwitchName) { this.putQueryParameter("VSwitchName", vSwitchName); this.vSwitchName = vSwitchName; return this; } /** * <p>The IPv6 CIDR block of the VPC to which the vSwitch belongs.</p> * <p>You can set this parameter only when the IPv6 feature is enabled for the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:312:3e00::/56</p> */ public Builder vpcIpv6CidrBlock(String vpcIpv6CidrBlock) { this.putQueryParameter("VpcIpv6CidrBlock", vpcIpv6CidrBlock); this.vpcIpv6CidrBlock = vpcIpv6CidrBlock; return this; } @Override public ModifyVSwitchAttributeRequest build() { return new ModifyVSwitchAttributeRequest(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/ModifyVSwitchAttributeResponse.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 ModifyVSwitchAttributeResponse} extends {@link TeaModel} * * <p>ModifyVSwitchAttributeResponse</p> */ public class ModifyVSwitchAttributeResponse 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 ModifyVSwitchAttributeResponseBody body; private ModifyVSwitchAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVSwitchAttributeResponse 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 ModifyVSwitchAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVSwitchAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVSwitchAttributeResponseBody body); @Override ModifyVSwitchAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVSwitchAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVSwitchAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVSwitchAttributeResponse 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(ModifyVSwitchAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVSwitchAttributeResponse build() { return new ModifyVSwitchAttributeResponse(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/ModifyVSwitchAttributeResponseBody.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 ModifyVSwitchAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVSwitchAttributeResponseBody</p> */ public class ModifyVSwitchAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVSwitchAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVSwitchAttributeResponseBody 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(ModifyVSwitchAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVSwitchAttributeResponseBody build() { return new ModifyVSwitchAttributeResponseBody(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/ModifyVSwitchCidrReservationAttributeRequest.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 ModifyVSwitchCidrReservationAttributeRequest} extends {@link RequestModel} * * <p>ModifyVSwitchCidrReservationAttributeRequest</p> */ public class ModifyVSwitchCidrReservationAttributeRequest 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("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("VSwitchCidrReservationDescription") private String vSwitchCidrReservationDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationId") @com.aliyun.core.annotation.Validation(required = true) private String vSwitchCidrReservationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationName") private String vSwitchCidrReservationName; private ModifyVSwitchCidrReservationAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vSwitchCidrReservationDescription = builder.vSwitchCidrReservationDescription; this.vSwitchCidrReservationId = builder.vSwitchCidrReservationId; this.vSwitchCidrReservationName = builder.vSwitchCidrReservationName; } public static Builder builder() { return new Builder(); } public static ModifyVSwitchCidrReservationAttributeRequest 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 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 vSwitchCidrReservationDescription */ public String getVSwitchCidrReservationDescription() { return this.vSwitchCidrReservationDescription; } /** * @return vSwitchCidrReservationId */ public String getVSwitchCidrReservationId() { return this.vSwitchCidrReservationId; } /** * @return vSwitchCidrReservationName */ public String getVSwitchCidrReservationName() { return this.vSwitchCidrReservationName; } public static final class Builder extends Request.Builder<ModifyVSwitchCidrReservationAttributeRequest, Builder> { private String clientToken; private Boolean dryRun; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vSwitchCidrReservationDescription; private String vSwitchCidrReservationId; private String vSwitchCidrReservationName; private Builder() { super(); } private Builder(ModifyVSwitchCidrReservationAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vSwitchCidrReservationDescription = request.vSwitchCidrReservationDescription; this.vSwitchCidrReservationId = request.vSwitchCidrReservationId; this.vSwitchCidrReservationName = request.vSwitchCidrReservationName; } /** * ClientToken. */ 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; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the vSwitch is deployed.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The new description of the reserved CIDR block. The default value is empty.</p> * <p>The description must be 2 to 256 characters in length. It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>ReservationDescription</p> */ public Builder vSwitchCidrReservationDescription(String vSwitchCidrReservationDescription) { this.putQueryParameter("VSwitchCidrReservationDescription", vSwitchCidrReservationDescription); this.vSwitchCidrReservationDescription = vSwitchCidrReservationDescription; return this; } /** * <p>The ID of the reserved CIDR block.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vcr-bp1m12saqteraw3rp****</p> */ public Builder vSwitchCidrReservationId(String vSwitchCidrReservationId) { this.putQueryParameter("VSwitchCidrReservationId", vSwitchCidrReservationId); this.vSwitchCidrReservationId = vSwitchCidrReservationId; return this; } /** * <p>The new name of the reserved CIDR block.</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.</p> * * <strong>example:</strong> * <p>ReservationName</p> */ public Builder vSwitchCidrReservationName(String vSwitchCidrReservationName) { this.putQueryParameter("VSwitchCidrReservationName", vSwitchCidrReservationName); this.vSwitchCidrReservationName = vSwitchCidrReservationName; return this; } @Override public ModifyVSwitchCidrReservationAttributeRequest build() { return new ModifyVSwitchCidrReservationAttributeRequest(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/ModifyVSwitchCidrReservationAttributeResponse.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 ModifyVSwitchCidrReservationAttributeResponse} extends {@link TeaModel} * * <p>ModifyVSwitchCidrReservationAttributeResponse</p> */ public class ModifyVSwitchCidrReservationAttributeResponse 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 ModifyVSwitchCidrReservationAttributeResponseBody body; private ModifyVSwitchCidrReservationAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVSwitchCidrReservationAttributeResponse 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 ModifyVSwitchCidrReservationAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVSwitchCidrReservationAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVSwitchCidrReservationAttributeResponseBody body); @Override ModifyVSwitchCidrReservationAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVSwitchCidrReservationAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVSwitchCidrReservationAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVSwitchCidrReservationAttributeResponse 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(ModifyVSwitchCidrReservationAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVSwitchCidrReservationAttributeResponse build() { return new ModifyVSwitchCidrReservationAttributeResponse(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/ModifyVSwitchCidrReservationAttributeResponseBody.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 ModifyVSwitchCidrReservationAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVSwitchCidrReservationAttributeResponseBody</p> */ public class ModifyVSwitchCidrReservationAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVSwitchCidrReservationAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVSwitchCidrReservationAttributeResponseBody 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(ModifyVSwitchCidrReservationAttributeResponseBody 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 ModifyVSwitchCidrReservationAttributeResponseBody build() { return new ModifyVSwitchCidrReservationAttributeResponseBody(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/ModifyVcoRouteEntryWeightRequest.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 ModifyVcoRouteEntryWeightRequest} extends {@link RequestModel} * * <p>ModifyVcoRouteEntryWeightRequest</p> */ public class ModifyVcoRouteEntryWeightRequest 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("NewWeight") @com.aliyun.core.annotation.Validation(required = true) private Integer newWeight; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextHop") @com.aliyun.core.annotation.Validation(required = true) private String nextHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OverlayMode") private String overlayMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteDest") @com.aliyun.core.annotation.Validation(required = true) private String routeDest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Weight") @com.aliyun.core.annotation.Validation(required = true) private Integer weight; private ModifyVcoRouteEntryWeightRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.newWeight = builder.newWeight; this.nextHop = builder.nextHop; this.overlayMode = builder.overlayMode; this.ownerAccount = builder.ownerAccount; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeDest = builder.routeDest; this.vpnConnectionId = builder.vpnConnectionId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static ModifyVcoRouteEntryWeightRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return newWeight */ public Integer getNewWeight() { return this.newWeight; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return overlayMode */ public String getOverlayMode() { return this.overlayMode; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder extends Request.Builder<ModifyVcoRouteEntryWeightRequest, Builder> { private String clientToken; private Integer newWeight; private String nextHop; private String overlayMode; private String ownerAccount; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeDest; private String vpnConnectionId; private Integer weight; private Builder() { super(); } private Builder(ModifyVcoRouteEntryWeightRequest request) { super(request); this.clientToken = request.clientToken; this.newWeight = request.newWeight; this.nextHop = request.nextHop; this.overlayMode = request.overlayMode; this.ownerAccount = request.ownerAccount; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeDest = request.routeDest; this.vpnConnectionId = request.vpnConnectionId; this.weight = request.weight; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-4266****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new weight of the destination-based route that you want to modify. Valid values:</p> * <ul> * <li><strong>0</strong>: a low priority</li> * <li><strong>100</strong>: a high priority</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder newWeight(Integer newWeight) { this.putQueryParameter("NewWeight", newWeight); this.newWeight = newWeight; return this; } /** * <p>The next hop of the destination-based route that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder nextHop(String nextHop) { this.putQueryParameter("NextHop", nextHop); this.nextHop = nextHop; return this; } /** * <p>The tunneling protocol. Set the value to <strong>Ipsec</strong>, which specifies the IPsec tunneling protocol.</p> * * <strong>example:</strong> * <p>Ipsec</p> */ public Builder overlayMode(String overlayMode) { this.putQueryParameter("OverlayMode", overlayMode); this.overlayMode = overlayMode; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * <p>The region ID of the IPsec-VPN connection.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The destination CIDR block of the destination-based route that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.10.0/24</p> */ public Builder routeDest(String routeDest) { this.putQueryParameter("RouteDest", routeDest); this.routeDest = routeDest; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The current weight of the destination-based route that you want to modify. Valid values:</p> * <ul> * <li><strong>0</strong>: a low priority</li> * <li><strong>100</strong>: a high priority</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder weight(Integer weight) { this.putQueryParameter("Weight", weight); this.weight = weight; return this; } @Override public ModifyVcoRouteEntryWeightRequest build() { return new ModifyVcoRouteEntryWeightRequest(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/ModifyVcoRouteEntryWeightResponse.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 ModifyVcoRouteEntryWeightResponse} extends {@link TeaModel} * * <p>ModifyVcoRouteEntryWeightResponse</p> */ public class ModifyVcoRouteEntryWeightResponse 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 ModifyVcoRouteEntryWeightResponseBody body; private ModifyVcoRouteEntryWeightResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVcoRouteEntryWeightResponse 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 ModifyVcoRouteEntryWeightResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVcoRouteEntryWeightResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVcoRouteEntryWeightResponseBody body); @Override ModifyVcoRouteEntryWeightResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVcoRouteEntryWeightResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVcoRouteEntryWeightResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVcoRouteEntryWeightResponse 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(ModifyVcoRouteEntryWeightResponseBody body) { this.body = body; return this; } @Override public ModifyVcoRouteEntryWeightResponse build() { return new ModifyVcoRouteEntryWeightResponse(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/ModifyVcoRouteEntryWeightResponseBody.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 ModifyVcoRouteEntryWeightResponseBody} extends {@link TeaModel} * * <p>ModifyVcoRouteEntryWeightResponseBody</p> */ public class ModifyVcoRouteEntryWeightResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVcoRouteEntryWeightResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVcoRouteEntryWeightResponseBody 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(ModifyVcoRouteEntryWeightResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>9496F8A-82F4-3130-A51A-2266ACC799B4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVcoRouteEntryWeightResponseBody build() { return new ModifyVcoRouteEntryWeightResponseBody(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/ModifyVirtualBorderRouterAttributeRequest.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 ModifyVirtualBorderRouterAttributeRequest} extends {@link RequestModel} * * <p>ModifyVirtualBorderRouterAttributeRequest</p> */ public class ModifyVirtualBorderRouterAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AssociatedPhysicalConnections") private String associatedPhysicalConnections; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DetectMultiplier") private Long detectMultiplier; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableIpv6") private Boolean enableIpv6; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalGatewayIp") private String localGatewayIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalIpv6GatewayIp") private String localIpv6GatewayIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MinRxInterval") private Long minRxInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MinTxInterval") private Long minTxInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Mtu") private Integer mtu; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerGatewayIp") private String peerGatewayIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerIpv6GatewayIp") private String peerIpv6GatewayIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeeringIpv6SubnetMask") private String peeringIpv6SubnetMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeeringSubnetMask") private String peeringSubnetMask; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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("SitelinkEnable") private Boolean sitelinkEnable; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VbrId") @com.aliyun.core.annotation.Validation(required = true) private String vbrId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VlanId") private Integer vlanId; private ModifyVirtualBorderRouterAttributeRequest(Builder builder) { super(builder); this.associatedPhysicalConnections = builder.associatedPhysicalConnections; this.bandwidth = builder.bandwidth; this.circuitCode = builder.circuitCode; this.clientToken = builder.clientToken; this.description = builder.description; this.detectMultiplier = builder.detectMultiplier; this.enableIpv6 = builder.enableIpv6; this.localGatewayIp = builder.localGatewayIp; this.localIpv6GatewayIp = builder.localIpv6GatewayIp; this.minRxInterval = builder.minRxInterval; this.minTxInterval = builder.minTxInterval; this.mtu = builder.mtu; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerGatewayIp = builder.peerGatewayIp; this.peerIpv6GatewayIp = builder.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = builder.peeringIpv6SubnetMask; this.peeringSubnetMask = builder.peeringSubnetMask; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.sitelinkEnable = builder.sitelinkEnable; this.vbrId = builder.vbrId; this.vlanId = builder.vlanId; } public static Builder builder() { return new Builder(); } public static ModifyVirtualBorderRouterAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return associatedPhysicalConnections */ public String getAssociatedPhysicalConnections() { return this.associatedPhysicalConnections; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return detectMultiplier */ public Long getDetectMultiplier() { return this.detectMultiplier; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @return localGatewayIp */ public String getLocalGatewayIp() { return this.localGatewayIp; } /** * @return localIpv6GatewayIp */ public String getLocalIpv6GatewayIp() { return this.localIpv6GatewayIp; } /** * @return minRxInterval */ public Long getMinRxInterval() { return this.minRxInterval; } /** * @return minTxInterval */ public Long getMinTxInterval() { return this.minTxInterval; } /** * @return mtu */ public Integer getMtu() { return this.mtu; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return peerGatewayIp */ public String getPeerGatewayIp() { return this.peerGatewayIp; } /** * @return peerIpv6GatewayIp */ public String getPeerIpv6GatewayIp() { return this.peerIpv6GatewayIp; } /** * @return peeringIpv6SubnetMask */ public String getPeeringIpv6SubnetMask() { return this.peeringIpv6SubnetMask; } /** * @return peeringSubnetMask */ public String getPeeringSubnetMask() { return this.peeringSubnetMask; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return sitelinkEnable */ public Boolean getSitelinkEnable() { return this.sitelinkEnable; } /** * @return vbrId */ public String getVbrId() { return this.vbrId; } /** * @return vlanId */ public Integer getVlanId() { return this.vlanId; } public static final class Builder extends Request.Builder<ModifyVirtualBorderRouterAttributeRequest, Builder> { private String associatedPhysicalConnections; private Integer bandwidth; private String circuitCode; private String clientToken; private String description; private Long detectMultiplier; private Boolean enableIpv6; private String localGatewayIp; private String localIpv6GatewayIp; private Long minRxInterval; private Long minTxInterval; private Integer mtu; private String name; private String ownerAccount; private Long ownerId; private String peerGatewayIp; private String peerIpv6GatewayIp; private String peeringIpv6SubnetMask; private String peeringSubnetMask; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Boolean sitelinkEnable; private String vbrId; private Integer vlanId; private Builder() { super(); } private Builder(ModifyVirtualBorderRouterAttributeRequest request) { super(request); this.associatedPhysicalConnections = request.associatedPhysicalConnections; this.bandwidth = request.bandwidth; this.circuitCode = request.circuitCode; this.clientToken = request.clientToken; this.description = request.description; this.detectMultiplier = request.detectMultiplier; this.enableIpv6 = request.enableIpv6; this.localGatewayIp = request.localGatewayIp; this.localIpv6GatewayIp = request.localIpv6GatewayIp; this.minRxInterval = request.minRxInterval; this.minTxInterval = request.minTxInterval; this.mtu = request.mtu; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerGatewayIp = request.peerGatewayIp; this.peerIpv6GatewayIp = request.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = request.peeringIpv6SubnetMask; this.peeringSubnetMask = request.peeringSubnetMask; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sitelinkEnable = request.sitelinkEnable; this.vbrId = request.vbrId; this.vlanId = request.vlanId; } /** * <p>The information about the Express Connect circuit associated with the VBR, including the following parameters:</p> * <ul> * <li><strong>CircuitCode</strong>: the circuit code provided by the connectivity provider for the Express Connect circuit.</li> * <li><strong>LocalGatewayIp</strong>: the IP address of the gateway device on the Alibaba Cloud side.</li> * <li><strong>PeerGatewayIp</strong>: the IP address of the gateway device on the customer side.</li> * <li><strong>PeeringSubnetMask</strong>: the subnet mask for the IP addresses of gateway devices on the Alibaba Cloud side and the customer side.</li> * <li><strong>PhysicalConnectionId</strong>: the ID of the Express Connect circuit.</li> * </ul> * * <strong>example:</strong> * <p>[ { &quot;CircuitCode &quot;: &quot;longtel001&quot;, &quot; LocalGatewayIp &quot;: &quot;192.168.XX.XX&quot;, &quot;PeerGatewayIp&quot; : &quot;192.168.XX.XX&quot;, &quot; PeeringSubnetMask &quot;: &quot;255.255.255.252&quot;, &quot; PhysicalConnectionId &quot;: &quot;pc-kojok19****&quot; } ]</p> */ public Builder associatedPhysicalConnections(String associatedPhysicalConnections) { this.putQueryParameter("AssociatedPhysicalConnections", associatedPhysicalConnections); this.associatedPhysicalConnections = associatedPhysicalConnections; return this; } /** * <p>The bandwidth value. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p> * <blockquote> * <p> Only the owner of the Express Connect circuit can set this property.</p> * </blockquote> * * <strong>example:</strong> * <p>longtel001</p> */ public Builder circuitCode(String circuitCode) { this.putQueryParameter("CircuitCode", circuitCode); this.circuitCode = circuitCode; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-00****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The description of the VBR.</p> * <p>It 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>desc</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The maximum number of dropped packets that is allowed by the receiver when the initiator transmits packets. This value can be used to check whether a connection works as expected.</p> * <p>Valid values: <strong>3 to 10</strong>.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder detectMultiplier(Long detectMultiplier) { this.putQueryParameter("DetectMultiplier", detectMultiplier); this.detectMultiplier = detectMultiplier; return this; } /** * <p>Specifies whether to enable IPv6. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableIpv6(Boolean enableIpv6) { this.putQueryParameter("EnableIpv6", enableIpv6); this.enableIpv6 = enableIpv6; return this; } /** * <p>The IP address of the VBR.</p> * <p>Only the owner of the VBR can set or modify this parameter.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder localGatewayIp(String localGatewayIp) { this.putQueryParameter("LocalGatewayIp", localGatewayIp); this.localGatewayIp = localGatewayIp; return this; } /** * <p>The IPv6 address of the VBR.</p> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p> */ public Builder localIpv6GatewayIp(String localIpv6GatewayIp) { this.putQueryParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); this.localIpv6GatewayIp = localIpv6GatewayIp; return this; } /** * <p>The time interval to receive BFD packets. Valid values: <strong>200 to 1000</strong>. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>300</p> */ public Builder minRxInterval(Long minRxInterval) { this.putQueryParameter("MinRxInterval", minRxInterval); this.minRxInterval = minRxInterval; return this; } /** * <p>The time interval to send BFD packets. Valid values: <strong>200 to 1000</strong>. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>300</p> */ public Builder minTxInterval(Long minTxInterval) { this.putQueryParameter("MinTxInterval", minTxInterval); this.minTxInterval = minTxInterval; return this; } /** * Mtu. */ public Builder mtu(Integer mtu) { this.putQueryParameter("Mtu", mtu); this.mtu = mtu; return this; } /** * <p>The name of the VBR.</p> * <p>The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. It cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>VBR</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The IP address of the gateway device in the data center.</p> * <p>Only the owner of the VBR can set or modify this parameter.</p> * * <strong>example:</strong> * <p>192.168.XX.X</p> */ public Builder peerGatewayIp(String peerGatewayIp) { this.putQueryParameter("PeerGatewayIp", peerGatewayIp); this.peerGatewayIp = peerGatewayIp; return this; } /** * <p>The IPv6 address of the gateway device in the data center.</p> * <ul> * <li>Only the owner of the VBR can set or modify this property.</li> * <li>This property is required when you create a VBR for the owner of the Express Connect circuit. You can ignore this property when you create a VBR for another Alibaba Cloud account.</li> * </ul> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:2a2b</p> */ public Builder peerIpv6GatewayIp(String peerIpv6GatewayIp) { this.putQueryParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); this.peerIpv6GatewayIp = peerIpv6GatewayIp; return this; } /** * <p>The subnet mask of the IPv6 addresses of the VBR and the gateway device in the data center.</p> * <p>The two IPv6 addresses must fall within the same subnet.</p> * * <strong>example:</strong> * <p>2408:4004:cc:400::/56</p> */ public Builder peeringIpv6SubnetMask(String peeringIpv6SubnetMask) { this.putQueryParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); this.peeringIpv6SubnetMask = peeringIpv6SubnetMask; return this; } /** * <p>The subnet mask for the IP addresses of the gateway devices on the Alibaba Cloud side and on the customer side. Only the owner of the VBR can set or modify this parameter.</p> * <p>The two IP addresses must fall within the same subnet.</p> * * <strong>example:</strong> * <p>255.255.255.252</p> */ public Builder peeringSubnetMask(String peeringSubnetMask) { this.putQueryParameter("PeeringSubnetMask", peeringSubnetMask); this.peeringSubnetMask = peeringSubnetMask; return this; } /** * <p>The 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>Indicates whether to allow service access between data centers. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder sitelinkEnable(Boolean sitelinkEnable) { this.putQueryParameter("SitelinkEnable", sitelinkEnable); this.sitelinkEnable = sitelinkEnable; return this; } /** * <p>The VBR ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vbr-bp1lhl0taikrte****</p> */ public Builder vbrId(String vbrId) { this.putQueryParameter("VbrId", vbrId); this.vbrId = vbrId; return this; } /** * <p>The VLAN ID of the VBR. Valid values: <strong>0 to 2999</strong>.</p> * <blockquote> * <p> This parameter is available only to Express Connect owners. The VLAN IDs of VBRs on the same Express Connect circuit must be unique.</p> * </blockquote> * * <strong>example:</strong> * <p>0</p> */ public Builder vlanId(Integer vlanId) { this.putQueryParameter("VlanId", vlanId); this.vlanId = vlanId; return this; } @Override public ModifyVirtualBorderRouterAttributeRequest build() { return new ModifyVirtualBorderRouterAttributeRequest(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/ModifyVirtualBorderRouterAttributeResponse.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 ModifyVirtualBorderRouterAttributeResponse} extends {@link TeaModel} * * <p>ModifyVirtualBorderRouterAttributeResponse</p> */ public class ModifyVirtualBorderRouterAttributeResponse 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 ModifyVirtualBorderRouterAttributeResponseBody body; private ModifyVirtualBorderRouterAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVirtualBorderRouterAttributeResponse 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 ModifyVirtualBorderRouterAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVirtualBorderRouterAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVirtualBorderRouterAttributeResponseBody body); @Override ModifyVirtualBorderRouterAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVirtualBorderRouterAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVirtualBorderRouterAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVirtualBorderRouterAttributeResponse 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(ModifyVirtualBorderRouterAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVirtualBorderRouterAttributeResponse build() { return new ModifyVirtualBorderRouterAttributeResponse(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/ModifyVirtualBorderRouterAttributeResponseBody.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 ModifyVirtualBorderRouterAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVirtualBorderRouterAttributeResponseBody</p> */ public class ModifyVirtualBorderRouterAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVirtualBorderRouterAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVirtualBorderRouterAttributeResponseBody 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(ModifyVirtualBorderRouterAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>980960B0-2969-40BF-8542-EBB34FD358AB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVirtualBorderRouterAttributeResponseBody build() { return new ModifyVirtualBorderRouterAttributeResponseBody(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/ModifyVpcAttributeRequest.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 ModifyVpcAttributeRequest} extends {@link RequestModel} * * <p>ModifyVpcAttributeRequest</p> */ public class ModifyVpcAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableDnsHostname") private Boolean enableDnsHostname; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableIPv6") private Boolean enableIPv6; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv6Isp") private String ipv6Isp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") @com.aliyun.core.annotation.Validation(required = true) private String vpcId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcName") private String vpcName; private ModifyVpcAttributeRequest(Builder builder) { super(builder); this.cidrBlock = builder.cidrBlock; this.description = builder.description; this.enableDnsHostname = builder.enableDnsHostname; this.enableIPv6 = builder.enableIPv6; this.ipv6CidrBlock = builder.ipv6CidrBlock; this.ipv6Isp = builder.ipv6Isp; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vpcId = builder.vpcId; this.vpcName = builder.vpcName; } public static Builder builder() { return new Builder(); } public static ModifyVpcAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return description */ public String getDescription() { return this.description; } /** * @return enableDnsHostname */ public Boolean getEnableDnsHostname() { return this.enableDnsHostname; } /** * @return enableIPv6 */ public Boolean getEnableIPv6() { return this.enableIPv6; } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return ipv6Isp */ public String getIpv6Isp() { return this.ipv6Isp; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpcName */ public String getVpcName() { return this.vpcName; } public static final class Builder extends Request.Builder<ModifyVpcAttributeRequest, Builder> { private String cidrBlock; private String description; private Boolean enableDnsHostname; private Boolean enableIPv6; private String ipv6CidrBlock; private String ipv6Isp; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpcId; private String vpcName; private Builder() { super(); } private Builder(ModifyVpcAttributeRequest request) { super(request); this.cidrBlock = request.cidrBlock; this.description = request.description; this.enableDnsHostname = request.enableDnsHostname; this.enableIPv6 = request.enableIPv6; this.ipv6CidrBlock = request.ipv6CidrBlock; this.ipv6Isp = request.ipv6Isp; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vpcId = request.vpcId; this.vpcName = request.vpcName; } /** * <p>The new IPv4 CIDR block of the VPC.</p> * <p>You can specify a larger or smaller IPv4 CIDR block than the IPv4 CIDR block of the VPC. The subnet mask must be 8 to 28 bits in length. If you specify a smaller IPv4 CIDR block and existing IP addresses do not fall within the CIDR block, the modification fails.</p> * <blockquote> * <p> If you modify the CIDR block of a VPC, your existing services are not affected.</p> * </blockquote> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder cidrBlock(String cidrBlock) { this.putQueryParameter("CidrBlock", cidrBlock); this.cidrBlock = cidrBlock; return this; } /** * <p>The new description of the VPC.</p> * <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This is my VPC.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Indicates whether the DNS hostname feature is enabled. Valid values:</p> * <ul> * <li><strong>false</strong> (default): disabled.</li> * <li><strong>true</strong>: enabled.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableDnsHostname(Boolean enableDnsHostname) { this.putQueryParameter("EnableDnsHostname", enableDnsHostname); this.enableDnsHostname = enableDnsHostname; return this; } /** * <p>Specifies whether to enable IPv6 CIDR blocks. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</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 VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:6a::/56</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.putQueryParameter("Ipv6CidrBlock", ipv6CidrBlock); this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>The type of IPv6 CIDR block. Valid values:</p> * <ul> * <li><strong>BGP</strong> (default)</li> * <li><strong>ChinaMobile</strong></li> * <li><strong>ChinaUnicom</strong></li> * <li><strong>ChinaTelecom</strong></li> * </ul> * <blockquote> * <p> If your Alibaba Cloud account is allowed to activate single-ISP bandwidth, you can set this parameter to <strong>ChinaTelecom</strong>, <strong>ChinaUnicom</strong>, or <strong>ChinaMobile</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>BGP</p> */ public Builder ipv6Isp(String ipv6Isp) { this.putQueryParameter("Ipv6Isp", ipv6Isp); this.ipv6Isp = ipv6Isp; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the VPC.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the VPC that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-bp1qtbach57ywecf****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } /** * <p>The new name of the VPC.</p> * <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>Vpc-1</p> */ public Builder vpcName(String vpcName) { this.putQueryParameter("VpcName", vpcName); this.vpcName = vpcName; return this; } @Override public ModifyVpcAttributeRequest build() { return new ModifyVpcAttributeRequest(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/ModifyVpcAttributeResponse.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 ModifyVpcAttributeResponse} extends {@link TeaModel} * * <p>ModifyVpcAttributeResponse</p> */ public class ModifyVpcAttributeResponse 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 ModifyVpcAttributeResponseBody body; private ModifyVpcAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpcAttributeResponse 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 ModifyVpcAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpcAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpcAttributeResponseBody body); @Override ModifyVpcAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpcAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpcAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpcAttributeResponse 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(ModifyVpcAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVpcAttributeResponse build() { return new ModifyVpcAttributeResponse(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/ModifyVpcAttributeResponseBody.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 ModifyVpcAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpcAttributeResponseBody</p> */ public class ModifyVpcAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVpcAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVpcAttributeResponseBody 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(ModifyVpcAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>43B72D30-25E1-4FA3-96A8-89374A521D1A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVpcAttributeResponseBody build() { return new ModifyVpcAttributeResponseBody(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/ModifyVpcPrefixListRequest.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 ModifyVpcPrefixListRequest} extends {@link RequestModel} * * <p>ModifyVpcPrefixListRequest</p> */ public class ModifyVpcPrefixListRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AddPrefixListEntry") private java.util.List<AddPrefixListEntry> addPrefixListEntry; @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("MaxEntries") private Integer maxEntries; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrefixListDescription") private String prefixListDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrefixListId") @com.aliyun.core.annotation.Validation(required = true) private String prefixListId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrefixListName") private String prefixListName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemovePrefixListEntry") private java.util.List<RemovePrefixListEntry> removePrefixListEntry; @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 ModifyVpcPrefixListRequest(Builder builder) { super(builder); this.addPrefixListEntry = builder.addPrefixListEntry; this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.maxEntries = builder.maxEntries; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.prefixListDescription = builder.prefixListDescription; this.prefixListId = builder.prefixListId; this.prefixListName = builder.prefixListName; this.regionId = builder.regionId; this.removePrefixListEntry = builder.removePrefixListEntry; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyVpcPrefixListRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return addPrefixListEntry */ public java.util.List<AddPrefixListEntry> getAddPrefixListEntry() { return this.addPrefixListEntry; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return maxEntries */ public Integer getMaxEntries() { return this.maxEntries; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return prefixListDescription */ public String getPrefixListDescription() { return this.prefixListDescription; } /** * @return prefixListId */ public String getPrefixListId() { return this.prefixListId; } /** * @return prefixListName */ public String getPrefixListName() { return this.prefixListName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return removePrefixListEntry */ public java.util.List<RemovePrefixListEntry> getRemovePrefixListEntry() { return this.removePrefixListEntry; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyVpcPrefixListRequest, Builder> { private java.util.List<AddPrefixListEntry> addPrefixListEntry; private String clientToken; private Boolean dryRun; private Integer maxEntries; private String ownerAccount; private Long ownerId; private String prefixListDescription; private String prefixListId; private String prefixListName; private String regionId; private java.util.List<RemovePrefixListEntry> removePrefixListEntry; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyVpcPrefixListRequest request) { super(request); this.addPrefixListEntry = request.addPrefixListEntry; this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.maxEntries = request.maxEntries; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.prefixListDescription = request.prefixListDescription; this.prefixListId = request.prefixListId; this.prefixListName = request.prefixListName; this.regionId = request.regionId; this.removePrefixListEntry = request.removePrefixListEntry; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The information about CIDR blocks to be added to the prefix list.</p> */ public Builder addPrefixListEntry(java.util.List<AddPrefixListEntry> addPrefixListEntry) { this.putQueryParameter("AddPrefixListEntry", addPrefixListEntry); this.addPrefixListEntry = addPrefixListEntry; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to only precheck the request. Valid values:</p> * <ul> * <li><strong>true</strong>: checks the request without performing the operation. The system prechecks the required parameters, request syntax, and limits. If the request fails the precheck, an error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): sends the request. If the request passes the check, 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 maximum number of CIDR blocks supported by the prefix list after the configuration of the prefix list is modified.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxEntries(Integer maxEntries) { this.putQueryParameter("MaxEntries", maxEntries); this.maxEntries = maxEntries; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The new description of the prefix list.</p> * <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>newdescription</p> */ public Builder prefixListDescription(String prefixListDescription) { this.putQueryParameter("PrefixListDescription", prefixListDescription); this.prefixListDescription = prefixListDescription; return this; } /** * <p>The ID of the prefix list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pl-0b7hwu67****</p> */ public Builder prefixListId(String prefixListId) { this.putQueryParameter("PrefixListId", prefixListId); this.prefixListId = prefixListId; return this; } /** * <p>The new name of the prefix list.</p> * <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>newname</p> */ public Builder prefixListName(String prefixListName) { this.putQueryParameter("PrefixListName", prefixListName); this.prefixListName = prefixListName; return this; } /** * <p>The region ID of the prefix 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 information about CIDR blocks to be deleted to the prefix list.</p> */ public Builder removePrefixListEntry(java.util.List<RemovePrefixListEntry> removePrefixListEntry) { this.putQueryParameter("RemovePrefixListEntry", removePrefixListEntry); this.removePrefixListEntry = removePrefixListEntry; 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 ModifyVpcPrefixListRequest build() { return new ModifyVpcPrefixListRequest(this); } } /** * * {@link ModifyVpcPrefixListRequest} extends {@link TeaModel} * * <p>ModifyVpcPrefixListRequest</p> */ public static class AddPrefixListEntry extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("Description") private String description; private AddPrefixListEntry(Builder builder) { this.cidr = builder.cidr; this.description = builder.description; } public static Builder builder() { return new Builder(); } public static AddPrefixListEntry create() { return builder().build(); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return description */ public String getDescription() { return this.description; } public static final class Builder { private String cidr; private String description; private Builder() { } private Builder(AddPrefixListEntry model) { this.cidr = model.cidr; this.description = model.description; } /** * <p>The CIDR block to be added to the prefix list.</p> * <blockquote> * <p> If the CIDR block already exists in the prefix list, you can only modify the description of the CIDR block by setting the <strong>AddPrefixListEntry.N.Description</strong> parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>172.16.0.0/12</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The description of the CIDR block to be added to the prefix list.</p> * <p>The description must be 1 to 256 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>newcidr</p> */ public Builder description(String description) { this.description = description; return this; } public AddPrefixListEntry build() { return new AddPrefixListEntry(this); } } } /** * * {@link ModifyVpcPrefixListRequest} extends {@link TeaModel} * * <p>ModifyVpcPrefixListRequest</p> */ public static class RemovePrefixListEntry extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cidr") private String cidr; @com.aliyun.core.annotation.NameInMap("Description") private String description; private RemovePrefixListEntry(Builder builder) { this.cidr = builder.cidr; this.description = builder.description; } public static Builder builder() { return new Builder(); } public static RemovePrefixListEntry create() { return builder().build(); } /** * @return cidr */ public String getCidr() { return this.cidr; } /** * @return description */ public String getDescription() { return this.description; } public static final class Builder { private String cidr; private String description; private Builder() { } private Builder(RemovePrefixListEntry model) { this.cidr = model.cidr; this.description = model.description; } /** * <p>The CIDR block that you want to delete from the prefix list.</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder cidr(String cidr) { this.cidr = cidr; return this; } /** * <p>The description of the CIDR block that you want to delete.</p> * * <strong>example:</strong> * <p>cidr</p> */ public Builder description(String description) { this.description = description; return this; } public RemovePrefixListEntry build() { return new RemovePrefixListEntry(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/ModifyVpcPrefixListResponse.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 ModifyVpcPrefixListResponse} extends {@link TeaModel} * * <p>ModifyVpcPrefixListResponse</p> */ public class ModifyVpcPrefixListResponse 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 ModifyVpcPrefixListResponseBody body; private ModifyVpcPrefixListResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpcPrefixListResponse 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 ModifyVpcPrefixListResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpcPrefixListResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpcPrefixListResponseBody body); @Override ModifyVpcPrefixListResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpcPrefixListResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpcPrefixListResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpcPrefixListResponse 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(ModifyVpcPrefixListResponseBody body) { this.body = body; return this; } @Override public ModifyVpcPrefixListResponse build() { return new ModifyVpcPrefixListResponse(this); } } }