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/DeletePublicIpAddressPoolResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeletePublicIpAddressPoolResponseBody} extends {@link TeaModel}
*
* <p>DeletePublicIpAddressPoolResponseBody</p>
*/
public class DeletePublicIpAddressPoolResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeletePublicIpAddressPoolResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeletePublicIpAddressPoolResponseBody 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(DeletePublicIpAddressPoolResponseBody 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 DeletePublicIpAddressPoolResponseBody build() {
return new DeletePublicIpAddressPoolResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteEntriesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteEntriesRequest} extends {@link RequestModel}
*
* <p>DeleteRouteEntriesRequest</p>
*/
public class DeleteRouteEntriesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteEntries")
private java.util.List<RouteEntries> routeEntries;
private DeleteRouteEntriesRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeEntries = builder.routeEntries;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouteEntriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeEntries
*/
public java.util.List<RouteEntries> getRouteEntries() {
return this.routeEntries;
}
public static final class Builder extends Request.Builder<DeleteRouteEntriesRequest, Builder> {
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<RouteEntries> routeEntries;
private Builder() {
super();
}
private Builder(DeleteRouteEntriesRequest request) {
super(request);
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeEntries = request.routeEntries;
}
/**
* <p>Specifies whether to 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;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The information about the routes that you want to delete.</p>
*/
public Builder routeEntries(java.util.List<RouteEntries> routeEntries) {
this.putQueryParameter("RouteEntries", routeEntries);
this.routeEntries = routeEntries;
return this;
}
@Override
public DeleteRouteEntriesRequest build() {
return new DeleteRouteEntriesRequest(this);
}
}
/**
*
* {@link DeleteRouteEntriesRequest} extends {@link TeaModel}
*
* <p>DeleteRouteEntriesRequest</p>
*/
public static class RouteEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidrBlock")
private String dstCidrBlock;
@com.aliyun.core.annotation.NameInMap("NextHop")
private String nextHop;
@com.aliyun.core.annotation.NameInMap("RouteEntryId")
private String routeEntryId;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
private RouteEntries(Builder builder) {
this.dstCidrBlock = builder.dstCidrBlock;
this.nextHop = builder.nextHop;
this.routeEntryId = builder.routeEntryId;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static RouteEntries create() {
return builder().build();
}
/**
* @return dstCidrBlock
*/
public String getDstCidrBlock() {
return this.dstCidrBlock;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return routeEntryId
*/
public String getRouteEntryId() {
return this.routeEntryId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder {
private String dstCidrBlock;
private String nextHop;
private String routeEntryId;
private String routeTableId;
private Builder() {
}
private Builder(RouteEntries model) {
this.dstCidrBlock = model.dstCidrBlock;
this.nextHop = model.nextHop;
this.routeEntryId = model.routeEntryId;
this.routeTableId = model.routeTableId;
}
/**
* <p>The destination CIDR block of the route that you want to delete. IPv4 and IPv6 CIDR blocks are supported. You can specify up to 50 destination CIDR blocks.</p>
* <blockquote>
* <p> If <strong>RouteEntryId</strong> is not specified, <strong>DstCidrBlock</strong> and <strong>NextHop</strong> are required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>47.100.XX.XX/24</p>
*/
public Builder dstCidrBlock(String dstCidrBlock) {
this.dstCidrBlock = dstCidrBlock;
return this;
}
/**
* <p>The ID of the next hop that you want to delete. You can specify up to 50 next hop IDs.</p>
* <blockquote>
* <p> If <strong>RouteEntryId</strong> is not specified, <strong>DstCidrBlock</strong> and <strong>NextHop</strong> are required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-j6c2fp57q8rr4jlu****</p>
*/
public Builder nextHop(String nextHop) {
this.nextHop = nextHop;
return this;
}
/**
* <p>The ID of the route that you want to delete. You can specify up to 50 route IDs.</p>
* <blockquote>
* <p> If <strong>RouteEntryId</strong> is not specified, <strong>DstCidrBlock</strong> and <strong>NextHop</strong> are required.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rte-bp1mnnr2al0naomnpv****</p>
*/
public Builder routeEntryId(String routeEntryId) {
this.routeEntryId = routeEntryId;
return this;
}
/**
* <p>The ID of the route table to which the routes to be deleted belongs. You can specify up to 50 route table IDs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-2ze3jgygk9bmsj23s****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
public RouteEntries build() {
return new RouteEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteEntriesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteEntriesResponse} extends {@link TeaModel}
*
* <p>DeleteRouteEntriesResponse</p>
*/
public class DeleteRouteEntriesResponse 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 DeleteRouteEntriesResponseBody body;
private DeleteRouteEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteRouteEntriesResponse 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 DeleteRouteEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteRouteEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteRouteEntriesResponseBody body);
@Override
DeleteRouteEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteRouteEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteRouteEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteRouteEntriesResponse 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(DeleteRouteEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteRouteEntriesResponse build() {
return new DeleteRouteEntriesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteEntriesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteEntriesResponseBody} extends {@link TeaModel}
*
* <p>DeleteRouteEntriesResponseBody</p>
*/
public class DeleteRouteEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailedCount")
private Integer failedCount;
@com.aliyun.core.annotation.NameInMap("FailedRouteEntries")
private java.util.List<FailedRouteEntries> failedRouteEntries;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SuccessCount")
private Integer successCount;
private DeleteRouteEntriesResponseBody(Builder builder) {
this.failedCount = builder.failedCount;
this.failedRouteEntries = builder.failedRouteEntries;
this.requestId = builder.requestId;
this.successCount = builder.successCount;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouteEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return failedCount
*/
public Integer getFailedCount() {
return this.failedCount;
}
/**
* @return failedRouteEntries
*/
public java.util.List<FailedRouteEntries> getFailedRouteEntries() {
return this.failedRouteEntries;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return successCount
*/
public Integer getSuccessCount() {
return this.successCount;
}
public static final class Builder {
private Integer failedCount;
private java.util.List<FailedRouteEntries> failedRouteEntries;
private String requestId;
private Integer successCount;
private Builder() {
}
private Builder(DeleteRouteEntriesResponseBody model) {
this.failedCount = model.failedCount;
this.failedRouteEntries = model.failedRouteEntries;
this.requestId = model.requestId;
this.successCount = model.successCount;
}
/**
* <p>The number of route entries that failed to be deleted.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder failedCount(Integer failedCount) {
this.failedCount = failedCount;
return this;
}
/**
* <p>The information about the route entry that failed to be deleted.</p>
*/
public Builder failedRouteEntries(java.util.List<FailedRouteEntries> failedRouteEntries) {
this.failedRouteEntries = failedRouteEntries;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of route entries that were deleted.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder successCount(Integer successCount) {
this.successCount = successCount;
return this;
}
public DeleteRouteEntriesResponseBody build() {
return new DeleteRouteEntriesResponseBody(this);
}
}
/**
*
* {@link DeleteRouteEntriesResponseBody} extends {@link TeaModel}
*
* <p>DeleteRouteEntriesResponseBody</p>
*/
public static class FailedRouteEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidrBlock")
private String dstCidrBlock;
@com.aliyun.core.annotation.NameInMap("FailedCode")
private String failedCode;
@com.aliyun.core.annotation.NameInMap("FailedMessage")
private String failedMessage;
@com.aliyun.core.annotation.NameInMap("NextHop")
private String nextHop;
@com.aliyun.core.annotation.NameInMap("RouteEntryId")
private String routeEntryId;
private FailedRouteEntries(Builder builder) {
this.dstCidrBlock = builder.dstCidrBlock;
this.failedCode = builder.failedCode;
this.failedMessage = builder.failedMessage;
this.nextHop = builder.nextHop;
this.routeEntryId = builder.routeEntryId;
}
public static Builder builder() {
return new Builder();
}
public static FailedRouteEntries create() {
return builder().build();
}
/**
* @return dstCidrBlock
*/
public String getDstCidrBlock() {
return this.dstCidrBlock;
}
/**
* @return failedCode
*/
public String getFailedCode() {
return this.failedCode;
}
/**
* @return failedMessage
*/
public String getFailedMessage() {
return this.failedMessage;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return routeEntryId
*/
public String getRouteEntryId() {
return this.routeEntryId;
}
public static final class Builder {
private String dstCidrBlock;
private String failedCode;
private String failedMessage;
private String nextHop;
private String routeEntryId;
private Builder() {
}
private Builder(FailedRouteEntries model) {
this.dstCidrBlock = model.dstCidrBlock;
this.failedCode = model.failedCode;
this.failedMessage = model.failedMessage;
this.nextHop = model.nextHop;
this.routeEntryId = model.routeEntryId;
}
/**
* <p>The destination CIDR block of the route entry that failed to be deleted. IPv4 and IPv6 CIDR blocks are supported.</p>
*
* <strong>example:</strong>
* <p>47.100.XX.XX/24</p>
*/
public Builder dstCidrBlock(String dstCidrBlock) {
this.dstCidrBlock = dstCidrBlock;
return this;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>VPC_ROUTER_ENTRY_NOT_EXIST</p>
*/
public Builder failedCode(String failedCode) {
this.failedCode = failedCode;
return this;
}
/**
* <p>The error message.</p>
*
* <strong>example:</strong>
* <p>vRouterEntry not exists</p>
*/
public Builder failedMessage(String failedMessage) {
this.failedMessage = failedMessage;
return this;
}
/**
* <p>The ID of the next hop that failed to be deleted.</p>
*
* <strong>example:</strong>
* <p>i-j6c2fp57q8rr4jlu****</p>
*/
public Builder nextHop(String nextHop) {
this.nextHop = nextHop;
return this;
}
/**
* <p>The ID of the route entry that failed to be deleted.</p>
*
* <strong>example:</strong>
* <p>rte-bp1mnnr2al0naomnpv****</p>
*/
public Builder routeEntryId(String routeEntryId) {
this.routeEntryId = routeEntryId;
return this;
}
public FailedRouteEntries build() {
return new FailedRouteEntries(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteEntryRequest} extends {@link RequestModel}
*
* <p>DeleteRouteEntryRequest</p>
*/
public class DeleteRouteEntryRequest extends Request {
@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("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextHopList")
private java.util.List<NextHopList> nextHopList;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("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("RouteEntryId")
private String routeEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
private DeleteRouteEntryRequest(Builder builder) {
super(builder);
this.destinationCidrBlock = builder.destinationCidrBlock;
this.dryRun = builder.dryRun;
this.nextHopId = builder.nextHopId;
this.nextHopList = builder.nextHopList;
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.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopList
*/
public java.util.List<NextHopList> getNextHopList() {
return this.nextHopList;
}
/**
* @return 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 routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder extends Request.Builder<DeleteRouteEntryRequest, Builder> {
private String destinationCidrBlock;
private Boolean dryRun;
private String nextHopId;
private java.util.List<NextHopList> nextHopList;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeEntryId;
private String routeTableId;
private Builder() {
super();
}
private Builder(DeleteRouteEntryRequest request) {
super(request);
this.destinationCidrBlock = request.destinationCidrBlock;
this.dryRun = request.dryRun;
this.nextHopId = request.nextHopId;
this.nextHopList = request.nextHopList;
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.routeTableId = request.routeTableId;
}
/**
* <p>The destination CIDR block of the route. Only IPv4 CIDR blocks, IPv6 CIDR blocks, and prefix lists are supported.</p>
*
* <strong>example:</strong>
* <p>47.100.XX.XX/16</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>
* <p><strong>true</strong>: sends a request without deleting the route entry. 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 the dry run, the <code>DryRunOperation</code> error code is returned.</p>
* <p><strong>false</strong> (default): performs a dry run and the actual request. If the request passes the check, a 2xx HTTP status code is returned and the route entry is deleted.</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the next hop.</p>
* <ul>
* <li>To delete a route other than an equal-cost multi-path (ECMP) route, set the <strong>NextHopId</strong> parameter and ignore the <strong>NextHopList</strong> parameter.</li>
* <li>To delete an ECMP route, set the <strong>NextHopList</strong> parameter and ignore the <strong>NextHopId</strong> parameter.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ri-2zeo3xzyf38r4urzd****</p>
*/
public Builder nextHopId(String nextHopId) {
this.putQueryParameter("NextHopId", nextHopId);
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The list of the next hop of the ECMP route.</p>
*/
public Builder nextHopList(java.util.List<NextHopList> nextHopList) {
this.putQueryParameter("NextHopList", nextHopList);
this.nextHopList = nextHopList;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the route that you want to delete.</p>
*
* <strong>example:</strong>
* <p>rte-bp1mnnr2al0naomnpv****</p>
*/
public Builder routeEntryId(String routeEntryId) {
this.putQueryParameter("RouteEntryId", routeEntryId);
this.routeEntryId = routeEntryId;
return this;
}
/**
* <p>The ID of the route table to which the route belongs.</p>
*
* <strong>example:</strong>
* <p>vtb-2ze3jgygk9bmsj23s****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
@Override
public DeleteRouteEntryRequest build() {
return new DeleteRouteEntryRequest(this);
}
}
/**
*
* {@link DeleteRouteEntryRequest} extends {@link TeaModel}
*
* <p>DeleteRouteEntryRequest</p>
*/
public static class NextHopList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
private NextHopList(Builder builder) {
this.nextHopId = builder.nextHopId;
this.nextHopType = builder.nextHopType;
}
public static Builder builder() {
return new Builder();
}
public static NextHopList create() {
return builder().build();
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
public static final class Builder {
private String nextHopId;
private String nextHopType;
private Builder() {
}
private Builder(NextHopList model) {
this.nextHopId = model.nextHopId;
this.nextHopType = model.nextHopType;
}
/**
* <p>The ID of the next hop that is configured for ECMP routing. You can specify information about at most 16 next hops.</p>
*
* <strong>example:</strong>
* <p>ri-2zeo3xzyf38r43cd****</p>
*/
public Builder nextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The type of the next hop that is configured for ECMP routing. Set the value to <strong>RouterInterface</strong>. You can specify information about at most 16 next hops.</p>
*
* <strong>example:</strong>
* <p>RouterInterface</p>
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
public NextHopList build() {
return new NextHopList(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteEntryResponse} extends {@link TeaModel}
*
* <p>DeleteRouteEntryResponse</p>
*/
public class DeleteRouteEntryResponse 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 DeleteRouteEntryResponseBody body;
private DeleteRouteEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteRouteEntryResponse 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 DeleteRouteEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteRouteEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteRouteEntryResponseBody body);
@Override
DeleteRouteEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteRouteEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteRouteEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteRouteEntryResponse 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(DeleteRouteEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteRouteEntryResponse build() {
return new DeleteRouteEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteEntryResponseBody} extends {@link TeaModel}
*
* <p>DeleteRouteEntryResponseBody</p>
*/
public class DeleteRouteEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteRouteEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouteEntryResponseBody 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(DeleteRouteEntryResponseBody 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 DeleteRouteEntryResponseBody build() {
return new DeleteRouteEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteTableRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteTableRequest} extends {@link RequestModel}
*
* <p>DeleteRouteTableRequest</p>
*/
public class DeleteRouteTableRequest extends Request {
@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("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
private DeleteRouteTableRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouteTableRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder extends Request.Builder<DeleteRouteTableRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeTableId;
private Builder() {
super();
}
private Builder(DeleteRouteTableRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableId = request.routeTableId;
}
/**
* 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>The ID of the custom 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;
}
@Override
public DeleteRouteTableRequest build() {
return new DeleteRouteTableRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteTableResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteTableResponse} extends {@link TeaModel}
*
* <p>DeleteRouteTableResponse</p>
*/
public class DeleteRouteTableResponse 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 DeleteRouteTableResponseBody body;
private DeleteRouteTableResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteRouteTableResponse 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 DeleteRouteTableResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteRouteTableResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteRouteTableResponseBody body);
@Override
DeleteRouteTableResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteRouteTableResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteRouteTableResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteRouteTableResponse 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(DeleteRouteTableResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteRouteTableResponse build() {
return new DeleteRouteTableResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouteTableResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouteTableResponseBody} extends {@link TeaModel}
*
* <p>DeleteRouteTableResponseBody</p>
*/
public class DeleteRouteTableResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteRouteTableResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouteTableResponseBody 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(DeleteRouteTableResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DC668356-BCB4-42FD-9BC3-FA2B2E04B634</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteRouteTableResponseBody build() {
return new DeleteRouteTableResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouterInterfaceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouterInterfaceRequest} extends {@link RequestModel}
*
* <p>DeleteRouterInterfaceRequest</p>
*/
public class DeleteRouterInterfaceRequest 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;
private DeleteRouterInterfaceRequest(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;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouterInterfaceRequest 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;
}
public static final class Builder extends Request.Builder<DeleteRouterInterfaceRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routerInterfaceId;
private Builder() {
super();
}
private Builder(DeleteRouterInterfaceRequest 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;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* 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-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 DeleteRouterInterfaceRequest build() {
return new DeleteRouterInterfaceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouterInterfaceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouterInterfaceResponse} extends {@link TeaModel}
*
* <p>DeleteRouterInterfaceResponse</p>
*/
public class DeleteRouterInterfaceResponse 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 DeleteRouterInterfaceResponseBody body;
private DeleteRouterInterfaceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteRouterInterfaceResponse 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 DeleteRouterInterfaceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteRouterInterfaceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteRouterInterfaceResponseBody body);
@Override
DeleteRouterInterfaceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteRouterInterfaceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteRouterInterfaceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteRouterInterfaceResponse 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(DeleteRouterInterfaceResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteRouterInterfaceResponse build() {
return new DeleteRouterInterfaceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteRouterInterfaceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteRouterInterfaceResponseBody} extends {@link TeaModel}
*
* <p>DeleteRouterInterfaceResponseBody</p>
*/
public class DeleteRouterInterfaceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteRouterInterfaceResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteRouterInterfaceResponseBody 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(DeleteRouterInterfaceResponseBody 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 DeleteRouterInterfaceResponseBody build() {
return new DeleteRouterInterfaceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSnatEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSnatEntryRequest} extends {@link RequestModel}
*
* <p>DeleteSnatEntryRequest</p>
*/
public class DeleteSnatEntryRequest 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("SnatEntryId")
@com.aliyun.core.annotation.Validation(required = true)
private String snatEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SnatTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String snatTableId;
private DeleteSnatEntryRequest(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.snatEntryId = builder.snatEntryId;
this.snatTableId = builder.snatTableId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSnatEntryRequest 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 snatEntryId
*/
public String getSnatEntryId() {
return this.snatEntryId;
}
/**
* @return snatTableId
*/
public String getSnatTableId() {
return this.snatTableId;
}
public static final class Builder extends Request.Builder<DeleteSnatEntryRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String snatEntryId;
private String snatTableId;
private Builder() {
super();
}
private Builder(DeleteSnatEntryRequest 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.snatEntryId = request.snatEntryId;
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 value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system automatically uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API 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;
}
/**
* 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;
}
/**
* <p>The ID of the SNAT entry that you want to delete.</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 ID of the SNAT table to which the SNAT entry belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>stb-bp190wu8io1vgev80****</p>
*/
public Builder snatTableId(String snatTableId) {
this.putQueryParameter("SnatTableId", snatTableId);
this.snatTableId = snatTableId;
return this;
}
@Override
public DeleteSnatEntryRequest build() {
return new DeleteSnatEntryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSnatEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSnatEntryResponse} extends {@link TeaModel}
*
* <p>DeleteSnatEntryResponse</p>
*/
public class DeleteSnatEntryResponse 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 DeleteSnatEntryResponseBody body;
private DeleteSnatEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteSnatEntryResponse 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 DeleteSnatEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteSnatEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteSnatEntryResponseBody body);
@Override
DeleteSnatEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteSnatEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteSnatEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteSnatEntryResponse 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(DeleteSnatEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteSnatEntryResponse build() {
return new DeleteSnatEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSnatEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSnatEntryResponseBody} extends {@link TeaModel}
*
* <p>DeleteSnatEntryResponseBody</p>
*/
public class DeleteSnatEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteSnatEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSnatEntryResponseBody 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(DeleteSnatEntryResponseBody 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 DeleteSnatEntryResponseBody build() {
return new DeleteSnatEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSslVpnClientCertRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSslVpnClientCertRequest} extends {@link RequestModel}
*
* <p>DeleteSslVpnClientCertRequest</p>
*/
public class DeleteSslVpnClientCertRequest 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("SslVpnClientCertId")
@com.aliyun.core.annotation.Validation(required = true)
private String sslVpnClientCertId;
private DeleteSslVpnClientCertRequest(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.sslVpnClientCertId = builder.sslVpnClientCertId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSslVpnClientCertRequest 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 sslVpnClientCertId
*/
public String getSslVpnClientCertId() {
return this.sslVpnClientCertId;
}
public static final class Builder extends Request.Builder<DeleteSslVpnClientCertRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String sslVpnClientCertId;
private Builder() {
super();
}
private Builder(DeleteSslVpnClientCertRequest 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.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 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 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-bp1n8wcf134yl0osr****</p>
*/
public Builder sslVpnClientCertId(String sslVpnClientCertId) {
this.putQueryParameter("SslVpnClientCertId", sslVpnClientCertId);
this.sslVpnClientCertId = sslVpnClientCertId;
return this;
}
@Override
public DeleteSslVpnClientCertRequest build() {
return new DeleteSslVpnClientCertRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSslVpnClientCertResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSslVpnClientCertResponse} extends {@link TeaModel}
*
* <p>DeleteSslVpnClientCertResponse</p>
*/
public class DeleteSslVpnClientCertResponse 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 DeleteSslVpnClientCertResponseBody body;
private DeleteSslVpnClientCertResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteSslVpnClientCertResponse 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 DeleteSslVpnClientCertResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteSslVpnClientCertResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteSslVpnClientCertResponseBody body);
@Override
DeleteSslVpnClientCertResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteSslVpnClientCertResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteSslVpnClientCertResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteSslVpnClientCertResponse 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(DeleteSslVpnClientCertResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteSslVpnClientCertResponse build() {
return new DeleteSslVpnClientCertResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSslVpnClientCertResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSslVpnClientCertResponseBody} extends {@link TeaModel}
*
* <p>DeleteSslVpnClientCertResponseBody</p>
*/
public class DeleteSslVpnClientCertResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteSslVpnClientCertResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSslVpnClientCertResponseBody 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(DeleteSslVpnClientCertResponseBody model) {
this.requestId = model.requestId;
}
/**
* <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;
}
public DeleteSslVpnClientCertResponseBody build() {
return new DeleteSslVpnClientCertResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSslVpnServerRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSslVpnServerRequest} extends {@link RequestModel}
*
* <p>DeleteSslVpnServerRequest</p>
*/
public class DeleteSslVpnServerRequest 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("SslVpnServerId")
@com.aliyun.core.annotation.Validation(required = true)
private String sslVpnServerId;
private DeleteSslVpnServerRequest(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.sslVpnServerId = builder.sslVpnServerId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSslVpnServerRequest 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 sslVpnServerId
*/
public String getSslVpnServerId() {
return this.sslVpnServerId;
}
public static final class Builder extends Request.Builder<DeleteSslVpnServerRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String sslVpnServerId;
private Builder() {
super();
}
private Builder(DeleteSslVpnServerRequest 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.sslVpnServerId = request.sslVpnServerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the 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 region ID of the SSL server.</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 DeleteSslVpnServerRequest build() {
return new DeleteSslVpnServerRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSslVpnServerResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSslVpnServerResponse} extends {@link TeaModel}
*
* <p>DeleteSslVpnServerResponse</p>
*/
public class DeleteSslVpnServerResponse 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 DeleteSslVpnServerResponseBody body;
private DeleteSslVpnServerResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteSslVpnServerResponse 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 DeleteSslVpnServerResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteSslVpnServerResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteSslVpnServerResponseBody body);
@Override
DeleteSslVpnServerResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteSslVpnServerResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteSslVpnServerResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteSslVpnServerResponse 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(DeleteSslVpnServerResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteSslVpnServerResponse build() {
return new DeleteSslVpnServerResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteSslVpnServerResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteSslVpnServerResponseBody} extends {@link TeaModel}
*
* <p>DeleteSslVpnServerResponseBody</p>
*/
public class DeleteSslVpnServerResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteSslVpnServerResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteSslVpnServerResponseBody 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(DeleteSslVpnServerResponseBody model) {
this.requestId = model.requestId;
}
/**
* <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;
}
public DeleteSslVpnServerResponseBody build() {
return new DeleteSslVpnServerResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorFilterRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorFilterRequest} extends {@link RequestModel}
*
* <p>DeleteTrafficMirrorFilterRequest</p>
*/
public class DeleteTrafficMirrorFilterRequest 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("TrafficMirrorFilterId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorFilterId;
private DeleteTrafficMirrorFilterRequest(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.trafficMirrorFilterId = builder.trafficMirrorFilterId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTrafficMirrorFilterRequest 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 trafficMirrorFilterId
*/
public String getTrafficMirrorFilterId() {
return this.trafficMirrorFilterId;
}
public static final class Builder extends Request.Builder<DeleteTrafficMirrorFilterRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String trafficMirrorFilterId;
private Builder() {
super();
}
private Builder(DeleteTrafficMirrorFilterRequest 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.trafficMirrorFilterId = request.trafficMirrorFilterId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to check the request without performing the operation. Valid values:</p>
* <ul>
* <li><strong>true</strong>: checks the request without performing the operation. The system checks the required parameters, request format, and limits. If the request fails the check, an error message is returned. If the request passes the check, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): sends the request. After the request passes the check, the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region to which the mirrored traffic belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the filter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tmf-j6cmls82xnc86vtpe****</p>
*/
public Builder trafficMirrorFilterId(String trafficMirrorFilterId) {
this.putQueryParameter("TrafficMirrorFilterId", trafficMirrorFilterId);
this.trafficMirrorFilterId = trafficMirrorFilterId;
return this;
}
@Override
public DeleteTrafficMirrorFilterRequest build() {
return new DeleteTrafficMirrorFilterRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorFilterResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorFilterResponse} extends {@link TeaModel}
*
* <p>DeleteTrafficMirrorFilterResponse</p>
*/
public class DeleteTrafficMirrorFilterResponse 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 DeleteTrafficMirrorFilterResponseBody body;
private DeleteTrafficMirrorFilterResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteTrafficMirrorFilterResponse 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 DeleteTrafficMirrorFilterResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteTrafficMirrorFilterResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteTrafficMirrorFilterResponseBody body);
@Override
DeleteTrafficMirrorFilterResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteTrafficMirrorFilterResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteTrafficMirrorFilterResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteTrafficMirrorFilterResponse 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(DeleteTrafficMirrorFilterResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteTrafficMirrorFilterResponse build() {
return new DeleteTrafficMirrorFilterResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorFilterResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorFilterResponseBody} extends {@link TeaModel}
*
* <p>DeleteTrafficMirrorFilterResponseBody</p>
*/
public class DeleteTrafficMirrorFilterResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteTrafficMirrorFilterResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTrafficMirrorFilterResponseBody 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(DeleteTrafficMirrorFilterResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>07F272E2-6AD5-433A-8207-A607C76F1676</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteTrafficMirrorFilterResponseBody build() {
return new DeleteTrafficMirrorFilterResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorFilterRulesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorFilterRulesRequest} extends {@link RequestModel}
*
* <p>DeleteTrafficMirrorFilterRulesRequest</p>
*/
public class DeleteTrafficMirrorFilterRulesRequest 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("TrafficMirrorFilterId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorFilterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterRuleIds")
@com.aliyun.core.annotation.Validation(required = true, maxLength = 128)
private java.util.List<String> trafficMirrorFilterRuleIds;
private DeleteTrafficMirrorFilterRulesRequest(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.trafficMirrorFilterId = builder.trafficMirrorFilterId;
this.trafficMirrorFilterRuleIds = builder.trafficMirrorFilterRuleIds;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTrafficMirrorFilterRulesRequest 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 trafficMirrorFilterId
*/
public String getTrafficMirrorFilterId() {
return this.trafficMirrorFilterId;
}
/**
* @return trafficMirrorFilterRuleIds
*/
public java.util.List<String> getTrafficMirrorFilterRuleIds() {
return this.trafficMirrorFilterRuleIds;
}
public static final class Builder extends Request.Builder<DeleteTrafficMirrorFilterRulesRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String trafficMirrorFilterId;
private java.util.List<String> trafficMirrorFilterRuleIds;
private Builder() {
super();
}
private Builder(DeleteTrafficMirrorFilterRulesRequest 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.trafficMirrorFilterId = request.trafficMirrorFilterId;
this.trafficMirrorFilterRuleIds = request.trafficMirrorFilterRuleIds;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to check the request without performing the operation. Valid values:</p>
* <ul>
* <li><strong>true</strong>: checks the API request without performing the operation. The system checks the required parameters, request format, and limits. If the request fails the check, an error message is returned. If the request passes the check, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): sends the request. After the request passes the check, the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region to which the mirrored traffic belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the filter.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tmf-j6cmls82xnc86vtpe****</p>
*/
public Builder trafficMirrorFilterId(String trafficMirrorFilterId) {
this.putQueryParameter("TrafficMirrorFilterId", trafficMirrorFilterId);
this.trafficMirrorFilterId = trafficMirrorFilterId;
return this;
}
/**
* <p>The ID of the inbound or outbound rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tmr-j6cbmubn323k7jlq3****</p>
*/
public Builder trafficMirrorFilterRuleIds(java.util.List<String> trafficMirrorFilterRuleIds) {
this.putQueryParameter("TrafficMirrorFilterRuleIds", trafficMirrorFilterRuleIds);
this.trafficMirrorFilterRuleIds = trafficMirrorFilterRuleIds;
return this;
}
@Override
public DeleteTrafficMirrorFilterRulesRequest build() {
return new DeleteTrafficMirrorFilterRulesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorFilterRulesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorFilterRulesResponse} extends {@link TeaModel}
*
* <p>DeleteTrafficMirrorFilterRulesResponse</p>
*/
public class DeleteTrafficMirrorFilterRulesResponse 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 DeleteTrafficMirrorFilterRulesResponseBody body;
private DeleteTrafficMirrorFilterRulesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteTrafficMirrorFilterRulesResponse 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 DeleteTrafficMirrorFilterRulesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteTrafficMirrorFilterRulesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteTrafficMirrorFilterRulesResponseBody body);
@Override
DeleteTrafficMirrorFilterRulesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteTrafficMirrorFilterRulesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteTrafficMirrorFilterRulesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteTrafficMirrorFilterRulesResponse 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(DeleteTrafficMirrorFilterRulesResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteTrafficMirrorFilterRulesResponse build() {
return new DeleteTrafficMirrorFilterRulesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorFilterRulesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorFilterRulesResponseBody} extends {@link TeaModel}
*
* <p>DeleteTrafficMirrorFilterRulesResponseBody</p>
*/
public class DeleteTrafficMirrorFilterRulesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteTrafficMirrorFilterRulesResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTrafficMirrorFilterRulesResponseBody 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(DeleteTrafficMirrorFilterRulesResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>BD8A3F71-00C5-4655-8F55-11F3976C3274</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteTrafficMirrorFilterRulesResponseBody build() {
return new DeleteTrafficMirrorFilterRulesResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorSessionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorSessionRequest} extends {@link RequestModel}
*
* <p>DeleteTrafficMirrorSessionRequest</p>
*/
public class DeleteTrafficMirrorSessionRequest 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("TrafficMirrorSessionId")
@com.aliyun.core.annotation.Validation(required = true)
private String trafficMirrorSessionId;
private DeleteTrafficMirrorSessionRequest(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.trafficMirrorSessionId = builder.trafficMirrorSessionId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTrafficMirrorSessionRequest 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 trafficMirrorSessionId
*/
public String getTrafficMirrorSessionId() {
return this.trafficMirrorSessionId;
}
public static final class Builder extends Request.Builder<DeleteTrafficMirrorSessionRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String trafficMirrorSessionId;
private Builder() {
super();
}
private Builder(DeleteTrafficMirrorSessionRequest 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.trafficMirrorSessionId = request.trafficMirrorSessionId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among all requests. ClientToken can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> for each API request may be different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to to perform a dry run. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the required parameters, request format, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* 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 traffic mirror session belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hongkong</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* 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 traffic mirror session.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>tms-j6cla50buc44ap8tu****</p>
*/
public Builder trafficMirrorSessionId(String trafficMirrorSessionId) {
this.putQueryParameter("TrafficMirrorSessionId", trafficMirrorSessionId);
this.trafficMirrorSessionId = trafficMirrorSessionId;
return this;
}
@Override
public DeleteTrafficMirrorSessionRequest build() {
return new DeleteTrafficMirrorSessionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorSessionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorSessionResponse} extends {@link TeaModel}
*
* <p>DeleteTrafficMirrorSessionResponse</p>
*/
public class DeleteTrafficMirrorSessionResponse 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 DeleteTrafficMirrorSessionResponseBody body;
private DeleteTrafficMirrorSessionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteTrafficMirrorSessionResponse 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 DeleteTrafficMirrorSessionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteTrafficMirrorSessionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteTrafficMirrorSessionResponseBody body);
@Override
DeleteTrafficMirrorSessionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteTrafficMirrorSessionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteTrafficMirrorSessionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteTrafficMirrorSessionResponse 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(DeleteTrafficMirrorSessionResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteTrafficMirrorSessionResponse build() {
return new DeleteTrafficMirrorSessionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteTrafficMirrorSessionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteTrafficMirrorSessionResponseBody} extends {@link TeaModel}
*
* <p>DeleteTrafficMirrorSessionResponseBody</p>
*/
public class DeleteTrafficMirrorSessionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteTrafficMirrorSessionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteTrafficMirrorSessionResponseBody 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(DeleteTrafficMirrorSessionResponseBody 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 DeleteTrafficMirrorSessionResponseBody build() {
return new DeleteTrafficMirrorSessionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVSwitchCidrReservationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVSwitchCidrReservationRequest} extends {@link RequestModel}
*
* <p>DeleteVSwitchCidrReservationRequest</p>
*/
public class DeleteVSwitchCidrReservationRequest 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("VSwitchCidrReservationId")
@com.aliyun.core.annotation.Validation(required = true)
private String vSwitchCidrReservationId;
private DeleteVSwitchCidrReservationRequest(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.vSwitchCidrReservationId = builder.vSwitchCidrReservationId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVSwitchCidrReservationRequest 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 vSwitchCidrReservationId
*/
public String getVSwitchCidrReservationId() {
return this.vSwitchCidrReservationId;
}
public static final class Builder extends Request.Builder<DeleteVSwitchCidrReservationRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vSwitchCidrReservationId;
private Builder() {
super();
}
private Builder(DeleteVSwitchCidrReservationRequest 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.vSwitchCidrReservationId = request.vSwitchCidrReservationId;
}
/**
* <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. Valid values:</p>
* <p><strong>true</strong>: performs a dry run. The system checks the required parameters, request format, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</p>
* <p><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* 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 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;
}
@Override
public DeleteVSwitchCidrReservationRequest build() {
return new DeleteVSwitchCidrReservationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVSwitchCidrReservationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVSwitchCidrReservationResponse} extends {@link TeaModel}
*
* <p>DeleteVSwitchCidrReservationResponse</p>
*/
public class DeleteVSwitchCidrReservationResponse 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 DeleteVSwitchCidrReservationResponseBody body;
private DeleteVSwitchCidrReservationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVSwitchCidrReservationResponse 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 DeleteVSwitchCidrReservationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVSwitchCidrReservationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVSwitchCidrReservationResponseBody body);
@Override
DeleteVSwitchCidrReservationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVSwitchCidrReservationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVSwitchCidrReservationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVSwitchCidrReservationResponse 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(DeleteVSwitchCidrReservationResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVSwitchCidrReservationResponse build() {
return new DeleteVSwitchCidrReservationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVSwitchCidrReservationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVSwitchCidrReservationResponseBody} extends {@link TeaModel}
*
* <p>DeleteVSwitchCidrReservationResponseBody</p>
*/
public class DeleteVSwitchCidrReservationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVSwitchCidrReservationResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVSwitchCidrReservationResponseBody 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(DeleteVSwitchCidrReservationResponseBody 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 DeleteVSwitchCidrReservationResponseBody build() {
return new DeleteVSwitchCidrReservationResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVSwitchRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVSwitchRequest} extends {@link RequestModel}
*
* <p>DeleteVSwitchRequest</p>
*/
public class DeleteVSwitchRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
@com.aliyun.core.annotation.Validation(required = true)
private String vSwitchId;
private DeleteVSwitchRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVSwitchRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder extends Request.Builder<DeleteVSwitchRequest, Builder> {
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vSwitchId;
private Builder() {
super();
}
private Builder(DeleteVSwitchRequest request) {
super(request);
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vSwitchId = request.vSwitchId;
}
/**
* 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 region ID of the vSwitch.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the vSwitch that you want to delete.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vsw-asdfjlna****</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
@Override
public DeleteVSwitchRequest build() {
return new DeleteVSwitchRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVSwitchResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVSwitchResponse} extends {@link TeaModel}
*
* <p>DeleteVSwitchResponse</p>
*/
public class DeleteVSwitchResponse 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 DeleteVSwitchResponseBody body;
private DeleteVSwitchResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVSwitchResponse 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 DeleteVSwitchResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVSwitchResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVSwitchResponseBody body);
@Override
DeleteVSwitchResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVSwitchResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVSwitchResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVSwitchResponse 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(DeleteVSwitchResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVSwitchResponse build() {
return new DeleteVSwitchResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVSwitchResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVSwitchResponseBody} extends {@link TeaModel}
*
* <p>DeleteVSwitchResponseBody</p>
*/
public class DeleteVSwitchResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVSwitchResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVSwitchResponseBody 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(DeleteVSwitchResponseBody 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 DeleteVSwitchResponseBody build() {
return new DeleteVSwitchResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVbrHaRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVbrHaRequest} extends {@link RequestModel}
*
* <p>DeleteVbrHaRequest</p>
*/
public class DeleteVbrHaRequest 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("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@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 DeleteVbrHaRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.instanceId = builder.instanceId;
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 DeleteVbrHaRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @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<DeleteVbrHaRequest, Builder> {
private String clientToken;
private String instanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DeleteVbrHaRequest request) {
super(request);
this.clientToken = request.clientToken;
this.instanceId = request.instanceId;
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>CBCE910E-D396-4944-8****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the VBR failover group.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbrha-sa1******</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
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 VBR is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DeleteVbrHaRequest build() {
return new DeleteVbrHaRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVbrHaResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVbrHaResponse} extends {@link TeaModel}
*
* <p>DeleteVbrHaResponse</p>
*/
public class DeleteVbrHaResponse 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 DeleteVbrHaResponseBody body;
private DeleteVbrHaResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVbrHaResponse 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 DeleteVbrHaResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVbrHaResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVbrHaResponseBody body);
@Override
DeleteVbrHaResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVbrHaResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVbrHaResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVbrHaResponse 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(DeleteVbrHaResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVbrHaResponse build() {
return new DeleteVbrHaResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVbrHaResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVbrHaResponseBody} extends {@link TeaModel}
*
* <p>DeleteVbrHaResponseBody</p>
*/
public class DeleteVbrHaResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVbrHaResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVbrHaResponseBody 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(DeleteVbrHaResponseBody 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 DeleteVbrHaResponseBody build() {
return new DeleteVbrHaResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVcoRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVcoRouteEntryRequest} extends {@link RequestModel}
*
* <p>DeleteVcoRouteEntryRequest</p>
*/
public class DeleteVcoRouteEntryRequest 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("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 DeleteVcoRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
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 DeleteVcoRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @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<DeleteVcoRouteEntryRequest, Builder> {
private String clientToken;
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(DeleteVcoRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
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 next hop of the destination-based route that you want to delete.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-p0w5112fgnl2ihlmf****</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 delete.</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 attachment.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-p0w5112fgnl2ihlmf****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.putQueryParameter("VpnConnectionId", vpnConnectionId);
this.vpnConnectionId = vpnConnectionId;
return this;
}
/**
* <p>The weight of the destination-based route that you want to delete. 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 DeleteVcoRouteEntryRequest build() {
return new DeleteVcoRouteEntryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVcoRouteEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVcoRouteEntryResponse} extends {@link TeaModel}
*
* <p>DeleteVcoRouteEntryResponse</p>
*/
public class DeleteVcoRouteEntryResponse 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 DeleteVcoRouteEntryResponseBody body;
private DeleteVcoRouteEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVcoRouteEntryResponse 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 DeleteVcoRouteEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVcoRouteEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVcoRouteEntryResponseBody body);
@Override
DeleteVcoRouteEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVcoRouteEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVcoRouteEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVcoRouteEntryResponse 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(DeleteVcoRouteEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVcoRouteEntryResponse build() {
return new DeleteVcoRouteEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVcoRouteEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVcoRouteEntryResponseBody} extends {@link TeaModel}
*
* <p>DeleteVcoRouteEntryResponseBody</p>
*/
public class DeleteVcoRouteEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVcoRouteEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVcoRouteEntryResponseBody 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(DeleteVcoRouteEntryResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9208DDD8-0930-3CE6-AF7F-732B4E67B3DD</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVcoRouteEntryResponseBody build() {
return new DeleteVcoRouteEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVirtualBorderRouterRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVirtualBorderRouterRequest} extends {@link RequestModel}
*
* <p>DeleteVirtualBorderRouterRequest</p>
*/
public class DeleteVirtualBorderRouterRequest 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("VbrId")
@com.aliyun.core.annotation.Validation(required = true)
private String vbrId;
private DeleteVirtualBorderRouterRequest(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.vbrId = builder.vbrId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVirtualBorderRouterRequest 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 vbrId
*/
public String getVbrId() {
return this.vbrId;
}
public static final class Builder extends Request.Builder<DeleteVirtualBorderRouterRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vbrId;
private Builder() {
super();
}
private Builder(DeleteVirtualBorderRouterRequest 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.vbrId = request.vbrId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-0016e04115b</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* 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 VBR. 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 VBR.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbr-bp12mw1f8k3jgygk9****</p>
*/
public Builder vbrId(String vbrId) {
this.putQueryParameter("VbrId", vbrId);
this.vbrId = vbrId;
return this;
}
@Override
public DeleteVirtualBorderRouterRequest build() {
return new DeleteVirtualBorderRouterRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVirtualBorderRouterResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVirtualBorderRouterResponse} extends {@link TeaModel}
*
* <p>DeleteVirtualBorderRouterResponse</p>
*/
public class DeleteVirtualBorderRouterResponse 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 DeleteVirtualBorderRouterResponseBody body;
private DeleteVirtualBorderRouterResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVirtualBorderRouterResponse 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 DeleteVirtualBorderRouterResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVirtualBorderRouterResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVirtualBorderRouterResponseBody body);
@Override
DeleteVirtualBorderRouterResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVirtualBorderRouterResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVirtualBorderRouterResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVirtualBorderRouterResponse 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(DeleteVirtualBorderRouterResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVirtualBorderRouterResponse build() {
return new DeleteVirtualBorderRouterResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVirtualBorderRouterResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVirtualBorderRouterResponseBody} extends {@link TeaModel}
*
* <p>DeleteVirtualBorderRouterResponseBody</p>
*/
public class DeleteVirtualBorderRouterResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVirtualBorderRouterResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVirtualBorderRouterResponseBody 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(DeleteVirtualBorderRouterResponseBody 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 DeleteVirtualBorderRouterResponseBody build() {
return new DeleteVirtualBorderRouterResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcGatewayEndpointRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcGatewayEndpointRequest} extends {@link RequestModel}
*
* <p>DeleteVpcGatewayEndpointRequest</p>
*/
public class DeleteVpcGatewayEndpointRequest 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("EndpointId")
@com.aliyun.core.annotation.Validation(required = true)
private String endpointId;
@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 DeleteVpcGatewayEndpointRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.endpointId = builder.endpointId;
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 DeleteVpcGatewayEndpointRequest 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 endpointId
*/
public String getEndpointId() {
return this.endpointId;
}
/**
* @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<DeleteVpcGatewayEndpointRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String endpointId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DeleteVpcGatewayEndpointRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.endpointId = request.endpointId;
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. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> 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 request ID as the client token. The request ID may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>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 gateway endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpce-bp1w1dmdqjpwul0v3****</p>
*/
public Builder endpointId(String endpointId) {
this.putQueryParameter("EndpointId", endpointId);
this.endpointId = endpointId;
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 gateway endpoint.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* 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 DeleteVpcGatewayEndpointRequest build() {
return new DeleteVpcGatewayEndpointRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcGatewayEndpointResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcGatewayEndpointResponse} extends {@link TeaModel}
*
* <p>DeleteVpcGatewayEndpointResponse</p>
*/
public class DeleteVpcGatewayEndpointResponse 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 DeleteVpcGatewayEndpointResponseBody body;
private DeleteVpcGatewayEndpointResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpcGatewayEndpointResponse 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 DeleteVpcGatewayEndpointResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpcGatewayEndpointResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpcGatewayEndpointResponseBody body);
@Override
DeleteVpcGatewayEndpointResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpcGatewayEndpointResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpcGatewayEndpointResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpcGatewayEndpointResponse 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(DeleteVpcGatewayEndpointResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpcGatewayEndpointResponse build() {
return new DeleteVpcGatewayEndpointResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcGatewayEndpointResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcGatewayEndpointResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpcGatewayEndpointResponseBody</p>
*/
public class DeleteVpcGatewayEndpointResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpcGatewayEndpointResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpcGatewayEndpointResponseBody 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(DeleteVpcGatewayEndpointResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A1122D0F-7B3B-5445-BB19-17F27F97FE1C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVpcGatewayEndpointResponseBody build() {
return new DeleteVpcGatewayEndpointResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcPrefixListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcPrefixListRequest} extends {@link RequestModel}
*
* <p>DeleteVpcPrefixListRequest</p>
*/
public class DeleteVpcPrefixListRequest 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("PrefixListId")
@com.aliyun.core.annotation.Validation(required = true)
private String prefixListId;
@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 DeleteVpcPrefixListRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.prefixListId = builder.prefixListId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpcPrefixListRequest 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 prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @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<DeleteVpcPrefixListRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String prefixListId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DeleteVpcPrefixListRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.prefixListId = request.prefixListId;
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 different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to check the request without performing the operation. Valid values:</p>
* <ul>
* <li><strong>true</strong>: checks the request without performing the operation. The system checks the required parameters, request syntax, and limits. If the request fails to pass the check, an error message is returned. If the request passes the check, 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;
}
/**
* 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 prefix list that you want to delete.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pl-0b78hw45f****</p>
*/
public Builder prefixListId(String prefixListId) {
this.putQueryParameter("PrefixListId", prefixListId);
this.prefixListId = prefixListId;
return this;
}
/**
* <p>The region ID of the prefix list.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* 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 DeleteVpcPrefixListRequest build() {
return new DeleteVpcPrefixListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcPrefixListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcPrefixListResponse} extends {@link TeaModel}
*
* <p>DeleteVpcPrefixListResponse</p>
*/
public class DeleteVpcPrefixListResponse 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 DeleteVpcPrefixListResponseBody body;
private DeleteVpcPrefixListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpcPrefixListResponse 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 DeleteVpcPrefixListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpcPrefixListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpcPrefixListResponseBody body);
@Override
DeleteVpcPrefixListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpcPrefixListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpcPrefixListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpcPrefixListResponse 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(DeleteVpcPrefixListResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpcPrefixListResponse build() {
return new DeleteVpcPrefixListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcPrefixListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcPrefixListResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpcPrefixListResponseBody</p>
*/
public class DeleteVpcPrefixListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpcPrefixListResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpcPrefixListResponseBody 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(DeleteVpcPrefixListResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>64B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVpcPrefixListResponseBody build() {
return new DeleteVpcPrefixListResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcRequest} extends {@link RequestModel}
*
* <p>DeleteVpcRequest</p>
*/
public class DeleteVpcRequest 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("ForceDelete")
private Boolean forceDelete;
@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;
private DeleteVpcRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.forceDelete = builder.forceDelete;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpcRequest 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 forceDelete
*/
public Boolean getForceDelete() {
return this.forceDelete;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DeleteVpcRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private Boolean forceDelete;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpcId;
private Builder() {
super();
}
private Builder(DeleteVpcRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.forceDelete = request.forceDelete;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>RequestId</strong> as the <strong>ClientToken</strong>. The <strong>RequestId</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. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the required parameters, request syntax, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>Specifies whether to forcefully delete the VPC. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong> (default): no</li>
* </ul>
* <p>You can forcefully delete a VPC in the following scenarios:</p>
* <ul>
* <li>Only an IPv4 gateway and routes that point to the IPv4 gateway exist in the VPC.</li>
* <li>Only an IPv6 gateway and routes that point to the IPv6 gateway exist in the VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder forceDelete(Boolean forceDelete) {
this.putQueryParameter("ForceDelete", forceDelete);
this.forceDelete = forceDelete;
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 VPC 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>
*
* <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 delete.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1m7v25emi1h5mtc****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DeleteVpcRequest build() {
return new DeleteVpcRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcResponse} extends {@link TeaModel}
*
* <p>DeleteVpcResponse</p>
*/
public class DeleteVpcResponse 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 DeleteVpcResponseBody body;
private DeleteVpcResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpcResponse 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 DeleteVpcResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpcResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpcResponseBody body);
@Override
DeleteVpcResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpcResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpcResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpcResponse 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(DeleteVpcResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpcResponse build() {
return new DeleteVpcResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpcResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpcResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpcResponseBody</p>
*/
public class DeleteVpcResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpcResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpcResponseBody 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(DeleteVpcResponseBody 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 DeleteVpcResponseBody build() {
return new DeleteVpcResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnAttachmentRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnAttachmentRequest} extends {@link RequestModel}
*
* <p>DeleteVpnAttachmentRequest</p>
*/
public class DeleteVpnAttachmentRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnConnectionId;
private DeleteVpnAttachmentRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpnConnectionId = builder.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnAttachmentRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
public static final class Builder extends Request.Builder<DeleteVpnAttachmentRequest, Builder> {
private String clientToken;
private String ownerAccount;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpnConnectionId;
private Builder() {
super();
}
private Builder(DeleteVpnAttachmentRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
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 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;
}
/**
* 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 ID of the IPsec-VPN connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-p0w7gtr14m09r9lkr****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.putQueryParameter("VpnConnectionId", vpnConnectionId);
this.vpnConnectionId = vpnConnectionId;
return this;
}
@Override
public DeleteVpnAttachmentRequest build() {
return new DeleteVpnAttachmentRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnAttachmentResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnAttachmentResponse} extends {@link TeaModel}
*
* <p>DeleteVpnAttachmentResponse</p>
*/
public class DeleteVpnAttachmentResponse 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 DeleteVpnAttachmentResponseBody body;
private DeleteVpnAttachmentResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpnAttachmentResponse 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 DeleteVpnAttachmentResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpnAttachmentResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpnAttachmentResponseBody body);
@Override
DeleteVpnAttachmentResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpnAttachmentResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpnAttachmentResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpnAttachmentResponse 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(DeleteVpnAttachmentResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpnAttachmentResponse build() {
return new DeleteVpnAttachmentResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnAttachmentResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnAttachmentResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpnAttachmentResponseBody</p>
*/
public class DeleteVpnAttachmentResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private DeleteVpnAttachmentResponseBody(Builder builder) {
this.code = builder.code;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnAttachmentResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(DeleteVpnAttachmentResponseBody model) {
this.code = model.code;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The status code returned by the current operation. <strong>200</strong> indicates that the operation is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The information returned by the current operation.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>29440C49-398F-3D06-BA8B-E3CD13F3246D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the current operation is successful.</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public DeleteVpnAttachmentResponseBody build() {
return new DeleteVpnAttachmentResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnConnectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnConnectionRequest} extends {@link RequestModel}
*
* <p>DeleteVpnConnectionRequest</p>
*/
public class DeleteVpnConnectionRequest 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("VpnConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnConnectionId;
private DeleteVpnConnectionRequest(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.vpnConnectionId = builder.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnConnectionRequest 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 vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
public static final class Builder extends Request.Builder<DeleteVpnConnectionRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpnConnectionId;
private Builder() {
super();
}
private Builder(DeleteVpnConnectionRequest 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.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 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 IPsec-VPN connection 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 IPsec-VPN connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-bp1bbi27hojx80nck****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.putQueryParameter("VpnConnectionId", vpnConnectionId);
this.vpnConnectionId = vpnConnectionId;
return this;
}
@Override
public DeleteVpnConnectionRequest build() {
return new DeleteVpnConnectionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnConnectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnConnectionResponse} extends {@link TeaModel}
*
* <p>DeleteVpnConnectionResponse</p>
*/
public class DeleteVpnConnectionResponse 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 DeleteVpnConnectionResponseBody body;
private DeleteVpnConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpnConnectionResponse 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 DeleteVpnConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpnConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpnConnectionResponseBody body);
@Override
DeleteVpnConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpnConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpnConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpnConnectionResponse 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(DeleteVpnConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpnConnectionResponse build() {
return new DeleteVpnConnectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnConnectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnConnectionResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpnConnectionResponseBody</p>
*/
public class DeleteVpnConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpnConnectionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnConnectionResponseBody 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(DeleteVpnConnectionResponseBody model) {
this.requestId = model.requestId;
}
/**
* <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;
}
public DeleteVpnConnectionResponseBody build() {
return new DeleteVpnConnectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnGatewayRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnGatewayRequest} extends {@link RequestModel}
*
* <p>DeleteVpnGatewayRequest</p>
*/
public class DeleteVpnGatewayRequest 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("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
private DeleteVpnGatewayRequest(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.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnGatewayRequest 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 vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<DeleteVpnGatewayRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(DeleteVpnGatewayRequest 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.vpnGatewayId = request.vpnGatewayId;
}
/**
* <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;
}
/**
* 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 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 VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1q8bgx4xnkm2ogj****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public DeleteVpnGatewayRequest build() {
return new DeleteVpnGatewayRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnGatewayResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnGatewayResponse} extends {@link TeaModel}
*
* <p>DeleteVpnGatewayResponse</p>
*/
public class DeleteVpnGatewayResponse 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 DeleteVpnGatewayResponseBody body;
private DeleteVpnGatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpnGatewayResponse 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 DeleteVpnGatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpnGatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpnGatewayResponseBody body);
@Override
DeleteVpnGatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpnGatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpnGatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpnGatewayResponse 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(DeleteVpnGatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpnGatewayResponse build() {
return new DeleteVpnGatewayResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnGatewayResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnGatewayResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpnGatewayResponseBody</p>
*/
public class DeleteVpnGatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpnGatewayResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnGatewayResponseBody 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(DeleteVpnGatewayResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <blockquote>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
* </blockquote>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVpnGatewayResponseBody build() {
return new DeleteVpnGatewayResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnPbrRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnPbrRouteEntryRequest} extends {@link RequestModel}
*
* <p>DeleteVpnPbrRouteEntryRequest</p>
*/
public class DeleteVpnPbrRouteEntryRequest 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("NextHop")
@com.aliyun.core.annotation.Validation(required = true)
private String nextHop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OverlayMode")
private String overlayMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Priority")
private Integer priority;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteDest")
@com.aliyun.core.annotation.Validation(required = true)
private String routeDest;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteSource")
@com.aliyun.core.annotation.Validation(required = true)
private String routeSource;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Weight")
@com.aliyun.core.annotation.Validation(required = true)
private Integer weight;
private DeleteVpnPbrRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.nextHop = builder.nextHop;
this.overlayMode = builder.overlayMode;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.priority = builder.priority;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeDest = builder.routeDest;
this.routeSource = builder.routeSource;
this.vpnGatewayId = builder.vpnGatewayId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnPbrRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return overlayMode
*/
public String getOverlayMode() {
return this.overlayMode;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeDest
*/
public String getRouteDest() {
return this.routeDest;
}
/**
* @return routeSource
*/
public String getRouteSource() {
return this.routeSource;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder extends Request.Builder<DeleteVpnPbrRouteEntryRequest, Builder> {
private String clientToken;
private String nextHop;
private String overlayMode;
private String ownerAccount;
private Long ownerId;
private Integer priority;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeDest;
private String routeSource;
private String vpnGatewayId;
private Integer weight;
private Builder() {
super();
}
private Builder(DeleteVpnPbrRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.nextHop = request.nextHop;
this.overlayMode = request.overlayMode;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.priority = request.priority;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeDest = request.routeDest;
this.routeSource = request.routeSource;
this.vpnGatewayId = request.vpnGatewayId;
this.weight = request.weight;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate 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 next hop of the policy-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-bp15oes1py4i66rmd****</p>
*/
public Builder nextHop(String nextHop) {
this.putQueryParameter("NextHop", nextHop);
this.nextHop = nextHop;
return this;
}
/**
* <p>The tunneling protocol. Set the value to <strong>Ipsec</strong>.</p>
*
* <strong>example:</strong>
* <p>Ipsec</p>
*/
public Builder overlayMode(String overlayMode) {
this.putQueryParameter("OverlayMode", overlayMode);
this.overlayMode = overlayMode;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The priority of the policy-based route.</p>
* <ul>
* <li><p>If the route was not assigned a priority, this parameter is optional.</p>
* </li>
* <li><p>If the route was assigned a priority, this parameter is optional.</p>
* <pre><code>If you specify this parameter, set the value to the priority configured for the policy-based route. Otherwise, the operation cannot be performed.
* </code></pre>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder priority(Integer priority) {
this.putQueryParameter("Priority", priority);
this.priority = priority;
return this;
}
/**
* <p>The ID of the region where the VPN gateway is created. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The destination CIDR block of the policy-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder routeDest(String routeDest) {
this.putQueryParameter("RouteDest", routeDest);
this.routeDest = routeDest;
return this;
}
/**
* <p>The source CIDR block of the policy-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>192.168.1.0/24</p>
*/
public Builder routeSource(String routeSource) {
this.putQueryParameter("RouteSource", routeSource);
this.routeSource = routeSource;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1a3kqjiiq9legfx****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
/**
* <p>The weight of the policy-based route. Valid values:</p>
* <p>You can call <a href="https://help.aliyun.com/document_detail/2526959.html">DescribeVpnPbrRouteEntries</a> to query weights of policy-based routes.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder weight(Integer weight) {
this.putQueryParameter("Weight", weight);
this.weight = weight;
return this;
}
@Override
public DeleteVpnPbrRouteEntryRequest build() {
return new DeleteVpnPbrRouteEntryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnPbrRouteEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnPbrRouteEntryResponse} extends {@link TeaModel}
*
* <p>DeleteVpnPbrRouteEntryResponse</p>
*/
public class DeleteVpnPbrRouteEntryResponse 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 DeleteVpnPbrRouteEntryResponseBody body;
private DeleteVpnPbrRouteEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpnPbrRouteEntryResponse 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 DeleteVpnPbrRouteEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpnPbrRouteEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpnPbrRouteEntryResponseBody body);
@Override
DeleteVpnPbrRouteEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpnPbrRouteEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpnPbrRouteEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpnPbrRouteEntryResponse 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(DeleteVpnPbrRouteEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpnPbrRouteEntryResponse build() {
return new DeleteVpnPbrRouteEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnPbrRouteEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnPbrRouteEntryResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpnPbrRouteEntryResponseBody</p>
*/
public class DeleteVpnPbrRouteEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpnPbrRouteEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnPbrRouteEntryResponseBody 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(DeleteVpnPbrRouteEntryResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVpnPbrRouteEntryResponseBody build() {
return new DeleteVpnPbrRouteEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnRouteEntryRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnRouteEntryRequest} extends {@link RequestModel}
*
* <p>DeleteVpnRouteEntryRequest</p>
*/
public class DeleteVpnRouteEntryRequest 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("NextHop")
@com.aliyun.core.annotation.Validation(required = true)
private String nextHop;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OverlayMode")
private String overlayMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("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("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Weight")
@com.aliyun.core.annotation.Validation(required = true)
private Integer weight;
private DeleteVpnRouteEntryRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.nextHop = builder.nextHop;
this.overlayMode = builder.overlayMode;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeDest = builder.routeDest;
this.vpnGatewayId = builder.vpnGatewayId;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnRouteEntryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return nextHop
*/
public String getNextHop() {
return this.nextHop;
}
/**
* @return overlayMode
*/
public String getOverlayMode() {
return this.overlayMode;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return 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 vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
/**
* @return weight
*/
public Integer getWeight() {
return this.weight;
}
public static final class Builder extends Request.Builder<DeleteVpnRouteEntryRequest, Builder> {
private String clientToken;
private String nextHop;
private String overlayMode;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeDest;
private String vpnGatewayId;
private Integer weight;
private Builder() {
super();
}
private Builder(DeleteVpnRouteEntryRequest request) {
super(request);
this.clientToken = request.clientToken;
this.nextHop = request.nextHop;
this.overlayMode = request.overlayMode;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeDest = request.routeDest;
this.vpnGatewayId = request.vpnGatewayId;
this.weight = request.weight;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate 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 next hop of the destination-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-bp15oes1py4i66rmd****</p>
*/
public Builder nextHop(String nextHop) {
this.putQueryParameter("NextHop", nextHop);
this.nextHop = nextHop;
return this;
}
/**
* <p>The tunneling protocol. Set the value to <strong>Ipsec</strong>.</p>
*
* <strong>example:</strong>
* <p>Ipsec</p>
*/
public Builder overlayMode(String overlayMode) {
this.putQueryParameter("OverlayMode", overlayMode);
this.overlayMode = overlayMode;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region where the VPN gateway is created. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The destination CIDR block of the destination-based route.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/24</p>
*/
public Builder routeDest(String routeDest) {
this.putQueryParameter("RouteDest", routeDest);
this.routeDest = routeDest;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1a3kqjiiq9legfx****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
/**
* <p>The weight of the destination-based route. Valid values:</p>
* <ul>
* <li><strong>0</strong>: a low priority</li>
* <li><strong>100</strong>: a high priority</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder weight(Integer weight) {
this.putQueryParameter("Weight", weight);
this.weight = weight;
return this;
}
@Override
public DeleteVpnRouteEntryRequest build() {
return new DeleteVpnRouteEntryRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnRouteEntryResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnRouteEntryResponse} extends {@link TeaModel}
*
* <p>DeleteVpnRouteEntryResponse</p>
*/
public class DeleteVpnRouteEntryResponse 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 DeleteVpnRouteEntryResponseBody body;
private DeleteVpnRouteEntryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeleteVpnRouteEntryResponse 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 DeleteVpnRouteEntryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeleteVpnRouteEntryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeleteVpnRouteEntryResponseBody body);
@Override
DeleteVpnRouteEntryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeleteVpnRouteEntryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeleteVpnRouteEntryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeleteVpnRouteEntryResponse 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(DeleteVpnRouteEntryResponseBody body) {
this.body = body;
return this;
}
@Override
public DeleteVpnRouteEntryResponse build() {
return new DeleteVpnRouteEntryResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeleteVpnRouteEntryResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteVpnRouteEntryResponseBody} extends {@link TeaModel}
*
* <p>DeleteVpnRouteEntryResponseBody</p>
*/
public class DeleteVpnRouteEntryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeleteVpnRouteEntryResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteVpnRouteEntryResponseBody 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(DeleteVpnRouteEntryResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeleteVpnRouteEntryResponseBody build() {
return new DeleteVpnRouteEntryResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeletionProtectionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeletionProtectionRequest} extends {@link RequestModel}
*
* <p>DeletionProtectionRequest</p>
*/
public class DeletionProtectionRequest 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("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ProtectionEnable")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean protectionEnable;
@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("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private DeletionProtectionRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.instanceId = builder.instanceId;
this.ownerId = builder.ownerId;
this.protectionEnable = builder.protectionEnable;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DeletionProtectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return protectionEnable
*/
public Boolean getProtectionEnable() {
return this.protectionEnable;
}
/**
* @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 type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder<DeletionProtectionRequest, Builder> {
private String clientToken;
private String instanceId;
private Long ownerId;
private Boolean protectionEnable;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String type;
private Builder() {
super();
}
private Builder(DeletionProtectionRequest request) {
super(request);
this.clientToken = request.clientToken;
this.instanceId = request.instanceId;
this.ownerId = request.ownerId;
this.protectionEnable = request.protectionEnable;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.type = request.type;
}
/**
* <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 set this parameter, <strong>ClientToken</strong> is set to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> may be different for each API request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>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 instance for which you want to enable deletion protection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>eip-uf6id7gvguruxe41v****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>Specifies whether to enable deletion protection. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder protectionEnable(Boolean protectionEnable) {
this.putQueryParameter("ProtectionEnable", protectionEnable);
this.protectionEnable = protectionEnable;
return this;
}
/**
* <p>The ID of the region where the instance for which you want to enable deletion protection 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-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 type of instance. Valid values:</p>
* <ul>
* <li><strong>EIP</strong>: Elastic IP Address (EIP)</li>
* <li><strong>CBWP</strong>: EIP bandwidth plan</li>
* <li><strong>NATGW</strong>: NAT gateway</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>EIP</p>
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DeletionProtectionRequest build() {
return new DeletionProtectionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeletionProtectionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeletionProtectionResponse} extends {@link TeaModel}
*
* <p>DeletionProtectionResponse</p>
*/
public class DeletionProtectionResponse 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 DeletionProtectionResponseBody body;
private DeletionProtectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DeletionProtectionResponse 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 DeletionProtectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DeletionProtectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DeletionProtectionResponseBody body);
@Override
DeletionProtectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DeletionProtectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DeletionProtectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DeletionProtectionResponse 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(DeletionProtectionResponseBody body) {
this.body = body;
return this;
}
@Override
public DeletionProtectionResponse build() {
return new DeletionProtectionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DeletionProtectionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeletionProtectionResponseBody} extends {@link TeaModel}
*
* <p>DeletionProtectionResponseBody</p>
*/
public class DeletionProtectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DeletionProtectionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DeletionProtectionResponseBody 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(DeletionProtectionResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>BAAEF103-96C4-4454-9210-066F2405F511</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DeletionProtectionResponseBody build() {
return new DeletionProtectionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/Describe95TrafficRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link Describe95TrafficRequest} extends {@link RequestModel}
*
* <p>Describe95TrafficRequest</p>
*/
public class Describe95TrafficRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Day")
@com.aliyun.core.annotation.Validation(required = true)
private String day;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("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("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
private Describe95TrafficRequest(Builder builder) {
super(builder);
this.day = builder.day;
this.instanceId = builder.instanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.resourceType = builder.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static Describe95TrafficRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return day
*/
public String getDay() {
return this.day;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @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 resourceType
*/
public String getResourceType() {
return this.resourceType;
}
public static final class Builder extends Request.Builder<Describe95TrafficRequest, Builder> {
private String day;
private String instanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String resourceType;
private Builder() {
super();
}
private Builder(Describe95TrafficRequest request) {
super(request);
this.day = request.day;
this.instanceId = request.instanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.resourceType = request.resourceType;
}
/**
* <p>The date in UTC+8. Format: year-month-day.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2022-10-22</p>
*/
public Builder day(String day) {
this.putQueryParameter("Day", day);
this.day = day;
return this;
}
/**
* <p>The resource ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cbwp-wz9j19xrwf78fvz7*****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
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 resource.</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 resource type. Set the value to cbwp, which specifies Internet Shared Bandwidth.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cbwp</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
@Override
public Describe95TrafficRequest build() {
return new Describe95TrafficRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/Describe95TrafficResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link Describe95TrafficResponse} extends {@link TeaModel}
*
* <p>Describe95TrafficResponse</p>
*/
public class Describe95TrafficResponse 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 Describe95TrafficResponseBody body;
private Describe95TrafficResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static Describe95TrafficResponse 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 Describe95TrafficResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<Describe95TrafficResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(Describe95TrafficResponseBody body);
@Override
Describe95TrafficResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<Describe95TrafficResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private Describe95TrafficResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(Describe95TrafficResponse 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(Describe95TrafficResponseBody body) {
this.body = body;
return this;
}
@Override
public Describe95TrafficResponse build() {
return new Describe95TrafficResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/Describe95TrafficResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link Describe95TrafficResponseBody} extends {@link TeaModel}
*
* <p>Describe95TrafficResponseBody</p>
*/
public class Describe95TrafficResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Traffic95Summary")
private Traffic95Summary traffic95Summary;
private Describe95TrafficResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.traffic95Summary = builder.traffic95Summary;
}
public static Builder builder() {
return new Builder();
}
public static Describe95TrafficResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return traffic95Summary
*/
public Traffic95Summary getTraffic95Summary() {
return this.traffic95Summary;
}
public static final class Builder {
private String requestId;
private Traffic95Summary traffic95Summary;
private Builder() {
}
private Builder(Describe95TrafficResponseBody model) {
this.requestId = model.requestId;
this.traffic95Summary = model.traffic95Summary;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information returned.</p>
*/
public Builder traffic95Summary(Traffic95Summary traffic95Summary) {
this.traffic95Summary = traffic95Summary;
return this;
}
public Describe95TrafficResponseBody build() {
return new Describe95TrafficResponseBody(this);
}
}
/**
*
* {@link Describe95TrafficResponseBody} extends {@link TeaModel}
*
* <p>Describe95TrafficResponseBody</p>
*/
public static class Traffic95Detail extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BillBandwidth")
private String billBandwidth;
@com.aliyun.core.annotation.NameInMap("InBandwidth")
private String inBandwidth;
@com.aliyun.core.annotation.NameInMap("OutBandwidth")
private String outBandwidth;
@com.aliyun.core.annotation.NameInMap("Time")
private String time;
private Traffic95Detail(Builder builder) {
this.billBandwidth = builder.billBandwidth;
this.inBandwidth = builder.inBandwidth;
this.outBandwidth = builder.outBandwidth;
this.time = builder.time;
}
public static Builder builder() {
return new Builder();
}
public static Traffic95Detail create() {
return builder().build();
}
/**
* @return billBandwidth
*/
public String getBillBandwidth() {
return this.billBandwidth;
}
/**
* @return inBandwidth
*/
public String getInBandwidth() {
return this.inBandwidth;
}
/**
* @return outBandwidth
*/
public String getOutBandwidth() {
return this.outBandwidth;
}
/**
* @return time
*/
public String getTime() {
return this.time;
}
public static final class Builder {
private String billBandwidth;
private String inBandwidth;
private String outBandwidth;
private String time;
private Builder() {
}
private Builder(Traffic95Detail model) {
this.billBandwidth = model.billBandwidth;
this.inBandwidth = model.inBandwidth;
this.outBandwidth = model.outBandwidth;
this.time = model.time;
}
/**
* <p>The sampled bandwidth value, which is the larger bandwidth value in the inbound and outbound directions within a sampling interval. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>118.5090322113037</p>
*/
public Builder billBandwidth(String billBandwidth) {
this.billBandwidth = billBandwidth;
return this;
}
/**
* <p>The inbound bandwidth. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>118.5090322113037</p>
*/
public Builder inBandwidth(String inBandwidth) {
this.inBandwidth = inBandwidth;
return this;
}
/**
* <p>The outbound bandwidth. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>96.41217480977376</p>
*/
public Builder outBandwidth(String outBandwidth) {
this.outBandwidth = outBandwidth;
return this;
}
/**
* <p>The statistical time. The value is a string.</p>
*
* <strong>example:</strong>
* <p>2024-01-01T00:00:00Z</p>
*/
public Builder time(String time) {
this.time = time;
return this;
}
public Traffic95Detail build() {
return new Traffic95Detail(this);
}
}
}
/**
*
* {@link Describe95TrafficResponseBody} extends {@link TeaModel}
*
* <p>Describe95TrafficResponseBody</p>
*/
public static class Traffic95DetailList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Traffic95Detail")
private java.util.List<Traffic95Detail> traffic95Detail;
private Traffic95DetailList(Builder builder) {
this.traffic95Detail = builder.traffic95Detail;
}
public static Builder builder() {
return new Builder();
}
public static Traffic95DetailList create() {
return builder().build();
}
/**
* @return traffic95Detail
*/
public java.util.List<Traffic95Detail> getTraffic95Detail() {
return this.traffic95Detail;
}
public static final class Builder {
private java.util.List<Traffic95Detail> traffic95Detail;
private Builder() {
}
private Builder(Traffic95DetailList model) {
this.traffic95Detail = model.traffic95Detail;
}
/**
* Traffic95Detail.
*/
public Builder traffic95Detail(java.util.List<Traffic95Detail> traffic95Detail) {
this.traffic95Detail = traffic95Detail;
return this;
}
public Traffic95DetailList build() {
return new Traffic95DetailList(this);
}
}
}
/**
*
* {@link Describe95TrafficResponseBody} extends {@link TeaModel}
*
* <p>Describe95TrafficResponseBody</p>
*/
public static class Traffic95Summary extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private Long bandwidth;
@com.aliyun.core.annotation.NameInMap("FifthPeakBandwidth")
private String fifthPeakBandwidth;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("MinimumConsumeBandwidth")
private String minimumConsumeBandwidth;
@com.aliyun.core.annotation.NameInMap("Traffic95DetailList")
private Traffic95DetailList traffic95DetailList;
private Traffic95Summary(Builder builder) {
this.bandwidth = builder.bandwidth;
this.fifthPeakBandwidth = builder.fifthPeakBandwidth;
this.instanceId = builder.instanceId;
this.internetChargeType = builder.internetChargeType;
this.minimumConsumeBandwidth = builder.minimumConsumeBandwidth;
this.traffic95DetailList = builder.traffic95DetailList;
}
public static Builder builder() {
return new Builder();
}
public static Traffic95Summary create() {
return builder().build();
}
/**
* @return bandwidth
*/
public Long getBandwidth() {
return this.bandwidth;
}
/**
* @return fifthPeakBandwidth
*/
public String getFifthPeakBandwidth() {
return this.fifthPeakBandwidth;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return minimumConsumeBandwidth
*/
public String getMinimumConsumeBandwidth() {
return this.minimumConsumeBandwidth;
}
/**
* @return traffic95DetailList
*/
public Traffic95DetailList getTraffic95DetailList() {
return this.traffic95DetailList;
}
public static final class Builder {
private Long bandwidth;
private String fifthPeakBandwidth;
private String instanceId;
private String internetChargeType;
private String minimumConsumeBandwidth;
private Traffic95DetailList traffic95DetailList;
private Builder() {
}
private Builder(Traffic95Summary model) {
this.bandwidth = model.bandwidth;
this.fifthPeakBandwidth = model.fifthPeakBandwidth;
this.instanceId = model.instanceId;
this.internetChargeType = model.internetChargeType;
this.minimumConsumeBandwidth = model.minimumConsumeBandwidth;
this.traffic95DetailList = model.traffic95DetailList;
}
/**
* <p>The peak bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>20000.0</p>
*/
public Builder bandwidth(Long bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The daily peak bandwidth. Unit: Mbit/s.
* <props="china"> For more information, see <a href="https://help.aliyun.com/document_detail/89729.html">Daily peak bandwidth</a>.</p>
*
* <strong>example:</strong>
* <p>1064.244837773641</p>
*/
public Builder fifthPeakBandwidth(String fifthPeakBandwidth) {
this.fifthPeakBandwidth = fifthPeakBandwidth;
return this;
}
/**
* <p>The resource ID.</p>
*
* <strong>example:</strong>
* <p>cbwp-wz9j19xrwf78fvz7*****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The metering method of the Internet Shared Bandwidth instance. Valid values:</p>
* <ul>
* <li>PayBy95: pay-by-enhanced-95th-percentile</li>
* <li>PayByBandwidth: pay-by-bandwidth</li>
* <li>PayByDominantTraffic: pay-by-dominant-traffic</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayBy95</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The guaranteed bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>0.0</p>
*/
public Builder minimumConsumeBandwidth(String minimumConsumeBandwidth) {
this.minimumConsumeBandwidth = minimumConsumeBandwidth;
return this;
}
/**
* <p>The average bandwidth every 5 minutes in the inbound and outbound directions.</p>
*/
public Builder traffic95DetailList(Traffic95DetailList traffic95DetailList) {
this.traffic95DetailList = traffic95DetailList;
return this;
}
public Traffic95Summary build() {
return new Traffic95Summary(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeAccessPointsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeAccessPointsRequest} extends {@link RequestModel}
*
* <p>DescribeAccessPointsRequest</p>
*/
public class DescribeAccessPointsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcceptLanguage")
private String acceptLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@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 DescribeAccessPointsRequest(Builder builder) {
super(builder);
this.acceptLanguage = builder.acceptLanguage;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessPointsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return acceptLanguage
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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<DescribeAccessPointsRequest, Builder> {
private String acceptLanguage;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeAccessPointsRequest request) {
super(request);
this.acceptLanguage = request.acceptLanguage;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The language of the response. Valid values:</p>
* <ul>
* <li><strong>zh-CN</strong>: Chinese</li>
* <li><strong>en-US</strong> (default): English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh-CN</p>
*/
public Builder acceptLanguage(String acceptLanguage) {
this.putQueryParameter("AcceptLanguage", acceptLanguage);
this.acceptLanguage = acceptLanguage;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the access point.</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 DescribeAccessPointsRequest build() {
return new DescribeAccessPointsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeAccessPointsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeAccessPointsResponse} extends {@link TeaModel}
*
* <p>DescribeAccessPointsResponse</p>
*/
public class DescribeAccessPointsResponse 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 DescribeAccessPointsResponseBody body;
private DescribeAccessPointsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeAccessPointsResponse 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 DescribeAccessPointsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeAccessPointsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeAccessPointsResponseBody body);
@Override
DescribeAccessPointsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeAccessPointsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeAccessPointsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeAccessPointsResponse 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(DescribeAccessPointsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeAccessPointsResponse build() {
return new DescribeAccessPointsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeAccessPointsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessPointsResponseBody</p>
*/
public class DescribeAccessPointsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessPointSet")
private AccessPointSet accessPointSet;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeAccessPointsResponseBody(Builder builder) {
this.accessPointSet = builder.accessPointSet;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccessPointsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessPointSet
*/
public AccessPointSet getAccessPointSet() {
return this.accessPointSet;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private AccessPointSet accessPointSet;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeAccessPointsResponseBody model) {
this.accessPointSet = model.accessPointSet;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The information about the access point.</p>
*/
public Builder accessPointSet(AccessPointSet accessPointSet) {
this.accessPointSet = accessPointSet;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>3E85D803-C7CF-4BCD-9CFE-6DBA1DFFA027</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeAccessPointsResponseBody build() {
return new DescribeAccessPointsResponseBody(this);
}
}
/**
*
* {@link DescribeAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessPointsResponseBody</p>
*/
public static class AccessPointFeatureModel extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FeatureKey")
private String featureKey;
@com.aliyun.core.annotation.NameInMap("FeatureValue")
private String featureValue;
private AccessPointFeatureModel(Builder builder) {
this.featureKey = builder.featureKey;
this.featureValue = builder.featureValue;
}
public static Builder builder() {
return new Builder();
}
public static AccessPointFeatureModel create() {
return builder().build();
}
/**
* @return featureKey
*/
public String getFeatureKey() {
return this.featureKey;
}
/**
* @return featureValue
*/
public String getFeatureValue() {
return this.featureValue;
}
public static final class Builder {
private String featureKey;
private String featureValue;
private Builder() {
}
private Builder(AccessPointFeatureModel model) {
this.featureKey = model.featureKey;
this.featureValue = model.featureValue;
}
/**
* <p>The feature of the access point.</p>
*
* <strong>example:</strong>
* <p>AP_Support_VbrBandwidthLimit</p>
*/
public Builder featureKey(String featureKey) {
this.featureKey = featureKey;
return this;
}
/**
* <p>The feature value of the access point.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder featureValue(String featureValue) {
this.featureValue = featureValue;
return this;
}
public AccessPointFeatureModel build() {
return new AccessPointFeatureModel(this);
}
}
}
/**
*
* {@link DescribeAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessPointsResponseBody</p>
*/
public static class AccessPointFeatureModels extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessPointFeatureModel")
private java.util.List<AccessPointFeatureModel> accessPointFeatureModel;
private AccessPointFeatureModels(Builder builder) {
this.accessPointFeatureModel = builder.accessPointFeatureModel;
}
public static Builder builder() {
return new Builder();
}
public static AccessPointFeatureModels create() {
return builder().build();
}
/**
* @return accessPointFeatureModel
*/
public java.util.List<AccessPointFeatureModel> getAccessPointFeatureModel() {
return this.accessPointFeatureModel;
}
public static final class Builder {
private java.util.List<AccessPointFeatureModel> accessPointFeatureModel;
private Builder() {
}
private Builder(AccessPointFeatureModels model) {
this.accessPointFeatureModel = model.accessPointFeatureModel;
}
/**
* AccessPointFeatureModel.
*/
public Builder accessPointFeatureModel(java.util.List<AccessPointFeatureModel> accessPointFeatureModel) {
this.accessPointFeatureModel = accessPointFeatureModel;
return this;
}
public AccessPointFeatureModels build() {
return new AccessPointFeatureModels(this);
}
}
}
/**
*
* {@link DescribeAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessPointsResponseBody</p>
*/
public static class AccessPointType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessPointFeatureModels")
private AccessPointFeatureModels accessPointFeatureModels;
@com.aliyun.core.annotation.NameInMap("AccessPointId")
private String accessPointId;
@com.aliyun.core.annotation.NameInMap("AttachedRegionNo")
private String attachedRegionNo;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("HostOperator")
private String hostOperator;
@com.aliyun.core.annotation.NameInMap("Location")
private String location;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Type")
private String type;
private AccessPointType(Builder builder) {
this.accessPointFeatureModels = builder.accessPointFeatureModels;
this.accessPointId = builder.accessPointId;
this.attachedRegionNo = builder.attachedRegionNo;
this.description = builder.description;
this.hostOperator = builder.hostOperator;
this.location = builder.location;
this.name = builder.name;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static AccessPointType create() {
return builder().build();
}
/**
* @return accessPointFeatureModels
*/
public AccessPointFeatureModels getAccessPointFeatureModels() {
return this.accessPointFeatureModels;
}
/**
* @return accessPointId
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
* @return attachedRegionNo
*/
public String getAttachedRegionNo() {
return this.attachedRegionNo;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return hostOperator
*/
public String getHostOperator() {
return this.hostOperator;
}
/**
* @return location
*/
public String getLocation() {
return this.location;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private AccessPointFeatureModels accessPointFeatureModels;
private String accessPointId;
private String attachedRegionNo;
private String description;
private String hostOperator;
private String location;
private String name;
private String status;
private String type;
private Builder() {
}
private Builder(AccessPointType model) {
this.accessPointFeatureModels = model.accessPointFeatureModels;
this.accessPointId = model.accessPointId;
this.attachedRegionNo = model.attachedRegionNo;
this.description = model.description;
this.hostOperator = model.hostOperator;
this.location = model.location;
this.name = model.name;
this.status = model.status;
this.type = model.type;
}
/**
* <p>The feature model of the access point.</p>
*/
public Builder accessPointFeatureModels(AccessPointFeatureModels accessPointFeatureModels) {
this.accessPointFeatureModels = accessPointFeatureModels;
return this;
}
/**
* <p>The ID of the access point.</p>
*
* <strong>example:</strong>
* <p>ap-cn-hangzhou-****</p>
*/
public Builder accessPointId(String accessPointId) {
this.accessPointId = accessPointId;
return this;
}
/**
* <p>The region ID of the access point.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder attachedRegionNo(String attachedRegionNo) {
this.attachedRegionNo = attachedRegionNo;
return this;
}
/**
* <p>The description of the access point.</p>
*
* <strong>example:</strong>
* <p>The description of the access point.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The Internet service provider (ISP) of the access point. Valid values:</p>
*
* <strong>example:</strong>
* <p>Telehouse</p>
*/
public Builder hostOperator(String hostOperator) {
this.hostOperator = hostOperator;
return this;
}
/**
* <p>The location of the access point.</p>
*
* <strong>example:</strong>
* <p>Hangzhou</p>
*/
public Builder location(String location) {
this.location = location;
return this;
}
/**
* <p>The name of the access point.</p>
*
* <strong>example:</strong>
* <p>Name</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The status of the access point. Valid values:</p>
* <ul>
* <li><strong>recommended</strong>: The access point is ready for use.</li>
* <li><strong>hot</strong>: A large number of Express Connect circuits are connected to the access point.</li>
* <li><strong>full</strong>: The number of Express Connect circuits connected to the access point has reached the upper limit.</li>
* <li><strong>disabled</strong>: The access point is unavailable.</li>
* </ul>
*
* <strong>example:</strong>
* <p>recommended</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The network type of the Express Connect circuit. Default value: <strong>VPC</strong>.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder type(String type) {
this.type = type;
return this;
}
public AccessPointType build() {
return new AccessPointType(this);
}
}
}
/**
*
* {@link DescribeAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>DescribeAccessPointsResponseBody</p>
*/
public static class AccessPointSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessPointType")
private java.util.List<AccessPointType> accessPointType;
private AccessPointSet(Builder builder) {
this.accessPointType = builder.accessPointType;
}
public static Builder builder() {
return new Builder();
}
public static AccessPointSet create() {
return builder().build();
}
/**
* @return accessPointType
*/
public java.util.List<AccessPointType> getAccessPointType() {
return this.accessPointType;
}
public static final class Builder {
private java.util.List<AccessPointType> accessPointType;
private Builder() {
}
private Builder(AccessPointSet model) {
this.accessPointType = model.accessPointType;
}
/**
* AccessPointType.
*/
public Builder accessPointType(java.util.List<AccessPointType> accessPointType) {
this.accessPointType = accessPointType;
return this;
}
public AccessPointSet build() {
return new AccessPointSet(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpGroupsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpGroupsRequest} extends {@link RequestModel}
*
* <p>DescribeBgpGroupsRequest</p>
*/
public class DescribeBgpGroupsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BgpGroupId")
private String bgpGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IsDefault")
private Boolean isDefault;
@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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@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("RouterId")
private String routerId;
private DescribeBgpGroupsRequest(Builder builder) {
super(builder);
this.bgpGroupId = builder.bgpGroupId;
this.isDefault = builder.isDefault;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routerId = builder.routerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBgpGroupsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bgpGroupId
*/
public String getBgpGroupId() {
return this.bgpGroupId;
}
/**
* @return isDefault
*/
public Boolean getIsDefault() {
return this.isDefault;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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 routerId
*/
public String getRouterId() {
return this.routerId;
}
public static final class Builder extends Request.Builder<DescribeBgpGroupsRequest, Builder> {
private String bgpGroupId;
private Boolean isDefault;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routerId;
private Builder() {
super();
}
private Builder(DescribeBgpGroupsRequest request) {
super(request);
this.bgpGroupId = request.bgpGroupId;
this.isDefault = request.isDefault;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routerId = request.routerId;
}
/**
* <p>The ID of the BGP group.</p>
*
* <strong>example:</strong>
* <p>bgpg-bp1k25cyp26cllath****</p>
*/
public Builder bgpGroupId(String bgpGroupId) {
this.putQueryParameter("BgpGroupId", bgpGroupId);
this.bgpGroupId = bgpGroupId;
return this;
}
/**
* <p>Specifies whether the BGP group is the default one. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder isDefault(Boolean isDefault) {
this.putQueryParameter("IsDefault", isDefault);
this.isDefault = isDefault;
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 page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. The maximum value is <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region in which the VBR is deployed.</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-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 virtual border router (VBR) that is associated with the BGP group.</p>
*
* <strong>example:</strong>
* <p>vbr-bp1ctxy813985gkuk****</p>
*/
public Builder routerId(String routerId) {
this.putQueryParameter("RouterId", routerId);
this.routerId = routerId;
return this;
}
@Override
public DescribeBgpGroupsRequest build() {
return new DescribeBgpGroupsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpGroupsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpGroupsResponse} extends {@link TeaModel}
*
* <p>DescribeBgpGroupsResponse</p>
*/
public class DescribeBgpGroupsResponse 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 DescribeBgpGroupsResponseBody body;
private DescribeBgpGroupsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBgpGroupsResponse 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 DescribeBgpGroupsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBgpGroupsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBgpGroupsResponseBody body);
@Override
DescribeBgpGroupsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBgpGroupsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBgpGroupsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBgpGroupsResponse 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(DescribeBgpGroupsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBgpGroupsResponse build() {
return new DescribeBgpGroupsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpGroupsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpGroupsResponseBody</p>
*/
public class DescribeBgpGroupsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpGroups")
private BgpGroups bgpGroups;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeBgpGroupsResponseBody(Builder builder) {
this.bgpGroups = builder.bgpGroups;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBgpGroupsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bgpGroups
*/
public BgpGroups getBgpGroups() {
return this.bgpGroups;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private BgpGroups bgpGroups;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeBgpGroupsResponseBody model) {
this.bgpGroups = model.bgpGroups;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The detailed information about the BGP group.</p>
*/
public Builder bgpGroups(BgpGroups bgpGroups) {
this.bgpGroups = bgpGroups;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1D0971B2-A35A-42C1-A44C-E91360C36C0B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeBgpGroupsResponseBody build() {
return new DescribeBgpGroupsResponseBody(this);
}
}
/**
*
* {@link DescribeBgpGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpGroupsResponseBody</p>
*/
public static class BgpGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AuthKey")
private String authKey;
@com.aliyun.core.annotation.NameInMap("BgpGroupId")
private String bgpGroupId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Hold")
private String hold;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("IsFake")
private String isFake;
@com.aliyun.core.annotation.NameInMap("Keepalive")
private String keepalive;
@com.aliyun.core.annotation.NameInMap("LocalAsn")
private String localAsn;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("PeerAsn")
private String peerAsn;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RouteLimit")
private String routeLimit;
@com.aliyun.core.annotation.NameInMap("RouterId")
private String routerId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private BgpGroup(Builder builder) {
this.authKey = builder.authKey;
this.bgpGroupId = builder.bgpGroupId;
this.description = builder.description;
this.hold = builder.hold;
this.ipVersion = builder.ipVersion;
this.isFake = builder.isFake;
this.keepalive = builder.keepalive;
this.localAsn = builder.localAsn;
this.name = builder.name;
this.peerAsn = builder.peerAsn;
this.regionId = builder.regionId;
this.routeLimit = builder.routeLimit;
this.routerId = builder.routerId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static BgpGroup create() {
return builder().build();
}
/**
* @return authKey
*/
public String getAuthKey() {
return this.authKey;
}
/**
* @return bgpGroupId
*/
public String getBgpGroupId() {
return this.bgpGroupId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return hold
*/
public String getHold() {
return this.hold;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return isFake
*/
public String getIsFake() {
return this.isFake;
}
/**
* @return keepalive
*/
public String getKeepalive() {
return this.keepalive;
}
/**
* @return localAsn
*/
public String getLocalAsn() {
return this.localAsn;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return peerAsn
*/
public String getPeerAsn() {
return this.peerAsn;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return routeLimit
*/
public String getRouteLimit() {
return this.routeLimit;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String authKey;
private String bgpGroupId;
private String description;
private String hold;
private String ipVersion;
private String isFake;
private String keepalive;
private String localAsn;
private String name;
private String peerAsn;
private String regionId;
private String routeLimit;
private String routerId;
private String status;
private Builder() {
}
private Builder(BgpGroup model) {
this.authKey = model.authKey;
this.bgpGroupId = model.bgpGroupId;
this.description = model.description;
this.hold = model.hold;
this.ipVersion = model.ipVersion;
this.isFake = model.isFake;
this.keepalive = model.keepalive;
this.localAsn = model.localAsn;
this.name = model.name;
this.peerAsn = model.peerAsn;
this.regionId = model.regionId;
this.routeLimit = model.routeLimit;
this.routerId = model.routerId;
this.status = model.status;
}
/**
* <p>The key used by the BGP group.</p>
*
* <strong>example:</strong>
* <p>!PWZ****</p>
*/
public Builder authKey(String authKey) {
this.authKey = authKey;
return this;
}
/**
* <p>The ID of the BGP group.</p>
*
* <strong>example:</strong>
* <p>bgpg-bp1k25cyp26cllath****</p>
*/
public Builder bgpGroupId(String bgpGroupId) {
this.bgpGroupId = bgpGroupId;
return this;
}
/**
* <p>The description of the BGP group.</p>
*
* <strong>example:</strong>
* <p>The description of the BGP group.</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The hold time to receive BGP messages. Unit: seconds.</p>
* <blockquote>
* <p> If no message is received within the hold time, the BGP peer is considered disconnected.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder hold(String hold) {
this.hold = hold;
return this;
}
/**
* <p>The IP version of the BGP group. Valid values:</p>
* <ul>
* <li><strong>ipv4</strong>: IPv4</li>
* <li><strong>ipv6</strong>: IPv6. IPv6 is supported only if the VBR of the BGP group has IPv6 enabled.</li>
* </ul>
*
* <strong>example:</strong>
* <p>IPv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>Indicates whether the ASN is fake. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isFake(String isFake) {
this.isFake = isFake;
return this;
}
/**
* <p>The keepalive time. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder keepalive(String keepalive) {
this.keepalive = keepalive;
return this;
}
/**
* <p>The ASN of the device on the Alibaba Cloud side.</p>
*
* <strong>example:</strong>
* <p>45104</p>
*/
public Builder localAsn(String localAsn) {
this.localAsn = localAsn;
return this;
}
/**
* <p>The name of the BGP group.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The autonomous system number (ASN) of the on-premises device in the data center.</p>
*
* <strong>example:</strong>
* <p>1****</p>
*/
public Builder peerAsn(String peerAsn) {
this.peerAsn = peerAsn;
return this;
}
/**
* <p>The ID of the region to which the BGP group belongs.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of route entries for BGP dynamic route learning.</p>
*
* <strong>example:</strong>
* <p>99</p>
*/
public Builder routeLimit(String routeLimit) {
this.routeLimit = routeLimit;
return this;
}
/**
* <p>The ID of the VBR.</p>
*
* <strong>example:</strong>
* <p>vbr-bp1ctxy813985gkuk****</p>
*/
public Builder routerId(String routerId) {
this.routerId = routerId;
return this;
}
/**
* <p>The status of the BGP group.</p>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public BgpGroup build() {
return new BgpGroup(this);
}
}
}
/**
*
* {@link DescribeBgpGroupsResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpGroupsResponseBody</p>
*/
public static class BgpGroups extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpGroup")
private java.util.List<BgpGroup> bgpGroup;
private BgpGroups(Builder builder) {
this.bgpGroup = builder.bgpGroup;
}
public static Builder builder() {
return new Builder();
}
public static BgpGroups create() {
return builder().build();
}
/**
* @return bgpGroup
*/
public java.util.List<BgpGroup> getBgpGroup() {
return this.bgpGroup;
}
public static final class Builder {
private java.util.List<BgpGroup> bgpGroup;
private Builder() {
}
private Builder(BgpGroups model) {
this.bgpGroup = model.bgpGroup;
}
/**
* BgpGroup.
*/
public Builder bgpGroup(java.util.List<BgpGroup> bgpGroup) {
this.bgpGroup = bgpGroup;
return this;
}
public BgpGroups build() {
return new BgpGroups(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpNetworksRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpNetworksRequest} extends {@link RequestModel}
*
* <p>DescribeBgpNetworksRequest</p>
*/
public class DescribeBgpNetworksRequest extends Request {
@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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@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("RouterId")
private String routerId;
private DescribeBgpNetworksRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routerId = builder.routerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBgpNetworksRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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 routerId
*/
public String getRouterId() {
return this.routerId;
}
public static final class Builder extends Request.Builder<DescribeBgpNetworksRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routerId;
private Builder() {
super();
}
private Builder(DescribeBgpNetworksRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routerId = request.routerId;
}
/**
* 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 number of the returned page. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. The maximum value is <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the BGP group.</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 VBR.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1lhl0taikrteen8****</p>
*/
public Builder routerId(String routerId) {
this.putQueryParameter("RouterId", routerId);
this.routerId = routerId;
return this;
}
@Override
public DescribeBgpNetworksRequest build() {
return new DescribeBgpNetworksRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpNetworksResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpNetworksResponse} extends {@link TeaModel}
*
* <p>DescribeBgpNetworksResponse</p>
*/
public class DescribeBgpNetworksResponse 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 DescribeBgpNetworksResponseBody body;
private DescribeBgpNetworksResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBgpNetworksResponse 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 DescribeBgpNetworksResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBgpNetworksResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBgpNetworksResponseBody body);
@Override
DescribeBgpNetworksResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBgpNetworksResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBgpNetworksResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBgpNetworksResponse 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(DescribeBgpNetworksResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBgpNetworksResponse build() {
return new DescribeBgpNetworksResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpNetworksResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpNetworksResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpNetworksResponseBody</p>
*/
public class DescribeBgpNetworksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpNetworks")
private BgpNetworks bgpNetworks;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeBgpNetworksResponseBody(Builder builder) {
this.bgpNetworks = builder.bgpNetworks;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBgpNetworksResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bgpNetworks
*/
public BgpNetworks getBgpNetworks() {
return this.bgpNetworks;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private BgpNetworks bgpNetworks;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeBgpNetworksResponseBody model) {
this.bgpNetworks = model.bgpNetworks;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>BGP networks.</p>
*/
public Builder bgpNetworks(BgpNetworks bgpNetworks) {
this.bgpNetworks = bgpNetworks;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6F513A15-669F-419D-B511-08A85292059B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of advertised BGP networks.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeBgpNetworksResponseBody build() {
return new DescribeBgpNetworksResponseBody(this);
}
}
/**
*
* {@link DescribeBgpNetworksResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpNetworksResponseBody</p>
*/
public static class BgpNetwork extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DstCidrBlock")
private String dstCidrBlock;
@com.aliyun.core.annotation.NameInMap("RouterId")
private String routerId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private BgpNetwork(Builder builder) {
this.dstCidrBlock = builder.dstCidrBlock;
this.routerId = builder.routerId;
this.status = builder.status;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static BgpNetwork create() {
return builder().build();
}
/**
* @return dstCidrBlock
*/
public String getDstCidrBlock() {
return this.dstCidrBlock;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String dstCidrBlock;
private String routerId;
private String status;
private String vpcId;
private Builder() {
}
private Builder(BgpNetwork model) {
this.dstCidrBlock = model.dstCidrBlock;
this.routerId = model.routerId;
this.status = model.status;
this.vpcId = model.vpcId;
}
/**
* <p>The CIDR block of the advertised BGP network.</p>
*
* <strong>example:</strong>
* <p>10.1.XX.XX/24</p>
*/
public Builder dstCidrBlock(String dstCidrBlock) {
this.dstCidrBlock = dstCidrBlock;
return this;
}
/**
* <p>The ID of the VBR.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1lhl0taikrteen8****</p>
*/
public Builder routerId(String routerId) {
this.routerId = routerId;
return this;
}
/**
* <p>The status of the advertised BGP network.</p>
*
* <strong>example:</strong>
* <p>Enabled</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) in which the master instance resides.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1qpo0kug3a2*****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public BgpNetwork build() {
return new BgpNetwork(this);
}
}
}
/**
*
* {@link DescribeBgpNetworksResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpNetworksResponseBody</p>
*/
public static class BgpNetworks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpNetwork")
private java.util.List<BgpNetwork> bgpNetwork;
private BgpNetworks(Builder builder) {
this.bgpNetwork = builder.bgpNetwork;
}
public static Builder builder() {
return new Builder();
}
public static BgpNetworks create() {
return builder().build();
}
/**
* @return bgpNetwork
*/
public java.util.List<BgpNetwork> getBgpNetwork() {
return this.bgpNetwork;
}
public static final class Builder {
private java.util.List<BgpNetwork> bgpNetwork;
private Builder() {
}
private Builder(BgpNetworks model) {
this.bgpNetwork = model.bgpNetwork;
}
/**
* BgpNetwork.
*/
public Builder bgpNetwork(java.util.List<BgpNetwork> bgpNetwork) {
this.bgpNetwork = bgpNetwork;
return this;
}
public BgpNetworks build() {
return new BgpNetworks(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpPeersRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpPeersRequest} extends {@link RequestModel}
*
* <p>DescribeBgpPeersRequest</p>
*/
public class DescribeBgpPeersRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BgpGroupId")
private String bgpGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BgpPeerId")
private String bgpPeerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IsDefault")
private Boolean isDefault;
@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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@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("RouterId")
private String routerId;
private DescribeBgpPeersRequest(Builder builder) {
super(builder);
this.bgpGroupId = builder.bgpGroupId;
this.bgpPeerId = builder.bgpPeerId;
this.isDefault = builder.isDefault;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routerId = builder.routerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBgpPeersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bgpGroupId
*/
public String getBgpGroupId() {
return this.bgpGroupId;
}
/**
* @return bgpPeerId
*/
public String getBgpPeerId() {
return this.bgpPeerId;
}
/**
* @return isDefault
*/
public Boolean getIsDefault() {
return this.isDefault;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @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 routerId
*/
public String getRouterId() {
return this.routerId;
}
public static final class Builder extends Request.Builder<DescribeBgpPeersRequest, Builder> {
private String bgpGroupId;
private String bgpPeerId;
private Boolean isDefault;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routerId;
private Builder() {
super();
}
private Builder(DescribeBgpPeersRequest request) {
super(request);
this.bgpGroupId = request.bgpGroupId;
this.bgpPeerId = request.bgpPeerId;
this.isDefault = request.isDefault;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routerId = request.routerId;
}
/**
* <p>The ID of the BGP group to which the BGP peer that you want to query belongs.</p>
*
* <strong>example:</strong>
* <p>bgpg-2zev8h2wo414sfh****</p>
*/
public Builder bgpGroupId(String bgpGroupId) {
this.putQueryParameter("BgpGroupId", bgpGroupId);
this.bgpGroupId = bgpGroupId;
return this;
}
/**
* <p>The ID of the BGP peer that you want to query.</p>
*
* <strong>example:</strong>
* <p>bgp-2ze3un0ft1jd1xd****</p>
*/
public Builder bgpPeerId(String bgpPeerId) {
this.putQueryParameter("BgpPeerId", bgpPeerId);
this.bgpPeerId = bgpPeerId;
return this;
}
/**
* <p>Specifies whether the BGP group is the default group. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder isDefault(Boolean isDefault) {
this.putQueryParameter("IsDefault", isDefault);
this.isDefault = isDefault;
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 page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>1 to 50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the BGP group to which the BGP peer that you want to query belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</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 virtual border router (VBR) that is associated with the BGP peer that you want to query.</p>
*
* <strong>example:</strong>
* <p>vbr-2zecmmvg5gvu8i4te****</p>
*/
public Builder routerId(String routerId) {
this.putQueryParameter("RouterId", routerId);
this.routerId = routerId;
return this;
}
@Override
public DescribeBgpPeersRequest build() {
return new DescribeBgpPeersRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpPeersResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpPeersResponse} extends {@link TeaModel}
*
* <p>DescribeBgpPeersResponse</p>
*/
public class DescribeBgpPeersResponse 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 DescribeBgpPeersResponseBody body;
private DescribeBgpPeersResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeBgpPeersResponse 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 DescribeBgpPeersResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeBgpPeersResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeBgpPeersResponseBody body);
@Override
DescribeBgpPeersResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeBgpPeersResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeBgpPeersResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeBgpPeersResponse 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(DescribeBgpPeersResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeBgpPeersResponse build() {
return new DescribeBgpPeersResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeBgpPeersResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeBgpPeersResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpPeersResponseBody</p>
*/
public class DescribeBgpPeersResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpPeers")
private BgpPeers bgpPeers;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeBgpPeersResponseBody(Builder builder) {
this.bgpPeers = builder.bgpPeers;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeBgpPeersResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bgpPeers
*/
public BgpPeers getBgpPeers() {
return this.bgpPeers;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private BgpPeers bgpPeers;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeBgpPeersResponseBody model) {
this.bgpPeers = model.bgpPeers;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The information about the BGP peer.</p>
*/
public Builder bgpPeers(BgpPeers bgpPeers) {
this.bgpPeers = bgpPeers;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeBgpPeersResponseBody build() {
return new DescribeBgpPeersResponseBody(this);
}
}
/**
*
* {@link DescribeBgpPeersResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpPeersResponseBody</p>
*/
public static class BgpPeer extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AdvertisedRouteCount")
private Integer advertisedRouteCount;
@com.aliyun.core.annotation.NameInMap("AuthKey")
private String authKey;
@com.aliyun.core.annotation.NameInMap("BfdMultiHop")
private Integer bfdMultiHop;
@com.aliyun.core.annotation.NameInMap("BgpGroupId")
private String bgpGroupId;
@com.aliyun.core.annotation.NameInMap("BgpPeerId")
private String bgpPeerId;
@com.aliyun.core.annotation.NameInMap("BgpStatus")
private String bgpStatus;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EnableBfd")
private Boolean enableBfd;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("Hold")
private String hold;
@com.aliyun.core.annotation.NameInMap("IpVersion")
private String ipVersion;
@com.aliyun.core.annotation.NameInMap("IsFake")
private Boolean isFake;
@com.aliyun.core.annotation.NameInMap("Keepalive")
private String keepalive;
@com.aliyun.core.annotation.NameInMap("LocalAsn")
private String localAsn;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("PeerAsn")
private String peerAsn;
@com.aliyun.core.annotation.NameInMap("PeerIpAddress")
private String peerIpAddress;
@com.aliyun.core.annotation.NameInMap("ReceivedRouteCount")
private Integer receivedRouteCount;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RouteLimit")
private String routeLimit;
@com.aliyun.core.annotation.NameInMap("RouterId")
private String routerId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private BgpPeer(Builder builder) {
this.advertisedRouteCount = builder.advertisedRouteCount;
this.authKey = builder.authKey;
this.bfdMultiHop = builder.bfdMultiHop;
this.bgpGroupId = builder.bgpGroupId;
this.bgpPeerId = builder.bgpPeerId;
this.bgpStatus = builder.bgpStatus;
this.description = builder.description;
this.enableBfd = builder.enableBfd;
this.gmtModified = builder.gmtModified;
this.hold = builder.hold;
this.ipVersion = builder.ipVersion;
this.isFake = builder.isFake;
this.keepalive = builder.keepalive;
this.localAsn = builder.localAsn;
this.name = builder.name;
this.peerAsn = builder.peerAsn;
this.peerIpAddress = builder.peerIpAddress;
this.receivedRouteCount = builder.receivedRouteCount;
this.regionId = builder.regionId;
this.routeLimit = builder.routeLimit;
this.routerId = builder.routerId;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static BgpPeer create() {
return builder().build();
}
/**
* @return advertisedRouteCount
*/
public Integer getAdvertisedRouteCount() {
return this.advertisedRouteCount;
}
/**
* @return authKey
*/
public String getAuthKey() {
return this.authKey;
}
/**
* @return bfdMultiHop
*/
public Integer getBfdMultiHop() {
return this.bfdMultiHop;
}
/**
* @return bgpGroupId
*/
public String getBgpGroupId() {
return this.bgpGroupId;
}
/**
* @return bgpPeerId
*/
public String getBgpPeerId() {
return this.bgpPeerId;
}
/**
* @return bgpStatus
*/
public String getBgpStatus() {
return this.bgpStatus;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return enableBfd
*/
public Boolean getEnableBfd() {
return this.enableBfd;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return hold
*/
public String getHold() {
return this.hold;
}
/**
* @return ipVersion
*/
public String getIpVersion() {
return this.ipVersion;
}
/**
* @return isFake
*/
public Boolean getIsFake() {
return this.isFake;
}
/**
* @return keepalive
*/
public String getKeepalive() {
return this.keepalive;
}
/**
* @return localAsn
*/
public String getLocalAsn() {
return this.localAsn;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return peerAsn
*/
public String getPeerAsn() {
return this.peerAsn;
}
/**
* @return peerIpAddress
*/
public String getPeerIpAddress() {
return this.peerIpAddress;
}
/**
* @return receivedRouteCount
*/
public Integer getReceivedRouteCount() {
return this.receivedRouteCount;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return routeLimit
*/
public String getRouteLimit() {
return this.routeLimit;
}
/**
* @return routerId
*/
public String getRouterId() {
return this.routerId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private Integer advertisedRouteCount;
private String authKey;
private Integer bfdMultiHop;
private String bgpGroupId;
private String bgpPeerId;
private String bgpStatus;
private String description;
private Boolean enableBfd;
private String gmtModified;
private String hold;
private String ipVersion;
private Boolean isFake;
private String keepalive;
private String localAsn;
private String name;
private String peerAsn;
private String peerIpAddress;
private Integer receivedRouteCount;
private String regionId;
private String routeLimit;
private String routerId;
private String status;
private Builder() {
}
private Builder(BgpPeer model) {
this.advertisedRouteCount = model.advertisedRouteCount;
this.authKey = model.authKey;
this.bfdMultiHop = model.bfdMultiHop;
this.bgpGroupId = model.bgpGroupId;
this.bgpPeerId = model.bgpPeerId;
this.bgpStatus = model.bgpStatus;
this.description = model.description;
this.enableBfd = model.enableBfd;
this.gmtModified = model.gmtModified;
this.hold = model.hold;
this.ipVersion = model.ipVersion;
this.isFake = model.isFake;
this.keepalive = model.keepalive;
this.localAsn = model.localAsn;
this.name = model.name;
this.peerAsn = model.peerAsn;
this.peerIpAddress = model.peerIpAddress;
this.receivedRouteCount = model.receivedRouteCount;
this.regionId = model.regionId;
this.routeLimit = model.routeLimit;
this.routerId = model.routerId;
this.status = model.status;
}
/**
* <p>The number of advertised routes.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder advertisedRouteCount(Integer advertisedRouteCount) {
this.advertisedRouteCount = advertisedRouteCount;
return this;
}
/**
* <p>The authentication key of the BGP group.</p>
*
* <strong>example:</strong>
* <p>!PWZ****</p>
*/
public Builder authKey(String authKey) {
this.authKey = authKey;
return this;
}
/**
* <p>The Bidirectional Forwarding Detection (BFD) hop count.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
public Builder bfdMultiHop(Integer bfdMultiHop) {
this.bfdMultiHop = bfdMultiHop;
return this;
}
/**
* <p>The ID of the BGP group.</p>
*
* <strong>example:</strong>
* <p>bgpg-2zev8h2wo414sfh****</p>
*/
public Builder bgpGroupId(String bgpGroupId) {
this.bgpGroupId = bgpGroupId;
return this;
}
/**
* <p>The ID of the BGP peer.</p>
*
* <strong>example:</strong>
* <p>bgp-2ze3un0ft1jd1xd****</p>
*/
public Builder bgpPeerId(String bgpPeerId) {
this.bgpPeerId = bgpPeerId;
return this;
}
/**
* <p>The status of the BGP connection. Valid values:</p>
* <ul>
* <li><strong>Idle</strong>: The BGP connection is not used.</li>
* <li><strong>Connect</strong>: The BGP connection is used.</li>
* <li><strong>Active</strong>: The BGP connection is available.</li>
* <li><strong>Established</strong>: The BGP connection is established.</li>
* <li><strong>Down</strong>: The BGP connection is unavailable.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Connect</p>
*/
public Builder bgpStatus(String bgpStatus) {
this.bgpStatus = bgpStatus;
return this;
}
/**
* <p>The description of the BGP group.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether BFD 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 enableBfd(Boolean enableBfd) {
this.enableBfd = enableBfd;
return this;
}
/**
* <p>The time when the BGP peer is modified.</p>
* <p>Use the UTC time format: yyyy-MM-ddTHH:mmZ</p>
*
* <strong>example:</strong>
* <p>2022-05-20T07:29:08Z</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The hold time.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder hold(String hold) {
this.hold = hold;
return this;
}
/**
* <p>The version of the IP address.</p>
*
* <strong>example:</strong>
* <p>ipv4</p>
*/
public Builder ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* <p>Indicates whether a fake autonomous system number (ASN) is used. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isFake(Boolean isFake) {
this.isFake = isFake;
return this;
}
/**
* <p>The Keepalive interval.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder keepalive(String keepalive) {
this.keepalive = keepalive;
return this;
}
/**
* <p>The ASN of the device on the Alibaba Cloud side.</p>
*
* <strong>example:</strong>
* <p>45104</p>
*/
public Builder localAsn(String localAsn) {
this.localAsn = localAsn;
return this;
}
/**
* <p>The name of the BGP peer.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The autonomous system number (ASN)of the BGP peer.</p>
*
* <strong>example:</strong>
* <p>65515</p>
*/
public Builder peerAsn(String peerAsn) {
this.peerAsn = peerAsn;
return this;
}
/**
* <p>The IP address of the BGP peer.</p>
*
* <strong>example:</strong>
* <p>116.62.XX.XX</p>
*/
public Builder peerIpAddress(String peerIpAddress) {
this.peerIpAddress = peerIpAddress;
return this;
}
/**
* <p>The number of received routes.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder receivedRouteCount(Integer receivedRouteCount) {
this.receivedRouteCount = receivedRouteCount;
return this;
}
/**
* <p>The ID of the region to which the BGP group belongs.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The maximum number of routes.</p>
*
* <strong>example:</strong>
* <p>110</p>
*/
public Builder routeLimit(String routeLimit) {
this.routeLimit = routeLimit;
return this;
}
/**
* <p>The Router ID.</p>
*
* <strong>example:</strong>
* <p>vbr-2zecmmvg5gvu8i4te****</p>
*/
public Builder routerId(String routerId) {
this.routerId = routerId;
return this;
}
/**
* <p>The status of the BGP peer. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Modifying</strong></li>
* <li><strong>Deleting</strong></li>
* <li><strong>Deleted</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public BgpPeer build() {
return new BgpPeer(this);
}
}
}
/**
*
* {@link DescribeBgpPeersResponseBody} extends {@link TeaModel}
*
* <p>DescribeBgpPeersResponseBody</p>
*/
public static class BgpPeers extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpPeer")
private java.util.List<BgpPeer> bgpPeer;
private BgpPeers(Builder builder) {
this.bgpPeer = builder.bgpPeer;
}
public static Builder builder() {
return new Builder();
}
public static BgpPeers create() {
return builder().build();
}
/**
* @return bgpPeer
*/
public java.util.List<BgpPeer> getBgpPeer() {
return this.bgpPeer;
}
public static final class Builder {
private java.util.List<BgpPeer> bgpPeer;
private Builder() {
}
private Builder(BgpPeers model) {
this.bgpPeer = model.bgpPeer;
}
/**
* BgpPeer.
*/
public Builder bgpPeer(java.util.List<BgpPeer> bgpPeer) {
this.bgpPeer = bgpPeer;
return this;
}
public BgpPeers build() {
return new BgpPeers(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCommonBandwidthPackagesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCommonBandwidthPackagesRequest} extends {@link RequestModel}
*
* <p>DescribeCommonBandwidthPackagesRequest</p>
*/
public class DescribeCommonBandwidthPackagesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BandwidthPackageId")
private String bandwidthPackageId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IncludeReservationData")
private Boolean includeReservationData;
@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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityProtectionEnabled")
private Boolean securityProtectionEnabled;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private DescribeCommonBandwidthPackagesRequest(Builder builder) {
super(builder);
this.bandwidthPackageId = builder.bandwidthPackageId;
this.dryRun = builder.dryRun;
this.includeReservationData = builder.includeReservationData;
this.name = builder.name;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityProtectionEnabled = builder.securityProtectionEnabled;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCommonBandwidthPackagesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bandwidthPackageId
*/
public String getBandwidthPackageId() {
return this.bandwidthPackageId;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return includeReservationData
*/
public Boolean getIncludeReservationData() {
return this.includeReservationData;
}
/**
* @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 pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityProtectionEnabled
*/
public Boolean getSecurityProtectionEnabled() {
return this.securityProtectionEnabled;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeCommonBandwidthPackagesRequest, Builder> {
private String bandwidthPackageId;
private Boolean dryRun;
private Boolean includeReservationData;
private String name;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Boolean securityProtectionEnabled;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeCommonBandwidthPackagesRequest request) {
super(request);
this.bandwidthPackageId = request.bandwidthPackageId;
this.dryRun = request.dryRun;
this.includeReservationData = request.includeReservationData;
this.name = request.name;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityProtectionEnabled = request.securityProtectionEnabled;
this.tag = request.tag;
}
/**
* <p>The ID of the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>cbwp-2ze2ic1xd2qeqk145****</p>
*/
public Builder bandwidthPackageId(String bandwidthPackageId) {
this.putQueryParameter("BandwidthPackageId", bandwidthPackageId);
this.bandwidthPackageId = bandwidthPackageId;
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 instance status. 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>Specifies whether to return the information about pending orders. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder includeReservationData(Boolean includeReservationData) {
this.putQueryParameter("IncludeReservationData", includeReservationData);
this.includeReservationData = includeReservationData;
return this;
}
/**
* <p>The name of the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>test123</p>
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>1 to 50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region where the Internet Shared Bandwidth instance resides.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>Specifies whether to enable Anti-DDoS Pro/Premium. Valid values:</p>
* <ul>
* <li><strong>false</strong> (default)</li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder securityProtectionEnabled(Boolean securityProtectionEnabled) {
this.putQueryParameter("SecurityProtectionEnabled", securityProtectionEnabled);
this.securityProtectionEnabled = securityProtectionEnabled;
return this;
}
/**
* <p>The tags to add to the Internet Shared Bandwidth instance.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeCommonBandwidthPackagesRequest build() {
return new DescribeCommonBandwidthPackagesRequest(this);
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesRequest} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key to add to the Internet Shared Bandwidth instance. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>KeyTest</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value to add to the Internet Shared Bandwidth instance. You can specify up to 20 tag values. The tag value can be an empty string.</p>
* <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>ValueTest</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCommonBandwidthPackagesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCommonBandwidthPackagesResponse} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponse</p>
*/
public class DescribeCommonBandwidthPackagesResponse 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 DescribeCommonBandwidthPackagesResponseBody body;
private DescribeCommonBandwidthPackagesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCommonBandwidthPackagesResponse 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 DescribeCommonBandwidthPackagesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCommonBandwidthPackagesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCommonBandwidthPackagesResponseBody body);
@Override
DescribeCommonBandwidthPackagesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCommonBandwidthPackagesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCommonBandwidthPackagesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCommonBandwidthPackagesResponse 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(DescribeCommonBandwidthPackagesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCommonBandwidthPackagesResponse build() {
return new DescribeCommonBandwidthPackagesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCommonBandwidthPackagesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public class DescribeCommonBandwidthPackagesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CommonBandwidthPackages")
private CommonBandwidthPackages commonBandwidthPackages;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeCommonBandwidthPackagesResponseBody(Builder builder) {
this.commonBandwidthPackages = builder.commonBandwidthPackages;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCommonBandwidthPackagesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return commonBandwidthPackages
*/
public CommonBandwidthPackages getCommonBandwidthPackages() {
return this.commonBandwidthPackages;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private CommonBandwidthPackages commonBandwidthPackages;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeCommonBandwidthPackagesResponseBody model) {
this.commonBandwidthPackages = model.commonBandwidthPackages;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of the Internet Shared Bandwidth instance.</p>
*/
public Builder commonBandwidthPackages(CommonBandwidthPackages commonBandwidthPackages) {
this.commonBandwidthPackages = commonBandwidthPackages;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>20E6FD1C-7321-4DAD-BDFD-EC8769E4AA33</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeCommonBandwidthPackagesResponseBody build() {
return new DescribeCommonBandwidthPackagesResponseBody(this);
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class PublicIpAddresse extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.NameInMap("BandwidthPackageIpRelationStatus")
private String bandwidthPackageIpRelationStatus;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
private PublicIpAddresse(Builder builder) {
this.allocationId = builder.allocationId;
this.bandwidthPackageIpRelationStatus = builder.bandwidthPackageIpRelationStatus;
this.ipAddress = builder.ipAddress;
}
public static Builder builder() {
return new Builder();
}
public static PublicIpAddresse create() {
return builder().build();
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return bandwidthPackageIpRelationStatus
*/
public String getBandwidthPackageIpRelationStatus() {
return this.bandwidthPackageIpRelationStatus;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
public static final class Builder {
private String allocationId;
private String bandwidthPackageIpRelationStatus;
private String ipAddress;
private Builder() {
}
private Builder(PublicIpAddresse model) {
this.allocationId = model.allocationId;
this.bandwidthPackageIpRelationStatus = model.bandwidthPackageIpRelationStatus;
this.ipAddress = model.ipAddress;
}
/**
* <p>The ID of the EIP.</p>
*
* <strong>example:</strong>
* <p>eip-bp13e9i2qst4g6jzi****</p>
*/
public Builder allocationId(String allocationId) {
this.allocationId = allocationId;
return this;
}
/**
* <p>Indicates whether the EIP is associated with the Internet Shared Bandwidth instance. Valid values:</p>
* <ul>
* <li><strong>BINDED</strong></li>
* <li><strong>BINDING</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>BINDED</p>
*/
public Builder bandwidthPackageIpRelationStatus(String bandwidthPackageIpRelationStatus) {
this.bandwidthPackageIpRelationStatus = bandwidthPackageIpRelationStatus;
return this;
}
/**
* <p>The public IP address.</p>
*
* <strong>example:</strong>
* <p>47.95.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
public PublicIpAddresse build() {
return new PublicIpAddresse(this);
}
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class PublicIpAddresses extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PublicIpAddresse")
private java.util.List<PublicIpAddresse> publicIpAddresse;
private PublicIpAddresses(Builder builder) {
this.publicIpAddresse = builder.publicIpAddresse;
}
public static Builder builder() {
return new Builder();
}
public static PublicIpAddresses create() {
return builder().build();
}
/**
* @return publicIpAddresse
*/
public java.util.List<PublicIpAddresse> getPublicIpAddresse() {
return this.publicIpAddresse;
}
public static final class Builder {
private java.util.List<PublicIpAddresse> publicIpAddresse;
private Builder() {
}
private Builder(PublicIpAddresses model) {
this.publicIpAddresse = model.publicIpAddresse;
}
/**
* PublicIpAddresse.
*/
public Builder publicIpAddresse(java.util.List<PublicIpAddresse> publicIpAddresse) {
this.publicIpAddresse = publicIpAddresse;
return this;
}
public PublicIpAddresses build() {
return new PublicIpAddresses(this);
}
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class SecurityProtectionTypes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityProtectionType")
private java.util.List<String> securityProtectionType;
private SecurityProtectionTypes(Builder builder) {
this.securityProtectionType = builder.securityProtectionType;
}
public static Builder builder() {
return new Builder();
}
public static SecurityProtectionTypes create() {
return builder().build();
}
/**
* @return securityProtectionType
*/
public java.util.List<String> getSecurityProtectionType() {
return this.securityProtectionType;
}
public static final class Builder {
private java.util.List<String> securityProtectionType;
private Builder() {
}
private Builder(SecurityProtectionTypes model) {
this.securityProtectionType = model.securityProtectionType;
}
/**
* SecurityProtectionType.
*/
public Builder securityProtectionType(java.util.List<String> securityProtectionType) {
this.securityProtectionType = securityProtectionType;
return this;
}
public SecurityProtectionTypes build() {
return new SecurityProtectionTypes(this);
}
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key that is added to the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>KeyTest</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value that is added to the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>ValueTest</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class CommonBandwidthPackage extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Bandwidth")
private String bandwidth;
@com.aliyun.core.annotation.NameInMap("BandwidthPackageId")
private String bandwidthPackageId;
@com.aliyun.core.annotation.NameInMap("BizType")
private String bizType;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DeletionProtection")
private Boolean deletionProtection;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("HasReservationData")
private String hasReservationData;
@com.aliyun.core.annotation.NameInMap("ISP")
private String ISP;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("PublicIpAddresses")
private PublicIpAddresses publicIpAddresses;
@com.aliyun.core.annotation.NameInMap("Ratio")
private Integer ratio;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ReservationActiveTime")
private String reservationActiveTime;
@com.aliyun.core.annotation.NameInMap("ReservationBandwidth")
private String reservationBandwidth;
@com.aliyun.core.annotation.NameInMap("ReservationInternetChargeType")
private String reservationInternetChargeType;
@com.aliyun.core.annotation.NameInMap("ReservationOrderType")
private String reservationOrderType;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SecurityProtectionTypes")
private SecurityProtectionTypes securityProtectionTypes;
@com.aliyun.core.annotation.NameInMap("ServiceManaged")
private Integer serviceManaged;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
@com.aliyun.core.annotation.NameInMap("Zone")
private String zone;
private CommonBandwidthPackage(Builder builder) {
this.bandwidth = builder.bandwidth;
this.bandwidthPackageId = builder.bandwidthPackageId;
this.bizType = builder.bizType;
this.businessStatus = builder.businessStatus;
this.creationTime = builder.creationTime;
this.deletionProtection = builder.deletionProtection;
this.description = builder.description;
this.expiredTime = builder.expiredTime;
this.hasReservationData = builder.hasReservationData;
this.ISP = builder.ISP;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.name = builder.name;
this.publicIpAddresses = builder.publicIpAddresses;
this.ratio = builder.ratio;
this.regionId = builder.regionId;
this.reservationActiveTime = builder.reservationActiveTime;
this.reservationBandwidth = builder.reservationBandwidth;
this.reservationInternetChargeType = builder.reservationInternetChargeType;
this.reservationOrderType = builder.reservationOrderType;
this.resourceGroupId = builder.resourceGroupId;
this.securityProtectionTypes = builder.securityProtectionTypes;
this.serviceManaged = builder.serviceManaged;
this.status = builder.status;
this.tags = builder.tags;
this.zone = builder.zone;
}
public static Builder builder() {
return new Builder();
}
public static CommonBandwidthPackage create() {
return builder().build();
}
/**
* @return bandwidth
*/
public String getBandwidth() {
return this.bandwidth;
}
/**
* @return bandwidthPackageId
*/
public String getBandwidthPackageId() {
return this.bandwidthPackageId;
}
/**
* @return bizType
*/
public String getBizType() {
return this.bizType;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return deletionProtection
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return hasReservationData
*/
public String getHasReservationData() {
return this.hasReservationData;
}
/**
* @return ISP
*/
public String getISP() {
return this.ISP;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return publicIpAddresses
*/
public PublicIpAddresses getPublicIpAddresses() {
return this.publicIpAddresses;
}
/**
* @return ratio
*/
public Integer getRatio() {
return this.ratio;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return reservationActiveTime
*/
public String getReservationActiveTime() {
return this.reservationActiveTime;
}
/**
* @return reservationBandwidth
*/
public String getReservationBandwidth() {
return this.reservationBandwidth;
}
/**
* @return reservationInternetChargeType
*/
public String getReservationInternetChargeType() {
return this.reservationInternetChargeType;
}
/**
* @return reservationOrderType
*/
public String getReservationOrderType() {
return this.reservationOrderType;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return securityProtectionTypes
*/
public SecurityProtectionTypes getSecurityProtectionTypes() {
return this.securityProtectionTypes;
}
/**
* @return serviceManaged
*/
public Integer getServiceManaged() {
return this.serviceManaged;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
/**
* @return zone
*/
public String getZone() {
return this.zone;
}
public static final class Builder {
private String bandwidth;
private String bandwidthPackageId;
private String bizType;
private String businessStatus;
private String creationTime;
private Boolean deletionProtection;
private String description;
private String expiredTime;
private String hasReservationData;
private String ISP;
private String instanceChargeType;
private String internetChargeType;
private String name;
private PublicIpAddresses publicIpAddresses;
private Integer ratio;
private String regionId;
private String reservationActiveTime;
private String reservationBandwidth;
private String reservationInternetChargeType;
private String reservationOrderType;
private String resourceGroupId;
private SecurityProtectionTypes securityProtectionTypes;
private Integer serviceManaged;
private String status;
private Tags tags;
private String zone;
private Builder() {
}
private Builder(CommonBandwidthPackage model) {
this.bandwidth = model.bandwidth;
this.bandwidthPackageId = model.bandwidthPackageId;
this.bizType = model.bizType;
this.businessStatus = model.businessStatus;
this.creationTime = model.creationTime;
this.deletionProtection = model.deletionProtection;
this.description = model.description;
this.expiredTime = model.expiredTime;
this.hasReservationData = model.hasReservationData;
this.ISP = model.ISP;
this.instanceChargeType = model.instanceChargeType;
this.internetChargeType = model.internetChargeType;
this.name = model.name;
this.publicIpAddresses = model.publicIpAddresses;
this.ratio = model.ratio;
this.regionId = model.regionId;
this.reservationActiveTime = model.reservationActiveTime;
this.reservationBandwidth = model.reservationBandwidth;
this.reservationInternetChargeType = model.reservationInternetChargeType;
this.reservationOrderType = model.reservationOrderType;
this.resourceGroupId = model.resourceGroupId;
this.securityProtectionTypes = model.securityProtectionTypes;
this.serviceManaged = model.serviceManaged;
this.status = model.status;
this.tags = model.tags;
this.zone = model.zone;
}
/**
* <p>The maximum bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder bandwidth(String bandwidth) {
this.bandwidth = bandwidth;
return this;
}
/**
* <p>The ID of the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>cbwp-bp1t3sm1ffzmshdki****</p>
*/
public Builder bandwidthPackageId(String bandwidthPackageId) {
this.bandwidthPackageId = bandwidthPackageId;
return this;
}
/**
* <p>The service type of the Internet Shared Bandwidth instance. Valid values:</p>
* <ul>
* <li><strong>CloudBox</strong> The cloud box. Only cloud box users can select this type.</li>
* <li><strong>Default</strong> (default): The general service type.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CloudBox</p>
*/
public Builder bizType(String bizType) {
this.bizType = bizType;
return this;
}
/**
* <p>The service status of the Internet Shared Bandwidth instance. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: The Internet Shared Bandwidth instance runs as expected.</li>
* <li><strong>FinancialLocked</strong>: An overdue payment occurs in the Internet Shared Bandwidth instance</li>
* <li><strong>Unactivated</strong>: The Internet Shared Bandwidth instance is not activated.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The time when the Internet Shared Bandwidth instance was created. The time is displayed in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2017-06-28T06:39:20Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>Indicates whether deletion protection 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 deletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
return this;
}
/**
* <p>The description of the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>none</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The time when the Internet Shared Bandwidth instance expired. The time is displayed in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2019-01-15T03:08:37Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>Indicates whether the information about pending orders is returned. Valid values:</p>
* <ul>
* <li><strong>false</strong></li>
* <li><strong>true</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder hasReservationData(String hasReservationData) {
this.hasReservationData = hasReservationData;
return this;
}
/**
* <p>The line type. Valid values:</p>
* <ul>
* <li><strong>BGP</strong>: BGP (Multi-ISP) line The BGP (Multi-ISP) line is supported in all regions.</li>
* <li><strong>BGP_PRO</strong>: BGP (Multi-ISP) Pro line The BGP (Multi-ISP) Pro line is supported in the China (Hong Kong), Singapore (Singapore), Japan (Tokyo), Philippines (Manila), Malaysia (Kuala Lumpur), Indonesia (Jakarta), and Thailand (Bangkok) regions.</li>
* </ul>
* <p>If you are allowed to use single-ISP bandwidth, one of the following values is returned:</p>
* <ul>
* <li><strong>ChinaTelecom</strong></li>
* <li><strong>ChinaUnicom</strong></li>
* <li><strong>ChinaMobile</strong></li>
* <li><strong>ChinaTelecom_L2</strong></li>
* <li><strong>ChinaUnicom_L2</strong></li>
* <li><strong>ChinaMobile_L2</strong></li>
* </ul>
* <p>If your services are deployed in China East 1 Finance, <strong>BGP_FinanceCloud</strong> is returned.</p>
*
* <strong>example:</strong>
* <p>BGP</p>
*/
public Builder ISP(String ISP) {
this.ISP = ISP;
return this;
}
/**
* <p>The billing method of the Internet Shared Bandwidth instance. Valid value:</p>
* <p><strong>PostPaid</strong>: pay-as-you-go</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of the Internet Shared Bandwidth instance. Valid value:</p>
* <p><strong>PayByTraffic</strong></p>
*
* <strong>example:</strong>
* <p>PayByBandwidth</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The name of the Internet Shared Bandwidth instance.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The elastic IP addresses (EIPs) that are associated with the Internet Shared Bandwidth instance.</p>
*/
public Builder publicIpAddresses(PublicIpAddresses publicIpAddresses) {
this.publicIpAddresses = publicIpAddresses;
return this;
}
/**
* <p>The percentage of the minimum bandwidth commitment. Only <strong>20</strong> is returned.</p>
* <blockquote>
* <p> This parameter is supported only on the Alibaba Cloud China site.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>20</p>
*/
public Builder ratio(Integer ratio) {
this.ratio = ratio;
return this;
}
/**
* <p>The ID of the region where the Internet Shared Bandwidth instance resides.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The time when the renewal took effect. The time is displayed in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p>
*
* <strong>example:</strong>
* <p>2018-08-30T16:00:00Z</p>
*/
public Builder reservationActiveTime(String reservationActiveTime) {
this.reservationActiveTime = reservationActiveTime;
return this;
}
/**
* <p>The new maximum bandwidth after the configurations are changed. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder reservationBandwidth(String reservationBandwidth) {
this.reservationBandwidth = reservationBandwidth;
return this;
}
/**
* <p>The metering method after the configurations are changed. Valid value:</p>
* <p><strong>PayByTraffic</strong></p>
*
* <strong>example:</strong>
* <p>PayByBandwidth</p>
*/
public Builder reservationInternetChargeType(String reservationInternetChargeType) {
this.reservationInternetChargeType = reservationInternetChargeType;
return this;
}
/**
* <p>The renewal method. Valid values:</p>
* <ul>
* <li><strong>RENEWCHANGE</strong>: renewal with a specification change</li>
* <li><strong>TEMP_UPGRADE</strong>: renewal with a temporary upgrade</li>
* <li><strong>UPGRADE</strong>: renewal with an upgrade</li>
* </ul>
*
* <strong>example:</strong>
* <p>RENEWCHANGE</p>
*/
public Builder reservationOrderType(String reservationOrderType) {
this.reservationOrderType = reservationOrderType;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The editions of Anti-DDoS.</p>
* <ul>
* <li>If this parameter is empty, Anti-DDoS Origin Basic is enabled.</li>
* <li>If <strong>AntiDDoS_Enhanced</strong> is returned, Anti-DDoS Pro/Premium is enabled.</li>
* </ul>
*/
public Builder securityProtectionTypes(SecurityProtectionTypes securityProtectionTypes) {
this.securityProtectionTypes = securityProtectionTypes;
return this;
}
/**
* <p>Indicates whether the resource is created by the service account. Valid values:</p>
* <ul>
* <li><strong>0</strong>: The resource is not created by the service account.</li>
* <li><strong>1</strong>: The resource is created by the service account.</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder serviceManaged(Integer serviceManaged) {
this.serviceManaged = serviceManaged;
return this;
}
/**
* <p>The status of the Internet Shared Bandwidth instance. Valid values:</p>
* <ul>
* <li><strong>Available</strong>: The Internet Shared Bandwidth instance is available.</li>
* <li><strong>Modifying</strong>: The Internet Shared Bandwidth instance is being modified.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The tag that is added to the Internet Shared Bandwidth instance.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
/**
* <p>The zone of the Internet Shared Bandwidth instance. This parameter is returned only when BizType is set to CloudBox. If BizType is set to Default, an empty value is returned.</p>
*
* <strong>example:</strong>
* <p>ap-southeast-1-lzdvn-cb</p>
*/
public Builder zone(String zone) {
this.zone = zone;
return this;
}
public CommonBandwidthPackage build() {
return new CommonBandwidthPackage(this);
}
}
}
/**
*
* {@link DescribeCommonBandwidthPackagesResponseBody} extends {@link TeaModel}
*
* <p>DescribeCommonBandwidthPackagesResponseBody</p>
*/
public static class CommonBandwidthPackages extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CommonBandwidthPackage")
private java.util.List<CommonBandwidthPackage> commonBandwidthPackage;
private CommonBandwidthPackages(Builder builder) {
this.commonBandwidthPackage = builder.commonBandwidthPackage;
}
public static Builder builder() {
return new Builder();
}
public static CommonBandwidthPackages create() {
return builder().build();
}
/**
* @return commonBandwidthPackage
*/
public java.util.List<CommonBandwidthPackage> getCommonBandwidthPackage() {
return this.commonBandwidthPackage;
}
public static final class Builder {
private java.util.List<CommonBandwidthPackage> commonBandwidthPackage;
private Builder() {
}
private Builder(CommonBandwidthPackages model) {
this.commonBandwidthPackage = model.commonBandwidthPackage;
}
/**
* CommonBandwidthPackage.
*/
public Builder commonBandwidthPackage(java.util.List<CommonBandwidthPackage> commonBandwidthPackage) {
this.commonBandwidthPackage = commonBandwidthPackage;
return this;
}
public CommonBandwidthPackages build() {
return new CommonBandwidthPackages(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCustomerGatewayRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCustomerGatewayRequest} extends {@link RequestModel}
*
* <p>DescribeCustomerGatewayRequest</p>
*/
public class DescribeCustomerGatewayRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String customerGatewayId;
@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 DescribeCustomerGatewayRequest(Builder builder) {
super(builder);
this.customerGatewayId = builder.customerGatewayId;
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 DescribeCustomerGatewayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @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<DescribeCustomerGatewayRequest, Builder> {
private String customerGatewayId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeCustomerGatewayRequest request) {
super(request);
this.customerGatewayId = request.customerGatewayId;
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 customer gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cgw-bp1pvpl9r9adju6l5****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.putQueryParameter("CustomerGatewayId", customerGatewayId);
this.customerGatewayId = customerGatewayId;
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 customer 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-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 DescribeCustomerGatewayRequest build() {
return new DescribeCustomerGatewayRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCustomerGatewayResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCustomerGatewayResponse} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewayResponse</p>
*/
public class DescribeCustomerGatewayResponse 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 DescribeCustomerGatewayResponseBody body;
private DescribeCustomerGatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCustomerGatewayResponse 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 DescribeCustomerGatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCustomerGatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCustomerGatewayResponseBody body);
@Override
DescribeCustomerGatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCustomerGatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCustomerGatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCustomerGatewayResponse 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(DescribeCustomerGatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCustomerGatewayResponse build() {
return new DescribeCustomerGatewayResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCustomerGatewayResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCustomerGatewayResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewayResponseBody</p>
*/
public class DescribeCustomerGatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Asn")
private Long asn;
@com.aliyun.core.annotation.NameInMap("AuthKey")
private String authKey;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private DescribeCustomerGatewayResponseBody(Builder builder) {
this.asn = builder.asn;
this.authKey = builder.authKey;
this.createTime = builder.createTime;
this.customerGatewayId = builder.customerGatewayId;
this.description = builder.description;
this.ipAddress = builder.ipAddress;
this.name = builder.name;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCustomerGatewayResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return asn
*/
public Long getAsn() {
return this.asn;
}
/**
* @return authKey
*/
public String getAuthKey() {
return this.authKey;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private Long asn;
private String authKey;
private Long createTime;
private String customerGatewayId;
private String description;
private String ipAddress;
private String name;
private String requestId;
private String resourceGroupId;
private Tags tags;
private Builder() {
}
private Builder(DescribeCustomerGatewayResponseBody model) {
this.asn = model.asn;
this.authKey = model.authKey;
this.createTime = model.createTime;
this.customerGatewayId = model.customerGatewayId;
this.description = model.description;
this.ipAddress = model.ipAddress;
this.name = model.name;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.tags = model.tags;
}
/**
* <p>The autonomous system number (ASN) of the gateway device in the data center.</p>
*
* <strong>example:</strong>
* <p>65535</p>
*/
public Builder asn(Long asn) {
this.asn = asn;
return this;
}
/**
* <p>The authentication key of the Border Gateway Protocol (BGP) routing protocol for the gateway device in the data center.</p>
*
* <strong>example:</strong>
* <p>AuthKey****</p>
*/
public Builder authKey(String authKey) {
this.authKey = authKey;
return this;
}
/**
* <p>The timestamp generated when the customer gateway was created. Unit: milliseconds.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1492747187000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The ID of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>cgw-bp1pvpl9r9adju6l5****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* <p>The description of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The IP address of the gateway device in the data center.</p>
*
* <strong>example:</strong>
* <p>139.32.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The name of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>nametest</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A0457BC9-6C0F-4437-AB9D-FB2EABC1D6A2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group to which the customer gateway belongs.</p>
* <p>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 list of tags added to the customer gateway.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public DescribeCustomerGatewayResponseBody build() {
return new DescribeCustomerGatewayResponseBody(this);
}
}
/**
*
* {@link DescribeCustomerGatewayResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewayResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>TagKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>TagValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeCustomerGatewayResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewayResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCustomerGatewaysRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCustomerGatewaysRequest} extends {@link RequestModel}
*
* <p>DescribeCustomerGatewaysRequest</p>
*/
public class DescribeCustomerGatewaysRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@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("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private DescribeCustomerGatewaysRequest(Builder builder) {
super(builder);
this.customerGatewayId = builder.customerGatewayId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCustomerGatewaysRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder<DescribeCustomerGatewaysRequest, Builder> {
private String customerGatewayId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tag> tag;
private Builder() {
super();
}
private Builder(DescribeCustomerGatewaysRequest request) {
super(request);
this.customerGatewayId = request.customerGatewayId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.tag = request.tag;
}
/**
* <p>The ID of the customer gateway.</p>
* <blockquote>
* <p>If you do not specify a customer gateway ID, the system queries all customer gateways in the current region by default.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cgw-bp1pvpl9r9adju6l5****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.putQueryParameter("CustomerGatewayId", customerGatewayId);
this.customerGatewayId = customerGatewayId;
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 page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region where the customer 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-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the customer gateway belongs.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query the resource group list.</p>
*
* <strong>example:</strong>
* <p>rg-acfmzs372yg****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The tags to be added to the customer gateway.</p>
*/
public Builder tag(java.util.List<Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeCustomerGatewaysRequest build() {
return new DescribeCustomerGatewaysRequest(this);
}
}
/**
*
* {@link DescribeCustomerGatewaysRequest} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysRequest</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the tag. The tag key cannot be an empty string.</p>
* <p>The tag key can be up to 64 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p>
* <p>You can specify at most 20 tag keys at a time.</p>
*
* <strong>example:</strong>
* <p>TagKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the tag.</p>
* <p>The tag value can be up to 128 characters in length. It can be an empty string. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p>
* <p>Each tag key corresponds to one tag value. You can specify at most 20 tag values at a time.</p>
*
* <strong>example:</strong>
* <p>TagValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCustomerGatewaysResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCustomerGatewaysResponse} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysResponse</p>
*/
public class DescribeCustomerGatewaysResponse 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 DescribeCustomerGatewaysResponseBody body;
private DescribeCustomerGatewaysResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeCustomerGatewaysResponse 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 DescribeCustomerGatewaysResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeCustomerGatewaysResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeCustomerGatewaysResponseBody body);
@Override
DescribeCustomerGatewaysResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeCustomerGatewaysResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeCustomerGatewaysResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeCustomerGatewaysResponse 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(DescribeCustomerGatewaysResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeCustomerGatewaysResponse build() {
return new DescribeCustomerGatewaysResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeCustomerGatewaysResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeCustomerGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysResponseBody</p>
*/
public class DescribeCustomerGatewaysResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CustomerGateways")
private CustomerGateways customerGateways;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeCustomerGatewaysResponseBody(Builder builder) {
this.customerGateways = builder.customerGateways;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCustomerGatewaysResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return customerGateways
*/
public CustomerGateways getCustomerGateways() {
return this.customerGateways;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private CustomerGateways customerGateways;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeCustomerGatewaysResponseBody model) {
this.customerGateways = model.customerGateways;
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The information about customer gateways.</p>
*/
public Builder customerGateways(CustomerGateways customerGateways) {
this.customerGateways = customerGateways;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E82612A9-CB90-4D7E-B394-1DB7F6509B29</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of returned entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeCustomerGatewaysResponseBody build() {
return new DescribeCustomerGatewaysResponseBody(this);
}
}
/**
*
* {@link DescribeCustomerGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysResponseBody</p>
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Tag model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The key of the tag.</p>
*
* <strong>example:</strong>
* <p>TagKey</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the tag.</p>
*
* <strong>example:</strong>
* <p>TagValue</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeCustomerGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysResponseBody</p>
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List<Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List<Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List<Tag> tag;
private Builder() {
}
private Builder(Tags model) {
this.tag = model.tag;
}
/**
* Tag.
*/
public Builder tag(java.util.List<Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeCustomerGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysResponseBody</p>
*/
public static class CustomerGateway extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Asn")
private Long asn;
@com.aliyun.core.annotation.NameInMap("AuthKey")
private String authKey;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private Long createTime;
@com.aliyun.core.annotation.NameInMap("CustomerGatewayId")
private String customerGatewayId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private CustomerGateway(Builder builder) {
this.asn = builder.asn;
this.authKey = builder.authKey;
this.createTime = builder.createTime;
this.customerGatewayId = builder.customerGatewayId;
this.description = builder.description;
this.ipAddress = builder.ipAddress;
this.name = builder.name;
this.resourceGroupId = builder.resourceGroupId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static CustomerGateway create() {
return builder().build();
}
/**
* @return asn
*/
public Long getAsn() {
return this.asn;
}
/**
* @return authKey
*/
public String getAuthKey() {
return this.authKey;
}
/**
* @return createTime
*/
public Long getCreateTime() {
return this.createTime;
}
/**
* @return customerGatewayId
*/
public String getCustomerGatewayId() {
return this.customerGatewayId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private Long asn;
private String authKey;
private Long createTime;
private String customerGatewayId;
private String description;
private String ipAddress;
private String name;
private String resourceGroupId;
private Tags tags;
private Builder() {
}
private Builder(CustomerGateway model) {
this.asn = model.asn;
this.authKey = model.authKey;
this.createTime = model.createTime;
this.customerGatewayId = model.customerGatewayId;
this.description = model.description;
this.ipAddress = model.ipAddress;
this.name = model.name;
this.resourceGroupId = model.resourceGroupId;
this.tags = model.tags;
}
/**
* <p>The autonomous system number (ASN) of the gateway device in the data center.</p>
*
* <strong>example:</strong>
* <p>65530</p>
*/
public Builder asn(Long asn) {
this.asn = asn;
return this;
}
/**
* <p>The authentication key that is used to connect to the gateway device in the data center by using Border Gateway Protocol (BGP).</p>
*
* <strong>example:</strong>
* <p>AuthKey****</p>
*/
public Builder authKey(String authKey) {
this.authKey = authKey;
return this;
}
/**
* <p>The time when the customer gateway was created. Unit: millisecond.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1492747187000</p>
*/
public Builder createTime(Long createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The customer gateway ID.</p>
*
* <strong>example:</strong>
* <p>cgw-bp1pvpl9r9adju6l5****</p>
*/
public Builder customerGatewayId(String customerGatewayId) {
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* <p>The description of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>desctest</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The IP address of the gateway device in the data center.</p>
*
* <strong>example:</strong>
* <p>139.32.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The name of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>nametest</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the resource group to which the customer gateway belongs.</p>
* <p>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 tags that are added to the customer gateway.</p>
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public CustomerGateway build() {
return new CustomerGateway(this);
}
}
}
/**
*
* {@link DescribeCustomerGatewaysResponseBody} extends {@link TeaModel}
*
* <p>DescribeCustomerGatewaysResponseBody</p>
*/
public static class CustomerGateways extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CustomerGateway")
private java.util.List<CustomerGateway> customerGateway;
private CustomerGateways(Builder builder) {
this.customerGateway = builder.customerGateway;
}
public static Builder builder() {
return new Builder();
}
public static CustomerGateways create() {
return builder().build();
}
/**
* @return customerGateway
*/
public java.util.List<CustomerGateway> getCustomerGateway() {
return this.customerGateway;
}
public static final class Builder {
private java.util.List<CustomerGateway> customerGateway;
private Builder() {
}
private Builder(CustomerGateways model) {
this.customerGateway = model.customerGateway;
}
/**
* CustomerGateway.
*/
public Builder customerGateway(java.util.List<CustomerGateway> customerGateway) {
this.customerGateway = customerGateway;
return this;
}
public CustomerGateways build() {
return new CustomerGateways(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEcGrantRelationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEcGrantRelationRequest} extends {@link RequestModel}
*
* <p>DescribeEcGrantRelationRequest</p>
*/
public class DescribeEcGrantRelationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceType")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VbrRegionNo")
private String vbrRegionNo;
private DescribeEcGrantRelationRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.vbrRegionNo = builder.vbrRegionNo;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEcGrantRelationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return vbrRegionNo
*/
public String getVbrRegionNo() {
return this.vbrRegionNo;
}
public static final class Builder extends Request.Builder<DescribeEcGrantRelationRequest, Builder> {
private String instanceId;
private String instanceType;
private Long pageNumber;
private Long pageSize;
private String vbrRegionNo;
private Builder() {
super();
}
private Builder(DescribeEcGrantRelationRequest request) {
super(request);
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.vbrRegionNo = request.vbrRegionNo;
}
/**
* <p>The ID of the instance.</p>
* <ul>
* <li>If you set <strong>InstanceType</strong> to <strong>VBR</strong>, specify a VBR ID.</li>
* <li>If you set <strong>InstanceType</strong> to <strong>VPC</strong>, specify a VPC ID.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vbr-bp12mw1f8k3jgygk9****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of instance. Valid values:</p>
* <ul>
* <li><strong>VBR</strong>: queries the permissions that are granted to a VBR.</li>
* <li><strong>VPC</strong>: queries the permissions that are granted from a VPC.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>VBR</p>
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
return this;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Long pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Maximum value: <strong>50</strong>. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the region where the instance is deployed.</p>
* <ul>
* <li>If <strong>InstanceType</strong> is set to <strong>VBR</strong>, this parameter is required.</li>
* <li>If <strong>InstanceType</strong> is set to <strong>VPC</strong>, you can ignore this parameter.</li>
* </ul>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder vbrRegionNo(String vbrRegionNo) {
this.putQueryParameter("VbrRegionNo", vbrRegionNo);
this.vbrRegionNo = vbrRegionNo;
return this;
}
@Override
public DescribeEcGrantRelationRequest build() {
return new DescribeEcGrantRelationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEcGrantRelationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEcGrantRelationResponse} extends {@link TeaModel}
*
* <p>DescribeEcGrantRelationResponse</p>
*/
public class DescribeEcGrantRelationResponse 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 DescribeEcGrantRelationResponseBody body;
private DescribeEcGrantRelationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeEcGrantRelationResponse 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 DescribeEcGrantRelationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeEcGrantRelationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeEcGrantRelationResponseBody body);
@Override
DescribeEcGrantRelationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeEcGrantRelationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeEcGrantRelationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeEcGrantRelationResponse 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(DescribeEcGrantRelationResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeEcGrantRelationResponse build() {
return new DescribeEcGrantRelationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428 | java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeEcGrantRelationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeEcGrantRelationResponseBody} extends {@link TeaModel}
*
* <p>DescribeEcGrantRelationResponseBody</p>
*/
public class DescribeEcGrantRelationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("EcGrantRelations")
private java.util.List<EcGrantRelations> ecGrantRelations;
@com.aliyun.core.annotation.NameInMap("Page")
private Integer page;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeEcGrantRelationResponseBody(Builder builder) {
this.count = builder.count;
this.ecGrantRelations = builder.ecGrantRelations;
this.page = builder.page;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEcGrantRelationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return ecGrantRelations
*/
public java.util.List<EcGrantRelations> getEcGrantRelations() {
return this.ecGrantRelations;
}
/**
* @return page
*/
public Integer getPage() {
return this.page;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Integer count;
private java.util.List<EcGrantRelations> ecGrantRelations;
private Integer page;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private Builder() {
}
private Builder(DescribeEcGrantRelationResponseBody model) {
this.count = model.count;
this.ecGrantRelations = model.ecGrantRelations;
this.page = model.page;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The query results.</p>
*/
public Builder ecGrantRelations(java.util.List<EcGrantRelations> ecGrantRelations) {
this.ecGrantRelations = ecGrantRelations;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder page(Integer page) {
this.page = page;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>E6E90F6B-2B41-5AAF-ABEB-236ADBAAD91D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeEcGrantRelationResponseBody build() {
return new DescribeEcGrantRelationResponseBody(this);
}
}
/**
*
* {@link DescribeEcGrantRelationResponseBody} extends {@link TeaModel}
*
* <p>DescribeEcGrantRelationResponseBody</p>
*/
public static class EcGrantRelations extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AliUid")
private Long aliUid;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("GrantType")
private String grantType;
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.NameInMap("InstanceName")
private String instanceName;
@com.aliyun.core.annotation.NameInMap("InstanceRouterId")
private String instanceRouterId;
@com.aliyun.core.annotation.NameInMap("RegionNo")
private String regionNo;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VbrInstanceId")
private String vbrInstanceId;
@com.aliyun.core.annotation.NameInMap("VbrOwnerUid")
private Long vbrOwnerUid;
@com.aliyun.core.annotation.NameInMap("VbrRegionNo")
private String vbrRegionNo;
private EcGrantRelations(Builder builder) {
this.aliUid = builder.aliUid;
this.gmtCreate = builder.gmtCreate;
this.grantType = builder.grantType;
this.instanceId = builder.instanceId;
this.instanceName = builder.instanceName;
this.instanceRouterId = builder.instanceRouterId;
this.regionNo = builder.regionNo;
this.status = builder.status;
this.vbrInstanceId = builder.vbrInstanceId;
this.vbrOwnerUid = builder.vbrOwnerUid;
this.vbrRegionNo = builder.vbrRegionNo;
}
public static Builder builder() {
return new Builder();
}
public static EcGrantRelations create() {
return builder().build();
}
/**
* @return aliUid
*/
public Long getAliUid() {
return this.aliUid;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return grantType
*/
public String getGrantType() {
return this.grantType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @return instanceRouterId
*/
public String getInstanceRouterId() {
return this.instanceRouterId;
}
/**
* @return regionNo
*/
public String getRegionNo() {
return this.regionNo;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vbrInstanceId
*/
public String getVbrInstanceId() {
return this.vbrInstanceId;
}
/**
* @return vbrOwnerUid
*/
public Long getVbrOwnerUid() {
return this.vbrOwnerUid;
}
/**
* @return vbrRegionNo
*/
public String getVbrRegionNo() {
return this.vbrRegionNo;
}
public static final class Builder {
private Long aliUid;
private String gmtCreate;
private String grantType;
private String instanceId;
private String instanceName;
private String instanceRouterId;
private String regionNo;
private String status;
private String vbrInstanceId;
private Long vbrOwnerUid;
private String vbrRegionNo;
private Builder() {
}
private Builder(EcGrantRelations model) {
this.aliUid = model.aliUid;
this.gmtCreate = model.gmtCreate;
this.grantType = model.grantType;
this.instanceId = model.instanceId;
this.instanceName = model.instanceName;
this.instanceRouterId = model.instanceRouterId;
this.regionNo = model.regionNo;
this.status = model.status;
this.vbrInstanceId = model.vbrInstanceId;
this.vbrOwnerUid = model.vbrOwnerUid;
this.vbrRegionNo = model.vbrRegionNo;
}
/**
* <p>The ID of the Alibaba Cloud account to which the VPC belongs.</p>
*
* <strong>example:</strong>
* <p>1250123456123456</p>
*/
public Builder aliUid(Long aliUid) {
this.aliUid = aliUid;
return this;
}
/**
* <p>The time when permissions on the VPC were granted to the VBR.</p>
*
* <strong>example:</strong>
* <p>2022-09-02T11:46Z</p>
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* <p>The VBRs that have permissions on the VPC. Valid values:</p>
* <ul>
* <li><strong>All</strong>: VBRs that reside in the specified region and belong to the specified Alibaba Cloud account all have permissions on the VPC.</li>
* <li><strong>Specify</strong>: Only the specified VBR has permissions on the VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder grantType(String grantType) {
this.grantType = grantType;
return this;
}
/**
* <p>The ID of the VPC.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1brjuegjc88v3u9****</p>
*/
public Builder instanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* <p>The name of the VPC.</p>
*
* <strong>example:</strong>
* <p>VPCname</p>
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* <p>The ID of the vRouter.</p>
*
* <strong>example:</strong>
* <p>vrt-bp1i0yzgjd8ra05ec****</p>
*/
public Builder instanceRouterId(String instanceRouterId) {
this.instanceRouterId = instanceRouterId;
return this;
}
/**
* <p>The ID of the region where the VPC is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionNo(String regionNo) {
this.regionNo = regionNo;
return this;
}
/**
* <p>The query result. Valid values:</p>
* <ul>
* <li><strong>Created</strong>: The VBR has permissions on the VPC.</li>
* <li><strong>Deleted</strong>: The VBR does not have permissions on the VPC.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Created</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The ID of the VBR.</p>
*
* <strong>example:</strong>
* <p>vbr-m5ex0xf63xk8s5bob****</p>
*/
public Builder vbrInstanceId(String vbrInstanceId) {
this.vbrInstanceId = vbrInstanceId;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the VBR belongs.</p>
*
* <strong>example:</strong>
* <p>1210123456123456</p>
*/
public Builder vbrOwnerUid(Long vbrOwnerUid) {
this.vbrOwnerUid = vbrOwnerUid;
return this;
}
/**
* <p>The ID of the region where the VBR is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder vbrRegionNo(String vbrRegionNo) {
this.vbrRegionNo = vbrRegionNo;
return this;
}
public EcGrantRelations build() {
return new EcGrantRelations(this);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.