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/DescribeRouteTablesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouteTablesResponse} extends {@link TeaModel} * * <p>DescribeRouteTablesResponse</p> */ public class DescribeRouteTablesResponse 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 DescribeRouteTablesResponseBody body; private DescribeRouteTablesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeRouteTablesResponse 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 DescribeRouteTablesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeRouteTablesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeRouteTablesResponseBody body); @Override DescribeRouteTablesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeRouteTablesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeRouteTablesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeRouteTablesResponse 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(DescribeRouteTablesResponseBody body) { this.body = body; return this; } @Override public DescribeRouteTablesResponse build() { return new DescribeRouteTablesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouteTablesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public class DescribeRouteTablesResponseBody extends TeaModel { @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("RouteTables") private RouteTables routeTables; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeRouteTablesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.routeTables = builder.routeTables; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeRouteTablesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 routeTables */ public RouteTables getRouteTables() { return this.routeTables; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private RouteTables routeTables; private Integer totalCount; private Builder() { } private Builder(DescribeRouteTablesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.routeTables = model.routeTables; this.totalCount = model.totalCount; } /** * <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>DC668356-BCB4-42FD-9BC3-FA2B2E04B634</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The detailed information about the route tables.</p> */ public Builder routeTables(RouteTables routeTables) { this.routeTables = routeTables; 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 DescribeRouteTablesResponseBody build() { return new DescribeRouteTablesResponseBody(this); } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class NextHop extends TeaModel { @com.aliyun.core.annotation.NameInMap("Enabled") private Integer enabled; @com.aliyun.core.annotation.NameInMap("NextHopId") private String nextHopId; @com.aliyun.core.annotation.NameInMap("NextHopType") private String nextHopType; @com.aliyun.core.annotation.NameInMap("Weight") private Integer weight; private NextHop(Builder builder) { this.enabled = builder.enabled; this.nextHopId = builder.nextHopId; this.nextHopType = builder.nextHopType; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static NextHop create() { return builder().build(); } /** * @return enabled */ public Integer getEnabled() { return this.enabled; } /** * @return nextHopId */ public String getNextHopId() { return this.nextHopId; } /** * @return nextHopType */ public String getNextHopType() { return this.nextHopType; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder { private Integer enabled; private String nextHopId; private String nextHopType; private Integer weight; private Builder() { } private Builder(NextHop model) { this.enabled = model.enabled; this.nextHopId = model.nextHopId; this.nextHopType = model.nextHopType; this.weight = model.weight; } /** * <p>Indicates whether the route is available. Valid values:</p> * <ul> * <li><strong>0</strong>: unavailable</li> * <li><strong>1</strong>: available</li> * </ul> * * <strong>example:</strong> * <p>0</p> */ public Builder enabled(Integer enabled) { this.enabled = enabled; return this; } /** * <p>The ID of the next hop.</p> * * <strong>example:</strong> * <p>ri-2zeo3xzyf38r4urzdpvqw</p> */ public Builder nextHopId(String nextHopId) { this.nextHopId = nextHopId; return this; } /** * <p>The type of the next hop. Valid values:</p> * <ul> * <li><strong>Instance</strong>: an ECS instance</li> * <li><strong>HaVip</strong>: an HaVip</li> * <li><strong>VpnGateway</strong>: a VPN gateway</li> * <li><strong>NatGateway</strong>: a NAT gateway</li> * <li><strong>NetworkInterface</strong>: a secondary ENI</li> * <li><strong>RouterInterface</strong>: a router interface</li> * <li><strong>IPv6Gateway</strong>: an IPv6 gateway</li> * <li><strong>Attachment</strong>: a transit router</li> * </ul> * * <strong>example:</strong> * <p>HaVip</p> */ public Builder nextHopType(String nextHopType) { this.nextHopType = nextHopType; return this; } /** * <p>The weight of the route.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder weight(Integer weight) { this.weight = weight; return this; } public NextHop build() { return new NextHop(this); } } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class NextHops extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextHop") private java.util.List<NextHop> nextHop; private NextHops(Builder builder) { this.nextHop = builder.nextHop; } public static Builder builder() { return new Builder(); } public static NextHops create() { return builder().build(); } /** * @return nextHop */ public java.util.List<NextHop> getNextHop() { return this.nextHop; } public static final class Builder { private java.util.List<NextHop> nextHop; private Builder() { } private Builder(NextHops model) { this.nextHop = model.nextHop; } /** * NextHop. */ public Builder nextHop(java.util.List<NextHop> nextHop) { this.nextHop = nextHop; return this; } public NextHops build() { return new NextHops(this); } } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class RouteEntry extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") private String destinationCidrBlock; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("NextHopType") private String nextHopType; @com.aliyun.core.annotation.NameInMap("NextHops") private NextHops nextHops; @com.aliyun.core.annotation.NameInMap("RouteEntryId") private String routeEntryId; @com.aliyun.core.annotation.NameInMap("RouteEntryName") private String routeEntryName; @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Type") private String type; private RouteEntry(Builder builder) { this.description = builder.description; this.destinationCidrBlock = builder.destinationCidrBlock; this.instanceId = builder.instanceId; this.nextHopType = builder.nextHopType; this.nextHops = builder.nextHops; this.routeEntryId = builder.routeEntryId; this.routeEntryName = builder.routeEntryName; this.routeTableId = builder.routeTableId; this.status = builder.status; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static RouteEntry create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return nextHopType */ public String getNextHopType() { return this.nextHopType; } /** * @return nextHops */ public NextHops getNextHops() { return this.nextHops; } /** * @return routeEntryId */ public String getRouteEntryId() { return this.routeEntryId; } /** * @return routeEntryName */ public String getRouteEntryName() { return this.routeEntryName; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String description; private String destinationCidrBlock; private String instanceId; private String nextHopType; private NextHops nextHops; private String routeEntryId; private String routeEntryName; private String routeTableId; private String status; private String type; private Builder() { } private Builder(RouteEntry model) { this.description = model.description; this.destinationCidrBlock = model.destinationCidrBlock; this.instanceId = model.instanceId; this.nextHopType = model.nextHopType; this.nextHops = model.nextHops; this.routeEntryId = model.routeEntryId; this.routeEntryName = model.routeEntryName; this.routeTableId = model.routeTableId; this.status = model.status; this.type = model.type; } /** * <p>The description of the route. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>RouteEntryDescription</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The destination CIDR block of the route. The destination CIDR block supports IPv4 and IPv6. Make sure that the destination CIDR block meets the following requirements:</p> * <ul> * <li>The destination CIDR block is not 100.64.0.0/10 or a subset of 100.64.0.0/10.</li> * <li>The destination CIDR block of each route in the route table is unique.</li> * </ul> * * <strong>example:</strong> * <p>192.168.0.1/24</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>The ID of the instance associated with the next hop.</p> * * <strong>example:</strong> * <p>ri-2zeo3xzyf38r4urzd****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The type of the next hop. Valid values:</p> * <ul> * <li><strong>Instance</strong> (default): an Elastic Compute Service (ECS) instance</li> * <li><strong>HaVip</strong>: a high-availability virtual IP address (HaVip).</li> * <li><strong>VpnGateway</strong>: a VPN gateway</li> * <li><strong>NatGateway</strong>: a NAT gateway</li> * <li><strong>NetworkInterface</strong>: a secondary elastic network interface (ENI)</li> * <li><strong>RouterInterface</strong>: a router interface</li> * <li><strong>IPv6Gateway</strong>: an IPv6 gateway</li> * <li><strong>Attachment</strong>: a transit router</li> * </ul> * * <strong>example:</strong> * <p>local</p> */ public Builder nextHopType(String nextHopType) { this.nextHopType = nextHopType; return this; } /** * <p>The information about the next hop.</p> */ public Builder nextHops(NextHops nextHops) { this.nextHops = nextHops; return this; } /** * <p>The ID of the route.</p> * * <strong>example:</strong> * <p>rte-bp1mnnr2al0naomnpxxx</p> */ public Builder routeEntryId(String routeEntryId) { this.routeEntryId = routeEntryId; return this; } /** * <p>The route name.</p> * <p>The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-).</p> * * <strong>example:</strong> * <p>test</p> */ public Builder routeEntryName(String routeEntryName) { this.routeEntryName = routeEntryName; return this; } /** * <p>The route table ID.</p> * * <strong>example:</strong> * <p>vtb-bp145q7glnuzdvzu2****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } /** * <p>The route status. Valid values:</p> * <ul> * <li><strong>Pending</strong></li> * <li><strong>Available</strong></li> * <li><strong>Modifying</strong></li> * </ul> * * <strong>example:</strong> * <p>Pending</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The route type. Valid values:</p> * <ul> * <li><strong>Custom</strong></li> * <li><strong>System</strong></li> * <li><strong>BGP</strong></li> * <li><strong>CEN</strong></li> * </ul> * * <strong>example:</strong> * <p>System</p> */ public Builder type(String type) { this.type = type; return this; } public RouteEntry build() { return new RouteEntry(this); } } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class RouteEntrys extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteEntry") private java.util.List<RouteEntry> routeEntry; private RouteEntrys(Builder builder) { this.routeEntry = builder.routeEntry; } public static Builder builder() { return new Builder(); } public static RouteEntrys create() { return builder().build(); } /** * @return routeEntry */ public java.util.List<RouteEntry> getRouteEntry() { return this.routeEntry; } public static final class Builder { private java.util.List<RouteEntry> routeEntry; private Builder() { } private Builder(RouteEntrys model) { this.routeEntry = model.routeEntry; } /** * RouteEntry. */ public Builder routeEntry(java.util.List<RouteEntry> routeEntry) { this.routeEntry = routeEntry; return this; } public RouteEntrys build() { return new RouteEntrys(this); } } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class VSwitchIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("VSwitchId") private java.util.List<String> vSwitchId; private VSwitchIds(Builder builder) { this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static VSwitchIds create() { return builder().build(); } /** * @return vSwitchId */ public java.util.List<String> getVSwitchId() { return this.vSwitchId; } public static final class Builder { private java.util.List<String> vSwitchId; private Builder() { } private Builder(VSwitchIds model) { this.vSwitchId = model.vSwitchId; } /** * VSwitchId. */ public Builder vSwitchId(java.util.List<String> vSwitchId) { this.vSwitchId = vSwitchId; return this; } public VSwitchIds build() { return new VSwitchIds(this); } } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class RouteTable extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RouteEntrys") private RouteEntrys routeEntrys; @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; @com.aliyun.core.annotation.NameInMap("RouteTableType") private String routeTableType; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("VRouterId") private String vRouterId; @com.aliyun.core.annotation.NameInMap("VSwitchIds") private VSwitchIds vSwitchIds; private RouteTable(Builder builder) { this.creationTime = builder.creationTime; this.resourceGroupId = builder.resourceGroupId; this.routeEntrys = builder.routeEntrys; this.routeTableId = builder.routeTableId; this.routeTableType = builder.routeTableType; this.status = builder.status; this.vRouterId = builder.vRouterId; this.vSwitchIds = builder.vSwitchIds; } public static Builder builder() { return new Builder(); } public static RouteTable create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return routeEntrys */ public RouteEntrys getRouteEntrys() { return this.routeEntrys; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return routeTableType */ public String getRouteTableType() { return this.routeTableType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return vRouterId */ public String getVRouterId() { return this.vRouterId; } /** * @return vSwitchIds */ public VSwitchIds getVSwitchIds() { return this.vSwitchIds; } public static final class Builder { private String creationTime; private String resourceGroupId; private RouteEntrys routeEntrys; private String routeTableId; private String routeTableType; private String status; private String vRouterId; private VSwitchIds vSwitchIds; private Builder() { } private Builder(RouteTable model) { this.creationTime = model.creationTime; this.resourceGroupId = model.resourceGroupId; this.routeEntrys = model.routeEntrys; this.routeTableId = model.routeTableId; this.routeTableType = model.routeTableType; this.status = model.status; this.vRouterId = model.vRouterId; this.vSwitchIds = model.vSwitchIds; } /** * <p>The time when the route table was created.</p> * <p>The time is displayed in the <code>YYYY-MM-DDThh:mm:ssZ</code> format in UTC.</p> * * <strong>example:</strong> * <p>2017-08-22T10:40:25Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The ID of the resource group to which the route table belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The information about the route.</p> */ public Builder routeEntrys(RouteEntrys routeEntrys) { this.routeEntrys = routeEntrys; return this; } /** * <p>The ID of the route table.</p> * * <strong>example:</strong> * <p>vtb-bp145q7glnuzdvzu2****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } /** * <p>The type of the route table. Valid values:</p> * <ul> * <li><strong>Custom</strong></li> * <li><strong>System</strong></li> * </ul> * * <strong>example:</strong> * <p>System</p> */ public Builder routeTableType(String routeTableType) { this.routeTableType = routeTableType; return this; } /** * <p>The status of the route table. Valid values:</p> * <ul> * <li><strong>Pending</strong></li> * <li><strong>Available</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The vRouter ID.</p> * * <strong>example:</strong> * <p>vrt-bp1lhl0taikrteen8****</p> */ public Builder vRouterId(String vRouterId) { this.vRouterId = vRouterId; return this; } /** * <p>The vSwitch ID.</p> */ public Builder vSwitchIds(VSwitchIds vSwitchIds) { this.vSwitchIds = vSwitchIds; return this; } public RouteTable build() { return new RouteTable(this); } } } /** * * {@link DescribeRouteTablesResponseBody} extends {@link TeaModel} * * <p>DescribeRouteTablesResponseBody</p> */ public static class RouteTables extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteTable") private java.util.List<RouteTable> routeTable; private RouteTables(Builder builder) { this.routeTable = builder.routeTable; } public static Builder builder() { return new Builder(); } public static RouteTables create() { return builder().build(); } /** * @return routeTable */ public java.util.List<RouteTable> getRouteTable() { return this.routeTable; } public static final class Builder { private java.util.List<RouteTable> routeTable; private Builder() { } private Builder(RouteTables model) { this.routeTable = model.routeTable; } /** * RouteTable. */ public Builder routeTable(java.util.List<RouteTable> routeTable) { this.routeTable = routeTable; return this; } public RouteTables build() { return new RouteTables(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouterInterfaceAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouterInterfaceAttributeRequest} extends {@link RequestModel} * * <p>DescribeRouterInterfaceAttributeRequest</p> */ public class DescribeRouterInterfaceAttributeRequest 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("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 DescribeRouterInterfaceAttributeRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; 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 DescribeRouterInterfaceAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @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<DescribeRouterInterfaceAttributeRequest, Builder> { private String instanceId; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DescribeRouterInterfaceAttributeRequest request) { super(request); this.instanceId = request.instanceId; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the router interface.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ri-m5egfc10sednwk2yt****</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>The ID of the region to which the router interface belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-qingdao</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public DescribeRouterInterfaceAttributeRequest build() { return new DescribeRouterInterfaceAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouterInterfaceAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouterInterfaceAttributeResponse} extends {@link TeaModel} * * <p>DescribeRouterInterfaceAttributeResponse</p> */ public class DescribeRouterInterfaceAttributeResponse 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 DescribeRouterInterfaceAttributeResponseBody body; private DescribeRouterInterfaceAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeRouterInterfaceAttributeResponse 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 DescribeRouterInterfaceAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeRouterInterfaceAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeRouterInterfaceAttributeResponseBody body); @Override DescribeRouterInterfaceAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeRouterInterfaceAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeRouterInterfaceAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeRouterInterfaceAttributeResponse 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(DescribeRouterInterfaceAttributeResponseBody body) { this.body = body; return this; } @Override public DescribeRouterInterfaceAttributeResponse build() { return new DescribeRouterInterfaceAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouterInterfaceAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouterInterfaceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfaceAttributeResponseBody</p> */ public class DescribeRouterInterfaceAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessPointId") private String accessPointId; @com.aliyun.core.annotation.NameInMap("Bandwidth") private Integer bandwidth; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("ConnectedTime") private String connectedTime; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("CrossBorder") private Boolean crossBorder; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("FastLinkMode") private String fastLinkMode; @com.aliyun.core.annotation.NameInMap("GmtModified") private String gmtModified; @com.aliyun.core.annotation.NameInMap("HasReservationData") private String hasReservationData; @com.aliyun.core.annotation.NameInMap("HcRate") private Integer hcRate; @com.aliyun.core.annotation.NameInMap("HcThreshold") private Integer hcThreshold; @com.aliyun.core.annotation.NameInMap("HealthCheckSourceIp") private String healthCheckSourceIp; @com.aliyun.core.annotation.NameInMap("HealthCheckStatus") private String healthCheckStatus; @com.aliyun.core.annotation.NameInMap("HealthCheckTargetIp") private String healthCheckTargetIp; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("OppositeAccessPointId") private String oppositeAccessPointId; @com.aliyun.core.annotation.NameInMap("OppositeBandwidth") private Integer oppositeBandwidth; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceBusinessStatus") private String oppositeInterfaceBusinessStatus; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceId") private String oppositeInterfaceId; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceOwnerId") private String oppositeInterfaceOwnerId; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceSpec") private String oppositeInterfaceSpec; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceStatus") private String oppositeInterfaceStatus; @com.aliyun.core.annotation.NameInMap("OppositeRegionId") private String oppositeRegionId; @com.aliyun.core.annotation.NameInMap("OppositeRouterId") private String oppositeRouterId; @com.aliyun.core.annotation.NameInMap("OppositeRouterType") private String oppositeRouterType; @com.aliyun.core.annotation.NameInMap("OppositeVpcInstanceId") private String oppositeVpcInstanceId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @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("Role") private String role; @com.aliyun.core.annotation.NameInMap("RouterId") private String routerId; @com.aliyun.core.annotation.NameInMap("RouterInterfaceId") private String routerInterfaceId; @com.aliyun.core.annotation.NameInMap("RouterType") private String routerType; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Success") private Boolean success; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VpcInstanceId") private String vpcInstanceId; private DescribeRouterInterfaceAttributeResponseBody(Builder builder) { this.accessPointId = builder.accessPointId; this.bandwidth = builder.bandwidth; this.businessStatus = builder.businessStatus; this.chargeType = builder.chargeType; this.code = builder.code; this.connectedTime = builder.connectedTime; this.creationTime = builder.creationTime; this.crossBorder = builder.crossBorder; this.description = builder.description; this.endTime = builder.endTime; this.fastLinkMode = builder.fastLinkMode; this.gmtModified = builder.gmtModified; this.hasReservationData = builder.hasReservationData; this.hcRate = builder.hcRate; this.hcThreshold = builder.hcThreshold; this.healthCheckSourceIp = builder.healthCheckSourceIp; this.healthCheckStatus = builder.healthCheckStatus; this.healthCheckTargetIp = builder.healthCheckTargetIp; this.message = builder.message; this.name = builder.name; this.oppositeAccessPointId = builder.oppositeAccessPointId; this.oppositeBandwidth = builder.oppositeBandwidth; this.oppositeInterfaceBusinessStatus = builder.oppositeInterfaceBusinessStatus; this.oppositeInterfaceId = builder.oppositeInterfaceId; this.oppositeInterfaceOwnerId = builder.oppositeInterfaceOwnerId; this.oppositeInterfaceSpec = builder.oppositeInterfaceSpec; this.oppositeInterfaceStatus = builder.oppositeInterfaceStatus; this.oppositeRegionId = builder.oppositeRegionId; this.oppositeRouterId = builder.oppositeRouterId; this.oppositeRouterType = builder.oppositeRouterType; this.oppositeVpcInstanceId = builder.oppositeVpcInstanceId; this.requestId = builder.requestId; this.reservationActiveTime = builder.reservationActiveTime; this.reservationBandwidth = builder.reservationBandwidth; this.reservationInternetChargeType = builder.reservationInternetChargeType; this.reservationOrderType = builder.reservationOrderType; this.resourceGroupId = builder.resourceGroupId; this.role = builder.role; this.routerId = builder.routerId; this.routerInterfaceId = builder.routerInterfaceId; this.routerType = builder.routerType; this.spec = builder.spec; this.status = builder.status; this.success = builder.success; this.tags = builder.tags; this.vpcInstanceId = builder.vpcInstanceId; } public static Builder builder() { return new Builder(); } public static DescribeRouterInterfaceAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return accessPointId */ public String getAccessPointId() { return this.accessPointId; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return code */ public String getCode() { return this.code; } /** * @return connectedTime */ public String getConnectedTime() { return this.connectedTime; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return crossBorder */ public Boolean getCrossBorder() { return this.crossBorder; } /** * @return description */ public String getDescription() { return this.description; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return fastLinkMode */ public String getFastLinkMode() { return this.fastLinkMode; } /** * @return gmtModified */ public String getGmtModified() { return this.gmtModified; } /** * @return hasReservationData */ public String getHasReservationData() { return this.hasReservationData; } /** * @return hcRate */ public Integer getHcRate() { return this.hcRate; } /** * @return hcThreshold */ public Integer getHcThreshold() { return this.hcThreshold; } /** * @return healthCheckSourceIp */ public String getHealthCheckSourceIp() { return this.healthCheckSourceIp; } /** * @return healthCheckStatus */ public String getHealthCheckStatus() { return this.healthCheckStatus; } /** * @return healthCheckTargetIp */ public String getHealthCheckTargetIp() { return this.healthCheckTargetIp; } /** * @return message */ public String getMessage() { return this.message; } /** * @return name */ public String getName() { return this.name; } /** * @return oppositeAccessPointId */ public String getOppositeAccessPointId() { return this.oppositeAccessPointId; } /** * @return oppositeBandwidth */ public Integer getOppositeBandwidth() { return this.oppositeBandwidth; } /** * @return oppositeInterfaceBusinessStatus */ public String getOppositeInterfaceBusinessStatus() { return this.oppositeInterfaceBusinessStatus; } /** * @return oppositeInterfaceId */ public String getOppositeInterfaceId() { return this.oppositeInterfaceId; } /** * @return oppositeInterfaceOwnerId */ public String getOppositeInterfaceOwnerId() { return this.oppositeInterfaceOwnerId; } /** * @return oppositeInterfaceSpec */ public String getOppositeInterfaceSpec() { return this.oppositeInterfaceSpec; } /** * @return oppositeInterfaceStatus */ public String getOppositeInterfaceStatus() { return this.oppositeInterfaceStatus; } /** * @return oppositeRegionId */ public String getOppositeRegionId() { return this.oppositeRegionId; } /** * @return oppositeRouterId */ public String getOppositeRouterId() { return this.oppositeRouterId; } /** * @return oppositeRouterType */ public String getOppositeRouterType() { return this.oppositeRouterType; } /** * @return oppositeVpcInstanceId */ public String getOppositeVpcInstanceId() { return this.oppositeVpcInstanceId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @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 role */ public String getRole() { return this.role; } /** * @return routerId */ public String getRouterId() { return this.routerId; } /** * @return routerInterfaceId */ public String getRouterInterfaceId() { return this.routerInterfaceId; } /** * @return routerType */ public String getRouterType() { return this.routerType; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return status */ public String getStatus() { return this.status; } /** * @return success */ public Boolean getSuccess() { return this.success; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vpcInstanceId */ public String getVpcInstanceId() { return this.vpcInstanceId; } public static final class Builder { private String accessPointId; private Integer bandwidth; private String businessStatus; private String chargeType; private String code; private String connectedTime; private String creationTime; private Boolean crossBorder; private String description; private String endTime; private String fastLinkMode; private String gmtModified; private String hasReservationData; private Integer hcRate; private Integer hcThreshold; private String healthCheckSourceIp; private String healthCheckStatus; private String healthCheckTargetIp; private String message; private String name; private String oppositeAccessPointId; private Integer oppositeBandwidth; private String oppositeInterfaceBusinessStatus; private String oppositeInterfaceId; private String oppositeInterfaceOwnerId; private String oppositeInterfaceSpec; private String oppositeInterfaceStatus; private String oppositeRegionId; private String oppositeRouterId; private String oppositeRouterType; private String oppositeVpcInstanceId; private String requestId; private String reservationActiveTime; private String reservationBandwidth; private String reservationInternetChargeType; private String reservationOrderType; private String resourceGroupId; private String role; private String routerId; private String routerInterfaceId; private String routerType; private String spec; private String status; private Boolean success; private Tags tags; private String vpcInstanceId; private Builder() { } private Builder(DescribeRouterInterfaceAttributeResponseBody model) { this.accessPointId = model.accessPointId; this.bandwidth = model.bandwidth; this.businessStatus = model.businessStatus; this.chargeType = model.chargeType; this.code = model.code; this.connectedTime = model.connectedTime; this.creationTime = model.creationTime; this.crossBorder = model.crossBorder; this.description = model.description; this.endTime = model.endTime; this.fastLinkMode = model.fastLinkMode; this.gmtModified = model.gmtModified; this.hasReservationData = model.hasReservationData; this.hcRate = model.hcRate; this.hcThreshold = model.hcThreshold; this.healthCheckSourceIp = model.healthCheckSourceIp; this.healthCheckStatus = model.healthCheckStatus; this.healthCheckTargetIp = model.healthCheckTargetIp; this.message = model.message; this.name = model.name; this.oppositeAccessPointId = model.oppositeAccessPointId; this.oppositeBandwidth = model.oppositeBandwidth; this.oppositeInterfaceBusinessStatus = model.oppositeInterfaceBusinessStatus; this.oppositeInterfaceId = model.oppositeInterfaceId; this.oppositeInterfaceOwnerId = model.oppositeInterfaceOwnerId; this.oppositeInterfaceSpec = model.oppositeInterfaceSpec; this.oppositeInterfaceStatus = model.oppositeInterfaceStatus; this.oppositeRegionId = model.oppositeRegionId; this.oppositeRouterId = model.oppositeRouterId; this.oppositeRouterType = model.oppositeRouterType; this.oppositeVpcInstanceId = model.oppositeVpcInstanceId; this.requestId = model.requestId; this.reservationActiveTime = model.reservationActiveTime; this.reservationBandwidth = model.reservationBandwidth; this.reservationInternetChargeType = model.reservationInternetChargeType; this.reservationOrderType = model.reservationOrderType; this.resourceGroupId = model.resourceGroupId; this.role = model.role; this.routerId = model.routerId; this.routerInterfaceId = model.routerInterfaceId; this.routerType = model.routerType; this.spec = model.spec; this.status = model.status; this.success = model.success; this.tags = model.tags; this.vpcInstanceId = model.vpcInstanceId; } /** * <p>The ID of the access point.</p> * * <strong>example:</strong> * <p>ap-cn-qingdao-ls-A</p> */ public Builder accessPointId(String accessPointId) { this.accessPointId = accessPointId; return this; } /** * <p>The bandwidth of the router interface. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder bandwidth(Integer bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The status of the router interface. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * <li><strong>SecurityLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The billing method. Valid values:</p> * <ul> * <li><strong>AfterPay</strong>: pay-as-you-go</li> * <li><strong>PrePaid</strong>: subscription</li> * </ul> * * <strong>example:</strong> * <p>AfterPay</p> */ public Builder chargeType(String chargeType) { this.chargeType = chargeType; return this; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The time when the connection was established.</p> * * <strong>example:</strong> * <p>2022-04-14T08:58:04Z</p> */ public Builder connectedTime(String connectedTime) { this.connectedTime = connectedTime; return this; } /** * <p>The time when the router interface was created.</p> * * <strong>example:</strong> * <p>2022-04-14T08:57:24Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>Indicates whether the connection is a cross-border connection. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder crossBorder(Boolean crossBorder) { this.crossBorder = crossBorder; return this; } /** * <p>The description of the router interface.</p> * * <strong>example:</strong> * <p>Peer interface.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The end of the time range during which data was queried.</p> * * <strong>example:</strong> * <p>2999-09-08T16:00:00Z</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>Indicates whether the VBR that is created in the Fast Link mode is uplinked to the router interface. The Fast Link mode helps automatically connect router interfaces that are created for the VBR and its peer VPC. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * <blockquote> * </blockquote> * <ul> * <li><p>This parameter takes effect only when <strong>RouterType</strong> is set to <strong>VBR</strong> and <strong>OppositeRouterType</strong> is set to <strong>VRouter</strong>.</p> * </li> * <li><p>When <strong>FastLinkMode</strong> is set to <strong>true</strong>, <strong>Role</strong> must be set to <strong>InitiatingSide</strong>. <strong>AccessPointId</strong>, <strong>OppositeRouterType</strong>, <strong>OpppsiteRouterId</strong>, and <strong>OppositeInterfaceOwnerId</strong> are required.</p> * </li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder fastLinkMode(String fastLinkMode) { this.fastLinkMode = fastLinkMode; return this; } /** * <p>The time when the router interface was modified.</p> * * <strong>example:</strong> * <p>2022-04-28T10:02:12Z</p> */ public Builder gmtModified(String gmtModified) { this.gmtModified = gmtModified; return this; } /** * <p>Indicates whether renewal data is included. 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 rate of health checks. Unit: seconds. The value indicates the interval at which probe packets are sent during a health check.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder hcRate(Integer hcRate) { this.hcRate = hcRate; return this; } /** * <p>The healthy threshold. This value indicates the number of probe packets that are sent during a health check. Unit: packets.</p> * * <strong>example:</strong> * <p>8</p> */ public Builder hcThreshold(Integer hcThreshold) { this.hcThreshold = hcThreshold; return this; } /** * <p>The source IP address that is used for the health check.</p> * * <strong>example:</strong> * <p>1.1.XX.XX</p> */ public Builder healthCheckSourceIp(String healthCheckSourceIp) { this.healthCheckSourceIp = healthCheckSourceIp; return this; } /** * <p>The status of the health check. Valid values:</p> * <ul> * <li><strong>Abnormal</strong></li> * <li><strong>Normal</strong></li> * <li><strong>NoRedundantRoute</strong></li> * <li><strong>NoHealthCheckConfig</strong></li> * </ul> * * <strong>example:</strong> * <p>normal</p> */ public Builder healthCheckStatus(String healthCheckStatus) { this.healthCheckStatus = healthCheckStatus; return this; } /** * <p>The destination IP address that is used for the health check.</p> * * <strong>example:</strong> * <p>2.2.XX.XX</p> */ public Builder healthCheckTargetIp(String healthCheckTargetIp) { this.healthCheckTargetIp = healthCheckTargetIp; return this; } /** * <p>The response parameters.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The name of the router interface.</p> * * <strong>example:</strong> * <p>RouterInterface1</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The ID of the peer access point.</p> * * <strong>example:</strong> * <p>ap-cn-qingdao-ls-B</p> */ public Builder oppositeAccessPointId(String oppositeAccessPointId) { this.oppositeAccessPointId = oppositeAccessPointId; return this; } /** * <p>The maximum bandwidth of the peer router interface. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder oppositeBandwidth(Integer oppositeBandwidth) { this.oppositeBandwidth = oppositeBandwidth; return this; } /** * <p>The service status of the peer router interface. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * <li><strong>SecurityLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder oppositeInterfaceBusinessStatus(String oppositeInterfaceBusinessStatus) { this.oppositeInterfaceBusinessStatus = oppositeInterfaceBusinessStatus; return this; } /** * <p>The ID of the peer router interface.</p> * * <strong>example:</strong> * <p>ri-bp1xkrzttximaoxbl****</p> */ public Builder oppositeInterfaceId(String oppositeInterfaceId) { this.oppositeInterfaceId = oppositeInterfaceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the peer router interface belongs.</p> * * <strong>example:</strong> * <p>1321932713****</p> */ public Builder oppositeInterfaceOwnerId(String oppositeInterfaceOwnerId) { this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId; return this; } /** * <p>The specification of the peer router interface. Valid values:</p> * <ul> * <li><strong>Mini.2</strong>: 2 Mbit/s</li> * <li><strong>Mini.5</strong>: 5 Mbit/s</li> * <li><strong>Small.1</strong>: 10 Mbit/s</li> * <li><strong>Small.2</strong>: 20 Mbit/s</li> * <li><strong>Small.5</strong>: 50 Mbit/s</li> * <li><strong>Middle.1</strong>: 100 Mbit/s</li> * <li><strong>Middle.2</strong>: 200 Mbit/s</li> * <li><strong>Middle.5</strong>: 500 Mbit/s</li> * <li><strong>Large.1</strong>: 1,000 Mbit/s</li> * <li><strong>Large.2</strong>: 2,000 Mbit/s</li> * <li><strong>Large.5</strong>: 5,000 Mbit/s</li> * <li><strong>Xlarge.1</strong>: 10,000 Mbit/s</li> * <li><strong>Negative</strong>: not applicable</li> * </ul> * * <strong>example:</strong> * <p>Negative</p> */ public Builder oppositeInterfaceSpec(String oppositeInterfaceSpec) { this.oppositeInterfaceSpec = oppositeInterfaceSpec; return this; } /** * <p>The status of the peer router interface. Valid values:</p> * <ul> * <li><strong>Idle</strong></li> * <li><strong>AcceptingConnecting</strong></li> * <li><strong>Connecting</strong></li> * <li><strong>Activating</strong></li> * <li><strong>Active</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deactivating</strong></li> * <li><strong>Inactive</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Active</p> */ public Builder oppositeInterfaceStatus(String oppositeInterfaceStatus) { this.oppositeInterfaceStatus = oppositeInterfaceStatus; return this; } /** * <p>The region ID of the peer router interface.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder oppositeRegionId(String oppositeRegionId) { this.oppositeRegionId = oppositeRegionId; return this; } /** * <p>The ID of the router to which the peer router interface belongs.</p> * * <strong>example:</strong> * <p>vrt-bp11xvy6lb9photuu****</p> */ public Builder oppositeRouterId(String oppositeRouterId) { this.oppositeRouterId = oppositeRouterId; return this; } /** * <p>The type of the router to which the peer router interface belongs. Valid values:</p> * <ul> * <li><strong>VRouter</strong></li> * <li><strong>VBR</strong></li> * </ul> * * <strong>example:</strong> * <p>VRouter</p> */ public Builder oppositeRouterType(String oppositeRouterType) { this.oppositeRouterType = oppositeRouterType; return this; } /** * <p>The ID of the peer VPC.</p> * * <strong>example:</strong> * <p>vpc-bp1b49rqrybk45nio****</p> */ public Builder oppositeVpcInstanceId(String oppositeVpcInstanceId) { this.oppositeVpcInstanceId = oppositeVpcInstanceId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>01818199-04F6-47F4-9ADF-7CC824CF57A4</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The time when the renewal takes effect.</p> * * <strong>example:</strong> * <p>2022-06-11T16:00:00Z</p> */ public Builder reservationActiveTime(String reservationActiveTime) { this.reservationActiveTime = reservationActiveTime; return this; } /** * <p>The maximum bandwidth after the renewal takes effect. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder reservationBandwidth(String reservationBandwidth) { this.reservationBandwidth = reservationBandwidth; return this; } /** * <p>The metering method that is used after the renewal takes effect. Valid values: If <strong>PayByBandwidth</strong> is returned, it indicates that the Express Connect circuit is billed on a pay-by-bandwidth basis.</p> * * <strong>example:</strong> * <p>PayByBandwidth</p> */ public Builder reservationInternetChargeType(String reservationInternetChargeType) { this.reservationInternetChargeType = reservationInternetChargeType; return this; } /** * <p>The type of the renewal order. Only <strong>RENEW</strong> may be returned, which indicates that the order is placed for service renewal.</p> * * <strong>example:</strong> * <p>RENEW</p> */ public Builder reservationOrderType(String reservationOrderType) { this.reservationOrderType = reservationOrderType; return this; } /** * <p>The resource group ID.</p> * <p>For more information about resource groups, see <a href="https://help.aliyun.com/document_detail/94475.html">What is a resource group?</a></p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The role of the router interface in the peering connection.</p> * * <strong>example:</strong> * <p>InitiatingSide</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The ID of the router to which the router interface belongs.</p> * * <strong>example:</strong> * <p>vbr-m5ex0xf63xk8s5bob****</p> */ public Builder routerId(String routerId) { this.routerId = routerId; return this; } /** * <p>The ID of the router interface.</p> * * <strong>example:</strong> * <p>ri-m5egfc10sednwk2yt****</p> */ public Builder routerInterfaceId(String routerInterfaceId) { this.routerInterfaceId = routerInterfaceId; return this; } /** * <p>The type of the router to which the route table belongs. Valid values:</p> * <ul> * <li><strong>VRouter</strong></li> * <li><strong>VBR</strong></li> * </ul> * * <strong>example:</strong> * <p>VRouter</p> */ public Builder routerType(String routerType) { this.routerType = routerType; return this; } /** * <p>The specification of the router interface. Valid values:</p> * <ul> * <li><strong>Mini.2</strong>: 2 Mbit/s</li> * <li><strong>Mini.5</strong>: 5 Mbit/s</li> * <li><strong>Small.1</strong>: 10 Mbit/s</li> * <li><strong>Small.2</strong>: 20 Mbit/s</li> * <li><strong>Small.5</strong>: 50 Mbit/s</li> * <li><strong>Middle.1</strong>: 100 Mbit/s</li> * <li><strong>Middle.2</strong>: 200 Mbit/s</li> * <li><strong>Middle.5</strong>: 500 Mbit/s</li> * <li><strong>Large.1</strong>: 1,000 Mbit/s</li> * <li><strong>Large.2</strong>: 2,000 Mbit/s</li> * <li><strong>Large.5</strong>: 5,000 Mbit/s</li> * <li><strong>Xlarge.1</strong>: 10,000 Mbit/s</li> * </ul> * * <strong>example:</strong> * <p>Mini.2</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The status of the router interface. Valid values:</p> * <ul> * <li><strong>Idle</strong></li> * <li><strong>AcceptingConnecting</strong></li> * <li><strong>Connecting</strong></li> * <li><strong>Activating</strong></li> * <li><strong>Active</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deactivating</strong></li> * <li><strong>Inactive</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>Indicates whether the request is successful. Valid values: true and false.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder success(Boolean success) { this.success = success; return this; } /** * <p>The tag of the resource.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The ID of the virtual private cloud (VPC) to which the router interface belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1b49rqrybk45nio****</p> */ public Builder vpcInstanceId(String vpcInstanceId) { this.vpcInstanceId = vpcInstanceId; return this; } public DescribeRouterInterfaceAttributeResponseBody build() { return new DescribeRouterInterfaceAttributeResponseBody(this); } } /** * * {@link DescribeRouterInterfaceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfaceAttributeResponseBody</p> */ public static class TagsTags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private TagsTags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static TagsTags 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(TagsTags model) { this.key = model.key; this.value = model.value; } /** * <p>The key of tag N added to the resource. You must enter at least one tag key and at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 64 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N added to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>It can be up to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public TagsTags build() { return new TagsTags(this); } } } /** * * {@link DescribeRouterInterfaceAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfaceAttributeResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<TagsTags> tags; private Tags(Builder builder) { this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return tags */ public java.util.List<TagsTags> getTags() { return this.tags; } public static final class Builder { private java.util.List<TagsTags> tags; private Builder() { } private Builder(Tags model) { this.tags = model.tags; } /** * <p>The tag of the resource.</p> */ public Builder tags(java.util.List<TagsTags> tags) { this.tags = tags; 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/DescribeRouterInterfacesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouterInterfacesRequest} extends {@link RequestModel} * * <p>DescribeRouterInterfacesRequest</p> */ public class DescribeRouterInterfacesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Filter") private java.util.List<Filter> filter; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludeReservationData") private Boolean includeReservationData; @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("Tags") private java.util.List<Tags> tags; private DescribeRouterInterfacesRequest(Builder builder) { super(builder); this.filter = builder.filter; this.includeReservationData = builder.includeReservationData; 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.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static DescribeRouterInterfacesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return filter */ public java.util.List<Filter> getFilter() { return this.filter; } /** * @return includeReservationData */ public Boolean getIncludeReservationData() { return this.includeReservationData; } /** * @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 tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<DescribeRouterInterfacesRequest, Builder> { private java.util.List<Filter> filter; private Boolean includeReservationData; 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<Tags> tags; private Builder() { super(); } private Builder(DescribeRouterInterfacesRequest request) { super(request); this.filter = request.filter; this.includeReservationData = request.includeReservationData; 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.tags = request.tags; } /** * <p>The filter information.</p> */ public Builder filter(java.util.List<Filter> filter) { this.putQueryParameter("Filter", filter); this.filter = filter; return this; } /** * <p>Specifies whether renewal data is included. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder includeReservationData(Boolean includeReservationData) { this.putQueryParameter("IncludeReservationData", includeReservationData); this.includeReservationData = includeReservationData; 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 router interface.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>Resource Group ID.</p> * <p>For more information about resource groups, please refer to <a href="https://help.aliyun.com/document_detail/94475.html">What is a Resource Group?</a></p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tags of the resource.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public DescribeRouterInterfacesRequest build() { return new DescribeRouterInterfacesRequest(this); } } /** * * {@link DescribeRouterInterfacesRequest} extends {@link TeaModel} * * <p>DescribeRouterInterfacesRequest</p> */ public static class Filter extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private java.util.List<String> value; private Filter(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Filter create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public java.util.List<String> getValue() { return this.value; } public static final class Builder { private String key; private java.util.List<String> value; private Builder() { } private Builder(Filter model) { this.key = model.key; this.value = model.value; } /** * <p>The filter conditions. You can specify up to five filter conditions. The following filter conditions are supported:</p> * <ul> * <li><strong>RouterInterfaceId</strong>: the ID of the router interface.</li> * <li><strong>RouterId</strong>: the ID of the router.</li> * <li><strong>RouterType</strong>: the router type. Valid values: <strong>VRouter</strong> and <strong>VBR</strong>.</li> * <li><strong>RouterInterfaceOwnerId</strong>: the ID of the Alibaba Cloud account to which the router interface belongs.</li> * <li><strong>OppositeInterfaceId</strong>: the ID of the peer router interface.</li> * <li><strong>OppositeRouterType</strong>: the type of the peer router interface. Valid values: <strong>VRouter</strong> and <strong>VBR</strong>.</li> * <li><strong>OppositeRouterId</strong>: the ID of the peer router.</li> * <li><strong>OppositeInterfaceOwnerId</strong>: the ID of the Alibaba Cloud account to which the peer router interface belongs.</li> * <li><strong>Status</strong>: the status of the router interface.</li> * <li><strong>Name</strong>: the name of the router interface.</li> * </ul> * <blockquote> * <p> The logical operator among multiple values in a filter condition is OR. In this case, the filter condition is met if one of the values is matched. The logical operator among filter conditions is AND. Only routers that meet all the filter conditions are queried.</p> * </blockquote> * * <strong>example:</strong> * <p>Filter.1.Status</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>Specifies the value in the filter condition based on the key. You can specify multiple filter values for one key. The logical operator among filter values is OR. If one filter value is matched, the filter condition is matched.</p> * * <strong>example:</strong> * <p>Filter.1.Active 1</p> */ public Builder value(java.util.List<String> value) { this.value = value; return this; } public Filter build() { return new Filter(this); } } } /** * * {@link DescribeRouterInterfacesRequest} extends {@link TeaModel} * * <p>DescribeRouterInterfacesRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the resource tag. At least one tag key must be entered, and a maximum of 20 tag keys are supported. If this value needs to be passed in, it cannot be an empty string.</p> * <p>A tag key can support up to 128 characters, cannot start with &quot;aliyun&quot; or &quot;acs:&quot;, and cannot contain &quot;http://&quot; or &quot;https://&quot;.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the resource tag. A maximum of 20 tag values can be entered. If this value needs to be passed in, an empty string can be entered.</p> * <p>A maximum of 128 characters are supported, it cannot start with &quot;aliyun&quot; or &quot;acs:&quot;, and it cannot contain &quot;http://&quot; or &quot;https://&quot;.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouterInterfacesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouterInterfacesResponse} extends {@link TeaModel} * * <p>DescribeRouterInterfacesResponse</p> */ public class DescribeRouterInterfacesResponse 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 DescribeRouterInterfacesResponseBody body; private DescribeRouterInterfacesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeRouterInterfacesResponse 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 DescribeRouterInterfacesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeRouterInterfacesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeRouterInterfacesResponseBody body); @Override DescribeRouterInterfacesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeRouterInterfacesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeRouterInterfacesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeRouterInterfacesResponse 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(DescribeRouterInterfacesResponseBody body) { this.body = body; return this; } @Override public DescribeRouterInterfacesResponse build() { return new DescribeRouterInterfacesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeRouterInterfacesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeRouterInterfacesResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfacesResponseBody</p> */ public class DescribeRouterInterfacesResponseBody extends TeaModel { @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("RouterInterfaceSet") private RouterInterfaceSet routerInterfaceSet; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeRouterInterfacesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.routerInterfaceSet = builder.routerInterfaceSet; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeRouterInterfacesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 routerInterfaceSet */ public RouterInterfaceSet getRouterInterfaceSet() { return this.routerInterfaceSet; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private RouterInterfaceSet routerInterfaceSet; private Integer totalCount; private Builder() { } private Builder(DescribeRouterInterfacesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.routerInterfaceSet = model.routerInterfaceSet; this.totalCount = model.totalCount; } /** * <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 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>C7F6FCBD-F9CC-4501-8EF3-CDC9577CAE45</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The details of the router interface.</p> */ public Builder routerInterfaceSet(RouterInterfaceSet routerInterfaceSet) { this.routerInterfaceSet = routerInterfaceSet; 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 DescribeRouterInterfacesResponseBody build() { return new DescribeRouterInterfacesResponseBody(this); } } /** * * {@link DescribeRouterInterfacesResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfacesResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the resource tag. At least one tag key must be entered, and a maximum of 20 tag keys are supported. If this value needs to be passed in, it cannot be an empty string.</p> * <p>A tag key can support up to 128 characters, cannot start with &quot;aliyun&quot; or &quot;acs:&quot;, and cannot contain &quot;http://&quot; or &quot;https://&quot;.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the resource tag. A maximum of 20 tag values can be entered. If this value needs to be passed in, an empty string can be entered.</p> * <p>A maximum of 128 characters are supported, it cannot start with &quot;aliyun&quot; or &quot;acs:&quot;, and it cannot contain &quot;http://&quot; or &quot;https://&quot;.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeRouterInterfacesResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfacesResponseBody</p> */ public static class RouterInterfaceTypeTags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private RouterInterfaceTypeTags(Builder builder) { this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static RouterInterfaceTypeTags create() { return builder().build(); } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private java.util.List<Tags> tags; private Builder() { } private Builder(RouterInterfaceTypeTags model) { this.tags = model.tags; } /** * Tags. */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public RouterInterfaceTypeTags build() { return new RouterInterfaceTypeTags(this); } } } /** * * {@link DescribeRouterInterfacesResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfacesResponseBody</p> */ public static class RouterInterfaceType extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessPointId") private String accessPointId; @com.aliyun.core.annotation.NameInMap("Bandwidth") private Integer bandwidth; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.NameInMap("ConnectedTime") private String connectedTime; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("CrossBorder") private Boolean crossBorder; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("FastLinkMode") private Boolean fastLinkMode; @com.aliyun.core.annotation.NameInMap("HasReservationData") private String hasReservationData; @com.aliyun.core.annotation.NameInMap("HcRate") private Integer hcRate; @com.aliyun.core.annotation.NameInMap("HcThreshold") private Integer hcThreshold; @com.aliyun.core.annotation.NameInMap("HealthCheckSourceIp") private String healthCheckSourceIp; @com.aliyun.core.annotation.NameInMap("HealthCheckTargetIp") private String healthCheckTargetIp; @com.aliyun.core.annotation.NameInMap("Ipv6Status") private String ipv6Status; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("OppositeAccessPointId") private String oppositeAccessPointId; @com.aliyun.core.annotation.NameInMap("OppositeBandwidth") private Integer oppositeBandwidth; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceBusinessStatus") private String oppositeInterfaceBusinessStatus; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceId") private String oppositeInterfaceId; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceOwnerId") private String oppositeInterfaceOwnerId; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceSpec") private String oppositeInterfaceSpec; @com.aliyun.core.annotation.NameInMap("OppositeInterfaceStatus") private String oppositeInterfaceStatus; @com.aliyun.core.annotation.NameInMap("OppositeRegionId") private String oppositeRegionId; @com.aliyun.core.annotation.NameInMap("OppositeRouterId") private String oppositeRouterId; @com.aliyun.core.annotation.NameInMap("OppositeRouterType") private String oppositeRouterType; @com.aliyun.core.annotation.NameInMap("OppositeVpcInstanceId") private String oppositeVpcInstanceId; @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("Role") private String role; @com.aliyun.core.annotation.NameInMap("RouterId") private String routerId; @com.aliyun.core.annotation.NameInMap("RouterInterfaceId") private String routerInterfaceId; @com.aliyun.core.annotation.NameInMap("RouterType") private String routerType; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private RouterInterfaceTypeTags tags; @com.aliyun.core.annotation.NameInMap("VpcInstanceId") private String vpcInstanceId; private RouterInterfaceType(Builder builder) { this.accessPointId = builder.accessPointId; this.bandwidth = builder.bandwidth; this.businessStatus = builder.businessStatus; this.chargeType = builder.chargeType; this.connectedTime = builder.connectedTime; this.creationTime = builder.creationTime; this.crossBorder = builder.crossBorder; this.description = builder.description; this.endTime = builder.endTime; this.fastLinkMode = builder.fastLinkMode; this.hasReservationData = builder.hasReservationData; this.hcRate = builder.hcRate; this.hcThreshold = builder.hcThreshold; this.healthCheckSourceIp = builder.healthCheckSourceIp; this.healthCheckTargetIp = builder.healthCheckTargetIp; this.ipv6Status = builder.ipv6Status; this.name = builder.name; this.oppositeAccessPointId = builder.oppositeAccessPointId; this.oppositeBandwidth = builder.oppositeBandwidth; this.oppositeInterfaceBusinessStatus = builder.oppositeInterfaceBusinessStatus; this.oppositeInterfaceId = builder.oppositeInterfaceId; this.oppositeInterfaceOwnerId = builder.oppositeInterfaceOwnerId; this.oppositeInterfaceSpec = builder.oppositeInterfaceSpec; this.oppositeInterfaceStatus = builder.oppositeInterfaceStatus; this.oppositeRegionId = builder.oppositeRegionId; this.oppositeRouterId = builder.oppositeRouterId; this.oppositeRouterType = builder.oppositeRouterType; this.oppositeVpcInstanceId = builder.oppositeVpcInstanceId; this.reservationActiveTime = builder.reservationActiveTime; this.reservationBandwidth = builder.reservationBandwidth; this.reservationInternetChargeType = builder.reservationInternetChargeType; this.reservationOrderType = builder.reservationOrderType; this.resourceGroupId = builder.resourceGroupId; this.role = builder.role; this.routerId = builder.routerId; this.routerInterfaceId = builder.routerInterfaceId; this.routerType = builder.routerType; this.spec = builder.spec; this.status = builder.status; this.tags = builder.tags; this.vpcInstanceId = builder.vpcInstanceId; } public static Builder builder() { return new Builder(); } public static RouterInterfaceType create() { return builder().build(); } /** * @return accessPointId */ public String getAccessPointId() { return this.accessPointId; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return connectedTime */ public String getConnectedTime() { return this.connectedTime; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return crossBorder */ public Boolean getCrossBorder() { return this.crossBorder; } /** * @return description */ public String getDescription() { return this.description; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return fastLinkMode */ public Boolean getFastLinkMode() { return this.fastLinkMode; } /** * @return hasReservationData */ public String getHasReservationData() { return this.hasReservationData; } /** * @return hcRate */ public Integer getHcRate() { return this.hcRate; } /** * @return hcThreshold */ public Integer getHcThreshold() { return this.hcThreshold; } /** * @return healthCheckSourceIp */ public String getHealthCheckSourceIp() { return this.healthCheckSourceIp; } /** * @return healthCheckTargetIp */ public String getHealthCheckTargetIp() { return this.healthCheckTargetIp; } /** * @return ipv6Status */ public String getIpv6Status() { return this.ipv6Status; } /** * @return name */ public String getName() { return this.name; } /** * @return oppositeAccessPointId */ public String getOppositeAccessPointId() { return this.oppositeAccessPointId; } /** * @return oppositeBandwidth */ public Integer getOppositeBandwidth() { return this.oppositeBandwidth; } /** * @return oppositeInterfaceBusinessStatus */ public String getOppositeInterfaceBusinessStatus() { return this.oppositeInterfaceBusinessStatus; } /** * @return oppositeInterfaceId */ public String getOppositeInterfaceId() { return this.oppositeInterfaceId; } /** * @return oppositeInterfaceOwnerId */ public String getOppositeInterfaceOwnerId() { return this.oppositeInterfaceOwnerId; } /** * @return oppositeInterfaceSpec */ public String getOppositeInterfaceSpec() { return this.oppositeInterfaceSpec; } /** * @return oppositeInterfaceStatus */ public String getOppositeInterfaceStatus() { return this.oppositeInterfaceStatus; } /** * @return oppositeRegionId */ public String getOppositeRegionId() { return this.oppositeRegionId; } /** * @return oppositeRouterId */ public String getOppositeRouterId() { return this.oppositeRouterId; } /** * @return oppositeRouterType */ public String getOppositeRouterType() { return this.oppositeRouterType; } /** * @return oppositeVpcInstanceId */ public String getOppositeVpcInstanceId() { return this.oppositeVpcInstanceId; } /** * @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 role */ public String getRole() { return this.role; } /** * @return routerId */ public String getRouterId() { return this.routerId; } /** * @return routerInterfaceId */ public String getRouterInterfaceId() { return this.routerInterfaceId; } /** * @return routerType */ public String getRouterType() { return this.routerType; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public RouterInterfaceTypeTags getTags() { return this.tags; } /** * @return vpcInstanceId */ public String getVpcInstanceId() { return this.vpcInstanceId; } public static final class Builder { private String accessPointId; private Integer bandwidth; private String businessStatus; private String chargeType; private String connectedTime; private String creationTime; private Boolean crossBorder; private String description; private String endTime; private Boolean fastLinkMode; private String hasReservationData; private Integer hcRate; private Integer hcThreshold; private String healthCheckSourceIp; private String healthCheckTargetIp; private String ipv6Status; private String name; private String oppositeAccessPointId; private Integer oppositeBandwidth; private String oppositeInterfaceBusinessStatus; private String oppositeInterfaceId; private String oppositeInterfaceOwnerId; private String oppositeInterfaceSpec; private String oppositeInterfaceStatus; private String oppositeRegionId; private String oppositeRouterId; private String oppositeRouterType; private String oppositeVpcInstanceId; private String reservationActiveTime; private String reservationBandwidth; private String reservationInternetChargeType; private String reservationOrderType; private String resourceGroupId; private String role; private String routerId; private String routerInterfaceId; private String routerType; private String spec; private String status; private RouterInterfaceTypeTags tags; private String vpcInstanceId; private Builder() { } private Builder(RouterInterfaceType model) { this.accessPointId = model.accessPointId; this.bandwidth = model.bandwidth; this.businessStatus = model.businessStatus; this.chargeType = model.chargeType; this.connectedTime = model.connectedTime; this.creationTime = model.creationTime; this.crossBorder = model.crossBorder; this.description = model.description; this.endTime = model.endTime; this.fastLinkMode = model.fastLinkMode; this.hasReservationData = model.hasReservationData; this.hcRate = model.hcRate; this.hcThreshold = model.hcThreshold; this.healthCheckSourceIp = model.healthCheckSourceIp; this.healthCheckTargetIp = model.healthCheckTargetIp; this.ipv6Status = model.ipv6Status; this.name = model.name; this.oppositeAccessPointId = model.oppositeAccessPointId; this.oppositeBandwidth = model.oppositeBandwidth; this.oppositeInterfaceBusinessStatus = model.oppositeInterfaceBusinessStatus; this.oppositeInterfaceId = model.oppositeInterfaceId; this.oppositeInterfaceOwnerId = model.oppositeInterfaceOwnerId; this.oppositeInterfaceSpec = model.oppositeInterfaceSpec; this.oppositeInterfaceStatus = model.oppositeInterfaceStatus; this.oppositeRegionId = model.oppositeRegionId; this.oppositeRouterId = model.oppositeRouterId; this.oppositeRouterType = model.oppositeRouterType; this.oppositeVpcInstanceId = model.oppositeVpcInstanceId; this.reservationActiveTime = model.reservationActiveTime; this.reservationBandwidth = model.reservationBandwidth; this.reservationInternetChargeType = model.reservationInternetChargeType; this.reservationOrderType = model.reservationOrderType; this.resourceGroupId = model.resourceGroupId; this.role = model.role; this.routerId = model.routerId; this.routerInterfaceId = model.routerInterfaceId; this.routerType = model.routerType; this.spec = model.spec; this.status = model.status; this.tags = model.tags; this.vpcInstanceId = model.vpcInstanceId; } /** * <p>The ID of the access point.</p> * * <strong>example:</strong> * <p>ap-cn-shanghaiSZ-****</p> */ public Builder accessPointId(String accessPointId) { this.accessPointId = accessPointId; return this; } /** * <p>The bandwidth of the router interface. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder bandwidth(Integer bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The service status of the router interface. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * <li><strong>SecurityLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The billing method.</p> * * <strong>example:</strong> * <p>PayByTraffic</p> */ public Builder chargeType(String chargeType) { this.chargeType = chargeType; return this; } /** * <p>The time when the connection was established.</p> * <p>The time follows the ISO8601 standard in the <code>YYYY-MM-DDThh:mmZ</code> format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder connectedTime(String connectedTime) { this.connectedTime = connectedTime; return this; } /** * <p>The time when the route table was created.</p> * <p>The time follows the ISO8601 standard in the <code>YYYY-MM-DDThh:mmZ</code> format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>Indicates whether the connection is a cross-border connection.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder crossBorder(Boolean crossBorder) { this.crossBorder = crossBorder; return this; } /** * <p>The description of the router interface.</p> * * <strong>example:</strong> * <p>The description of the router interface.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The end of the time range during which data was queried.</p> * <p>The time follows the ISO8601 standard in the <code>YYYY-MM-DDThh:mmZ</code> format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>Indicates whether the VBR that is created in the Fast Link mode is uplinked to the router interface. The Fast Link mode helps automatically connect router interfaces that are created for the VBR and its peer VPC. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder fastLinkMode(Boolean fastLinkMode) { this.fastLinkMode = fastLinkMode; return this; } /** * <p>Indicates whether renewal data is included.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder hasReservationData(String hasReservationData) { this.hasReservationData = hasReservationData; return this; } /** * <p>The rate of heath checks.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder hcRate(Integer hcRate) { this.hcRate = hcRate; return this; } /** * <p>The health check threshold.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder hcThreshold(Integer hcThreshold) { this.hcThreshold = hcThreshold; return this; } /** * <p>The source IP address that is used for the health check.</p> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder healthCheckSourceIp(String healthCheckSourceIp) { this.healthCheckSourceIp = healthCheckSourceIp; return this; } /** * <p>The destination IP address that is used for the health check.</p> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder healthCheckTargetIp(String healthCheckTargetIp) { this.healthCheckTargetIp = healthCheckTargetIp; return this; } /** * <p>Indicates whether protection against malicious IPv6 traffic is enabled. Valid values:</p> * <ul> * <li><strong>on</strong></li> * <li><strong>off</strong></li> * <li><strong>unsupport</strong></li> * </ul> * * <strong>example:</strong> * <p>on</p> */ public Builder ipv6Status(String ipv6Status) { this.ipv6Status = ipv6Status; return this; } /** * <p>The custom name.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The ID of the peer access point.</p> * * <strong>example:</strong> * <p>ap-cn-shanghaiSZ-****</p> */ public Builder oppositeAccessPointId(String oppositeAccessPointId) { this.oppositeAccessPointId = oppositeAccessPointId; return this; } /** * <p>The maximum bandwidth of the peer router interface. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder oppositeBandwidth(Integer oppositeBandwidth) { this.oppositeBandwidth = oppositeBandwidth; return this; } /** * <p>The service status of the peer router interface.</p> * * <strong>example:</strong> * <p>Normal</p> */ public Builder oppositeInterfaceBusinessStatus(String oppositeInterfaceBusinessStatus) { this.oppositeInterfaceBusinessStatus = oppositeInterfaceBusinessStatus; return this; } /** * <p>The ID of the peer router interface.</p> * * <strong>example:</strong> * <p>ri-bp1itx13bwe6f2wfh****</p> */ public Builder oppositeInterfaceId(String oppositeInterfaceId) { this.oppositeInterfaceId = oppositeInterfaceId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the peer router interface belongs.</p> * * <strong>example:</strong> * <p>271598332402530847</p> */ public Builder oppositeInterfaceOwnerId(String oppositeInterfaceOwnerId) { this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId; return this; } /** * <p>The specification of the peer router interface.</p> * * <strong>example:</strong> * <p>Large</p> */ public Builder oppositeInterfaceSpec(String oppositeInterfaceSpec) { this.oppositeInterfaceSpec = oppositeInterfaceSpec; return this; } /** * <p>The status of the peer router interface.</p> * * <strong>example:</strong> * <p>Normal</p> */ public Builder oppositeInterfaceStatus(String oppositeInterfaceStatus) { this.oppositeInterfaceStatus = oppositeInterfaceStatus; return this; } /** * <p>The region ID of the peer router interface.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder oppositeRegionId(String oppositeRegionId) { this.oppositeRegionId = oppositeRegionId; return this; } /** * <p>The ID of the router to which the peer router interface belongs.</p> * * <strong>example:</strong> * <p>vrt-bp1d3bxtdv68tfd7g****</p> */ public Builder oppositeRouterId(String oppositeRouterId) { this.oppositeRouterId = oppositeRouterId; return this; } /** * <p>The type of the router to which the peer router interface belongs.</p> * * <strong>example:</strong> * <p>VRouter</p> */ public Builder oppositeRouterType(String oppositeRouterType) { this.oppositeRouterType = oppositeRouterType; return this; } /** * <p>The ID of the peer VPC.</p> * * <strong>example:</strong> * <p>vpc-bp1qpo0kug3a20qqe****</p> */ public Builder oppositeVpcInstanceId(String oppositeVpcInstanceId) { this.oppositeVpcInstanceId = oppositeVpcInstanceId; return this; } /** * <p>The time when the renewal takes effect.</p> * <p>The time follows the ISO8601 standard in the <code>YYYY-MM-DDThh:mmZ</code> format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-03-11T16:00:00Z</p> */ public Builder reservationActiveTime(String reservationActiveTime) { this.reservationActiveTime = reservationActiveTime; return this; } /** * <p>The maximum bandwidth after the renewal takes effect. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder reservationBandwidth(String reservationBandwidth) { this.reservationBandwidth = reservationBandwidth; return this; } /** * <p>The metering method that is used after the renewal takes effect. Valid values:</p> * * <strong>example:</strong> * <p>PayByBandwidth</p> */ public Builder reservationInternetChargeType(String reservationInternetChargeType) { this.reservationInternetChargeType = reservationInternetChargeType; return this; } /** * <p>The type of the renewal order. Valid values:</p> * * <strong>example:</strong> * <p>RENEWCHANGE</p> */ public Builder reservationOrderType(String reservationOrderType) { this.reservationOrderType = reservationOrderType; return this; } /** * <p>Resource Group ID.</p> * <p>For more information about resource groups, please refer to <a href="https://help.aliyun.com/document_detail/94475.html">What is a Resource Group?</a></p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>Indicates whether the router interface is the initiator or acceptor of the peering connection.</p> * * <strong>example:</strong> * <p>InitiatingSide</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The ID of the router to which the route entry belongs.</p> * * <strong>example:</strong> * <p>vrt-bp1d3bxtdv68tfd7g****</p> */ public Builder routerId(String routerId) { this.routerId = routerId; return this; } /** * <p>The ID of the router interface.</p> * * <strong>example:</strong> * <p>ri-2zenfgfpyu3v93koa****</p> */ public Builder routerInterfaceId(String routerInterfaceId) { this.routerInterfaceId = routerInterfaceId; return this; } /** * <p>The type of the router to which the route table belongs. Valid values:</p> * <ul> * <li><strong>VRouter</strong></li> * <li><strong>VBR</strong></li> * </ul> * * <strong>example:</strong> * <p>VRouter</p> */ public Builder routerType(String routerType) { this.routerType = routerType; return this; } /** * <p>The specification of the router interface.</p> * * <strong>example:</strong> * <p>Large</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The status of the router interface.</p> * * <strong>example:</strong> * <p>active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tags of the resource.</p> */ public Builder tags(RouterInterfaceTypeTags tags) { this.tags = tags; return this; } /** * <p>The ID of the local virtual private cloud (VPC) in the peering connection.</p> * * <strong>example:</strong> * <p>vpc-2ze3tq4uxhysg717x****</p> */ public Builder vpcInstanceId(String vpcInstanceId) { this.vpcInstanceId = vpcInstanceId; return this; } public RouterInterfaceType build() { return new RouterInterfaceType(this); } } } /** * * {@link DescribeRouterInterfacesResponseBody} extends {@link TeaModel} * * <p>DescribeRouterInterfacesResponseBody</p> */ public static class RouterInterfaceSet extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouterInterfaceType") private java.util.List<RouterInterfaceType> routerInterfaceType; private RouterInterfaceSet(Builder builder) { this.routerInterfaceType = builder.routerInterfaceType; } public static Builder builder() { return new Builder(); } public static RouterInterfaceSet create() { return builder().build(); } /** * @return routerInterfaceType */ public java.util.List<RouterInterfaceType> getRouterInterfaceType() { return this.routerInterfaceType; } public static final class Builder { private java.util.List<RouterInterfaceType> routerInterfaceType; private Builder() { } private Builder(RouterInterfaceSet model) { this.routerInterfaceType = model.routerInterfaceType; } /** * RouterInterfaceType. */ public Builder routerInterfaceType(java.util.List<RouterInterfaceType> routerInterfaceType) { this.routerInterfaceType = routerInterfaceType; return this; } public RouterInterfaceSet build() { return new RouterInterfaceSet(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeServerRelatedGlobalAccelerationInstancesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeServerRelatedGlobalAccelerationInstancesRequest} extends {@link RequestModel} * * <p>DescribeServerRelatedGlobalAccelerationInstancesRequest</p> */ public class DescribeServerRelatedGlobalAccelerationInstancesRequest 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("ServerId") @com.aliyun.core.annotation.Validation(required = true) private String serverId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServerType") private String serverType; private DescribeServerRelatedGlobalAccelerationInstancesRequest(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.serverId = builder.serverId; this.serverType = builder.serverType; } public static Builder builder() { return new Builder(); } public static DescribeServerRelatedGlobalAccelerationInstancesRequest 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 serverId */ public String getServerId() { return this.serverId; } /** * @return serverType */ public String getServerType() { return this.serverType; } public static final class Builder extends Request.Builder<DescribeServerRelatedGlobalAccelerationInstancesRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serverId; private String serverType; private Builder() { super(); } private Builder(DescribeServerRelatedGlobalAccelerationInstancesRequest request) { super(request); this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.serverId = request.serverId; this.serverType = request.serverType; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the GA instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the backend service instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>i-12s3sdf****</p> */ public Builder serverId(String serverId) { this.putQueryParameter("ServerId", serverId); this.serverId = serverId; return this; } /** * <p>The type of the backend service instance. Valid values:</p> * <ul> * <li><strong>EcsInstance</strong> (default): Elastic Compute Service (ECS)</li> * <li><strong>SlbInstance</strong>: Server Load Balancer (SLB)</li> * </ul> * * <strong>example:</strong> * <p>EcsInstance</p> */ public Builder serverType(String serverType) { this.putQueryParameter("ServerType", serverType); this.serverType = serverType; return this; } @Override public DescribeServerRelatedGlobalAccelerationInstancesRequest build() { return new DescribeServerRelatedGlobalAccelerationInstancesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeServerRelatedGlobalAccelerationInstancesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeServerRelatedGlobalAccelerationInstancesResponse} extends {@link TeaModel} * * <p>DescribeServerRelatedGlobalAccelerationInstancesResponse</p> */ public class DescribeServerRelatedGlobalAccelerationInstancesResponse 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 DescribeServerRelatedGlobalAccelerationInstancesResponseBody body; private DescribeServerRelatedGlobalAccelerationInstancesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeServerRelatedGlobalAccelerationInstancesResponse 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 DescribeServerRelatedGlobalAccelerationInstancesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeServerRelatedGlobalAccelerationInstancesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeServerRelatedGlobalAccelerationInstancesResponseBody body); @Override DescribeServerRelatedGlobalAccelerationInstancesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeServerRelatedGlobalAccelerationInstancesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeServerRelatedGlobalAccelerationInstancesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeServerRelatedGlobalAccelerationInstancesResponse 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(DescribeServerRelatedGlobalAccelerationInstancesResponseBody body) { this.body = body; return this; } @Override public DescribeServerRelatedGlobalAccelerationInstancesResponse build() { return new DescribeServerRelatedGlobalAccelerationInstancesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeServerRelatedGlobalAccelerationInstancesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeServerRelatedGlobalAccelerationInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeServerRelatedGlobalAccelerationInstancesResponseBody</p> */ public class DescribeServerRelatedGlobalAccelerationInstancesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstances") private GlobalAccelerationInstances globalAccelerationInstances; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeServerRelatedGlobalAccelerationInstancesResponseBody(Builder builder) { this.globalAccelerationInstances = builder.globalAccelerationInstances; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeServerRelatedGlobalAccelerationInstancesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return globalAccelerationInstances */ public GlobalAccelerationInstances getGlobalAccelerationInstances() { return this.globalAccelerationInstances; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private GlobalAccelerationInstances globalAccelerationInstances; private String requestId; private Builder() { } private Builder(DescribeServerRelatedGlobalAccelerationInstancesResponseBody model) { this.globalAccelerationInstances = model.globalAccelerationInstances; this.requestId = model.requestId; } /** * <p>The list of GA instances.</p> */ public Builder globalAccelerationInstances(GlobalAccelerationInstances globalAccelerationInstances) { this.globalAccelerationInstances = globalAccelerationInstances; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A8252014-D8DE-4D85-AF35-AFEXXXXXXX</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeServerRelatedGlobalAccelerationInstancesResponseBody build() { return new DescribeServerRelatedGlobalAccelerationInstancesResponseBody(this); } } /** * * {@link DescribeServerRelatedGlobalAccelerationInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeServerRelatedGlobalAccelerationInstancesResponseBody</p> */ public static class GlobalAccelerationInstance extends TeaModel { @com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstanceId") private String globalAccelerationInstanceId; @com.aliyun.core.annotation.NameInMap("IpAddress") private String ipAddress; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ServerIpAddress") private String serverIpAddress; private GlobalAccelerationInstance(Builder builder) { this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId; this.ipAddress = builder.ipAddress; this.regionId = builder.regionId; this.serverIpAddress = builder.serverIpAddress; } public static Builder builder() { return new Builder(); } public static GlobalAccelerationInstance create() { return builder().build(); } /** * @return globalAccelerationInstanceId */ public String getGlobalAccelerationInstanceId() { return this.globalAccelerationInstanceId; } /** * @return ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return serverIpAddress */ public String getServerIpAddress() { return this.serverIpAddress; } public static final class Builder { private String globalAccelerationInstanceId; private String ipAddress; private String regionId; private String serverIpAddress; private Builder() { } private Builder(GlobalAccelerationInstance model) { this.globalAccelerationInstanceId = model.globalAccelerationInstanceId; this.ipAddress = model.ipAddress; this.regionId = model.regionId; this.serverIpAddress = model.serverIpAddress; } /** * <p>The ID of the GA instance.</p> * * <strong>example:</strong> * <p>ga-t4nku6vv9****</p> */ public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) { this.globalAccelerationInstanceId = globalAccelerationInstanceId; return this; } /** * <p>The public IP address of the GA instance.</p> * * <strong>example:</strong> * <p>12.34.56.78</p> */ public Builder ipAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } /** * <p>The region ID of the GA instance.</p> * * <strong>example:</strong> * <p>ap-southeast-1</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The IP address of the backend service.</p> * * <strong>example:</strong> * <p>172.24.52.234</p> */ public Builder serverIpAddress(String serverIpAddress) { this.serverIpAddress = serverIpAddress; return this; } public GlobalAccelerationInstance build() { return new GlobalAccelerationInstance(this); } } } /** * * {@link DescribeServerRelatedGlobalAccelerationInstancesResponseBody} extends {@link TeaModel} * * <p>DescribeServerRelatedGlobalAccelerationInstancesResponseBody</p> */ public static class GlobalAccelerationInstances extends TeaModel { @com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstance") private java.util.List<GlobalAccelerationInstance> globalAccelerationInstance; private GlobalAccelerationInstances(Builder builder) { this.globalAccelerationInstance = builder.globalAccelerationInstance; } public static Builder builder() { return new Builder(); } public static GlobalAccelerationInstances create() { return builder().build(); } /** * @return globalAccelerationInstance */ public java.util.List<GlobalAccelerationInstance> getGlobalAccelerationInstance() { return this.globalAccelerationInstance; } public static final class Builder { private java.util.List<GlobalAccelerationInstance> globalAccelerationInstance; private Builder() { } private Builder(GlobalAccelerationInstances model) { this.globalAccelerationInstance = model.globalAccelerationInstance; } /** * GlobalAccelerationInstance. */ public Builder globalAccelerationInstance(java.util.List<GlobalAccelerationInstance> globalAccelerationInstance) { this.globalAccelerationInstance = globalAccelerationInstance; return this; } public GlobalAccelerationInstances build() { return new GlobalAccelerationInstances(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSnatTableEntriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSnatTableEntriesRequest} extends {@link RequestModel} * * <p>DescribeSnatTableEntriesRequest</p> */ public class DescribeSnatTableEntriesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatGatewayId") private String natGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkInterfaceIds") private java.util.List<String> networkInterfaceIds; @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("SnatEntryId") private String snatEntryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatEntryName") private String snatEntryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatIp") private String snatIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SnatTableId") private String snatTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceCIDR") private String sourceCIDR; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SourceVSwitchId") private String sourceVSwitchId; private DescribeSnatTableEntriesRequest(Builder builder) { super(builder); this.natGatewayId = builder.natGatewayId; this.networkInterfaceIds = builder.networkInterfaceIds; 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.snatEntryId = builder.snatEntryId; this.snatEntryName = builder.snatEntryName; this.snatIp = builder.snatIp; this.snatTableId = builder.snatTableId; this.sourceCIDR = builder.sourceCIDR; this.sourceVSwitchId = builder.sourceVSwitchId; } public static Builder builder() { return new Builder(); } public static DescribeSnatTableEntriesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return networkInterfaceIds */ public java.util.List<String> getNetworkInterfaceIds() { return this.networkInterfaceIds; } /** * @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 snatEntryId */ public String getSnatEntryId() { return this.snatEntryId; } /** * @return snatEntryName */ public String getSnatEntryName() { return this.snatEntryName; } /** * @return snatIp */ public String getSnatIp() { return this.snatIp; } /** * @return snatTableId */ public String getSnatTableId() { return this.snatTableId; } /** * @return sourceCIDR */ public String getSourceCIDR() { return this.sourceCIDR; } /** * @return sourceVSwitchId */ public String getSourceVSwitchId() { return this.sourceVSwitchId; } public static final class Builder extends Request.Builder<DescribeSnatTableEntriesRequest, Builder> { private String natGatewayId; private java.util.List<String> networkInterfaceIds; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String snatEntryId; private String snatEntryName; private String snatIp; private String snatTableId; private String sourceCIDR; private String sourceVSwitchId; private Builder() { super(); } private Builder(DescribeSnatTableEntriesRequest request) { super(request); this.natGatewayId = request.natGatewayId; this.networkInterfaceIds = request.networkInterfaceIds; 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.snatEntryId = request.snatEntryId; this.snatEntryName = request.snatEntryName; this.snatIp = request.snatIp; this.snatTableId = request.snatTableId; this.sourceCIDR = request.sourceCIDR; this.sourceVSwitchId = request.sourceVSwitchId; } /** * <p>The ID of the NAT gateway.</p> * <blockquote> * <p> You must specify at least one of <strong>SnatTableId</strong> and <strong>NatGatewayId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>ngw-bp1uewa15k4iy5770****</p> */ public Builder natGatewayId(String natGatewayId) { this.putQueryParameter("NatGatewayId", natGatewayId); this.natGatewayId = natGatewayId; return this; } /** * NetworkInterfaceIds. */ public Builder networkInterfaceIds(java.util.List<String> networkInterfaceIds) { this.putQueryParameter("NetworkInterfaceIds", networkInterfaceIds); this.networkInterfaceIds = networkInterfaceIds; 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 you want to create 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.</p> * * <strong>example:</strong> * <p>snat-8vbae8uqh7rjpk7d2****</p> */ public Builder snatEntryId(String snatEntryId) { this.putQueryParameter("SnatEntryId", snatEntryId); this.snatEntryId = snatEntryId; return this; } /** * <p>The name of the SNAT entry.</p> * <p>The name must be 2 to 128 characters in length, and can contain digits, underscores (_), and hyphens (-). The name must start with a letter.</p> * * <strong>example:</strong> * <p>SnatEntry-1</p> */ public Builder snatEntryName(String snatEntryName) { this.putQueryParameter("SnatEntryName", snatEntryName); this.snatEntryName = snatEntryName; return this; } /** * <ul> * <li>When you query SNAT entries of Internet NAT gateways, this parameter specifies the EIP in an SNAT entry.</li> * <li>When you query SNAT entries of VPC NAT gateways, this parameter specifies the NAT IP address in an SNAT entry.</li> * </ul> * * <strong>example:</strong> * <p>116.22.XX.XX</p> */ public Builder snatIp(String snatIp) { this.putQueryParameter("SnatIp", snatIp); this.snatIp = snatIp; return this; } /** * <p>The ID of the SNAT table.</p> * <blockquote> * <p> You must specify at least one of <strong>SnatTableId</strong> and <strong>NatGatewayId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>stb-8vbczigrhop8x5u3t****</p> */ public Builder snatTableId(String snatTableId) { this.putQueryParameter("SnatTableId", snatTableId); this.snatTableId = snatTableId; return this; } /** * <p>The source CIDR block specified in the SNAT entry.</p> * * <strong>example:</strong> * <p>116.22.XX.XX/24</p> */ public Builder sourceCIDR(String sourceCIDR) { this.putQueryParameter("SourceCIDR", sourceCIDR); this.sourceCIDR = sourceCIDR; return this; } /** * <p>The ID of the vSwitch.</p> * <ul> * <li>When you query SNAT entries of Internet NAT gateways, this parameter specifies that Elastic Compute Service (ECS) instances in the vSwitch can use SNAT entries to access the Internet.</li> * <li>When you query SNAT entries of virtual private cloud (VPC) NAT gateways, this parameter specifies that ECS instances in the vSwitch can use SNAT entries to access external networks.</li> * </ul> * * <strong>example:</strong> * <p>vsw-3xbjkhjshjdf****</p> */ public Builder sourceVSwitchId(String sourceVSwitchId) { this.putQueryParameter("SourceVSwitchId", sourceVSwitchId); this.sourceVSwitchId = sourceVSwitchId; return this; } @Override public DescribeSnatTableEntriesRequest build() { return new DescribeSnatTableEntriesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSnatTableEntriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSnatTableEntriesResponse} extends {@link TeaModel} * * <p>DescribeSnatTableEntriesResponse</p> */ public class DescribeSnatTableEntriesResponse 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 DescribeSnatTableEntriesResponseBody body; private DescribeSnatTableEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSnatTableEntriesResponse 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 DescribeSnatTableEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSnatTableEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSnatTableEntriesResponseBody body); @Override DescribeSnatTableEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSnatTableEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSnatTableEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSnatTableEntriesResponse 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(DescribeSnatTableEntriesResponseBody body) { this.body = body; return this; } @Override public DescribeSnatTableEntriesResponse build() { return new DescribeSnatTableEntriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSnatTableEntriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSnatTableEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeSnatTableEntriesResponseBody</p> */ public class DescribeSnatTableEntriesResponseBody extends TeaModel { @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("SnatTableEntries") private SnatTableEntries snatTableEntries; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSnatTableEntriesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.snatTableEntries = builder.snatTableEntries; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSnatTableEntriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 snatTableEntries */ public SnatTableEntries getSnatTableEntries() { return this.snatTableEntries; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private SnatTableEntries snatTableEntries; private Integer totalCount; private Builder() { } private Builder(DescribeSnatTableEntriesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.snatTableEntries = model.snatTableEntries; this.totalCount = model.totalCount; } /** * <p>The number of the returned page.</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>5</p> */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>6D7E89B1-1C5B-412B-8585-4908E222EED5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Details of SNAT entries.</p> */ public Builder snatTableEntries(SnatTableEntries snatTableEntries) { this.snatTableEntries = snatTableEntries; 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 DescribeSnatTableEntriesResponseBody build() { return new DescribeSnatTableEntriesResponseBody(this); } } /** * * {@link DescribeSnatTableEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeSnatTableEntriesResponseBody</p> */ public static class SnatTableEntry extends TeaModel { @com.aliyun.core.annotation.NameInMap("EipAffinity") private String eipAffinity; @com.aliyun.core.annotation.NameInMap("NatGatewayId") private String natGatewayId; @com.aliyun.core.annotation.NameInMap("NetworkInterfaceId") private String networkInterfaceId; @com.aliyun.core.annotation.NameInMap("SnatEntryId") private String snatEntryId; @com.aliyun.core.annotation.NameInMap("SnatEntryName") private String snatEntryName; @com.aliyun.core.annotation.NameInMap("SnatIp") private String snatIp; @com.aliyun.core.annotation.NameInMap("SnatTableId") private String snatTableId; @com.aliyun.core.annotation.NameInMap("SourceCIDR") private String sourceCIDR; @com.aliyun.core.annotation.NameInMap("SourceVSwitchId") private String sourceVSwitchId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private SnatTableEntry(Builder builder) { this.eipAffinity = builder.eipAffinity; this.natGatewayId = builder.natGatewayId; this.networkInterfaceId = builder.networkInterfaceId; this.snatEntryId = builder.snatEntryId; this.snatEntryName = builder.snatEntryName; this.snatIp = builder.snatIp; this.snatTableId = builder.snatTableId; this.sourceCIDR = builder.sourceCIDR; this.sourceVSwitchId = builder.sourceVSwitchId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static SnatTableEntry create() { return builder().build(); } /** * @return eipAffinity */ public String getEipAffinity() { return this.eipAffinity; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return networkInterfaceId */ public String getNetworkInterfaceId() { return this.networkInterfaceId; } /** * @return snatEntryId */ public String getSnatEntryId() { return this.snatEntryId; } /** * @return snatEntryName */ public String getSnatEntryName() { return this.snatEntryName; } /** * @return snatIp */ public String getSnatIp() { return this.snatIp; } /** * @return snatTableId */ public String getSnatTableId() { return this.snatTableId; } /** * @return sourceCIDR */ public String getSourceCIDR() { return this.sourceCIDR; } /** * @return sourceVSwitchId */ public String getSourceVSwitchId() { return this.sourceVSwitchId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String eipAffinity; private String natGatewayId; private String networkInterfaceId; private String snatEntryId; private String snatEntryName; private String snatIp; private String snatTableId; private String sourceCIDR; private String sourceVSwitchId; private String status; private Builder() { } private Builder(SnatTableEntry model) { this.eipAffinity = model.eipAffinity; this.natGatewayId = model.natGatewayId; this.networkInterfaceId = model.networkInterfaceId; this.snatEntryId = model.snatEntryId; this.snatEntryName = model.snatEntryName; this.snatIp = model.snatIp; this.snatTableId = model.snatTableId; this.sourceCIDR = model.sourceCIDR; this.sourceVSwitchId = model.sourceVSwitchId; this.status = model.status; } /** * EipAffinity. */ public Builder eipAffinity(String eipAffinity) { this.eipAffinity = eipAffinity; return this; } /** * <p>The ID of the NAT gateway to which the SNAT entry belongs.</p> * * <strong>example:</strong> * <p>ngw-bp1uewa15k4iy5770****</p> */ public Builder natGatewayId(String natGatewayId) { this.natGatewayId = natGatewayId; return this; } /** * NetworkInterfaceId. */ public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; } /** * <p>The ID of the SNAT entry.</p> * * <strong>example:</strong> * <p>snat-kmd6nv8fy****</p> */ public Builder snatEntryId(String snatEntryId) { this.snatEntryId = snatEntryId; return this; } /** * <p>The name of the SNAT entry.</p> * * <strong>example:</strong> * <p>SnatEntry-1</p> */ public Builder snatEntryName(String snatEntryName) { this.snatEntryName = snatEntryName; return this; } /** * <ul> * <li>When you query SNAT entries of Internet NAT gateways, this parameter indicates the EIP in an SNAT entry.</li> * <li>When you query SNAT entries of VPC NAT gateways, this parameter indicates the NAT IP address in an SNAT entry.</li> * </ul> * * <strong>example:</strong> * <p>116.22.XX.XX</p> */ public Builder snatIp(String snatIp) { this.snatIp = snatIp; return this; } /** * <p>The ID of the SNAT table to which the SNAT entry belongs.</p> * * <strong>example:</strong> * <p>stb-gz3r3odawdgffde****</p> */ public Builder snatTableId(String snatTableId) { this.snatTableId = snatTableId; return this; } /** * <p>The source CIDR block specified in the SNAT entry.</p> * * <strong>example:</strong> * <p>116.22.XX.XX/24</p> */ public Builder sourceCIDR(String sourceCIDR) { this.sourceCIDR = sourceCIDR; return this; } /** * <ul> * <li>When you query SNAT entries of Internet NAT gateways, this parameter indicates the ID of the vSwitch that uses SNAT to access the Internet.</li> * <li>When you query SNAT entries of VPC NAT gateways, this parameter indicates the ID of the vSwitch that uses SNAT to access external networks.</li> * </ul> * * <strong>example:</strong> * <p>vsw-3xbdsffvfgdfds****</p> */ public Builder sourceVSwitchId(String sourceVSwitchId) { this.sourceVSwitchId = sourceVSwitchId; return this; } /** * <p>The status of the SNAT entry. Valid values:</p> * <ul> * <li><strong>Pending</strong></li> * <li><strong>Available</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Pending</p> */ public Builder status(String status) { this.status = status; return this; } public SnatTableEntry build() { return new SnatTableEntry(this); } } } /** * * {@link DescribeSnatTableEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeSnatTableEntriesResponseBody</p> */ public static class SnatTableEntries extends TeaModel { @com.aliyun.core.annotation.NameInMap("SnatTableEntry") private java.util.List<SnatTableEntry> snatTableEntry; private SnatTableEntries(Builder builder) { this.snatTableEntry = builder.snatTableEntry; } public static Builder builder() { return new Builder(); } public static SnatTableEntries create() { return builder().build(); } /** * @return snatTableEntry */ public java.util.List<SnatTableEntry> getSnatTableEntry() { return this.snatTableEntry; } public static final class Builder { private java.util.List<SnatTableEntry> snatTableEntry; private Builder() { } private Builder(SnatTableEntries model) { this.snatTableEntry = model.snatTableEntry; } /** * SnatTableEntry. */ public Builder snatTableEntry(java.util.List<SnatTableEntry> snatTableEntry) { this.snatTableEntry = snatTableEntry; return this; } public SnatTableEntries build() { return new SnatTableEntries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientCertRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientCertRequest} extends {@link RequestModel} * * <p>DescribeSslVpnClientCertRequest</p> */ public class DescribeSslVpnClientCertRequest 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("SslVpnClientCertId") @com.aliyun.core.annotation.Validation(required = true) private String sslVpnClientCertId; private DescribeSslVpnClientCertRequest(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.sslVpnClientCertId = builder.sslVpnClientCertId; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnClientCertRequest 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 sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } public static final class Builder extends Request.Builder<DescribeSslVpnClientCertRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sslVpnClientCertId; private Builder() { super(); } private Builder(DescribeSslVpnClientCertRequest request) { super(request); this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.sslVpnClientCertId = request.sslVpnClientCertId; } /** * 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 client certificate. 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 that you want to query.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vsc-bp17r58rjf5r1gjyr****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.putQueryParameter("SslVpnClientCertId", sslVpnClientCertId); this.sslVpnClientCertId = sslVpnClientCertId; return this; } @Override public DescribeSslVpnClientCertRequest build() { return new DescribeSslVpnClientCertRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientCertResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientCertResponse} extends {@link TeaModel} * * <p>DescribeSslVpnClientCertResponse</p> */ public class DescribeSslVpnClientCertResponse 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 DescribeSslVpnClientCertResponseBody body; private DescribeSslVpnClientCertResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSslVpnClientCertResponse 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 DescribeSslVpnClientCertResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSslVpnClientCertResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSslVpnClientCertResponseBody body); @Override DescribeSslVpnClientCertResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSslVpnClientCertResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSslVpnClientCertResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSslVpnClientCertResponse 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(DescribeSslVpnClientCertResponseBody body) { this.body = body; return this; } @Override public DescribeSslVpnClientCertResponse build() { return new DescribeSslVpnClientCertResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientCertResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientCertResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnClientCertResponseBody</p> */ public class DescribeSslVpnClientCertResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CaCert") private String caCert; @com.aliyun.core.annotation.NameInMap("ClientCert") private String clientCert; @com.aliyun.core.annotation.NameInMap("ClientConfig") private String clientConfig; @com.aliyun.core.annotation.NameInMap("ClientKey") private String clientKey; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SslVpnClientCertId") private String sslVpnClientCertId; @com.aliyun.core.annotation.NameInMap("SslVpnServerId") private String sslVpnServerId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private DescribeSslVpnClientCertResponseBody(Builder builder) { this.caCert = builder.caCert; this.clientCert = builder.clientCert; this.clientConfig = builder.clientConfig; this.clientKey = builder.clientKey; this.createTime = builder.createTime; this.endTime = builder.endTime; this.name = builder.name; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.sslVpnClientCertId = builder.sslVpnClientCertId; this.sslVpnServerId = builder.sslVpnServerId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnClientCertResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return caCert */ public String getCaCert() { return this.caCert; } /** * @return clientCert */ public String getClientCert() { return this.clientCert; } /** * @return clientConfig */ public String getClientConfig() { return this.clientConfig; } /** * @return clientKey */ public String getClientKey() { return this.clientKey; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return name */ public String getName() { return this.name; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } /** * @return sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String caCert; private String clientCert; private String clientConfig; private String clientKey; private Long createTime; private Long endTime; private String name; private String regionId; private String requestId; private String resourceGroupId; private String sslVpnClientCertId; private String sslVpnServerId; private String status; private Builder() { } private Builder(DescribeSslVpnClientCertResponseBody model) { this.caCert = model.caCert; this.clientCert = model.clientCert; this.clientConfig = model.clientConfig; this.clientKey = model.clientKey; this.createTime = model.createTime; this.endTime = model.endTime; this.name = model.name; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.sslVpnClientCertId = model.sslVpnClientCertId; this.sslVpnServerId = model.sslVpnServerId; this.status = model.status; } /** * <p>The CA certificate.</p> * * <strong>example:</strong> * <p>CA certificate</p> */ public Builder caCert(String caCert) { this.caCert = caCert; return this; } /** * <p>The client certificate.</p> * * <strong>example:</strong> * <p>Client certificate</p> */ public Builder clientCert(String clientCert) { this.clientCert = clientCert; return this; } /** * <p>The client configuration.</p> * * <strong>example:</strong> * <p>Client configuration</p> */ public Builder clientConfig(String clientConfig) { this.clientConfig = clientConfig; return this; } /** * <p>The client key.</p> * * <strong>example:</strong> * <p>The key of the client</p> */ public Builder clientKey(String clientKey) { this.clientKey = clientKey; return this; } /** * <p>The timestamp that indicates when the SSL client certificate 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>1552550980000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The timestamp that indicates when the SSL client certificate expires. 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>1647158980000</p> */ public Builder endTime(Long endTime) { this.endTime = endTime; return this; } /** * <p>The name of the SSL client certificate.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The ID of the region where the SSL client certificate is created.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the SSL client certificate belongs.</p> * <p>The SSL client certificate and the SSL server associated with the SSL client certificate belong to the same resource group. You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource groups.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the SSL client certificate.</p> * * <strong>example:</strong> * <p>vsc-bp13k5mp4tg8v3z9b****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.sslVpnClientCertId = sslVpnClientCertId; return this; } /** * <p>The ID of the SSL server.</p> * * <strong>example:</strong> * <p>vss-bp155e9yclsg1xgq4****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.sslVpnServerId = sslVpnServerId; return this; } /** * <p>The status of the SSL client certificate. Valid values:</p> * <ul> * <li><strong>expiring-soon</strong></li> * <li><strong>normal</strong></li> * <li><strong>expired</strong></li> * </ul> * * <strong>example:</strong> * <p>normal</p> */ public Builder status(String status) { this.status = status; return this; } public DescribeSslVpnClientCertResponseBody build() { return new DescribeSslVpnClientCertResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientCertsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientCertsRequest} extends {@link RequestModel} * * <p>DescribeSslVpnClientCertsRequest</p> */ public class DescribeSslVpnClientCertsRequest extends Request { @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") 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("SslVpnClientCertId") private String sslVpnClientCertId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SslVpnServerId") private String sslVpnServerId; private DescribeSslVpnClientCertsRequest(Builder builder) { super(builder); 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.sslVpnClientCertId = builder.sslVpnClientCertId; this.sslVpnServerId = builder.sslVpnServerId; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnClientCertsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } /** * @return sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } public static final class Builder extends Request.Builder<DescribeSslVpnClientCertsRequest, Builder> { 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 String sslVpnClientCertId; private String sslVpnServerId; private Builder() { super(); } private Builder(DescribeSslVpnClientCertsRequest request) { super(request); 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.sslVpnClientCertId = request.sslVpnClientCertId; this.sslVpnServerId = request.sslVpnServerId; } /** * <p>The name of the SSL client certificate.</p> * * <strong>example:</strong> * <p>cert1</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. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</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 SSL client certificate.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the SSL client certificate belongs.</p> * <p>The SSL client certificate and its associated SSL server belong to the same resource group. You can call the <a href="https://help.aliyun.com/document_detail/2794078.html">DescribeSslVpnServers</a> operation to query the ID of the resource group to which the SSL server belongs.</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 ID of the SSL client certificate.</p> * * <strong>example:</strong> * <p>vsc-bp1n8wcf134yl0osr****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.putQueryParameter("SslVpnClientCertId", sslVpnClientCertId); this.sslVpnClientCertId = sslVpnClientCertId; return this; } /** * <p>The ID of the SSL server.</p> * * <strong>example:</strong> * <p>vss-bp18q7hzj6largv4v****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.putQueryParameter("SslVpnServerId", sslVpnServerId); this.sslVpnServerId = sslVpnServerId; return this; } @Override public DescribeSslVpnClientCertsRequest build() { return new DescribeSslVpnClientCertsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientCertsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientCertsResponse} extends {@link TeaModel} * * <p>DescribeSslVpnClientCertsResponse</p> */ public class DescribeSslVpnClientCertsResponse 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 DescribeSslVpnClientCertsResponseBody body; private DescribeSslVpnClientCertsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSslVpnClientCertsResponse 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 DescribeSslVpnClientCertsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSslVpnClientCertsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSslVpnClientCertsResponseBody body); @Override DescribeSslVpnClientCertsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSslVpnClientCertsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSslVpnClientCertsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSslVpnClientCertsResponse 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(DescribeSslVpnClientCertsResponseBody body) { this.body = body; return this; } @Override public DescribeSslVpnClientCertsResponse build() { return new DescribeSslVpnClientCertsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientCertsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientCertsResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnClientCertsResponseBody</p> */ public class DescribeSslVpnClientCertsResponseBody extends TeaModel { @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("SslVpnClientCertKeys") private SslVpnClientCertKeys sslVpnClientCertKeys; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSslVpnClientCertsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.sslVpnClientCertKeys = builder.sslVpnClientCertKeys; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnClientCertsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 sslVpnClientCertKeys */ public SslVpnClientCertKeys getSslVpnClientCertKeys() { return this.sslVpnClientCertKeys; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private SslVpnClientCertKeys sslVpnClientCertKeys; private Integer totalCount; private Builder() { } private Builder(DescribeSslVpnClientCertsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.sslVpnClientCertKeys = model.sslVpnClientCertKeys; this.totalCount = model.totalCount; } /** * <p>The number of the page to return.</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>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about the SSL client certificates.</p> */ public Builder sslVpnClientCertKeys(SslVpnClientCertKeys sslVpnClientCertKeys) { this.sslVpnClientCertKeys = sslVpnClientCertKeys; 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 DescribeSslVpnClientCertsResponseBody build() { return new DescribeSslVpnClientCertsResponseBody(this); } } /** * * {@link DescribeSslVpnClientCertsResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnClientCertsResponseBody</p> */ public static class SslVpnClientCertKey extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SslVpnClientCertId") private String sslVpnClientCertId; @com.aliyun.core.annotation.NameInMap("SslVpnServerId") private String sslVpnServerId; @com.aliyun.core.annotation.NameInMap("Status") private String status; private SslVpnClientCertKey(Builder builder) { this.createTime = builder.createTime; this.endTime = builder.endTime; this.name = builder.name; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.sslVpnClientCertId = builder.sslVpnClientCertId; this.sslVpnServerId = builder.sslVpnServerId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static SslVpnClientCertKey create() { return builder().build(); } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return name */ public String getName() { return this.name; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } /** * @return sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private Long createTime; private Long endTime; private String name; private String regionId; private String resourceGroupId; private String sslVpnClientCertId; private String sslVpnServerId; private String status; private Builder() { } private Builder(SslVpnClientCertKey model) { this.createTime = model.createTime; this.endTime = model.endTime; this.name = model.name; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.sslVpnClientCertId = model.sslVpnClientCertId; this.sslVpnServerId = model.sslVpnServerId; this.status = model.status; } /** * <p>The timestamp generated when the SSL client certificate was created. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1492747187000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The timestamp generated when the SSL client certificate expires. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1494966335000</p> */ public Builder endTime(Long endTime) { this.endTime = endTime; return this; } /** * <p>The name of the SSL client certificate.</p> * * <strong>example:</strong> * <p>cert1</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The region ID of the SSL client certificate.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the SSL client certificate 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 ID of the SSL client certificate.</p> * * <strong>example:</strong> * <p>vsc-bp1n8wcf134yl0osr****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.sslVpnClientCertId = sslVpnClientCertId; return this; } /** * <p>The ID of the SSL server.</p> * * <strong>example:</strong> * <p>vss-bp18q7hzj6largv4v****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.sslVpnServerId = sslVpnServerId; return this; } /** * <p>The status of the SSL client certificate. Valid values:</p> * <ul> * <li><strong>expiring-soon</strong>: The certificate expires in one week.</li> * <li><strong>normal</strong></li> * <li><strong>expired</strong></li> * </ul> * * <strong>example:</strong> * <p>normal</p> */ public Builder status(String status) { this.status = status; return this; } public SslVpnClientCertKey build() { return new SslVpnClientCertKey(this); } } } /** * * {@link DescribeSslVpnClientCertsResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnClientCertsResponseBody</p> */ public static class SslVpnClientCertKeys extends TeaModel { @com.aliyun.core.annotation.NameInMap("SslVpnClientCertKey") private java.util.List<SslVpnClientCertKey> sslVpnClientCertKey; private SslVpnClientCertKeys(Builder builder) { this.sslVpnClientCertKey = builder.sslVpnClientCertKey; } public static Builder builder() { return new Builder(); } public static SslVpnClientCertKeys create() { return builder().build(); } /** * @return sslVpnClientCertKey */ public java.util.List<SslVpnClientCertKey> getSslVpnClientCertKey() { return this.sslVpnClientCertKey; } public static final class Builder { private java.util.List<SslVpnClientCertKey> sslVpnClientCertKey; private Builder() { } private Builder(SslVpnClientCertKeys model) { this.sslVpnClientCertKey = model.sslVpnClientCertKey; } /** * SslVpnClientCertKey. */ public Builder sslVpnClientCertKey(java.util.List<SslVpnClientCertKey> sslVpnClientCertKey) { this.sslVpnClientCertKey = sslVpnClientCertKey; return this; } public SslVpnClientCertKeys build() { return new SslVpnClientCertKeys(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientsRequest} extends {@link RequestModel} * * <p>DescribeSslVpnClientsRequest</p> */ public class DescribeSslVpnClientsRequest 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") 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("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; private DescribeSslVpnClientsRequest(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.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnClientsRequest 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 vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<DescribeSslVpnClientsRequest, Builder> { private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeSslVpnClientsRequest 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.vpnGatewayId = request.vpnGatewayId; } /** * 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</strong> to <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 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>eu-central-1</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-gw8gfb947ctddabja****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public DescribeSslVpnClientsRequest build() { return new DescribeSslVpnClientsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientsResponse} extends {@link TeaModel} * * <p>DescribeSslVpnClientsResponse</p> */ public class DescribeSslVpnClientsResponse 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 DescribeSslVpnClientsResponseBody body; private DescribeSslVpnClientsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSslVpnClientsResponse 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 DescribeSslVpnClientsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSslVpnClientsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSslVpnClientsResponseBody body); @Override DescribeSslVpnClientsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSslVpnClientsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSslVpnClientsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSslVpnClientsResponse 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(DescribeSslVpnClientsResponseBody body) { this.body = body; return this; } @Override public DescribeSslVpnClientsResponse build() { return new DescribeSslVpnClientsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnClientsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnClientsResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnClientsResponseBody</p> */ public class DescribeSslVpnClientsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClientInfoList") private java.util.List<ClientInfoList> clientInfoList; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private DescribeSslVpnClientsResponseBody(Builder builder) { this.clientInfoList = builder.clientInfoList; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnClientsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return clientInfoList */ public java.util.List<ClientInfoList> getClientInfoList() { return this.clientInfoList; } /** * @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 requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private java.util.List<ClientInfoList> clientInfoList; private Integer pageNumber; private Integer pageSize; private String regionId; private String requestId; private Integer totalCount; private String vpnGatewayId; private Builder() { } private Builder(DescribeSslVpnClientsResponseBody model) { this.clientInfoList = model.clientInfoList; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.regionId = model.regionId; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The list of clients.</p> */ public Builder clientInfoList(java.util.List<ClientInfoList> clientInfoList) { this.clientInfoList = clientInfoList; 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 region ID.</p> * * <strong>example:</strong> * <p>eu-central-1</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>885E117D-06A9-38A3-8DD2-40BDAC429FFC</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; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-gw8gfb947ctddabja****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public DescribeSslVpnClientsResponseBody build() { return new DescribeSslVpnClientsResponseBody(this); } } /** * * {@link DescribeSslVpnClientsResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnClientsResponseBody</p> */ public static class ClientInfoList extends TeaModel { @com.aliyun.core.annotation.NameInMap("CommonName") private String commonName; @com.aliyun.core.annotation.NameInMap("ConnectedTime") private Long connectedTime; @com.aliyun.core.annotation.NameInMap("Ip") private String ip; @com.aliyun.core.annotation.NameInMap("Port") private String port; @com.aliyun.core.annotation.NameInMap("PrivateIp") private String privateIp; @com.aliyun.core.annotation.NameInMap("ReceiveBytes") private Long receiveBytes; @com.aliyun.core.annotation.NameInMap("SendBytes") private Long sendBytes; @com.aliyun.core.annotation.NameInMap("Status") private String status; private ClientInfoList(Builder builder) { this.commonName = builder.commonName; this.connectedTime = builder.connectedTime; this.ip = builder.ip; this.port = builder.port; this.privateIp = builder.privateIp; this.receiveBytes = builder.receiveBytes; this.sendBytes = builder.sendBytes; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ClientInfoList create() { return builder().build(); } /** * @return commonName */ public String getCommonName() { return this.commonName; } /** * @return connectedTime */ public Long getConnectedTime() { return this.connectedTime; } /** * @return ip */ public String getIp() { return this.ip; } /** * @return port */ public String getPort() { return this.port; } /** * @return privateIp */ public String getPrivateIp() { return this.privateIp; } /** * @return receiveBytes */ public Long getReceiveBytes() { return this.receiveBytes; } /** * @return sendBytes */ public Long getSendBytes() { return this.sendBytes; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String commonName; private Long connectedTime; private String ip; private String port; private String privateIp; private Long receiveBytes; private Long sendBytes; private String status; private Builder() { } private Builder(ClientInfoList model) { this.commonName = model.commonName; this.connectedTime = model.connectedTime; this.ip = model.ip; this.port = model.port; this.privateIp = model.privateIp; this.receiveBytes = model.receiveBytes; this.sendBytes = model.sendBytes; this.status = model.status; } /** * <p>The SSL client certificate used by the client.</p> * <blockquote> * <p> If the client uses two-factor authentication to establish an SSL-VPN connection to Alibaba Cloud, the return value is the username of the client.</p> * </blockquote> * * <strong>example:</strong> * <p>CN=vsc-gw8gkh6gtilf1whgc****</p> */ public Builder commonName(String commonName) { this.commonName = commonName; return this; } /** * <p>The timestamp that indicates when the client connected to Alibaba Cloud through an SSL-VPN connection. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1670985008000</p> */ public Builder connectedTime(Long connectedTime) { this.connectedTime = connectedTime; return this; } /** * <p>The actual public IP address used by the client when the client established an SSL-VPN connection to Alibaba Cloud.</p> * * <strong>example:</strong> * <p>8.XX.XX.15</p> */ public Builder ip(String ip) { this.ip = ip; return this; } /** * <p>The port used by the client when the client established an SSL-VPN connection to Alibaba Cloud.</p> * * <strong>example:</strong> * <p>4****</p> */ public Builder port(String port) { this.port = port; return this; } /** * <p>The private IP address allocated to the client by the VPN gateway when the client established an SSL-VPN connection to Alibaba Cloud.</p> * * <strong>example:</strong> * <p>10.10.10.10</p> */ public Builder privateIp(String privateIp) { this.privateIp = privateIp; return this; } /** * <p>The amount of data transferred from the client to the VPN gateway through the SSL-VPN connection. Unit: bytes.</p> * * <strong>example:</strong> * <p>60782</p> */ public Builder receiveBytes(Long receiveBytes) { this.receiveBytes = receiveBytes; return this; } /** * <p>The amount of data transferred from the VPN gateway to the client through the SSL-VPN connection. Unit: bytes.</p> * * <strong>example:</strong> * <p>57144</p> */ public Builder sendBytes(Long sendBytes) { this.sendBytes = sendBytes; return this; } /** * <p>The status of the SSL-VPN connection.</p> * <p>The value is set to <strong>online</strong>, which indicates that the client has connected to Alibaba Cloud through an SSL-VPN connection.</p> * * <strong>example:</strong> * <p>online</p> */ public Builder status(String status) { this.status = status; return this; } public ClientInfoList build() { return new ClientInfoList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnServersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnServersRequest} extends {@link RequestModel} * * <p>DescribeSslVpnServersRequest</p> */ public class DescribeSslVpnServersRequest extends Request { @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") 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("SslVpnServerId") private String sslVpnServerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private DescribeSslVpnServersRequest(Builder builder) { super(builder); 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.sslVpnServerId = builder.sslVpnServerId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<DescribeSslVpnServersRequest, Builder> { 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 String sslVpnServerId; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeSslVpnServersRequest request) { super(request); 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.sslVpnServerId = request.sslVpnServerId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The SSL server name.</p> * <p>The name must be 1 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The 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 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; } /** * <p>The resource group ID of the SSL server.</p> * <p>The SSL server and its associated VPN gateway belong to the same resource group. You can call the <a href="https://help.aliyun.com/document_detail/2794055.html">DescribeVpnGateway</a> operation to query the ID of the resource group to which the VPN gateway belongs.</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 ID of the SSL server.</p> * * <strong>example:</strong> * <p>vss-bp15j3du13gq1dgey****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.putQueryParameter("SslVpnServerId", sslVpnServerId); this.sslVpnServerId = sslVpnServerId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1on0xae9d771ggi****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public DescribeSslVpnServersRequest build() { return new DescribeSslVpnServersRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnServersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnServersResponse} extends {@link TeaModel} * * <p>DescribeSslVpnServersResponse</p> */ public class DescribeSslVpnServersResponse 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 DescribeSslVpnServersResponseBody body; private DescribeSslVpnServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeSslVpnServersResponse 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 DescribeSslVpnServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeSslVpnServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeSslVpnServersResponseBody body); @Override DescribeSslVpnServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeSslVpnServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeSslVpnServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeSslVpnServersResponse 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(DescribeSslVpnServersResponseBody body) { this.body = body; return this; } @Override public DescribeSslVpnServersResponse build() { return new DescribeSslVpnServersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeSslVpnServersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeSslVpnServersResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnServersResponseBody</p> */ public class DescribeSslVpnServersResponseBody extends TeaModel { @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("SslVpnServers") private SslVpnServers sslVpnServers; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSslVpnServersResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.sslVpnServers = builder.sslVpnServers; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSslVpnServersResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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 sslVpnServers */ public SslVpnServers getSslVpnServers() { return this.sslVpnServers; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private SslVpnServers sslVpnServers; private Integer totalCount; private Builder() { } private Builder(DescribeSslVpnServersResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.sslVpnServers = model.sslVpnServers; this.totalCount = model.totalCount; } /** * <p>The number of the page to return.</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>D350187B-EA41-4577-950B-95434C8302E1</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The detailed information about the SSL-VPN servers.</p> */ public Builder sslVpnServers(SslVpnServers sslVpnServers) { this.sslVpnServers = sslVpnServers; 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 DescribeSslVpnServersResponseBody build() { return new DescribeSslVpnServersResponseBody(this); } } /** * * {@link DescribeSslVpnServersResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnServersResponseBody</p> */ public static class SslVpnServer extends TeaModel { @com.aliyun.core.annotation.NameInMap("Cipher") private String cipher; @com.aliyun.core.annotation.NameInMap("ClientIpPool") private String clientIpPool; @com.aliyun.core.annotation.NameInMap("Compress") private Boolean compress; @com.aliyun.core.annotation.NameInMap("Connections") private Integer connections; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("EnableMultiFactorAuth") private Boolean enableMultiFactorAuth; @com.aliyun.core.annotation.NameInMap("IDaaSApplicationId") private String iDaaSApplicationId; @com.aliyun.core.annotation.NameInMap("IDaaSInstanceId") private String iDaaSInstanceId; @com.aliyun.core.annotation.NameInMap("IDaaSInstanceVersion") private String iDaaSInstanceVersion; @com.aliyun.core.annotation.NameInMap("IDaaSRegionId") private String iDaaSRegionId; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("MaxConnections") private Integer maxConnections; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Port") private Integer port; @com.aliyun.core.annotation.NameInMap("Proto") private String proto; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SslVpnServerId") private String sslVpnServerId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private SslVpnServer(Builder builder) { this.cipher = builder.cipher; this.clientIpPool = builder.clientIpPool; this.compress = builder.compress; this.connections = builder.connections; this.createTime = builder.createTime; this.enableMultiFactorAuth = builder.enableMultiFactorAuth; this.iDaaSApplicationId = builder.iDaaSApplicationId; this.iDaaSInstanceId = builder.iDaaSInstanceId; this.iDaaSInstanceVersion = builder.iDaaSInstanceVersion; this.iDaaSRegionId = builder.iDaaSRegionId; this.internetIp = builder.internetIp; this.localSubnet = builder.localSubnet; this.maxConnections = builder.maxConnections; this.name = builder.name; this.port = builder.port; this.proto = builder.proto; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.sslVpnServerId = builder.sslVpnServerId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static SslVpnServer create() { return builder().build(); } /** * @return cipher */ public String getCipher() { return this.cipher; } /** * @return clientIpPool */ public String getClientIpPool() { return this.clientIpPool; } /** * @return compress */ public Boolean getCompress() { return this.compress; } /** * @return connections */ public Integer getConnections() { return this.connections; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return enableMultiFactorAuth */ public Boolean getEnableMultiFactorAuth() { return this.enableMultiFactorAuth; } /** * @return iDaaSApplicationId */ public String getIDaaSApplicationId() { return this.iDaaSApplicationId; } /** * @return iDaaSInstanceId */ public String getIDaaSInstanceId() { return this.iDaaSInstanceId; } /** * @return iDaaSInstanceVersion */ public String getIDaaSInstanceVersion() { return this.iDaaSInstanceVersion; } /** * @return iDaaSRegionId */ public String getIDaaSRegionId() { return this.iDaaSRegionId; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return maxConnections */ public Integer getMaxConnections() { return this.maxConnections; } /** * @return name */ public String getName() { return this.name; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return proto */ public String getProto() { return this.proto; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return sslVpnServerId */ public String getSslVpnServerId() { return this.sslVpnServerId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String cipher; private String clientIpPool; private Boolean compress; private Integer connections; private Long createTime; private Boolean enableMultiFactorAuth; private String iDaaSApplicationId; private String iDaaSInstanceId; private String iDaaSInstanceVersion; private String iDaaSRegionId; private String internetIp; private String localSubnet; private Integer maxConnections; private String name; private Integer port; private String proto; private String regionId; private String resourceGroupId; private String sslVpnServerId; private String vpnGatewayId; private Builder() { } private Builder(SslVpnServer model) { this.cipher = model.cipher; this.clientIpPool = model.clientIpPool; this.compress = model.compress; this.connections = model.connections; this.createTime = model.createTime; this.enableMultiFactorAuth = model.enableMultiFactorAuth; this.iDaaSApplicationId = model.iDaaSApplicationId; this.iDaaSInstanceId = model.iDaaSInstanceId; this.iDaaSInstanceVersion = model.iDaaSInstanceVersion; this.iDaaSRegionId = model.iDaaSRegionId; this.internetIp = model.internetIp; this.localSubnet = model.localSubnet; this.maxConnections = model.maxConnections; this.name = model.name; this.port = model.port; this.proto = model.proto; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.sslVpnServerId = model.sslVpnServerId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The encryption algorithm.</p> * * <strong>example:</strong> * <p>AES-128-CBC</p> */ public Builder cipher(String cipher) { this.cipher = cipher; return this; } /** * <p>The client CIDR block.</p> * * <strong>example:</strong> * <p>10.10.1.0/24</p> */ public Builder clientIpPool(String clientIpPool) { this.clientIpPool = clientIpPool; return this; } /** * <p>Indicates whether data compression is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder compress(Boolean compress) { this.compress = compress; return this; } /** * <p>The total number of current connections.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder connections(Integer connections) { this.connections = connections; return this; } /** * <p>The timestamp generated when the SSL-VPN server was created.</p> * * <strong>example:</strong> * <p>1613800884000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>Indicates whether two-factor authentication is enabled.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableMultiFactorAuth(Boolean enableMultiFactorAuth) { this.enableMultiFactorAuth = enableMultiFactorAuth; return this; } /** * <p>The ID of the IDaaS application.</p> * * <strong>example:</strong> * <p>app_my6g4qmvnwxzj2f****</p> */ public Builder iDaaSApplicationId(String iDaaSApplicationId) { this.iDaaSApplicationId = iDaaSApplicationId; return this; } /** * <p>The ID of the IDaaS EIAM instance.</p> * * <strong>example:</strong> * <p>idaas-cn-hangzhou-****</p> */ public Builder iDaaSInstanceId(String iDaaSInstanceId) { this.iDaaSInstanceId = iDaaSInstanceId; return this; } /** * <p>The version of the IDaaS EIAM instance.</p> * <ul> * <li>This parameter is returned only if the SSL server is associated with an IDaaS EIAM 2.0 instance. Only <strong>EIAM 2.0</strong> is returned.</li> * <li>If the SSL server is associated with an IDaaS EIAM 1.0 instance, no value is returned.</li> * </ul> * * <strong>example:</strong> * <p>EIAM 2.0</p> */ public Builder iDaaSInstanceVersion(String iDaaSInstanceVersion) { this.iDaaSInstanceVersion = iDaaSInstanceVersion; return this; } /** * <p>The region ID of the IDaaS EIAM instance.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder iDaaSRegionId(String iDaaSRegionId) { this.iDaaSRegionId = iDaaSRegionId; return this; } /** * <p>The public IP address of the VPN gateway.</p> * * <strong>example:</strong> * <p>47.5.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The local CIDR block.</p> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder localSubnet(String localSubnet) { this.localSubnet = localSubnet; return this; } /** * <p>The maximum number of connections.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder maxConnections(Integer maxConnections) { this.maxConnections = maxConnections; return this; } /** * <p>The name of the SSL server.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The port that is used by the SSL-VPN server.</p> * * <strong>example:</strong> * <p>1194</p> */ public Builder port(Integer port) { this.port = port; return this; } /** * <p>The protocol that is used by the SSL server.</p> * * <strong>example:</strong> * <p>UDP</p> */ public Builder proto(String proto) { this.proto = proto; return this; } /** * <p>The region ID of the SSL server.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The resource group ID of the SSL server.</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 ID of the SSL server.</p> * * <strong>example:</strong> * <p>vss-bp15j3du13gq1dgey****</p> */ public Builder sslVpnServerId(String sslVpnServerId) { this.sslVpnServerId = sslVpnServerId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1on0xae9d771ggi****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public SslVpnServer build() { return new SslVpnServer(this); } } } /** * * {@link DescribeSslVpnServersResponseBody} extends {@link TeaModel} * * <p>DescribeSslVpnServersResponseBody</p> */ public static class SslVpnServers extends TeaModel { @com.aliyun.core.annotation.NameInMap("SslVpnServer") private java.util.List<SslVpnServer> sslVpnServer; private SslVpnServers(Builder builder) { this.sslVpnServer = builder.sslVpnServer; } public static Builder builder() { return new Builder(); } public static SslVpnServers create() { return builder().build(); } /** * @return sslVpnServer */ public java.util.List<SslVpnServer> getSslVpnServer() { return this.sslVpnServer; } public static final class Builder { private java.util.List<SslVpnServer> sslVpnServer; private Builder() { } private Builder(SslVpnServers model) { this.sslVpnServer = model.sslVpnServer; } /** * SslVpnServer. */ public Builder sslVpnServer(java.util.List<SslVpnServer> sslVpnServer) { this.sslVpnServer = sslVpnServer; return this; } public SslVpnServers build() { return new SslVpnServers(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagKeysForExpressConnectRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagKeysForExpressConnectRequest} extends {@link RequestModel} * * <p>DescribeTagKeysForExpressConnectRequest</p> */ public class DescribeTagKeysForExpressConnectRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Keyword") private String keyword; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResult") @com.aliyun.core.annotation.Validation(maximum = 500) private Integer maxResult; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @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("ResourceId") private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private DescribeTagKeysForExpressConnectRequest(Builder builder) { super(builder); this.keyword = builder.keyword; this.maxResult = builder.maxResult; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static DescribeTagKeysForExpressConnectRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return keyword */ public String getKeyword() { return this.keyword; } /** * @return maxResult */ public Integer getMaxResult() { return this.maxResult; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<DescribeTagKeysForExpressConnectRequest, Builder> { private String keyword; private Integer maxResult; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private Builder() { super(); } private Builder(DescribeTagKeysForExpressConnectRequest request) { super(request); this.keyword = request.keyword; this.maxResult = request.maxResult; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; } /** * <p>The keyword of the tag. Fuzzy match is supported. You can specify a keyword to query all tags that contain the keyword.</p> * * <strong>example:</strong> * <p>keyword</p> */ public Builder keyword(String keyword) { this.putQueryParameter("Keyword", keyword); this.keyword = keyword; return this; } /** * <p>The number of entries per page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResult(Integer maxResult) { this.putQueryParameter("MaxResult", maxResult); this.maxResult = maxResult; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results.</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>You must specify the token that is obtained from the previous query as the value of NextToken.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; 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 resource resides.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The IDs of the resources. You can specify up to 20 resource IDs.</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of the resource. Set the value to <strong>PHYSICALCONNECTION</strong>, which specifies an Express Connect circuit.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public DescribeTagKeysForExpressConnectRequest build() { return new DescribeTagKeysForExpressConnectRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagKeysForExpressConnectResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagKeysForExpressConnectResponse} extends {@link TeaModel} * * <p>DescribeTagKeysForExpressConnectResponse</p> */ public class DescribeTagKeysForExpressConnectResponse 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 DescribeTagKeysForExpressConnectResponseBody body; private DescribeTagKeysForExpressConnectResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTagKeysForExpressConnectResponse 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 DescribeTagKeysForExpressConnectResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTagKeysForExpressConnectResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTagKeysForExpressConnectResponseBody body); @Override DescribeTagKeysForExpressConnectResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTagKeysForExpressConnectResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTagKeysForExpressConnectResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTagKeysForExpressConnectResponse 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(DescribeTagKeysForExpressConnectResponseBody body) { this.body = body; return this; } @Override public DescribeTagKeysForExpressConnectResponse build() { return new DescribeTagKeysForExpressConnectResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagKeysForExpressConnectResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagKeysForExpressConnectResponseBody} extends {@link TeaModel} * * <p>DescribeTagKeysForExpressConnectResponseBody</p> */ public class DescribeTagKeysForExpressConnectResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TagKeys") private TagKeys tagKeys; private DescribeTagKeysForExpressConnectResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagKeys = builder.tagKeys; } public static Builder builder() { return new Builder(); } public static DescribeTagKeysForExpressConnectResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return tagKeys */ public TagKeys getTagKeys() { return this.tagKeys; } public static final class Builder { private String nextToken; private String requestId; private TagKeys tagKeys; private Builder() { } private Builder(DescribeTagKeysForExpressConnectResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagKeys = model.tagKeys; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results.</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If a value is returned for <strong>NextToken</strong>, the value can be used in the next request to retrieve a new page of results.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The tag keys.</p> */ public Builder tagKeys(TagKeys tagKeys) { this.tagKeys = tagKeys; return this; } public DescribeTagKeysForExpressConnectResponseBody build() { return new DescribeTagKeysForExpressConnectResponseBody(this); } } /** * * {@link DescribeTagKeysForExpressConnectResponseBody} extends {@link TeaModel} * * <p>DescribeTagKeysForExpressConnectResponseBody</p> */ public static class TagKey extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("Type") private String type; private TagKey(Builder builder) { this.tagKey = builder.tagKey; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static TagKey create() { return builder().build(); } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String tagKey; private String type; private Builder() { } private Builder(TagKey model) { this.tagKey = model.tagKey; this.type = model.type; } /** * <p>The key of the tag.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The type of the resource. The value is set to <strong>PHYSICALCONNECTION</strong>, which indicates an Express Connect circuit.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder type(String type) { this.type = type; return this; } public TagKey build() { return new TagKey(this); } } } /** * * {@link DescribeTagKeysForExpressConnectResponseBody} extends {@link TeaModel} * * <p>DescribeTagKeysForExpressConnectResponseBody</p> */ public static class TagKeys extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private java.util.List<TagKey> tagKey; private TagKeys(Builder builder) { this.tagKey = builder.tagKey; } public static Builder builder() { return new Builder(); } public static TagKeys create() { return builder().build(); } /** * @return tagKey */ public java.util.List<TagKey> getTagKey() { return this.tagKey; } public static final class Builder { private java.util.List<TagKey> tagKey; private Builder() { } private Builder(TagKeys model) { this.tagKey = model.tagKey; } /** * <p>The key of the tag.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(java.util.List<TagKey> tagKey) { this.tagKey = tagKey; return this; } public TagKeys build() { return new TagKeys(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagKeysRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagKeysRequest} extends {@link RequestModel} * * <p>DescribeTagKeysRequest</p> */ public class DescribeTagKeysRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Keyword") private String keyword; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResult") @com.aliyun.core.annotation.Validation(maximum = 500) private Integer maxResult; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @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("ResourceId") private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private DescribeTagKeysRequest(Builder builder) { super(builder); this.keyword = builder.keyword; this.maxResult = builder.maxResult; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static DescribeTagKeysRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return keyword */ public String getKeyword() { return this.keyword; } /** * @return maxResult */ public Integer getMaxResult() { return this.maxResult; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<DescribeTagKeysRequest, Builder> { private String keyword; private Integer maxResult; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private Builder() { super(); } private Builder(DescribeTagKeysRequest request) { super(request); this.keyword = request.keyword; this.maxResult = request.maxResult; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; } /** * <p>The tag keys.</p> * * <strong>example:</strong> * <p>keyword</p> */ public Builder keyword(String keyword) { this.putQueryParameter("Keyword", keyword); this.keyword = keyword; return this; } /** * <p>The number of entries per page. Valid values: 1 to 50. Default value: 50.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResult(Integer maxResult) { this.putQueryParameter("MaxResult", maxResult); this.maxResult = maxResult; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If this is your first query or no next query is to be sent, ignore this parameter.</li> * <li>If a subsequent query is to be sent, set the parameter to the value of NextToken that is returned from the last call.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; 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; } /** * <p>The resource IDs. You can specify up to 20 resource IDs.</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>VPC</strong>: virtual private cloud (VPC)</li> * <li><strong>VSWITCH</strong>: vSwitch</li> * <li><strong>ROUTETABLE</strong>: route table</li> * <li><strong>EIP</strong>: elastic IP address (EIP)</li> * <li><strong>VpnGateway</strong>: VPN gateway</li> * <li><strong>NATGATEWAY</strong>: NAT gateway</li> * <li><strong>COMMONBANDWIDTHPACKAGE</strong>: EIP bandwidth plan</li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public DescribeTagKeysRequest build() { return new DescribeTagKeysRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagKeysResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagKeysResponse} extends {@link TeaModel} * * <p>DescribeTagKeysResponse</p> */ public class DescribeTagKeysResponse 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 DescribeTagKeysResponseBody body; private DescribeTagKeysResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTagKeysResponse 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 DescribeTagKeysResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTagKeysResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTagKeysResponseBody body); @Override DescribeTagKeysResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTagKeysResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTagKeysResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTagKeysResponse 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(DescribeTagKeysResponseBody body) { this.body = body; return this; } @Override public DescribeTagKeysResponse build() { return new DescribeTagKeysResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagKeysResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagKeysResponseBody} extends {@link TeaModel} * * <p>DescribeTagKeysResponseBody</p> */ public class DescribeTagKeysResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TagKeys") private TagKeys tagKeys; private DescribeTagKeysResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagKeys = builder.tagKeys; } public static Builder builder() { return new Builder(); } public static DescribeTagKeysResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return tagKeys */ public TagKeys getTagKeys() { return this.tagKeys; } public static final class Builder { private String nextToken; private String requestId; private TagKeys tagKeys; private Builder() { } private Builder(DescribeTagKeysResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagKeys = model.tagKeys; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If the value of <strong>NextToken</strong> is not returned, it indicates that no next query is to be sent.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value is the token that is used for the subsequent query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>DE65F6B7-7566-4802-9007-96F2494AC512</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The list of tag keys.</p> */ public Builder tagKeys(TagKeys tagKeys) { this.tagKeys = tagKeys; return this; } public DescribeTagKeysResponseBody build() { return new DescribeTagKeysResponseBody(this); } } /** * * {@link DescribeTagKeysResponseBody} extends {@link TeaModel} * * <p>DescribeTagKeysResponseBody</p> */ public static class TagKey extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("Type") private String type; private TagKey(Builder builder) { this.tagKey = builder.tagKey; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static TagKey create() { return builder().build(); } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String tagKey; private String type; private Builder() { } private Builder(TagKey model) { this.tagKey = model.tagKey; this.type = model.type; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The type of the tag key. Valid values:</p> * <ul> * <li><strong>Custom</strong>: custom</li> * <li><strong>System</strong>: system</li> * </ul> * * <strong>example:</strong> * <p>Custom</p> */ public Builder type(String type) { this.type = type; return this; } public TagKey build() { return new TagKey(this); } } } /** * * {@link DescribeTagKeysResponseBody} extends {@link TeaModel} * * <p>DescribeTagKeysResponseBody</p> */ public static class TagKeys extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private java.util.List<TagKey> tagKey; private TagKeys(Builder builder) { this.tagKey = builder.tagKey; } public static Builder builder() { return new Builder(); } public static TagKeys create() { return builder().build(); } /** * @return tagKey */ public java.util.List<TagKey> getTagKey() { return this.tagKey; } public static final class Builder { private java.util.List<TagKey> tagKey; private Builder() { } private Builder(TagKeys model) { this.tagKey = model.tagKey; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(java.util.List<TagKey> tagKey) { this.tagKey = tagKey; return this; } public TagKeys build() { return new TagKeys(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagsRequest} extends {@link RequestModel} * * <p>DescribeTagsRequest</p> */ public class DescribeTagsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResult") @com.aliyun.core.annotation.Validation(maximum = 500) private Integer maxResult; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @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("ResourceId") private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private DescribeTagsRequest(Builder builder) { super(builder); this.maxResult = builder.maxResult; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static DescribeTagsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResult */ public Integer getMaxResult() { return this.maxResult; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<DescribeTagsRequest, Builder> { private Integer maxResult; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(DescribeTagsRequest request) { super(request); this.maxResult = request.maxResult; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.tag = request.tag; } /** * <p>The number of entries per page. Valid values: 1 to 50. Default value: 50.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResult(Integer maxResult) { this.putQueryParameter("MaxResult", maxResult); this.maxResult = maxResult; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If this is your first query or no next query is to be sent, ignore this parameter.</li> * <li>If a subsequent query is to be sent, set the parameter to the value of NextToken that is returned from the last call.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; 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 resource belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource IDs.</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The resource type. Valid values:</p> * <ul> * <li><strong>VPC</strong>: virtual private cloud (VPC)</li> * <li><strong>VSWITCH</strong>: vSwitch</li> * <li><strong>ROUTETABLE</strong>: route table</li> * <li><strong>EIP</strong>: elastic IP address (EIP)</li> * <li><strong>VpnGateway</strong>: VPN gateway</li> * <li><strong>NATGATEWAY</strong>: NAT gateway</li> * <li><strong>COMMONBANDWIDTHPACKAGE</strong>: EIP bandwidth plan</li> * </ul> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public DescribeTagsRequest build() { return new DescribeTagsRequest(this); } } /** * * {@link DescribeTagsRequest} extends {@link TeaModel} * * <p>DescribeTagsRequest</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 that is added to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p> * <p>The key cannot exceed 64 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). The key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag that is added to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p> * <p>The tag value cannot exceed 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). The key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagsResponse} extends {@link TeaModel} * * <p>DescribeTagsResponse</p> */ public class DescribeTagsResponse 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 DescribeTagsResponseBody body; private DescribeTagsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTagsResponse 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 DescribeTagsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeTagsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeTagsResponseBody body); @Override DescribeTagsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeTagsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeTagsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTagsResponse 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(DescribeTagsResponseBody body) { this.body = body; return this; } @Override public DescribeTagsResponse build() { return new DescribeTagsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeTagsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeTagsResponseBody} extends {@link TeaModel} * * <p>DescribeTagsResponseBody</p> */ public class DescribeTagsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TagResources") private TagResources tagResources; private DescribeTagsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagResources = builder.tagResources; } public static Builder builder() { return new Builder(); } public static DescribeTagsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return tagResources */ public TagResources getTagResources() { return this.tagResources; } public static final class Builder { private String nextToken; private String requestId; private TagResources tagResources; private Builder() { } private Builder(DescribeTagsResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagResources = model.tagResources; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If the value of <strong>NextToken</strong> is not returned, it indicates that no next query is to be sent.</li> * <li>If a value of <strong>NextToken</strong> is returned, the value is the token that is used for the subsequent query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>C46FF5A8-C5F0-4024-8262-B16B639225A0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The list of tags that meet the filter conditions.</p> */ public Builder tagResources(TagResources tagResources) { this.tagResources = tagResources; return this; } public DescribeTagsResponseBody build() { return new DescribeTagsResponseBody(this); } } /** * * {@link DescribeTagsResponseBody} extends {@link TeaModel} * * <p>DescribeTagsResponseBody</p> */ public static class TagResource extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private TagResource(Builder builder) { this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static TagResource create() { return builder().build(); } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String tagKey; private String tagValue; private Builder() { } private Builder(TagResource model) { this.tagKey = model.tagKey; this.tagValue = model.tagValue; } /** * <p>The tag key.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public TagResource build() { return new TagResource(this); } } } /** * * {@link DescribeTagsResponseBody} extends {@link TeaModel} * * <p>DescribeTagsResponseBody</p> */ public static class TagResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagResource") private java.util.List<TagResource> tagResource; private TagResources(Builder builder) { this.tagResource = builder.tagResource; } public static Builder builder() { return new Builder(); } public static TagResources create() { return builder().build(); } /** * @return tagResource */ public java.util.List<TagResource> getTagResource() { return this.tagResource; } public static final class Builder { private java.util.List<TagResource> tagResource; private Builder() { } private Builder(TagResources model) { this.tagResource = model.tagResource; } /** * TagResource. */ public Builder tagResource(java.util.List<TagResource> tagResource) { this.tagResource = tagResource; return this; } public TagResources build() { return new TagResources(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVRoutersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVRoutersRequest} extends {@link RequestModel} * * <p>DescribeVRoutersRequest</p> */ public class DescribeVRoutersRequest 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("VRouterId") private String vRouterId; private DescribeVRoutersRequest(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.vRouterId = builder.vRouterId; } public static Builder builder() { return new Builder(); } public static DescribeVRoutersRequest 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 vRouterId */ public String getVRouterId() { return this.vRouterId; } public static final class Builder extends Request.Builder<DescribeVRoutersRequest, Builder> { private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vRouterId; private Builder() { super(); } private Builder(DescribeVRoutersRequest 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.vRouterId = request.vRouterId; } /** * 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 page to return. 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 to return on each 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 vRouter that you want to query.</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 vRouter.</p> * * <strong>example:</strong> * <p>vrt-bp1lhl0taikrteen****</p> */ public Builder vRouterId(String vRouterId) { this.putQueryParameter("VRouterId", vRouterId); this.vRouterId = vRouterId; return this; } @Override public DescribeVRoutersRequest build() { return new DescribeVRoutersRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVRoutersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVRoutersResponse} extends {@link TeaModel} * * <p>DescribeVRoutersResponse</p> */ public class DescribeVRoutersResponse 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 DescribeVRoutersResponseBody body; private DescribeVRoutersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVRoutersResponse 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 DescribeVRoutersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVRoutersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVRoutersResponseBody body); @Override DescribeVRoutersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVRoutersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVRoutersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVRoutersResponse 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(DescribeVRoutersResponseBody body) { this.body = body; return this; } @Override public DescribeVRoutersResponse build() { return new DescribeVRoutersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVRoutersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVRoutersResponseBody</p> */ public class DescribeVRoutersResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VRouters") private VRouters vRouters; private DescribeVRoutersResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vRouters = builder.vRouters; } public static Builder builder() { return new Builder(); } public static DescribeVRoutersResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vRouters */ public VRouters getVRouters() { return this.vRouters; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VRouters vRouters; private Builder() { } private Builder(DescribeVRoutersResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vRouters = model.vRouters; } /** * <p>The page number of the returned page.</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 ID of the request.</p> * * <strong>example:</strong> * <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The details about the vRouters.</p> */ public Builder vRouters(VRouters vRouters) { this.vRouters = vRouters; return this; } public DescribeVRoutersResponseBody build() { return new DescribeVRoutersResponseBody(this); } } /** * * {@link DescribeVRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVRoutersResponseBody</p> */ public static class RouteTableIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteTableId") private java.util.List<String> routeTableId; private RouteTableIds(Builder builder) { this.routeTableId = builder.routeTableId; } public static Builder builder() { return new Builder(); } public static RouteTableIds create() { return builder().build(); } /** * @return routeTableId */ public java.util.List<String> getRouteTableId() { return this.routeTableId; } public static final class Builder { private java.util.List<String> routeTableId; private Builder() { } private Builder(RouteTableIds model) { this.routeTableId = model.routeTableId; } /** * RouteTableId. */ public Builder routeTableId(java.util.List<String> routeTableId) { this.routeTableId = routeTableId; return this; } public RouteTableIds build() { return new RouteTableIds(this); } } } /** * * {@link DescribeVRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVRoutersResponseBody</p> */ public static class VRouter extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RouteTableIds") private RouteTableIds routeTableIds; @com.aliyun.core.annotation.NameInMap("VRouterId") private String vRouterId; @com.aliyun.core.annotation.NameInMap("VRouterName") private String vRouterName; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private VRouter(Builder builder) { this.creationTime = builder.creationTime; this.description = builder.description; this.regionId = builder.regionId; this.routeTableIds = builder.routeTableIds; this.vRouterId = builder.vRouterId; this.vRouterName = builder.vRouterName; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static VRouter create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return routeTableIds */ public RouteTableIds getRouteTableIds() { return this.routeTableIds; } /** * @return vRouterId */ public String getVRouterId() { return this.vRouterId; } /** * @return vRouterName */ public String getVRouterName() { return this.vRouterName; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private String creationTime; private String description; private String regionId; private RouteTableIds routeTableIds; private String vRouterId; private String vRouterName; private String vpcId; private Builder() { } private Builder(VRouter model) { this.creationTime = model.creationTime; this.description = model.description; this.regionId = model.regionId; this.routeTableIds = model.routeTableIds; this.vRouterId = model.vRouterId; this.vRouterName = model.vRouterName; this.vpcId = model.vpcId; } /** * <p>The time when the vRouter was created.</p> * * <strong>example:</strong> * <p>2018-03-22T07:46:20Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the vRouter.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The region to which the vRouter belongs.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The IDs of the route tables.</p> */ public Builder routeTableIds(RouteTableIds routeTableIds) { this.routeTableIds = routeTableIds; return this; } /** * <p>The ID of the vRouter.</p> * * <strong>example:</strong> * <p>vrt-rj98khsezfqpjrxmv****</p> */ public Builder vRouterId(String vRouterId) { this.vRouterId = vRouterId; return this; } /** * <p>The name of the vRouter.</p> * * <strong>example:</strong> * <p>doctest</p> */ public Builder vRouterName(String vRouterName) { this.vRouterName = vRouterName; return this; } /** * <p>The ID of the virtual private cloud (VPC) to which the vRouter belongs.</p> * * <strong>example:</strong> * <p>vpc-rj905wotv6y030t1****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public VRouter build() { return new VRouter(this); } } } /** * * {@link DescribeVRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVRoutersResponseBody</p> */ public static class VRouters extends TeaModel { @com.aliyun.core.annotation.NameInMap("VRouter") private java.util.List<VRouter> vRouter; private VRouters(Builder builder) { this.vRouter = builder.vRouter; } public static Builder builder() { return new Builder(); } public static VRouters create() { return builder().build(); } /** * @return vRouter */ public java.util.List<VRouter> getVRouter() { return this.vRouter; } public static final class Builder { private java.util.List<VRouter> vRouter; private Builder() { } private Builder(VRouters model) { this.vRouter = model.vRouter; } /** * VRouter. */ public Builder vRouter(java.util.List<VRouter> vRouter) { this.vRouter = vRouter; return this; } public VRouters build() { return new VRouters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVSwitchAttributesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVSwitchAttributesRequest} extends {@link RequestModel} * * <p>DescribeVSwitchAttributesRequest</p> */ public class DescribeVSwitchAttributesRequest 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 DescribeVSwitchAttributesRequest(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 DescribeVSwitchAttributesRequest 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<DescribeVSwitchAttributesRequest, 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(DescribeVSwitchAttributesRequest 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; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): sends a request and performs a dry run. 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 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> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the vSwitch.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vsw-25naue4g****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } @Override public DescribeVSwitchAttributesRequest build() { return new DescribeVSwitchAttributesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVSwitchAttributesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVSwitchAttributesResponse} extends {@link TeaModel} * * <p>DescribeVSwitchAttributesResponse</p> */ public class DescribeVSwitchAttributesResponse 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 DescribeVSwitchAttributesResponseBody body; private DescribeVSwitchAttributesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVSwitchAttributesResponse 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 DescribeVSwitchAttributesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVSwitchAttributesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVSwitchAttributesResponseBody body); @Override DescribeVSwitchAttributesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVSwitchAttributesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVSwitchAttributesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVSwitchAttributesResponse 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(DescribeVSwitchAttributesResponseBody body) { this.body = body; return this; } @Override public DescribeVSwitchAttributesResponse build() { return new DescribeVSwitchAttributesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVSwitchAttributesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVSwitchAttributesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchAttributesResponseBody</p> */ public class DescribeVSwitchAttributesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AvailableIpAddressCount") private Long availableIpAddressCount; @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EnabledIpv6") private Boolean enabledIpv6; @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("NetworkAclId") private String networkAclId; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RouteTable") private RouteTable routeTable; @com.aliyun.core.annotation.NameInMap("ShareType") private String shareType; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("VSwitchName") private String vSwitchName; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private DescribeVSwitchAttributesResponseBody(Builder builder) { this.availableIpAddressCount = builder.availableIpAddressCount; this.cidrBlock = builder.cidrBlock; this.creationTime = builder.creationTime; this.description = builder.description; this.enabledIpv6 = builder.enabledIpv6; this.ipv6CidrBlock = builder.ipv6CidrBlock; this.isDefault = builder.isDefault; this.networkAclId = builder.networkAclId; this.ownerId = builder.ownerId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.routeTable = builder.routeTable; this.shareType = builder.shareType; this.status = builder.status; this.tags = builder.tags; this.vSwitchId = builder.vSwitchId; this.vSwitchName = builder.vSwitchName; this.vpcId = builder.vpcId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DescribeVSwitchAttributesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return availableIpAddressCount */ public Long getAvailableIpAddressCount() { return this.availableIpAddressCount; } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return enabledIpv6 */ public Boolean getEnabledIpv6() { return this.enabledIpv6; } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return networkAclId */ public String getNetworkAclId() { return this.networkAclId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return routeTable */ public RouteTable getRouteTable() { return this.routeTable; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vSwitchName */ public String getVSwitchName() { return this.vSwitchName; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder { private Long availableIpAddressCount; private String cidrBlock; private String creationTime; private String description; private Boolean enabledIpv6; private String ipv6CidrBlock; private Boolean isDefault; private String networkAclId; private Long ownerId; private String requestId; private String resourceGroupId; private RouteTable routeTable; private String shareType; private String status; private Tags tags; private String vSwitchId; private String vSwitchName; private String vpcId; private String zoneId; private Builder() { } private Builder(DescribeVSwitchAttributesResponseBody model) { this.availableIpAddressCount = model.availableIpAddressCount; this.cidrBlock = model.cidrBlock; this.creationTime = model.creationTime; this.description = model.description; this.enabledIpv6 = model.enabledIpv6; this.ipv6CidrBlock = model.ipv6CidrBlock; this.isDefault = model.isDefault; this.networkAclId = model.networkAclId; this.ownerId = model.ownerId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.routeTable = model.routeTable; this.shareType = model.shareType; this.status = model.status; this.tags = model.tags; this.vSwitchId = model.vSwitchId; this.vSwitchName = model.vSwitchName; this.vpcId = model.vpcId; this.zoneId = model.zoneId; } /** * <p>The number of available IP addresses.</p> * * <strong>example:</strong> * <p>12</p> */ public Builder availableIpAddressCount(Long availableIpAddressCount) { this.availableIpAddressCount = availableIpAddressCount; return this; } /** * <p>The CIDR block of the vSwitch.</p> * * <strong>example:</strong> * <p>192.168.0.1/24</p> */ public Builder cidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; return this; } /** * <p>The time when the vSwitch was created.</p> * * <strong>example:</strong> * <p>2021-08-22T10:40:25Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the vSwitch.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether IPv6 is enabled for the vSwitch. If you enable IPv6, you must configure the IPv6 CIDR block of the vSwitch. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enabledIpv6(Boolean enabledIpv6) { this.enabledIpv6 = enabledIpv6; return this; } /** * <p>The IPv6 CIDR block of the vSwitch.</p> * * <strong>example:</strong> * <p>2408:XXXX:3c5:44e::/64</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>Indicates whether the vSwitch is the default vSwitch. 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.isDefault = isDefault; return this; } /** * <p>The network access control list (ACL) rules.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder networkAclId(String networkAclId) { this.networkAclId = networkAclId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>287683832402436789</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>7B48B4B9-1EAD-469F-B488-594DAB4B6A1A</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the ACL belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The information about the route table that is associated with the vSwitch.</p> */ public Builder routeTable(RouteTable routeTable) { this.routeTable = routeTable; return this; } /** * <p>Indicates whether the vSwitch is shared.</p> * <ul> * <li>If no value is returned, the vSwitch is a regular vSwitch.</li> * <li>If <strong>Shared</strong> is returned, the vSwitch is shared.</li> * <li>If <strong>Sharing</strong> is returned, the vSwitch is being shared.</li> * </ul> * * <strong>example:</strong> * <p>Shared</p> */ public Builder shareType(String shareType) { this.shareType = shareType; return this; } /** * <p>The status of the vSwitch. Valid values:</p> * <ul> * <li><strong>Pending</strong></li> * <li><strong>Available</strong></li> * </ul> * * <strong>example:</strong> * <p>Pending</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The information about the tags.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The vSwitch ID.</p> * * <strong>example:</strong> * <p>vsw-25b7pv15t****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The vSwitch name.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder vSwitchName(String vSwitchName) { this.vSwitchName = vSwitchName; return this; } /** * <p>The ID of the VPC to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>vpc-257gq642n****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the zone to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>cn-beijing-a</p> */ public Builder zoneId(String zoneId) { this.zoneId = zoneId; return this; } public DescribeVSwitchAttributesResponseBody build() { return new DescribeVSwitchAttributesResponseBody(this); } } /** * * {@link DescribeVSwitchAttributesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchAttributesResponseBody</p> */ public static class RouteTable extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; @com.aliyun.core.annotation.NameInMap("RouteTableType") private String routeTableType; private RouteTable(Builder builder) { this.routeTableId = builder.routeTableId; this.routeTableType = builder.routeTableType; } public static Builder builder() { return new Builder(); } public static RouteTable create() { return builder().build(); } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return routeTableType */ public String getRouteTableType() { return this.routeTableType; } public static final class Builder { private String routeTableId; private String routeTableType; private Builder() { } private Builder(RouteTable model) { this.routeTableId = model.routeTableId; this.routeTableType = model.routeTableType; } /** * <p>The ID of the route table that is associated with the vSwitch.</p> * * <strong>example:</strong> * <p>vtb-bp145q7glnuzdv****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } /** * <p>The type of the route table. Valid values:</p> * <ul> * <li><strong>System</strong></li> * <li><strong>Custom</strong></li> * </ul> * * <strong>example:</strong> * <p>System</p> */ public Builder routeTableType(String routeTableType) { this.routeTableType = routeTableType; return this; } public RouteTable build() { return new RouteTable(this); } } } /** * * {@link DescribeVSwitchAttributesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchAttributesResponseBody</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of tag N added to the resource.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N added to the resource.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeVSwitchAttributesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchAttributesResponseBody</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/DescribeVSwitchesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVSwitchesRequest} extends {@link RequestModel} * * <p>DescribeVSwitchesRequest</p> */ public class DescribeVSwitchesRequest 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("EnableIpv6") private Boolean enableIpv6; @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") 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("RouteTableId") private String routeTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchName") private String vSwitchName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchOwnerId") private Long vSwitchOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private DescribeVSwitchesRequest(Builder builder) { super(builder); this.dryRun = builder.dryRun; this.enableIpv6 = builder.enableIpv6; 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.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeTableId = builder.routeTableId; this.tag = builder.tag; this.vSwitchId = builder.vSwitchId; this.vSwitchName = builder.vSwitchName; this.vSwitchOwnerId = builder.vSwitchOwnerId; this.vpcId = builder.vpcId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DescribeVSwitchesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @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 resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vSwitchName */ public String getVSwitchName() { return this.vSwitchName; } /** * @return vSwitchOwnerId */ public Long getVSwitchOwnerId() { return this.vSwitchOwnerId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder<DescribeVSwitchesRequest, Builder> { private Boolean dryRun; private Boolean enableIpv6; private Boolean isDefault; 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 String routeTableId; private java.util.List<Tag> tag; private String vSwitchId; private String vSwitchName; private Long vSwitchOwnerId; private String vpcId; private String zoneId; private Builder() { super(); } private Builder(DescribeVSwitchesRequest request) { super(request); this.dryRun = request.dryRun; this.enableIpv6 = request.enableIpv6; 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.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeTableId = request.routeTableId; this.tag = request.tag; this.vSwitchId = request.vSwitchId; this.vSwitchName = request.vSwitchName; this.vSwitchOwnerId = request.vSwitchOwnerId; this.vpcId = request.vpcId; this.zoneId = request.zoneId; } /** * <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>true</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>Specifies whether to query vSwitches with IPv6 enabled in the region. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * <p>If you do not set this parameter, the system queries all vSwitches in the specified region by default.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder enableIpv6(Boolean enableIpv6) { this.putQueryParameter("EnableIpv6", enableIpv6); this.enableIpv6 = enableIpv6; return this; } /** * <p>Specifies whether to query the default vSwitches in the specified region. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * <p>If you do not set this parameter, the system queries all vSwitches in the specified region by default.</p> * * <strong>example:</strong> * <p>true</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. 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 vSwitch. 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> * <blockquote> * <p> You must set at least one of <strong>RegionId</strong> and <strong>VpcId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the route table.</p> * * <strong>example:</strong> * <p>vtb-bp145q7glnuzdvzu2****</p> */ public Builder routeTableId(String routeTableId) { this.putQueryParameter("RouteTableId", routeTableId); this.routeTableId = routeTableId; return this; } /** * <p>The tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The ID of the vSwitch that you want to query.</p> * * <strong>example:</strong> * <p>vsw-23dscddcffvf3****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } /** * <p>The vSwitch name.</p> * <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>vSwitch</p> */ public Builder vSwitchName(String vSwitchName) { this.putQueryParameter("VSwitchName", vSwitchName); this.vSwitchName = vSwitchName; return this; } /** * <p>The ID of the Alibaba Cloud account to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>2546073170691****</p> */ public Builder vSwitchOwnerId(Long vSwitchOwnerId) { this.putQueryParameter("VSwitchOwnerId", vSwitchOwnerId); this.vSwitchOwnerId = vSwitchOwnerId; return this; } /** * <p>The ID of the virtual private cloud (VPC) to which the vSwitches belong.</p> * <blockquote> * <p> You must set at least one of <strong>RegionId</strong> and <strong>VpcId</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>vpc-25cdvfeq58pl****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } /** * <p>The ID of the zone to which the vSwitches belong. You can call the <a href="https://help.aliyun.com/document_detail/36064.html">DescribeZones</a> operation to query the most recent zone list.</p> * * <strong>example:</strong> * <p>cn-hangzhou-d</p> */ public Builder zoneId(String zoneId) { this.putQueryParameter("ZoneId", zoneId); this.zoneId = zoneId; return this; } @Override public DescribeVSwitchesRequest build() { return new DescribeVSwitchesRequest(this); } } /** * * {@link DescribeVSwitchesRequest} extends {@link TeaModel} * * <p>DescribeVSwitchesRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVSwitchesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVSwitchesResponse} extends {@link TeaModel} * * <p>DescribeVSwitchesResponse</p> */ public class DescribeVSwitchesResponse 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 DescribeVSwitchesResponseBody body; private DescribeVSwitchesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVSwitchesResponse 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 DescribeVSwitchesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVSwitchesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVSwitchesResponseBody body); @Override DescribeVSwitchesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVSwitchesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVSwitchesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVSwitchesResponse 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(DescribeVSwitchesResponseBody body) { this.body = body; return this; } @Override public DescribeVSwitchesResponse build() { return new DescribeVSwitchesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVSwitchesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVSwitchesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchesResponseBody</p> */ public class DescribeVSwitchesResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VSwitches") private VSwitches vSwitches; private DescribeVSwitchesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vSwitches = builder.vSwitches; } public static Builder builder() { return new Builder(); } public static DescribeVSwitchesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vSwitches */ public VSwitches getVSwitches() { return this.vSwitches; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VSwitches vSwitches; private Builder() { } private Builder(DescribeVSwitchesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vSwitches = model.vSwitches; } /** * <p>The number of the returned page.</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>9A572171-4E27-40D1-BD36-D26C9E71E29E</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; } /** * <p>The details about the vSwitch.</p> */ public Builder vSwitches(VSwitches vSwitches) { this.vSwitches = vSwitches; return this; } public DescribeVSwitchesResponseBody build() { return new DescribeVSwitchesResponseBody(this); } } /** * * {@link DescribeVSwitchesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchesResponseBody</p> */ public static class RouteTable extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; @com.aliyun.core.annotation.NameInMap("RouteTableType") private String routeTableType; private RouteTable(Builder builder) { this.routeTableId = builder.routeTableId; this.routeTableType = builder.routeTableType; } public static Builder builder() { return new Builder(); } public static RouteTable create() { return builder().build(); } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return routeTableType */ public String getRouteTableType() { return this.routeTableType; } public static final class Builder { private String routeTableId; private String routeTableType; private Builder() { } private Builder(RouteTable model) { this.routeTableId = model.routeTableId; this.routeTableType = model.routeTableType; } /** * <p>The ID of the route table that is associated with the vSwitch.</p> * * <strong>example:</strong> * <p>vrt-bp145q7glnuzdv****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } /** * <p>The type of the route table. Valid values:</p> * <ul> * <li><strong>System</strong></li> * <li><strong>Custom</strong></li> * </ul> * * <strong>example:</strong> * <p>System</p> */ public Builder routeTableType(String routeTableType) { this.routeTableType = routeTableType; return this; } public RouteTable build() { return new RouteTable(this); } } } /** * * {@link DescribeVSwitchesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchesResponseBody</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>department</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>dev</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeVSwitchesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchesResponseBody</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 DescribeVSwitchesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchesResponseBody</p> */ public static class VSwitch extends TeaModel { @com.aliyun.core.annotation.NameInMap("AvailableIpAddressCount") private Long availableIpAddressCount; @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EnabledIpv6") private Boolean enabledIpv6; @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("NetworkAclId") private String networkAclId; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RouteTable") private RouteTable routeTable; @com.aliyun.core.annotation.NameInMap("ShareType") private String shareType; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("VSwitchName") private String vSwitchName; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; private VSwitch(Builder builder) { this.availableIpAddressCount = builder.availableIpAddressCount; this.cidrBlock = builder.cidrBlock; this.creationTime = builder.creationTime; this.description = builder.description; this.enabledIpv6 = builder.enabledIpv6; this.ipv6CidrBlock = builder.ipv6CidrBlock; this.isDefault = builder.isDefault; this.networkAclId = builder.networkAclId; this.ownerId = builder.ownerId; this.resourceGroupId = builder.resourceGroupId; this.routeTable = builder.routeTable; this.shareType = builder.shareType; this.status = builder.status; this.tags = builder.tags; this.vSwitchId = builder.vSwitchId; this.vSwitchName = builder.vSwitchName; this.vpcId = builder.vpcId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static VSwitch create() { return builder().build(); } /** * @return availableIpAddressCount */ public Long getAvailableIpAddressCount() { return this.availableIpAddressCount; } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return enabledIpv6 */ public Boolean getEnabledIpv6() { return this.enabledIpv6; } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return networkAclId */ public String getNetworkAclId() { return this.networkAclId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return routeTable */ public RouteTable getRouteTable() { return this.routeTable; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vSwitchName */ public String getVSwitchName() { return this.vSwitchName; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder { private Long availableIpAddressCount; private String cidrBlock; private String creationTime; private String description; private Boolean enabledIpv6; private String ipv6CidrBlock; private Boolean isDefault; private String networkAclId; private Long ownerId; private String resourceGroupId; private RouteTable routeTable; private String shareType; private String status; private Tags tags; private String vSwitchId; private String vSwitchName; private String vpcId; private String zoneId; private Builder() { } private Builder(VSwitch model) { this.availableIpAddressCount = model.availableIpAddressCount; this.cidrBlock = model.cidrBlock; this.creationTime = model.creationTime; this.description = model.description; this.enabledIpv6 = model.enabledIpv6; this.ipv6CidrBlock = model.ipv6CidrBlock; this.isDefault = model.isDefault; this.networkAclId = model.networkAclId; this.ownerId = model.ownerId; this.resourceGroupId = model.resourceGroupId; this.routeTable = model.routeTable; this.shareType = model.shareType; this.status = model.status; this.tags = model.tags; this.vSwitchId = model.vSwitchId; this.vSwitchName = model.vSwitchName; this.vpcId = model.vpcId; this.zoneId = model.zoneId; } /** * <p>The number of available IP addresses in the vSwitch.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder availableIpAddressCount(Long availableIpAddressCount) { this.availableIpAddressCount = availableIpAddressCount; return this; } /** * <p>The IPv4 CIDR block of the vSwitch.</p> * * <strong>example:</strong> * <p>172.16.0.0/24</p> */ public Builder cidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; return this; } /** * <p>The time when the vSwitch was created.</p> * * <strong>example:</strong> * <p>2022-01-18T12:43:57Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the vSwitch.</p> * * <strong>example:</strong> * <p>VSwitchDescription</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether IPv6 is enabled for the vSwitch. If you enable IPv6, you must configure an IPv6 CIDR block for the vSwitch. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enabledIpv6(Boolean enabledIpv6) { this.enabledIpv6 = enabledIpv6; return this; } /** * <p>The IPv6 CIDR block of the vSwitch.</p> * * <strong>example:</strong> * <p>2408:4002:10c4:4e03::/64</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>Indicates whether the vSwitch is the default vSwitch. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isDefault(Boolean isDefault) { this.isDefault = isDefault; return this; } /** * <p>The ID of the network access control list (ACL).</p> * * <strong>example:</strong> * <p>nacl-a2do9e413e0spzasx****</p> */ public Builder networkAclId(String networkAclId) { this.networkAclId = networkAclId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the resource belongs.</p> * * <strong>example:</strong> * <p>25346073170691****</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The ID of the resource group to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The information about the route table.</p> */ public Builder routeTable(RouteTable routeTable) { this.routeTable = routeTable; return this; } /** * <p>Indicates whether the vSwitch is shared.</p> * <ul> * <li>If no value is returned, the vSwitch is a regular vSwitch.</li> * <li>If <strong>Shared</strong> is returned, the vSwitch is shared.</li> * <li>If <strong>Sharing</strong> is returned, the vSwitch is being shared.</li> * </ul> * * <strong>example:</strong> * <p>Shared</p> */ public Builder shareType(String shareType) { this.shareType = shareType; return this; } /** * <p>The status of the vSwitch. Valid values:</p> * <ul> * <li><strong>Pending</strong></li> * <li><strong>Available</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tags of the vSwitch.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The vSwitch ID.</p> * * <strong>example:</strong> * <p>vsw-25bcdxs7pv1****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The vSwitch name.</p> * * <strong>example:</strong> * <p>vSwitch</p> */ public Builder vSwitchName(String vSwitchName) { this.vSwitchName = vSwitchName; return this; } /** * <p>The ID of the VPC to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>vpc-257gcdcdq64****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the zone to which the vSwitch belongs.</p> * * <strong>example:</strong> * <p>cn-hangzhou-d</p> */ public Builder zoneId(String zoneId) { this.zoneId = zoneId; return this; } public VSwitch build() { return new VSwitch(this); } } } /** * * {@link DescribeVSwitchesResponseBody} extends {@link TeaModel} * * <p>DescribeVSwitchesResponseBody</p> */ public static class VSwitches extends TeaModel { @com.aliyun.core.annotation.NameInMap("VSwitch") private java.util.List<VSwitch> vSwitch; private VSwitches(Builder builder) { this.vSwitch = builder.vSwitch; } public static Builder builder() { return new Builder(); } public static VSwitches create() { return builder().build(); } /** * @return vSwitch */ public java.util.List<VSwitch> getVSwitch() { return this.vSwitch; } public static final class Builder { private java.util.List<VSwitch> vSwitch; private Builder() { } private Builder(VSwitches model) { this.vSwitch = model.vSwitch; } /** * VSwitch. */ public Builder vSwitch(java.util.List<VSwitch> vSwitch) { this.vSwitch = vSwitch; return this; } public VSwitches build() { return new VSwitches(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVbrHaRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVbrHaRequest} extends {@link RequestModel} * * <p>DescribeVbrHaRequest</p> */ public class DescribeVbrHaRequest 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("VbrHaId") private String vbrHaId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VbrId") private String vbrId; private DescribeVbrHaRequest(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.vbrHaId = builder.vbrHaId; this.vbrId = builder.vbrId; } public static Builder builder() { return new Builder(); } public static DescribeVbrHaRequest 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 vbrHaId */ public String getVbrHaId() { return this.vbrHaId; } /** * @return vbrId */ public String getVbrId() { return this.vbrId; } public static final class Builder extends Request.Builder<DescribeVbrHaRequest, Builder> { private String clientToken; private Boolean dryRun; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vbrHaId; private String vbrId; private Builder() { super(); } private Builder(DescribeVbrHaRequest 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.vbrHaId = request.vbrHaId; this.vbrId = request.vbrId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>CBCE910E-D396-4944-8****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid Values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, <code>DRYRUN.SUCCESS</code> is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, 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 region in which the VBR is deployed.</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 failover group.</p> * * <strong>example:</strong> * <p>vbrha-sa1sxheuxtd98****</p> */ public Builder vbrHaId(String vbrHaId) { this.putQueryParameter("VbrHaId", vbrHaId); this.vbrHaId = vbrHaId; return this; } /** * <p>The VBR ID.</p> * * <strong>example:</strong> * <p>vbr-bp1jcg5cmxjbl9xgc****</p> */ public Builder vbrId(String vbrId) { this.putQueryParameter("VbrId", vbrId); this.vbrId = vbrId; return this; } @Override public DescribeVbrHaRequest build() { return new DescribeVbrHaRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVbrHaResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVbrHaResponse} extends {@link TeaModel} * * <p>DescribeVbrHaResponse</p> */ public class DescribeVbrHaResponse 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 DescribeVbrHaResponseBody body; private DescribeVbrHaResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVbrHaResponse 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 DescribeVbrHaResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVbrHaResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVbrHaResponseBody body); @Override DescribeVbrHaResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVbrHaResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVbrHaResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVbrHaResponse 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(DescribeVbrHaResponseBody body) { this.body = body; return this; } @Override public DescribeVbrHaResponse build() { return new DescribeVbrHaResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVbrHaResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVbrHaResponseBody} extends {@link TeaModel} * * <p>DescribeVbrHaResponseBody</p> */ public class DescribeVbrHaResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("PeerVbrId") private String peerVbrId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("VbrHaId") private String vbrHaId; @com.aliyun.core.annotation.NameInMap("VbrId") private String vbrId; private DescribeVbrHaResponseBody(Builder builder) { this.creationTime = builder.creationTime; this.description = builder.description; this.name = builder.name; this.peerVbrId = builder.peerVbrId; this.regionId = builder.regionId; this.requestId = builder.requestId; this.status = builder.status; this.vbrHaId = builder.vbrHaId; this.vbrId = builder.vbrId; } public static Builder builder() { return new Builder(); } public static DescribeVbrHaResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return peerVbrId */ public String getPeerVbrId() { return this.peerVbrId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return vbrHaId */ public String getVbrHaId() { return this.vbrHaId; } /** * @return vbrId */ public String getVbrId() { return this.vbrId; } public static final class Builder { private String creationTime; private String description; private String name; private String peerVbrId; private String regionId; private String requestId; private String status; private String vbrHaId; private String vbrId; private Builder() { } private Builder(DescribeVbrHaResponseBody model) { this.creationTime = model.creationTime; this.description = model.description; this.name = model.name; this.peerVbrId = model.peerVbrId; this.regionId = model.regionId; this.requestId = model.requestId; this.status = model.status; this.vbrHaId = model.vbrHaId; this.vbrId = model.vbrId; } /** * <p>The time when the VBR was created.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the VBR failover group.</p> * <p>The description must be 2 to 256 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>desc</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The name of the VBR failover group.</p> * * <strong>example:</strong> * <p>VBRHa</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The ID of the other VBR in the VBR failover group.</p> * * <strong>example:</strong> * <p>vbr-bp12mw1f8k3jgygk9****</p> */ public Builder peerVbrId(String peerVbrId) { this.peerVbrId = peerVbrId; return this; } /** * <p>The ID of the region in which the VBR is deployed.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The status of the VBR failover group.</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Active</strong></li> * </ul> * * <strong>example:</strong> * <p>Active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The ID of the VBR failover group.</p> * * <strong>example:</strong> * <p>vbrha-sa1sxheuxtd98****</p> */ public Builder vbrHaId(String vbrHaId) { this.vbrHaId = vbrHaId; return this; } /** * <p>The VBR ID.</p> * * <strong>example:</strong> * <p>vbr-bp1jcg5cmxjbl9xgc****</p> */ public Builder vbrId(String vbrId) { this.vbrId = vbrId; return this; } public DescribeVbrHaResponseBody build() { return new DescribeVbrHaResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVcoRouteEntriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVcoRouteEntriesRequest} extends {@link RequestModel} * * <p>DescribeVcoRouteEntriesRequest</p> */ public class DescribeVcoRouteEntriesRequest 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("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("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("RouteEntryType") private String routeEntryType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; private DescribeVcoRouteEntriesRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeEntryType = builder.routeEntryType; this.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static DescribeVcoRouteEntriesRequest 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 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 routeEntryType */ public String getRouteEntryType() { return this.routeEntryType; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<DescribeVcoRouteEntriesRequest, Builder> { private String clientToken; private String ownerAccount; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeEntryType; private String vpnConnectionId; private Builder() { super(); } private Builder(DescribeVcoRouteEntriesRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeEntryType = request.routeEntryType; 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 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, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. The value of <strong>RequestId</strong> for each API request may be different.</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 number of the page to return. 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 to return on each page. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</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 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 list of regions.</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 route type. Valid values:</p> * <ul> * <li><strong>custom</strong> (default): a destination-based route</li> * <li><strong>bgp</strong>: a BGP route</li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder routeEntryType(String routeEntryType) { this.putQueryParameter("RouteEntryType", routeEntryType); this.routeEntryType = routeEntryType; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } @Override public DescribeVcoRouteEntriesRequest build() { return new DescribeVcoRouteEntriesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVcoRouteEntriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVcoRouteEntriesResponse} extends {@link TeaModel} * * <p>DescribeVcoRouteEntriesResponse</p> */ public class DescribeVcoRouteEntriesResponse 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 DescribeVcoRouteEntriesResponseBody body; private DescribeVcoRouteEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVcoRouteEntriesResponse 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 DescribeVcoRouteEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVcoRouteEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVcoRouteEntriesResponseBody body); @Override DescribeVcoRouteEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVcoRouteEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVcoRouteEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVcoRouteEntriesResponse 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(DescribeVcoRouteEntriesResponseBody body) { this.body = body; return this; } @Override public DescribeVcoRouteEntriesResponse build() { return new DescribeVcoRouteEntriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVcoRouteEntriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVcoRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVcoRouteEntriesResponseBody</p> */ public class DescribeVcoRouteEntriesResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VcoRouteEntries") private java.util.List<VcoRouteEntries> vcoRouteEntries; @com.aliyun.core.annotation.NameInMap("VpnRouteCounts") private java.util.List<VpnRouteCounts> vpnRouteCounts; private DescribeVcoRouteEntriesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vcoRouteEntries = builder.vcoRouteEntries; this.vpnRouteCounts = builder.vpnRouteCounts; } public static Builder builder() { return new Builder(); } public static DescribeVcoRouteEntriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vcoRouteEntries */ public java.util.List<VcoRouteEntries> getVcoRouteEntries() { return this.vcoRouteEntries; } /** * @return vpnRouteCounts */ public java.util.List<VpnRouteCounts> getVpnRouteCounts() { return this.vpnRouteCounts; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private java.util.List<VcoRouteEntries> vcoRouteEntries; private java.util.List<VpnRouteCounts> vpnRouteCounts; private Builder() { } private Builder(DescribeVcoRouteEntriesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vcoRouteEntries = model.vcoRouteEntries; this.vpnRouteCounts = model.vpnRouteCounts; } /** * <p>The number of the returned page.</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 ID of the request.</p> * * <strong>example:</strong> * <p>E18980E8-C8C2-31BD-8156-AE2BBDEC87E1</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; } /** * <p>The list of route entries.</p> */ public Builder vcoRouteEntries(java.util.List<VcoRouteEntries> vcoRouteEntries) { this.vcoRouteEntries = vcoRouteEntries; return this; } /** * <p>The information on route entries of the dual-tunnel IPsec connection.</p> * <blockquote> * <p> This parameter is returned only for IPsec connections in dual-tunnel mode.</p> * </blockquote> */ public Builder vpnRouteCounts(java.util.List<VpnRouteCounts> vpnRouteCounts) { this.vpnRouteCounts = vpnRouteCounts; return this; } public DescribeVcoRouteEntriesResponseBody build() { return new DescribeVcoRouteEntriesResponseBody(this); } } /** * * {@link DescribeVcoRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVcoRouteEntriesResponseBody</p> */ public static class VcoRouteEntries extends TeaModel { @com.aliyun.core.annotation.NameInMap("AsPath") private String asPath; @com.aliyun.core.annotation.NameInMap("Community") private String community; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("NextHop") private String nextHop; @com.aliyun.core.annotation.NameInMap("NextHopTunnelIdList") private java.util.List<String> nextHopTunnelIdList; @com.aliyun.core.annotation.NameInMap("RouteDest") private String routeDest; @com.aliyun.core.annotation.NameInMap("RouteEntryType") private String routeEntryType; @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; @com.aliyun.core.annotation.NameInMap("Weight") private Integer weight; private VcoRouteEntries(Builder builder) { this.asPath = builder.asPath; this.community = builder.community; this.createTime = builder.createTime; this.nextHop = builder.nextHop; this.nextHopTunnelIdList = builder.nextHopTunnelIdList; this.routeDest = builder.routeDest; this.routeEntryType = builder.routeEntryType; this.source = builder.source; this.state = builder.state; this.vpnConnectionId = builder.vpnConnectionId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static VcoRouteEntries create() { return builder().build(); } /** * @return asPath */ public String getAsPath() { return this.asPath; } /** * @return community */ public String getCommunity() { return this.community; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return nextHopTunnelIdList */ public java.util.List<String> getNextHopTunnelIdList() { return this.nextHopTunnelIdList; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeEntryType */ public String getRouteEntryType() { return this.routeEntryType; } /** * @return source */ public String getSource() { return this.source; } /** * @return state */ public String getState() { return this.state; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder { private String asPath; private String community; private Long createTime; private String nextHop; private java.util.List<String> nextHopTunnelIdList; private String routeDest; private String routeEntryType; private String source; private String state; private String vpnConnectionId; private Integer weight; private Builder() { } private Builder(VcoRouteEntries model) { this.asPath = model.asPath; this.community = model.community; this.createTime = model.createTime; this.nextHop = model.nextHop; this.nextHopTunnelIdList = model.nextHopTunnelIdList; this.routeDest = model.routeDest; this.routeEntryType = model.routeEntryType; this.source = model.source; this.state = model.state; this.vpnConnectionId = model.vpnConnectionId; this.weight = model.weight; } /** * <p>The list of autonomous system (AS) numbers that the BGP route goes through.</p> * * <strong>example:</strong> * <p>[12000]</p> */ public Builder asPath(String asPath) { this.asPath = asPath; return this; } /** * <p>The community value carried by the BGP route.</p> * * <strong>example:</strong> * <p>65535:65510</p> */ public Builder community(String community) { this.community = community; return this; } /** * <p>The timestamp when the route was created.</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>1658217008000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The next hop of the route.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder nextHop(String nextHop) { this.nextHop = nextHop; return this; } /** * <p>The list of next hops.</p> * <blockquote> * <ul> * <li>This parameter is returned only by dual-tunnel IPsec connections.</li> * <li>This parameter is returned only when the tunnel status is <strong>Phase 2 Negotiation Successful</strong>.</li> * </ul> * </blockquote> */ public Builder nextHopTunnelIdList(java.util.List<String> nextHopTunnelIdList) { this.nextHopTunnelIdList = nextHopTunnelIdList; return this; } /** * <p>The destination CIDR block of the route.</p> * * <strong>example:</strong> * <p>192.168.10.0/24</p> */ public Builder routeDest(String routeDest) { this.routeDest = routeDest; return this; } /** * <p>The route type. Valid values:</p> * <ul> * <li><strong>custom</strong>: a destination-based route</li> * <li><strong>bgp</strong>: a BGP route</li> * </ul> * * <strong>example:</strong> * <p>custom</p> */ public Builder routeEntryType(String routeEntryType) { this.routeEntryType = routeEntryType; return this; } /** * <p>The source of the BGP route. Valid values:</p> * <ul> * <li><strong>CLOUD</strong>: indicates that the current BGP route is learned by the IPsec-VPN connection from the transit router.</li> * <li><strong>VPN_BGP</strong>: indicates that the current BGP route is learned by the IPsec-VPN connection from the data center.</li> * </ul> * * <strong>example:</strong> * <p>CLOUD</p> */ public Builder source(String source) { this.source = source; return this; } /** * <p>The status of the route.</p> * <ul> * <li><strong>published</strong>: indicates that the current route is advertised to the transit router.</li> * <li><strong>Active</strong>: indicates that the current BGP route is available.</li> * </ul> * * <strong>example:</strong> * <p>published</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The weight of the destination-based route.</p> * <blockquote> * <p> The current parameter has no effect.</p> * </blockquote> * * <strong>example:</strong> * <p>100</p> */ public Builder weight(Integer weight) { this.weight = weight; return this; } public VcoRouteEntries build() { return new VcoRouteEntries(this); } } } /** * * {@link DescribeVcoRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVcoRouteEntriesResponseBody</p> */ public static class VpnRouteCounts extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteCount") private Integer routeCount; @com.aliyun.core.annotation.NameInMap("RouteEntryType") private String routeEntryType; @com.aliyun.core.annotation.NameInMap("Source") private String source; private VpnRouteCounts(Builder builder) { this.routeCount = builder.routeCount; this.routeEntryType = builder.routeEntryType; this.source = builder.source; } public static Builder builder() { return new Builder(); } public static VpnRouteCounts create() { return builder().build(); } /** * @return routeCount */ public Integer getRouteCount() { return this.routeCount; } /** * @return routeEntryType */ public String getRouteEntryType() { return this.routeEntryType; } /** * @return source */ public String getSource() { return this.source; } public static final class Builder { private Integer routeCount; private String routeEntryType; private String source; private Builder() { } private Builder(VpnRouteCounts model) { this.routeCount = model.routeCount; this.routeEntryType = model.routeEntryType; this.source = model.source; } /** * <p>The number of route entries.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder routeCount(Integer routeCount) { this.routeCount = routeCount; return this; } /** * <p>The route type. Valid values:</p> * <ul> * <li><strong>custom</strong>: destination-based route.</li> * <li><strong>bgp</strong>: BGP route.</li> * </ul> * * <strong>example:</strong> * <p>bgp</p> */ public Builder routeEntryType(String routeEntryType) { this.routeEntryType = routeEntryType; return this; } /** * <p>The source of the BGP route. Valid values:</p> * <ul> * <li><strong>CLOUD</strong>: The current BGP route is learned by the IPsec connection from the transit router.</li> * <li><strong>VPN_BGP</strong>: The current BGP route is learned by the IPsec connection from the data center.</li> * </ul> * * <strong>example:</strong> * <p>VPN_BGP</p> */ public Builder source(String source) { this.source = source; return this; } public VpnRouteCounts build() { return new VpnRouteCounts(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVirtualBorderRoutersForPhysicalConnectionRequest} extends {@link RequestModel} * * <p>DescribeVirtualBorderRoutersForPhysicalConnectionRequest</p> */ public class DescribeVirtualBorderRoutersForPhysicalConnectionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Filter") private java.util.List<Filter> filter; @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("PhysicalConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String physicalConnectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private DescribeVirtualBorderRoutersForPhysicalConnectionRequest(Builder builder) { super(builder); this.filter = builder.filter; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.physicalConnectionId = builder.physicalConnectionId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static DescribeVirtualBorderRoutersForPhysicalConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return filter */ public java.util.List<Filter> getFilter() { return this.filter; } /** * @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 physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<DescribeVirtualBorderRoutersForPhysicalConnectionRequest, Builder> { private java.util.List<Filter> filter; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String physicalConnectionId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(DescribeVirtualBorderRoutersForPhysicalConnectionRequest request) { super(request); this.filter = request.filter; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.physicalConnectionId = request.physicalConnectionId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The filter keys.</p> */ public Builder filter(java.util.List<Filter> filter) { this.putQueryParameter("Filter", filter); this.filter = filter; 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 Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-119mfj****</p> */ public Builder physicalConnectionId(String physicalConnectionId) { this.putQueryParameter("PhysicalConnectionId", physicalConnectionId); this.physicalConnectionId = physicalConnectionId; return this; } /** * <p>The region in which the Express Connect circuit is deployed. 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; } @Override public DescribeVirtualBorderRoutersForPhysicalConnectionRequest build() { return new DescribeVirtualBorderRoutersForPhysicalConnectionRequest(this); } } /** * * {@link DescribeVirtualBorderRoutersForPhysicalConnectionRequest} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersForPhysicalConnectionRequest</p> */ public static class Filter extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private java.util.List<String> value; private Filter(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Filter create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public java.util.List<String> getValue() { return this.value; } public static final class Builder { private String key; private java.util.List<String> value; private Builder() { } private Builder(Filter model) { this.key = model.key; this.value = model.value; } /** * <p>The filter conditions. You can specify at most five filter conditions. The following filter conditions are supported:</p> * <ul> * <li><strong>PhysicalConnectionId</strong>: filter VBRs by the Express Connect circuit ID.</li> * <li><strong>VbrId</strong>: filter VBRs by ID.</li> * <li><strong>Status</strong>: filter VBRs by status.</li> * <li><strong>Name</strong>: filter VBRs by name.</li> * <li><strong>AccessPointId</strong>: filter VBRs by access point ID.</li> * <li><strong>eccId</strong>: filter VBRs by ID of Express Cloud Connect (ECC) instance.</li> * <li><strong>type</strong>: filter VBRs by type.</li> * </ul> * * <strong>example:</strong> * <p>Status</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The filter value for the key. You can specify multiple filter values for one key. The logical operator among filter values is OR. If one filter value is matched, the filter condition is matched.</p> * * <strong>example:</strong> * <p>Active</p> */ public Builder value(java.util.List<String> value) { this.value = value; return this; } public Filter build() { return new Filter(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVirtualBorderRoutersForPhysicalConnectionResponse} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersForPhysicalConnectionResponse</p> */ public class DescribeVirtualBorderRoutersForPhysicalConnectionResponse 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 DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody body; private DescribeVirtualBorderRoutersForPhysicalConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVirtualBorderRoutersForPhysicalConnectionResponse 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 DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVirtualBorderRoutersForPhysicalConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody body); @Override DescribeVirtualBorderRoutersForPhysicalConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVirtualBorderRoutersForPhysicalConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVirtualBorderRoutersForPhysicalConnectionResponse 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(DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody body) { this.body = body; return this; } @Override public DescribeVirtualBorderRoutersForPhysicalConnectionResponse build() { return new DescribeVirtualBorderRoutersForPhysicalConnectionResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody</p> */ public class DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VirtualBorderRouterForPhysicalConnectionSet") private VirtualBorderRouterForPhysicalConnectionSet virtualBorderRouterForPhysicalConnectionSet; private DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.virtualBorderRouterForPhysicalConnectionSet = builder.virtualBorderRouterForPhysicalConnectionSet; } public static Builder builder() { return new Builder(); } public static DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return virtualBorderRouterForPhysicalConnectionSet */ public VirtualBorderRouterForPhysicalConnectionSet getVirtualBorderRouterForPhysicalConnectionSet() { return this.virtualBorderRouterForPhysicalConnectionSet; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VirtualBorderRouterForPhysicalConnectionSet virtualBorderRouterForPhysicalConnectionSet; private Builder() { } private Builder(DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.virtualBorderRouterForPhysicalConnectionSet = model.virtualBorderRouterForPhysicalConnectionSet; } /** * <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 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>7C5AE8B3-A2D8-428D-A2FF-93A225C0821E</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; } /** * <p>The information about VBRs.</p> */ public Builder virtualBorderRouterForPhysicalConnectionSet(VirtualBorderRouterForPhysicalConnectionSet virtualBorderRouterForPhysicalConnectionSet) { this.virtualBorderRouterForPhysicalConnectionSet = virtualBorderRouterForPhysicalConnectionSet; return this; } public DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody build() { return new DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody(this); } } /** * * {@link DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody</p> */ public static class VirtualBorderRouterForPhysicalConnectionType extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActivationTime") private String activationTime; @com.aliyun.core.annotation.NameInMap("Bandwidth") private String bandwidth; @com.aliyun.core.annotation.NameInMap("BandwidthStatus") private String bandwidthStatus; @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("EccId") private String eccId; @com.aliyun.core.annotation.NameInMap("EnableIpv6") private Boolean enableIpv6; @com.aliyun.core.annotation.NameInMap("LocalGatewayIp") private String localGatewayIp; @com.aliyun.core.annotation.NameInMap("LocalIpv6GatewayIp") private String localIpv6GatewayIp; @com.aliyun.core.annotation.NameInMap("PConnVbrBussinessStatus") private String pConnVbrBussinessStatus; @com.aliyun.core.annotation.NameInMap("PConnVbrChargeType") private String pConnVbrChargeType; @com.aliyun.core.annotation.NameInMap("PConnVbrExpireTime") private String pConnVbrExpireTime; @com.aliyun.core.annotation.NameInMap("PeerGatewayIp") private String peerGatewayIp; @com.aliyun.core.annotation.NameInMap("PeerIpv6GatewayIp") private String peerIpv6GatewayIp; @com.aliyun.core.annotation.NameInMap("PeeringIpv6SubnetMask") private String peeringIpv6SubnetMask; @com.aliyun.core.annotation.NameInMap("PeeringSubnetMask") private String peeringSubnetMask; @com.aliyun.core.annotation.NameInMap("RecoveryTime") private String recoveryTime; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TerminationTime") private String terminationTime; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("VbrId") private String vbrId; @com.aliyun.core.annotation.NameInMap("VbrOwnerUid") private Long vbrOwnerUid; @com.aliyun.core.annotation.NameInMap("VlanId") private Integer vlanId; private VirtualBorderRouterForPhysicalConnectionType(Builder builder) { this.activationTime = builder.activationTime; this.bandwidth = builder.bandwidth; this.bandwidthStatus = builder.bandwidthStatus; this.circuitCode = builder.circuitCode; this.creationTime = builder.creationTime; this.eccId = builder.eccId; this.enableIpv6 = builder.enableIpv6; this.localGatewayIp = builder.localGatewayIp; this.localIpv6GatewayIp = builder.localIpv6GatewayIp; this.pConnVbrBussinessStatus = builder.pConnVbrBussinessStatus; this.pConnVbrChargeType = builder.pConnVbrChargeType; this.pConnVbrExpireTime = builder.pConnVbrExpireTime; this.peerGatewayIp = builder.peerGatewayIp; this.peerIpv6GatewayIp = builder.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = builder.peeringIpv6SubnetMask; this.peeringSubnetMask = builder.peeringSubnetMask; this.recoveryTime = builder.recoveryTime; this.status = builder.status; this.terminationTime = builder.terminationTime; this.type = builder.type; this.vbrId = builder.vbrId; this.vbrOwnerUid = builder.vbrOwnerUid; this.vlanId = builder.vlanId; } public static Builder builder() { return new Builder(); } public static VirtualBorderRouterForPhysicalConnectionType create() { return builder().build(); } /** * @return activationTime */ public String getActivationTime() { return this.activationTime; } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return bandwidthStatus */ public String getBandwidthStatus() { return this.bandwidthStatus; } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return eccId */ public String getEccId() { return this.eccId; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @return localGatewayIp */ public String getLocalGatewayIp() { return this.localGatewayIp; } /** * @return localIpv6GatewayIp */ public String getLocalIpv6GatewayIp() { return this.localIpv6GatewayIp; } /** * @return pConnVbrBussinessStatus */ public String getPConnVbrBussinessStatus() { return this.pConnVbrBussinessStatus; } /** * @return pConnVbrChargeType */ public String getPConnVbrChargeType() { return this.pConnVbrChargeType; } /** * @return pConnVbrExpireTime */ public String getPConnVbrExpireTime() { return this.pConnVbrExpireTime; } /** * @return peerGatewayIp */ public String getPeerGatewayIp() { return this.peerGatewayIp; } /** * @return peerIpv6GatewayIp */ public String getPeerIpv6GatewayIp() { return this.peerIpv6GatewayIp; } /** * @return peeringIpv6SubnetMask */ public String getPeeringIpv6SubnetMask() { return this.peeringIpv6SubnetMask; } /** * @return peeringSubnetMask */ public String getPeeringSubnetMask() { return this.peeringSubnetMask; } /** * @return recoveryTime */ public String getRecoveryTime() { return this.recoveryTime; } /** * @return status */ public String getStatus() { return this.status; } /** * @return terminationTime */ public String getTerminationTime() { return this.terminationTime; } /** * @return type */ public String getType() { return this.type; } /** * @return vbrId */ public String getVbrId() { return this.vbrId; } /** * @return vbrOwnerUid */ public Long getVbrOwnerUid() { return this.vbrOwnerUid; } /** * @return vlanId */ public Integer getVlanId() { return this.vlanId; } public static final class Builder { private String activationTime; private String bandwidth; private String bandwidthStatus; private String circuitCode; private String creationTime; private String eccId; private Boolean enableIpv6; private String localGatewayIp; private String localIpv6GatewayIp; private String pConnVbrBussinessStatus; private String pConnVbrChargeType; private String pConnVbrExpireTime; private String peerGatewayIp; private String peerIpv6GatewayIp; private String peeringIpv6SubnetMask; private String peeringSubnetMask; private String recoveryTime; private String status; private String terminationTime; private String type; private String vbrId; private Long vbrOwnerUid; private Integer vlanId; private Builder() { } private Builder(VirtualBorderRouterForPhysicalConnectionType model) { this.activationTime = model.activationTime; this.bandwidth = model.bandwidth; this.bandwidthStatus = model.bandwidthStatus; this.circuitCode = model.circuitCode; this.creationTime = model.creationTime; this.eccId = model.eccId; this.enableIpv6 = model.enableIpv6; this.localGatewayIp = model.localGatewayIp; this.localIpv6GatewayIp = model.localIpv6GatewayIp; this.pConnVbrBussinessStatus = model.pConnVbrBussinessStatus; this.pConnVbrChargeType = model.pConnVbrChargeType; this.pConnVbrExpireTime = model.pConnVbrExpireTime; this.peerGatewayIp = model.peerGatewayIp; this.peerIpv6GatewayIp = model.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = model.peeringIpv6SubnetMask; this.peeringSubnetMask = model.peeringSubnetMask; this.recoveryTime = model.recoveryTime; this.status = model.status; this.terminationTime = model.terminationTime; this.type = model.type; this.vbrId = model.vbrId; this.vbrOwnerUid = model.vbrOwnerUid; this.vlanId = model.vlanId; } /** * <p>The time when the VBR was first activated.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder activationTime(String activationTime) { this.activationTime = activationTime; return this; } /** * <p>The bandwidth of the VBR that is associated with the Express Connect circuit. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder bandwidth(String bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The status of the bandwidth. Valid values:</p> * <ul> * <li><strong>Active</strong></li> * <li><strong>Inactive</strong></li> * </ul> * * <strong>example:</strong> * <p>Active</p> */ public Builder bandwidthStatus(String bandwidthStatus) { this.bandwidthStatus = bandwidthStatus; return this; } /** * <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>longtel0**</p> */ public Builder circuitCode(String circuitCode) { this.circuitCode = circuitCode; return this; } /** * <p>The time when the VBR was created.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The ID of the ECC instance.</p> * * <strong>example:</strong> * <p>ecc-sjghe****</p> */ public Builder eccId(String eccId) { this.eccId = eccId; return this; } /** * <p>Indicates whether IPv6 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 enableIpv6(Boolean enableIpv6) { this.enableIpv6 = enableIpv6; return this; } /** * <p>The IPv4 address of the gateway device on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>192.168.XX.X</p> */ public Builder localGatewayIp(String localGatewayIp) { this.localGatewayIp = localGatewayIp; return this; } /** * <p>The IPv6 address of the gateway device on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>ipv6bw-uf6hcyzu65v98v3du****</p> */ public Builder localIpv6GatewayIp(String localIpv6GatewayIp) { this.localIpv6GatewayIp = localIpv6GatewayIp; return this; } /** * <p>The status of the VBR associated with the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder pConnVbrBussinessStatus(String pConnVbrBussinessStatus) { this.pConnVbrBussinessStatus = pConnVbrBussinessStatus; return this; } /** * <p>The billing method of the VBR. Valid values:</p> * <ul> * <li><strong>PrePaid</strong>: subscription. If you choose this billing method, make sure that your Apsara Stack account supports balance payments or credit payments.</li> * <li><strong>PostPaid</strong>: pay-as-you-go.</li> * </ul> * * <strong>example:</strong> * <p>PrePaid</p> */ public Builder pConnVbrChargeType(String pConnVbrChargeType) { this.pConnVbrChargeType = pConnVbrChargeType; return this; } /** * <p>The time when the VBR associated with the Express Connect circuit expires.</p> * * <strong>example:</strong> * <p>2021-06-10T12:20:55</p> */ public Builder pConnVbrExpireTime(String pConnVbrExpireTime) { this.pConnVbrExpireTime = pConnVbrExpireTime; return this; } /** * <p>The IPv4 address of the gateway device on the user side.</p> * * <strong>example:</strong> * <p>162.62.XX.XX</p> */ public Builder peerGatewayIp(String peerGatewayIp) { this.peerGatewayIp = peerGatewayIp; return this; } /** * <p>The IPv6 address of the gateway device on the user side.</p> * <p>This parameter is required when you create a VBR for the owner of the Express Connect circuit. You can ignore this parameter when you create a VBR for another Alibaba Cloud account.</p> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p> */ public Builder peerIpv6GatewayIp(String peerIpv6GatewayIp) { this.peerIpv6GatewayIp = peerIpv6GatewayIp; return this; } /** * <p>The subnet mask for the IPv6 addresses of the gateway devices on the Alibaba Cloud side and on the user side.</p> * <p>The two IPv6 addresses must fall within the same subnet.</p> * * <strong>example:</strong> * <p>2408:4004:cc:400::/56</p> */ public Builder peeringIpv6SubnetMask(String peeringIpv6SubnetMask) { this.peeringIpv6SubnetMask = peeringIpv6SubnetMask; return this; } /** * <p>The subnet mask of the IPv4 addresses configured on the user side and Alibaba Cloud side.</p> * <p>The two IPv4 addresses must fall within the same subnet.</p> * * <strong>example:</strong> * <p>255.255.255.0</p> */ public Builder peeringSubnetMask(String peeringSubnetMask) { this.peeringSubnetMask = peeringSubnetMask; return this; } /** * <p>The last time when the status of the VBR changed from Terminated to Active.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder recoveryTime(String recoveryTime) { this.recoveryTime = recoveryTime; return this; } /** * <p>The status of the VBR. Valid values:</p> * <ul> * <li><strong>unconfirmed</strong></li> * <li><strong>active</strong></li> * <li><strong>terminating</strong></li> * <li><strong>terminated</strong></li> * <li><strong>recovering</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The last time when the VBR was disabled.</p> * * <strong>example:</strong> * <p>2021-06-07T12:20:55</p> */ public Builder terminationTime(String terminationTime) { this.terminationTime = terminationTime; return this; } /** * <p>The VBR type.</p> * * <strong>example:</strong> * <p>pconnVBR</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The VBR ID.</p> * * <strong>example:</strong> * <p>vbr-bp16ksp61j7e0tk****</p> */ public Builder vbrId(String vbrId) { this.vbrId = vbrId; return this; } /** * <p>The ID of the Alibaba Cloud account to which the VBR belongs.</p> * <p>If the owner of the VBR is the same as that of the Express Connect circuit, this parameter is empty.</p> * * <strong>example:</strong> * <p>253460731706911258</p> */ public Builder vbrOwnerUid(Long vbrOwnerUid) { this.vbrOwnerUid = vbrOwnerUid; return this; } /** * <p>The VLAN ID of the VBR.</p> * * <strong>example:</strong> * <p>1678</p> */ public Builder vlanId(Integer vlanId) { this.vlanId = vlanId; return this; } public VirtualBorderRouterForPhysicalConnectionType build() { return new VirtualBorderRouterForPhysicalConnectionType(this); } } } /** * * {@link DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody</p> */ public static class VirtualBorderRouterForPhysicalConnectionSet extends TeaModel { @com.aliyun.core.annotation.NameInMap("VirtualBorderRouterForPhysicalConnectionType") private java.util.List<VirtualBorderRouterForPhysicalConnectionType> virtualBorderRouterForPhysicalConnectionType; private VirtualBorderRouterForPhysicalConnectionSet(Builder builder) { this.virtualBorderRouterForPhysicalConnectionType = builder.virtualBorderRouterForPhysicalConnectionType; } public static Builder builder() { return new Builder(); } public static VirtualBorderRouterForPhysicalConnectionSet create() { return builder().build(); } /** * @return virtualBorderRouterForPhysicalConnectionType */ public java.util.List<VirtualBorderRouterForPhysicalConnectionType> getVirtualBorderRouterForPhysicalConnectionType() { return this.virtualBorderRouterForPhysicalConnectionType; } public static final class Builder { private java.util.List<VirtualBorderRouterForPhysicalConnectionType> virtualBorderRouterForPhysicalConnectionType; private Builder() { } private Builder(VirtualBorderRouterForPhysicalConnectionSet model) { this.virtualBorderRouterForPhysicalConnectionType = model.virtualBorderRouterForPhysicalConnectionType; } /** * VirtualBorderRouterForPhysicalConnectionType. */ public Builder virtualBorderRouterForPhysicalConnectionType(java.util.List<VirtualBorderRouterForPhysicalConnectionType> virtualBorderRouterForPhysicalConnectionType) { this.virtualBorderRouterForPhysicalConnectionType = virtualBorderRouterForPhysicalConnectionType; return this; } public VirtualBorderRouterForPhysicalConnectionSet build() { return new VirtualBorderRouterForPhysicalConnectionSet(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVirtualBorderRoutersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVirtualBorderRoutersRequest} extends {@link RequestModel} * * <p>DescribeVirtualBorderRoutersRequest</p> */ public class DescribeVirtualBorderRoutersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Filter") private java.util.List<Filter> filter; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludeCrossAccountVbr") private Boolean includeCrossAccountVbr; @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("Tags") private java.util.List<Tags> tags; private DescribeVirtualBorderRoutersRequest(Builder builder) { super(builder); this.filter = builder.filter; this.includeCrossAccountVbr = builder.includeCrossAccountVbr; 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.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static DescribeVirtualBorderRoutersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return filter */ public java.util.List<Filter> getFilter() { return this.filter; } /** * @return includeCrossAccountVbr */ public Boolean getIncludeCrossAccountVbr() { return this.includeCrossAccountVbr; } /** * @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 tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<DescribeVirtualBorderRoutersRequest, Builder> { private java.util.List<Filter> filter; private Boolean includeCrossAccountVbr; 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<Tags> tags; private Builder() { super(); } private Builder(DescribeVirtualBorderRoutersRequest request) { super(request); this.filter = request.filter; this.includeCrossAccountVbr = request.includeCrossAccountVbr; 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.tags = request.tags; } /** * <p>The information about the filter.</p> */ public Builder filter(java.util.List<Filter> filter) { this.putQueryParameter("Filter", filter); this.filter = filter; return this; } /** * <p>Specifies whether cross-account VBRs are included.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder includeCrossAccountVbr(Boolean includeCrossAccountVbr) { this.putQueryParameter("IncludeCrossAccountVbr", includeCrossAccountVbr); this.includeCrossAccountVbr = includeCrossAccountVbr; 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 in which the VBR is deployed. 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; } /** * <p>The resource group ID.</p> * <p>For more information about resource groups, see <a href="https://help.aliyun.com/document_detail/94475.html">What is a resource group?</a></p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The list of tags.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public DescribeVirtualBorderRoutersRequest build() { return new DescribeVirtualBorderRoutersRequest(this); } } /** * * {@link DescribeVirtualBorderRoutersRequest} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersRequest</p> */ public static class Filter extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private java.util.List<String> value; private Filter(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Filter create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public java.util.List<String> getValue() { return this.value; } public static final class Builder { private String key; private java.util.List<String> value; private Builder() { } private Builder(Filter model) { this.key = model.key; this.value = model.value; } /** * <p>The filter conditions. You can specify up to five filter conditions. Valid values:</p> * <ul> * <li><strong>PhysicalConnectionId</strong>: Filter by Express Connect circuit ID.</li> * <li><strong>VbrId</strong>: Filter by VBR ID.</li> * <li><strong>Status</strong>: Filter by VBR status.</li> * <li><strong>Name</strong>: Filter by VBR name.</li> * <li><strong>AccessPointId</strong>: Filter by access point ID.</li> * <li><strong>eccId:</strong> Filter by Express Cloud Connect (ECC) instance ID.</li> * <li><strong>type</strong>: Filter by Express Connect circuit type.</li> * </ul> * * <strong>example:</strong> * <p>Status</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The filter values for keys. You can specify multiple filter values for one key. The logical operator between filter values is OR. If one filter value is matched, the filter condition is matched.</p> * * <strong>example:</strong> * <p>Active</p> */ public Builder value(java.util.List<String> value) { this.value = value; return this; } public Filter build() { return new Filter(this); } } } /** * * {@link DescribeVirtualBorderRoutersRequest} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The key cannot exceed 128 characters in length, and cannot start with <code>aliyun</code> or <code>acs:</code>. The key cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value cannot exceed 128 characters in length, and cannot start with <code>aliyun</code> or <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public 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/DescribeVirtualBorderRoutersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVirtualBorderRoutersResponse} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponse</p> */ public class DescribeVirtualBorderRoutersResponse 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 DescribeVirtualBorderRoutersResponseBody body; private DescribeVirtualBorderRoutersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVirtualBorderRoutersResponse 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 DescribeVirtualBorderRoutersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVirtualBorderRoutersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVirtualBorderRoutersResponseBody body); @Override DescribeVirtualBorderRoutersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVirtualBorderRoutersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVirtualBorderRoutersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVirtualBorderRoutersResponse 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(DescribeVirtualBorderRoutersResponseBody body) { this.body = body; return this; } @Override public DescribeVirtualBorderRoutersResponse build() { return new DescribeVirtualBorderRoutersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVirtualBorderRoutersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public class DescribeVirtualBorderRoutersResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VirtualBorderRouterSet") private VirtualBorderRouterSet virtualBorderRouterSet; private DescribeVirtualBorderRoutersResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.virtualBorderRouterSet = builder.virtualBorderRouterSet; } public static Builder builder() { return new Builder(); } public static DescribeVirtualBorderRoutersResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return virtualBorderRouterSet */ public VirtualBorderRouterSet getVirtualBorderRouterSet() { return this.virtualBorderRouterSet; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VirtualBorderRouterSet virtualBorderRouterSet; private Builder() { } private Builder(DescribeVirtualBorderRoutersResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.virtualBorderRouterSet = model.virtualBorderRouterSet; } /** * <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 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.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>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The information about the VBR.</p> */ public Builder virtualBorderRouterSet(VirtualBorderRouterSet virtualBorderRouterSet) { this.virtualBorderRouterSet = virtualBorderRouterSet; return this; } public DescribeVirtualBorderRoutersResponseBody build() { return new DescribeVirtualBorderRoutersResponseBody(this); } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class AssociatedCen extends TeaModel { @com.aliyun.core.annotation.NameInMap("CenId") private String cenId; @com.aliyun.core.annotation.NameInMap("CenOwnerId") private Long cenOwnerId; @com.aliyun.core.annotation.NameInMap("CenStatus") private String cenStatus; private AssociatedCen(Builder builder) { this.cenId = builder.cenId; this.cenOwnerId = builder.cenOwnerId; this.cenStatus = builder.cenStatus; } public static Builder builder() { return new Builder(); } public static AssociatedCen create() { return builder().build(); } /** * @return cenId */ public String getCenId() { return this.cenId; } /** * @return cenOwnerId */ public Long getCenOwnerId() { return this.cenOwnerId; } /** * @return cenStatus */ public String getCenStatus() { return this.cenStatus; } public static final class Builder { private String cenId; private Long cenOwnerId; private String cenStatus; private Builder() { } private Builder(AssociatedCen model) { this.cenId = model.cenId; this.cenOwnerId = model.cenOwnerId; this.cenStatus = model.cenStatus; } /** * <p>The CEN instance ID.</p> * * <strong>example:</strong> * <p>cen-kojok19xxx****</p> */ public Builder cenId(String cenId) { this.cenId = cenId; return this; } /** * <p>The ID of the account to which the CEN instance belongs.</p> * * <strong>example:</strong> * <p>1688000000000****</p> */ public Builder cenOwnerId(Long cenOwnerId) { this.cenOwnerId = cenOwnerId; return this; } /** * <p>The status of the CEN instance. Valid values:</p> * <ul> * <li><strong>Attached</strong></li> * <li><strong>Attaching</strong></li> * <li><strong>Detached</strong></li> * <li><strong>Detaching</strong></li> * <li>If no value is returned, the VBR is not attached to a CEN instance.</li> * </ul> * * <strong>example:</strong> * <p>Attached</p> */ public Builder cenStatus(String cenStatus) { this.cenStatus = cenStatus; return this; } public AssociatedCen build() { return new AssociatedCen(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class AssociatedCens extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociatedCen") private java.util.List<AssociatedCen> associatedCen; private AssociatedCens(Builder builder) { this.associatedCen = builder.associatedCen; } public static Builder builder() { return new Builder(); } public static AssociatedCens create() { return builder().build(); } /** * @return associatedCen */ public java.util.List<AssociatedCen> getAssociatedCen() { return this.associatedCen; } public static final class Builder { private java.util.List<AssociatedCen> associatedCen; private Builder() { } private Builder(AssociatedCens model) { this.associatedCen = model.associatedCen; } /** * AssociatedCen. */ public Builder associatedCen(java.util.List<AssociatedCen> associatedCen) { this.associatedCen = associatedCen; return this; } public AssociatedCens build() { return new AssociatedCens(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class AssociatedPhysicalConnection extends TeaModel { @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.NameInMap("EnableIpv6") private Boolean enableIpv6; @com.aliyun.core.annotation.NameInMap("LocalGatewayIp") private String localGatewayIp; @com.aliyun.core.annotation.NameInMap("LocalIpv6GatewayIp") private String localIpv6GatewayIp; @com.aliyun.core.annotation.NameInMap("PeerGatewayIp") private String peerGatewayIp; @com.aliyun.core.annotation.NameInMap("PeerIpv6GatewayIp") private String peerIpv6GatewayIp; @com.aliyun.core.annotation.NameInMap("PeeringIpv6SubnetMask") private String peeringIpv6SubnetMask; @com.aliyun.core.annotation.NameInMap("PeeringSubnetMask") private String peeringSubnetMask; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionBusinessStatus") private String physicalConnectionBusinessStatus; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionId") private String physicalConnectionId; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionOwnerUid") private String physicalConnectionOwnerUid; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionStatus") private String physicalConnectionStatus; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("VlanId") private String vlanId; @com.aliyun.core.annotation.NameInMap("VlanInterfaceId") private String vlanInterfaceId; private AssociatedPhysicalConnection(Builder builder) { this.circuitCode = builder.circuitCode; this.enableIpv6 = builder.enableIpv6; this.localGatewayIp = builder.localGatewayIp; this.localIpv6GatewayIp = builder.localIpv6GatewayIp; this.peerGatewayIp = builder.peerGatewayIp; this.peerIpv6GatewayIp = builder.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = builder.peeringIpv6SubnetMask; this.peeringSubnetMask = builder.peeringSubnetMask; this.physicalConnectionBusinessStatus = builder.physicalConnectionBusinessStatus; this.physicalConnectionId = builder.physicalConnectionId; this.physicalConnectionOwnerUid = builder.physicalConnectionOwnerUid; this.physicalConnectionStatus = builder.physicalConnectionStatus; this.status = builder.status; this.vlanId = builder.vlanId; this.vlanInterfaceId = builder.vlanInterfaceId; } public static Builder builder() { return new Builder(); } public static AssociatedPhysicalConnection create() { return builder().build(); } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @return localGatewayIp */ public String getLocalGatewayIp() { return this.localGatewayIp; } /** * @return localIpv6GatewayIp */ public String getLocalIpv6GatewayIp() { return this.localIpv6GatewayIp; } /** * @return peerGatewayIp */ public String getPeerGatewayIp() { return this.peerGatewayIp; } /** * @return peerIpv6GatewayIp */ public String getPeerIpv6GatewayIp() { return this.peerIpv6GatewayIp; } /** * @return peeringIpv6SubnetMask */ public String getPeeringIpv6SubnetMask() { return this.peeringIpv6SubnetMask; } /** * @return peeringSubnetMask */ public String getPeeringSubnetMask() { return this.peeringSubnetMask; } /** * @return physicalConnectionBusinessStatus */ public String getPhysicalConnectionBusinessStatus() { return this.physicalConnectionBusinessStatus; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @return physicalConnectionOwnerUid */ public String getPhysicalConnectionOwnerUid() { return this.physicalConnectionOwnerUid; } /** * @return physicalConnectionStatus */ public String getPhysicalConnectionStatus() { return this.physicalConnectionStatus; } /** * @return status */ public String getStatus() { return this.status; } /** * @return vlanId */ public String getVlanId() { return this.vlanId; } /** * @return vlanInterfaceId */ public String getVlanInterfaceId() { return this.vlanInterfaceId; } public static final class Builder { private String circuitCode; private Boolean enableIpv6; private String localGatewayIp; private String localIpv6GatewayIp; private String peerGatewayIp; private String peerIpv6GatewayIp; private String peeringIpv6SubnetMask; private String peeringSubnetMask; private String physicalConnectionBusinessStatus; private String physicalConnectionId; private String physicalConnectionOwnerUid; private String physicalConnectionStatus; private String status; private String vlanId; private String vlanInterfaceId; private Builder() { } private Builder(AssociatedPhysicalConnection model) { this.circuitCode = model.circuitCode; this.enableIpv6 = model.enableIpv6; this.localGatewayIp = model.localGatewayIp; this.localIpv6GatewayIp = model.localIpv6GatewayIp; this.peerGatewayIp = model.peerGatewayIp; this.peerIpv6GatewayIp = model.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = model.peeringIpv6SubnetMask; this.peeringSubnetMask = model.peeringSubnetMask; this.physicalConnectionBusinessStatus = model.physicalConnectionBusinessStatus; this.physicalConnectionId = model.physicalConnectionId; this.physicalConnectionOwnerUid = model.physicalConnectionOwnerUid; this.physicalConnectionStatus = model.physicalConnectionStatus; this.status = model.status; this.vlanId = model.vlanId; this.vlanInterfaceId = model.vlanInterfaceId; } /** * <p>The circuit code of the Express Connect circuit, which is provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>longtel0**</p> */ public Builder circuitCode(String circuitCode) { this.circuitCode = circuitCode; return this; } /** * <p>Indicates whether IPv6 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 enableIpv6(Boolean enableIpv6) { this.enableIpv6 = enableIpv6; return this; } /** * <p>The IPv4 address of the VBR on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder localGatewayIp(String localGatewayIp) { this.localGatewayIp = localGatewayIp; return this; } /** * <p>The IPv6 address of the VBR on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p> */ public Builder localIpv6GatewayIp(String localIpv6GatewayIp) { this.localIpv6GatewayIp = localIpv6GatewayIp; return this; } /** * <p>The IPv4 address of the VBR on the user side.</p> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder peerGatewayIp(String peerGatewayIp) { this.peerGatewayIp = peerGatewayIp; return this; } /** * <p>The IPv6 address of the VBR on the user side.</p> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p> */ public Builder peerIpv6GatewayIp(String peerIpv6GatewayIp) { this.peerIpv6GatewayIp = peerIpv6GatewayIp; return this; } /** * <p>The subnet mask for the IPv6 addresses on the user side and on the Alibaba Cloud side.</p> * <p>Both IPv6 addresses must belong to the same subnet.</p> * * <strong>example:</strong> * <p>2408:4004:cc:400::/56</p> */ public Builder peeringIpv6SubnetMask(String peeringIpv6SubnetMask) { this.peeringIpv6SubnetMask = peeringIpv6SubnetMask; return this; } /** * <p>The subnet mask for the IPv4 addresses of the VBR on the user side and on the Alibaba Cloud side.</p> * <p>Both IPv4 addresses must belong to the same subnet.</p> * * <strong>example:</strong> * <p>255.255.255.252</p> */ public Builder peeringSubnetMask(String peeringSubnetMask) { this.peeringSubnetMask = peeringSubnetMask; return this; } /** * <p>The business status of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>Normal:</strong> The Express Connect circuit is running as normal.</li> * <li><strong>FinancialLocked:</strong> The Express Connect circuit is locked due to overdue payments.</li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder physicalConnectionBusinessStatus(String physicalConnectionBusinessStatus) { this.physicalConnectionBusinessStatus = physicalConnectionBusinessStatus; return this; } /** * <p>The ID of the Express Connect circuit.</p> * * <strong>example:</strong> * <p>pc-119mfjzm7****</p> */ public Builder physicalConnectionId(String physicalConnectionId) { this.physicalConnectionId = physicalConnectionId; return this; } /** * <p>The ID of the account to which the Express Connect circuit belongs.</p> * * <strong>example:</strong> * <p>12345678****</p> */ public Builder physicalConnectionOwnerUid(String physicalConnectionOwnerUid) { this.physicalConnectionOwnerUid = physicalConnectionOwnerUid; return this; } /** * <p>The status of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>Initial:</strong> The application is under review.</li> * <li><strong>Approved</strong>: The application is approved.</li> * <li><strong>Allocating</strong>: The system is allocating resources.</li> * <li><strong>Allocated</strong>: The Express Connect circuit is under construction.</li> * <li><strong>Confirmed</strong>: The Express Connect circuit is to be confirmed.</li> * <li><strong>Enabled</strong>: The Express Connect circuit is enabled.</li> * <li><strong>Rejected</strong>: The application is rejected.</li> * <li><strong>Canceled</strong>: The application is canceled.</li> * <li><strong>Allocation Failed:</strong> The system failed to allocate resources.</li> * <li><strong>Terminated:</strong> The Express Connect circuit is disabled.</li> * </ul> * * <strong>example:</strong> * <p>Enabled</p> */ public Builder physicalConnectionStatus(String physicalConnectionStatus) { this.physicalConnectionStatus = physicalConnectionStatus; return this; } /** * <p>The status of the VBR. Valid values:</p> * <ul> * <li><strong>unconfirmed</strong></li> * <li><strong>active:</strong></li> * <li><strong>terminating</strong></li> * <li><strong>terminated</strong></li> * <li><strong>recovering</strong></li> * <li><strong>deleting:</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The VLAN ID of the VBR.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder vlanId(String vlanId) { this.vlanId = vlanId; return this; } /** * <p>The ID of the VBR interface, which can be used as a next hop of a VBR route.</p> * * <strong>example:</strong> * <p>ri-kojok19x3j0q6k****</p> */ public Builder vlanInterfaceId(String vlanInterfaceId) { this.vlanInterfaceId = vlanInterfaceId; return this; } public AssociatedPhysicalConnection build() { return new AssociatedPhysicalConnection(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class AssociatedPhysicalConnections extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociatedPhysicalConnection") private java.util.List<AssociatedPhysicalConnection> associatedPhysicalConnection; private AssociatedPhysicalConnections(Builder builder) { this.associatedPhysicalConnection = builder.associatedPhysicalConnection; } public static Builder builder() { return new Builder(); } public static AssociatedPhysicalConnections create() { return builder().build(); } /** * @return associatedPhysicalConnection */ public java.util.List<AssociatedPhysicalConnection> getAssociatedPhysicalConnection() { return this.associatedPhysicalConnection; } public static final class Builder { private java.util.List<AssociatedPhysicalConnection> associatedPhysicalConnection; private Builder() { } private Builder(AssociatedPhysicalConnections model) { this.associatedPhysicalConnection = model.associatedPhysicalConnection; } /** * AssociatedPhysicalConnection. */ public Builder associatedPhysicalConnection(java.util.List<AssociatedPhysicalConnection> associatedPhysicalConnection) { this.associatedPhysicalConnection = associatedPhysicalConnection; return this; } public AssociatedPhysicalConnections build() { return new AssociatedPhysicalConnections(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the resource.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the resource.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class VirtualBorderRouterTypeTags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private VirtualBorderRouterTypeTags(Builder builder) { this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static VirtualBorderRouterTypeTags create() { return builder().build(); } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private java.util.List<Tags> tags; private Builder() { } private Builder(VirtualBorderRouterTypeTags model) { this.tags = model.tags; } /** * Tags. */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public VirtualBorderRouterTypeTags build() { return new VirtualBorderRouterTypeTags(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class VirtualBorderRouterType extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessPointId") private String accessPointId; @com.aliyun.core.annotation.NameInMap("ActivationTime") private String activationTime; @com.aliyun.core.annotation.NameInMap("AssociatedCens") private AssociatedCens associatedCens; @com.aliyun.core.annotation.NameInMap("AssociatedPhysicalConnections") private AssociatedPhysicalConnections associatedPhysicalConnections; @com.aliyun.core.annotation.NameInMap("Bandwidth") private Integer bandwidth; @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.NameInMap("CloudBoxInstanceId") private String cloudBoxInstanceId; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DetectMultiplier") private Long detectMultiplier; @com.aliyun.core.annotation.NameInMap("EccId") private String eccId; @com.aliyun.core.annotation.NameInMap("EcrAttatchStatus") private String ecrAttatchStatus; @com.aliyun.core.annotation.NameInMap("EcrId") private String ecrId; @com.aliyun.core.annotation.NameInMap("EcrOwnerId") private String ecrOwnerId; @com.aliyun.core.annotation.NameInMap("EnableIpv6") private Boolean enableIpv6; @com.aliyun.core.annotation.NameInMap("LocalGatewayIp") private String localGatewayIp; @com.aliyun.core.annotation.NameInMap("LocalIpv6GatewayIp") private String localIpv6GatewayIp; @com.aliyun.core.annotation.NameInMap("MinRxInterval") private Long minRxInterval; @com.aliyun.core.annotation.NameInMap("MinTxInterval") private Long minTxInterval; @com.aliyun.core.annotation.NameInMap("Mtu") private Integer mtu; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("PConnVbrChargeType") private String pConnVbrChargeType; @com.aliyun.core.annotation.NameInMap("PConnVbrExpireTime") private String pConnVbrExpireTime; @com.aliyun.core.annotation.NameInMap("PeerGatewayIp") private String peerGatewayIp; @com.aliyun.core.annotation.NameInMap("PeerIpv6GatewayIp") private String peerIpv6GatewayIp; @com.aliyun.core.annotation.NameInMap("PeeringIpv6SubnetMask") private String peeringIpv6SubnetMask; @com.aliyun.core.annotation.NameInMap("PeeringSubnetMask") private String peeringSubnetMask; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionBusinessStatus") private String physicalConnectionBusinessStatus; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionId") private String physicalConnectionId; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionOwnerUid") private String physicalConnectionOwnerUid; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionStatus") private String physicalConnectionStatus; @com.aliyun.core.annotation.NameInMap("RecoveryTime") private String recoveryTime; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; @com.aliyun.core.annotation.NameInMap("SitelinkEnable") private Boolean sitelinkEnable; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private VirtualBorderRouterTypeTags tags; @com.aliyun.core.annotation.NameInMap("TerminationTime") private String terminationTime; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("VbrId") private String vbrId; @com.aliyun.core.annotation.NameInMap("VlanId") private Integer vlanId; @com.aliyun.core.annotation.NameInMap("VlanInterfaceId") private String vlanInterfaceId; private VirtualBorderRouterType(Builder builder) { this.accessPointId = builder.accessPointId; this.activationTime = builder.activationTime; this.associatedCens = builder.associatedCens; this.associatedPhysicalConnections = builder.associatedPhysicalConnections; this.bandwidth = builder.bandwidth; this.circuitCode = builder.circuitCode; this.cloudBoxInstanceId = builder.cloudBoxInstanceId; this.creationTime = builder.creationTime; this.description = builder.description; this.detectMultiplier = builder.detectMultiplier; this.eccId = builder.eccId; this.ecrAttatchStatus = builder.ecrAttatchStatus; this.ecrId = builder.ecrId; this.ecrOwnerId = builder.ecrOwnerId; this.enableIpv6 = builder.enableIpv6; this.localGatewayIp = builder.localGatewayIp; this.localIpv6GatewayIp = builder.localIpv6GatewayIp; this.minRxInterval = builder.minRxInterval; this.minTxInterval = builder.minTxInterval; this.mtu = builder.mtu; this.name = builder.name; this.pConnVbrChargeType = builder.pConnVbrChargeType; this.pConnVbrExpireTime = builder.pConnVbrExpireTime; this.peerGatewayIp = builder.peerGatewayIp; this.peerIpv6GatewayIp = builder.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = builder.peeringIpv6SubnetMask; this.peeringSubnetMask = builder.peeringSubnetMask; this.physicalConnectionBusinessStatus = builder.physicalConnectionBusinessStatus; this.physicalConnectionId = builder.physicalConnectionId; this.physicalConnectionOwnerUid = builder.physicalConnectionOwnerUid; this.physicalConnectionStatus = builder.physicalConnectionStatus; this.recoveryTime = builder.recoveryTime; this.resourceGroupId = builder.resourceGroupId; this.routeTableId = builder.routeTableId; this.sitelinkEnable = builder.sitelinkEnable; this.status = builder.status; this.tags = builder.tags; this.terminationTime = builder.terminationTime; this.type = builder.type; this.vbrId = builder.vbrId; this.vlanId = builder.vlanId; this.vlanInterfaceId = builder.vlanInterfaceId; } public static Builder builder() { return new Builder(); } public static VirtualBorderRouterType create() { return builder().build(); } /** * @return accessPointId */ public String getAccessPointId() { return this.accessPointId; } /** * @return activationTime */ public String getActivationTime() { return this.activationTime; } /** * @return associatedCens */ public AssociatedCens getAssociatedCens() { return this.associatedCens; } /** * @return associatedPhysicalConnections */ public AssociatedPhysicalConnections getAssociatedPhysicalConnections() { return this.associatedPhysicalConnections; } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return cloudBoxInstanceId */ public String getCloudBoxInstanceId() { return this.cloudBoxInstanceId; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return detectMultiplier */ public Long getDetectMultiplier() { return this.detectMultiplier; } /** * @return eccId */ public String getEccId() { return this.eccId; } /** * @return ecrAttatchStatus */ public String getEcrAttatchStatus() { return this.ecrAttatchStatus; } /** * @return ecrId */ public String getEcrId() { return this.ecrId; } /** * @return ecrOwnerId */ public String getEcrOwnerId() { return this.ecrOwnerId; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @return localGatewayIp */ public String getLocalGatewayIp() { return this.localGatewayIp; } /** * @return localIpv6GatewayIp */ public String getLocalIpv6GatewayIp() { return this.localIpv6GatewayIp; } /** * @return minRxInterval */ public Long getMinRxInterval() { return this.minRxInterval; } /** * @return minTxInterval */ public Long getMinTxInterval() { return this.minTxInterval; } /** * @return mtu */ public Integer getMtu() { return this.mtu; } /** * @return name */ public String getName() { return this.name; } /** * @return pConnVbrChargeType */ public String getPConnVbrChargeType() { return this.pConnVbrChargeType; } /** * @return pConnVbrExpireTime */ public String getPConnVbrExpireTime() { return this.pConnVbrExpireTime; } /** * @return peerGatewayIp */ public String getPeerGatewayIp() { return this.peerGatewayIp; } /** * @return peerIpv6GatewayIp */ public String getPeerIpv6GatewayIp() { return this.peerIpv6GatewayIp; } /** * @return peeringIpv6SubnetMask */ public String getPeeringIpv6SubnetMask() { return this.peeringIpv6SubnetMask; } /** * @return peeringSubnetMask */ public String getPeeringSubnetMask() { return this.peeringSubnetMask; } /** * @return physicalConnectionBusinessStatus */ public String getPhysicalConnectionBusinessStatus() { return this.physicalConnectionBusinessStatus; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @return physicalConnectionOwnerUid */ public String getPhysicalConnectionOwnerUid() { return this.physicalConnectionOwnerUid; } /** * @return physicalConnectionStatus */ public String getPhysicalConnectionStatus() { return this.physicalConnectionStatus; } /** * @return recoveryTime */ public String getRecoveryTime() { return this.recoveryTime; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return sitelinkEnable */ public Boolean getSitelinkEnable() { return this.sitelinkEnable; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public VirtualBorderRouterTypeTags getTags() { return this.tags; } /** * @return terminationTime */ public String getTerminationTime() { return this.terminationTime; } /** * @return type */ public String getType() { return this.type; } /** * @return vbrId */ public String getVbrId() { return this.vbrId; } /** * @return vlanId */ public Integer getVlanId() { return this.vlanId; } /** * @return vlanInterfaceId */ public String getVlanInterfaceId() { return this.vlanInterfaceId; } public static final class Builder { private String accessPointId; private String activationTime; private AssociatedCens associatedCens; private AssociatedPhysicalConnections associatedPhysicalConnections; private Integer bandwidth; private String circuitCode; private String cloudBoxInstanceId; private String creationTime; private String description; private Long detectMultiplier; private String eccId; private String ecrAttatchStatus; private String ecrId; private String ecrOwnerId; private Boolean enableIpv6; private String localGatewayIp; private String localIpv6GatewayIp; private Long minRxInterval; private Long minTxInterval; private Integer mtu; private String name; private String pConnVbrChargeType; private String pConnVbrExpireTime; private String peerGatewayIp; private String peerIpv6GatewayIp; private String peeringIpv6SubnetMask; private String peeringSubnetMask; private String physicalConnectionBusinessStatus; private String physicalConnectionId; private String physicalConnectionOwnerUid; private String physicalConnectionStatus; private String recoveryTime; private String resourceGroupId; private String routeTableId; private Boolean sitelinkEnable; private String status; private VirtualBorderRouterTypeTags tags; private String terminationTime; private String type; private String vbrId; private Integer vlanId; private String vlanInterfaceId; private Builder() { } private Builder(VirtualBorderRouterType model) { this.accessPointId = model.accessPointId; this.activationTime = model.activationTime; this.associatedCens = model.associatedCens; this.associatedPhysicalConnections = model.associatedPhysicalConnections; this.bandwidth = model.bandwidth; this.circuitCode = model.circuitCode; this.cloudBoxInstanceId = model.cloudBoxInstanceId; this.creationTime = model.creationTime; this.description = model.description; this.detectMultiplier = model.detectMultiplier; this.eccId = model.eccId; this.ecrAttatchStatus = model.ecrAttatchStatus; this.ecrId = model.ecrId; this.ecrOwnerId = model.ecrOwnerId; this.enableIpv6 = model.enableIpv6; this.localGatewayIp = model.localGatewayIp; this.localIpv6GatewayIp = model.localIpv6GatewayIp; this.minRxInterval = model.minRxInterval; this.minTxInterval = model.minTxInterval; this.mtu = model.mtu; this.name = model.name; this.pConnVbrChargeType = model.pConnVbrChargeType; this.pConnVbrExpireTime = model.pConnVbrExpireTime; this.peerGatewayIp = model.peerGatewayIp; this.peerIpv6GatewayIp = model.peerIpv6GatewayIp; this.peeringIpv6SubnetMask = model.peeringIpv6SubnetMask; this.peeringSubnetMask = model.peeringSubnetMask; this.physicalConnectionBusinessStatus = model.physicalConnectionBusinessStatus; this.physicalConnectionId = model.physicalConnectionId; this.physicalConnectionOwnerUid = model.physicalConnectionOwnerUid; this.physicalConnectionStatus = model.physicalConnectionStatus; this.recoveryTime = model.recoveryTime; this.resourceGroupId = model.resourceGroupId; this.routeTableId = model.routeTableId; this.sitelinkEnable = model.sitelinkEnable; this.status = model.status; this.tags = model.tags; this.terminationTime = model.terminationTime; this.type = model.type; this.vbrId = model.vbrId; this.vlanId = model.vlanId; this.vlanInterfaceId = model.vlanInterfaceId; } /** * <p>The ID of the access point.</p> * * <strong>example:</strong> * <p>ap-cn-kojok1x****</p> */ public Builder accessPointId(String accessPointId) { this.accessPointId = accessPointId; return this; } /** * <p>The time when the VBR was activated for the first time.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder activationTime(String activationTime) { this.activationTime = activationTime; return this; } /** * <p>The information about the Cloud Enterprise Network (CEN) instance to which the VBR is attached.</p> */ public Builder associatedCens(AssociatedCens associatedCens) { this.associatedCens = associatedCens; return this; } /** * <p>The information about the Express Connect circuit that is associated with the VBR.</p> */ public Builder associatedPhysicalConnections(AssociatedPhysicalConnections associatedPhysicalConnections) { this.associatedPhysicalConnections = associatedPhysicalConnections; return this; } /** * <p>The bandwidth value of the VBR. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder bandwidth(Integer bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The circuit code of the Express Connect circuit, which is provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>longtel0****</p> */ public Builder circuitCode(String circuitCode) { this.circuitCode = circuitCode; return this; } /** * <p>The ID of the cloud box.</p> * * <strong>example:</strong> * <p>cb-****</p> */ public Builder cloudBoxInstanceId(String cloudBoxInstanceId) { this.cloudBoxInstanceId = cloudBoxInstanceId; return this; } /** * <p>The time when the VBR was created.</p> * * <strong>example:</strong> * <p>2020-06-08T12:20:55</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the VBR.</p> * * <strong>example:</strong> * <p>desc</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The multiple of the detection time.</p> * <p>This value indicates the maximum number of dropped packets that is allowed by the receiver when the initiator transmits packets. This value can be used to check whether the connection works as expected.</p> * <p>Valid values: <strong>3 to 10</strong>.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder detectMultiplier(Long detectMultiplier) { this.detectMultiplier = detectMultiplier; return this; } /** * <p>The ID of the Express Cloud Connect (ECC) instance.</p> * * <strong>example:</strong> * <p>ecc-h****</p> */ public Builder eccId(String eccId) { this.eccId = eccId; return this; } /** * <p>The status of the ECR. Valid values:</p> * <ul> * <li><strong>Attached</strong></li> * <li><strong>Attaching</strong></li> * <li><strong>Detached</strong></li> * <li><strong>Detaching</strong></li> * <li>If no value is returned, the VBR is not attached to a CEN instance.</li> * </ul> * * <strong>example:</strong> * <p>Attached</p> */ public Builder ecrAttatchStatus(String ecrAttatchStatus) { this.ecrAttatchStatus = ecrAttatchStatus; return this; } /** * <p>The ID of the Express Connect Router (ECR).</p> * * <strong>example:</strong> * <p>ecr-7vrbqv9lcgvzqbwwkm</p> */ public Builder ecrId(String ecrId) { this.ecrId = ecrId; return this; } /** * <p>The ID of the Alibaba Cloud account (primary account) to which the ECR belongs.</p> * * <strong>example:</strong> * <p>192732132151xxxx</p> */ public Builder ecrOwnerId(String ecrOwnerId) { this.ecrOwnerId = ecrOwnerId; return this; } /** * <p>Indicates whether IPv6 is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableIpv6(Boolean enableIpv6) { this.enableIpv6 = enableIpv6; return this; } /** * <p>The IPv4 address of the VBR on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder localGatewayIp(String localGatewayIp) { this.localGatewayIp = localGatewayIp; return this; } /** * <p>The IPv6 address of the VBR on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p> */ public Builder localIpv6GatewayIp(String localIpv6GatewayIp) { this.localIpv6GatewayIp = localIpv6GatewayIp; return this; } /** * <p>The time interval to receive BFD packets. Valid values: <strong>200 to 1000</strong>. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>300</p> */ public Builder minRxInterval(Long minRxInterval) { this.minRxInterval = minRxInterval; return this; } /** * <p>The time interval to send Bidirectional Forwarding Detection (BFD) packets. Valid values: <strong>200 to 1000</strong>. Unit: milliseconds.</p> * * <strong>example:</strong> * <p>300</p> */ public Builder minTxInterval(Long minTxInterval) { this.minTxInterval = minTxInterval; return this; } /** * Mtu. */ public Builder mtu(Integer mtu) { this.mtu = mtu; return this; } /** * <p>The VBR name.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The billing method of the VBR. Valid values:</p> * <ul> * <li><strong>PrePaid:</strong> subscription. If you choose this billing method, make sure that your account supports balance payments or credit payments.</li> * <li><strong>PostPaid:</strong> pay-as-you-go.</li> * </ul> * * <strong>example:</strong> * <p>PrePaid</p> */ public Builder pConnVbrChargeType(String pConnVbrChargeType) { this.pConnVbrChargeType = pConnVbrChargeType; return this; } /** * <p>The time when the VBR expires.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder pConnVbrExpireTime(String pConnVbrExpireTime) { this.pConnVbrExpireTime = pConnVbrExpireTime; return this; } /** * <p>The IPv4 address of the VBR on the user side.</p> * * <strong>example:</strong> * <p>192.168.XX.XX</p> */ public Builder peerGatewayIp(String peerGatewayIp) { this.peerGatewayIp = peerGatewayIp; return this; } /** * <p>The IPv6 address of the VBR on the user side.</p> * * <strong>example:</strong> * <p>2001:XXXX:3c4d:0015:0000:0000:0000:1a2b</p> */ public Builder peerIpv6GatewayIp(String peerIpv6GatewayIp) { this.peerIpv6GatewayIp = peerIpv6GatewayIp; return this; } /** * <p>The subnet mask for the IPv6 addresses on the user side and on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>2000:1234:0:a000::/55</p> */ public Builder peeringIpv6SubnetMask(String peeringIpv6SubnetMask) { this.peeringIpv6SubnetMask = peeringIpv6SubnetMask; return this; } /** * <p>The subnet mask for the IPv4 addresses on the Alibaba Cloud side and on the user side.</p> * * <strong>example:</strong> * <p>255.255.255.252</p> */ public Builder peeringSubnetMask(String peeringSubnetMask) { this.peeringSubnetMask = peeringSubnetMask; return this; } /** * <p>The business status of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>Normal:</strong> The Express Connect circuit is running as normal.</li> * <li><strong>FinancialLocked:</strong> The Express Connect circuit is locked due to overdue payments.</li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder physicalConnectionBusinessStatus(String physicalConnectionBusinessStatus) { this.physicalConnectionBusinessStatus = physicalConnectionBusinessStatus; return this; } /** * <p>The ID of the Express Connect circuit to which the VBR belongs.</p> * * <strong>example:</strong> * <p>pc-119mfjzm7x****</p> */ public Builder physicalConnectionId(String physicalConnectionId) { this.physicalConnectionId = physicalConnectionId; return this; } /** * <p>The ID of the account to which the Express Connect circuit belongs.</p> * * <strong>example:</strong> * <p>1688000000000****</p> */ public Builder physicalConnectionOwnerUid(String physicalConnectionOwnerUid) { this.physicalConnectionOwnerUid = physicalConnectionOwnerUid; return this; } /** * <p>The status of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>Initial:</strong> The application is under review.</li> * <li><strong>Approved</strong>: The application is approved.</li> * <li><strong>Allocating</strong>: The system is allocating resources.</li> * <li><strong>Allocated</strong>: The Express Connect circuit is under construction.</li> * <li><strong>Confirmed</strong>: The Express Connect circuit is to be confirmed.</li> * <li><strong>Enabled</strong>: The Express Connect circuit is enabled.</li> * <li><strong>Rejected</strong>: The application is rejected.</li> * <li><strong>Canceled</strong>: The application is canceled.</li> * <li><strong>Allocation Failed:</strong> The system failed to allocate resources.</li> * <li><strong>Terminated:</strong> The Express Connect circuit is disabled.</li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder physicalConnectionStatus(String physicalConnectionStatus) { this.physicalConnectionStatus = physicalConnectionStatus; return this; } /** * <p>The last time when the status of the VBR changed from <strong>terminated</strong> to <strong>active</strong>.</p> * * <strong>example:</strong> * <p>2021-05-08T12:20:55</p> */ public Builder recoveryTime(String recoveryTime) { this.recoveryTime = recoveryTime; return this; } /** * <p>The resource group ID.</p> * <p>For more information about resource groups, see <a href="https://help.aliyun.com/document_detail/94475.html">Resource groups</a>.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph6aiy****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The ID of the route table of the VBR.</p> * * <strong>example:</strong> * <p>rtb-bp1****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } /** * <p>Indicates whether to allow service access between data centers. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * <blockquote> * <p> If no value is returned, service access between data centers is not allowed.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder sitelinkEnable(Boolean sitelinkEnable) { this.sitelinkEnable = sitelinkEnable; return this; } /** * <p>The status of the VBR. Valid values:</p> * <ul> * <li><strong>unconfirmed</strong></li> * <li><strong>active</strong></li> * <li><strong>terminating</strong></li> * <li><strong>terminated</strong></li> * <li><strong>recovering</strong></li> * <li><strong>deleting:</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag of the resource.</p> */ public Builder tags(VirtualBorderRouterTypeTags tags) { this.tags = tags; return this; } /** * <p>The last time when the VBR was terminated.</p> * * <strong>example:</strong> * <p>2021-06-08T12:20:55</p> */ public Builder terminationTime(String terminationTime) { this.terminationTime = terminationTime; return this; } /** * <p>The VBR type.</p> * * <strong>example:</strong> * <p>pconnVBR</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The VBR ID.</p> * * <strong>example:</strong> * <p>vbr-bp1jcg5cmxjbl9xgc****</p> */ public Builder vbrId(String vbrId) { this.vbrId = vbrId; return this; } /** * <p>The VLAN ID of the VBR.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder vlanId(Integer vlanId) { this.vlanId = vlanId; return this; } /** * <p>The ID of the VBR interface.</p> * * <strong>example:</strong> * <p>ri-2zeo3xzyf38r4xx****</p> */ public Builder vlanInterfaceId(String vlanInterfaceId) { this.vlanInterfaceId = vlanInterfaceId; return this; } public VirtualBorderRouterType build() { return new VirtualBorderRouterType(this); } } } /** * * {@link DescribeVirtualBorderRoutersResponseBody} extends {@link TeaModel} * * <p>DescribeVirtualBorderRoutersResponseBody</p> */ public static class VirtualBorderRouterSet extends TeaModel { @com.aliyun.core.annotation.NameInMap("VirtualBorderRouterType") private java.util.List<VirtualBorderRouterType> virtualBorderRouterType; private VirtualBorderRouterSet(Builder builder) { this.virtualBorderRouterType = builder.virtualBorderRouterType; } public static Builder builder() { return new Builder(); } public static VirtualBorderRouterSet create() { return builder().build(); } /** * @return virtualBorderRouterType */ public java.util.List<VirtualBorderRouterType> getVirtualBorderRouterType() { return this.virtualBorderRouterType; } public static final class Builder { private java.util.List<VirtualBorderRouterType> virtualBorderRouterType; private Builder() { } private Builder(VirtualBorderRouterSet model) { this.virtualBorderRouterType = model.virtualBorderRouterType; } /** * VirtualBorderRouterType. */ public Builder virtualBorderRouterType(java.util.List<VirtualBorderRouterType> virtualBorderRouterType) { this.virtualBorderRouterType = virtualBorderRouterType; return this; } public VirtualBorderRouterSet build() { return new VirtualBorderRouterSet(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcAttributeRequest} extends {@link RequestModel} * * <p>DescribeVpcAttributeRequest</p> */ public class DescribeVpcAttributeRequest 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("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("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("VpcId") @com.aliyun.core.annotation.Validation(required = true) private String vpcId; private DescribeVpcAttributeRequest(Builder builder) { super(builder); this.dryRun = builder.dryRun; this.isDefault = builder.isDefault; 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 DescribeVpcAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @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 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<DescribeVpcAttributeRequest, Builder> { private Boolean dryRun; private Boolean isDefault; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpcId; private Builder() { super(); } private Builder(DescribeVpcAttributeRequest request) { super(request); this.dryRun = request.dryRun; this.isDefault = request.isDefault; 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>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes 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 the VPC is the default VPC. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</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 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> * <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 VPC that you want to query.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-bp18sth14qii3pnv****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public DescribeVpcAttributeRequest build() { return new DescribeVpcAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcAttributeResponse} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponse</p> */ public class DescribeVpcAttributeResponse 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 DescribeVpcAttributeResponseBody body; private DescribeVpcAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpcAttributeResponse 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 DescribeVpcAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpcAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpcAttributeResponseBody body); @Override DescribeVpcAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpcAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpcAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpcAttributeResponse 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(DescribeVpcAttributeResponseBody body) { this.body = body; return this; } @Override public DescribeVpcAttributeResponse build() { return new DescribeVpcAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public class DescribeVpcAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociatedCens") private AssociatedCens associatedCens; @com.aliyun.core.annotation.NameInMap("AssociatedPropagationSources") private AssociatedPropagationSources associatedPropagationSources; @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.NameInMap("ClassicLinkEnabled") private Boolean classicLinkEnabled; @com.aliyun.core.annotation.NameInMap("CloudResources") private CloudResources cloudResources; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId") private String dhcpOptionsSetId; @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetStatus") private String dhcpOptionsSetStatus; @com.aliyun.core.annotation.NameInMap("DnsHostnameStatus") private String dnsHostnameStatus; @com.aliyun.core.annotation.NameInMap("EnabledIpv6") private Boolean enabledIpv6; @com.aliyun.core.annotation.NameInMap("Ipv4GatewayId") private String ipv4GatewayId; @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlocks") private Ipv6CidrBlocks ipv6CidrBlocks; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SecondaryCidrBlocks") private SecondaryCidrBlocks secondaryCidrBlocks; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("SupportIpv4Gateway") private Boolean supportIpv4Gateway; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("UserCidrs") private UserCidrs userCidrs; @com.aliyun.core.annotation.NameInMap("VRouterId") private String vRouterId; @com.aliyun.core.annotation.NameInMap("VSwitchIds") private VSwitchIds vSwitchIds; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VpcName") private String vpcName; private DescribeVpcAttributeResponseBody(Builder builder) { this.associatedCens = builder.associatedCens; this.associatedPropagationSources = builder.associatedPropagationSources; this.cidrBlock = builder.cidrBlock; this.classicLinkEnabled = builder.classicLinkEnabled; this.cloudResources = builder.cloudResources; this.creationTime = builder.creationTime; this.description = builder.description; this.dhcpOptionsSetId = builder.dhcpOptionsSetId; this.dhcpOptionsSetStatus = builder.dhcpOptionsSetStatus; this.dnsHostnameStatus = builder.dnsHostnameStatus; this.enabledIpv6 = builder.enabledIpv6; this.ipv4GatewayId = builder.ipv4GatewayId; this.ipv6CidrBlock = builder.ipv6CidrBlock; this.ipv6CidrBlocks = builder.ipv6CidrBlocks; this.isDefault = builder.isDefault; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.secondaryCidrBlocks = builder.secondaryCidrBlocks; this.status = builder.status; this.supportIpv4Gateway = builder.supportIpv4Gateway; this.tags = builder.tags; this.userCidrs = builder.userCidrs; this.vRouterId = builder.vRouterId; this.vSwitchIds = builder.vSwitchIds; this.vpcId = builder.vpcId; this.vpcName = builder.vpcName; } public static Builder builder() { return new Builder(); } public static DescribeVpcAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return associatedCens */ public AssociatedCens getAssociatedCens() { return this.associatedCens; } /** * @return associatedPropagationSources */ public AssociatedPropagationSources getAssociatedPropagationSources() { return this.associatedPropagationSources; } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return classicLinkEnabled */ public Boolean getClassicLinkEnabled() { return this.classicLinkEnabled; } /** * @return cloudResources */ public CloudResources getCloudResources() { return this.cloudResources; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return dhcpOptionsSetId */ public String getDhcpOptionsSetId() { return this.dhcpOptionsSetId; } /** * @return dhcpOptionsSetStatus */ public String getDhcpOptionsSetStatus() { return this.dhcpOptionsSetStatus; } /** * @return dnsHostnameStatus */ public String getDnsHostnameStatus() { return this.dnsHostnameStatus; } /** * @return enabledIpv6 */ public Boolean getEnabledIpv6() { return this.enabledIpv6; } /** * @return ipv4GatewayId */ public String getIpv4GatewayId() { return this.ipv4GatewayId; } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return ipv6CidrBlocks */ public Ipv6CidrBlocks getIpv6CidrBlocks() { return this.ipv6CidrBlocks; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return secondaryCidrBlocks */ public SecondaryCidrBlocks getSecondaryCidrBlocks() { return this.secondaryCidrBlocks; } /** * @return status */ public String getStatus() { return this.status; } /** * @return supportIpv4Gateway */ public Boolean getSupportIpv4Gateway() { return this.supportIpv4Gateway; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return userCidrs */ public UserCidrs getUserCidrs() { return this.userCidrs; } /** * @return vRouterId */ public String getVRouterId() { return this.vRouterId; } /** * @return vSwitchIds */ public VSwitchIds getVSwitchIds() { return this.vSwitchIds; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpcName */ public String getVpcName() { return this.vpcName; } public static final class Builder { private AssociatedCens associatedCens; private AssociatedPropagationSources associatedPropagationSources; private String cidrBlock; private Boolean classicLinkEnabled; private CloudResources cloudResources; private String creationTime; private String description; private String dhcpOptionsSetId; private String dhcpOptionsSetStatus; private String dnsHostnameStatus; private Boolean enabledIpv6; private String ipv4GatewayId; private String ipv6CidrBlock; private Ipv6CidrBlocks ipv6CidrBlocks; private Boolean isDefault; private Long ownerId; private String regionId; private String requestId; private String resourceGroupId; private SecondaryCidrBlocks secondaryCidrBlocks; private String status; private Boolean supportIpv4Gateway; private Tags tags; private UserCidrs userCidrs; private String vRouterId; private VSwitchIds vSwitchIds; private String vpcId; private String vpcName; private Builder() { } private Builder(DescribeVpcAttributeResponseBody model) { this.associatedCens = model.associatedCens; this.associatedPropagationSources = model.associatedPropagationSources; this.cidrBlock = model.cidrBlock; this.classicLinkEnabled = model.classicLinkEnabled; this.cloudResources = model.cloudResources; this.creationTime = model.creationTime; this.description = model.description; this.dhcpOptionsSetId = model.dhcpOptionsSetId; this.dhcpOptionsSetStatus = model.dhcpOptionsSetStatus; this.dnsHostnameStatus = model.dnsHostnameStatus; this.enabledIpv6 = model.enabledIpv6; this.ipv4GatewayId = model.ipv4GatewayId; this.ipv6CidrBlock = model.ipv6CidrBlock; this.ipv6CidrBlocks = model.ipv6CidrBlocks; this.isDefault = model.isDefault; this.ownerId = model.ownerId; this.regionId = model.regionId; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.secondaryCidrBlocks = model.secondaryCidrBlocks; this.status = model.status; this.supportIpv4Gateway = model.supportIpv4Gateway; this.tags = model.tags; this.userCidrs = model.userCidrs; this.vRouterId = model.vRouterId; this.vSwitchIds = model.vSwitchIds; this.vpcId = model.vpcId; this.vpcName = model.vpcName; } /** * <p>The list of Cloud Enterprise Network (CEN) instances to which the VPC is attached.</p> * <p>If the VPC is not attached to a CEN instance, the parameter is not returned.</p> */ public Builder associatedCens(AssociatedCens associatedCens) { this.associatedCens = associatedCens; return this; } /** * <p>The route source associated with the VPC.</p> */ public Builder associatedPropagationSources(AssociatedPropagationSources associatedPropagationSources) { this.associatedPropagationSources = associatedPropagationSources; return this; } /** * <p>The IPv4 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder cidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; return this; } /** * <p>Indicates whether the ClassicLink feature is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder classicLinkEnabled(Boolean classicLinkEnabled) { this.classicLinkEnabled = classicLinkEnabled; return this; } /** * <p>The list of resources deployed in the VPC.</p> */ public Builder cloudResources(CloudResources cloudResources) { this.cloudResources = cloudResources; return this; } /** * <p>The time when the VPC was created.</p> * * <strong>example:</strong> * <p>2021-10-16T07:31:09Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the VPC.</p> * * <strong>example:</strong> * <p>VPC</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the DHCP options set.</p> * * <strong>example:</strong> * <p>dopt-o6w0df4epg9zo8isy****</p> */ public Builder dhcpOptionsSetId(String dhcpOptionsSetId) { this.dhcpOptionsSetId = dhcpOptionsSetId; return this; } /** * <p>The status of the DHCP options set. Valid values:</p> * <ul> * <li><strong>Available</strong></li> * <li><strong>InUse</strong></li> * <li><strong>Deleted</strong></li> * <li><strong>Pending</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder dhcpOptionsSetStatus(String dhcpOptionsSetStatus) { this.dhcpOptionsSetStatus = dhcpOptionsSetStatus; return this; } /** * DnsHostnameStatus. */ public Builder dnsHostnameStatus(String dnsHostnameStatus) { this.dnsHostnameStatus = dnsHostnameStatus; return this; } /** * <p>Indicates whether the VPC enables IPv6 .</p> * <ul> * <li>true</li> * <li>false</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enabledIpv6(Boolean enabledIpv6) { this.enabledIpv6 = enabledIpv6; return this; } /** * <p>The ID of the IPv4 gateway.</p> * * <strong>example:</strong> * <p>ipv4gw-5tsnc6s4ogsedtp3k****</p> */ public Builder ipv4GatewayId(String ipv4GatewayId) { this.ipv4GatewayId = ipv4GatewayId; return this; } /** * <p>The IPv6 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:a600::/56</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>The IPv6 CIDR block of the VPC.</p> */ public Builder ipv6CidrBlocks(Ipv6CidrBlocks ipv6CidrBlocks) { this.ipv6CidrBlocks = ipv6CidrBlocks; return this; } /** * <p>Indicates whether the VPC is the default VPC. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder isDefault(Boolean isDefault) { this.isDefault = isDefault; return this; } /** * <p>The ID of the Alibaba Cloud account to which the VPC belongs.</p> * * <strong>example:</strong> * <p>28311773240248****</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The ID of the region to which the VPC belongs.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>7486AE4A-129D-43DB-A714-2432C074BA04</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group.</p> * * <strong>example:</strong> * <p>rg-acfmxazbvgb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The secondary IPv4 CIDR block of the VPC.</p> */ public Builder secondaryCidrBlocks(SecondaryCidrBlocks secondaryCidrBlocks) { this.secondaryCidrBlocks = secondaryCidrBlocks; return this; } /** * <p>The status of the VPC. Valid values:</p> * <ul> * <li><strong>Available</strong></li> * <li><strong>Pending</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>Indicates whether the VPC supports IPv4 gateways.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder supportIpv4Gateway(Boolean supportIpv4Gateway) { this.supportIpv4Gateway = supportIpv4Gateway; return this; } /** * <p>The information about the tags.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The user CIDR block. Multiple CIDR blocks are separated by commas (,). At most three CIDR blocks are returned.</p> */ public Builder userCidrs(UserCidrs userCidrs) { this.userCidrs = userCidrs; return this; } /** * <p>The ID of the vRouter that belongs to the VPC.</p> * * <strong>example:</strong> * <p>vrt-bp1jso6ng1at0ajsc****</p> */ public Builder vRouterId(String vRouterId) { this.vRouterId = vRouterId; return this; } /** * <p>The list of vSwitches deployed in the VPC.</p> */ public Builder vSwitchIds(VSwitchIds vSwitchIds) { this.vSwitchIds = vSwitchIds; return this; } /** * <p>The ID of the VPC.</p> * * <strong>example:</strong> * <p>vpc-bp18sth14qii3pnvo****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The name of the VPC.</p> * * <strong>example:</strong> * <p>doctest2</p> */ public Builder vpcName(String vpcName) { this.vpcName = vpcName; return this; } public DescribeVpcAttributeResponseBody build() { return new DescribeVpcAttributeResponseBody(this); } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class AssociatedCen extends TeaModel { @com.aliyun.core.annotation.NameInMap("CenId") private String cenId; @com.aliyun.core.annotation.NameInMap("CenOwnerId") private Long cenOwnerId; @com.aliyun.core.annotation.NameInMap("CenStatus") private String cenStatus; private AssociatedCen(Builder builder) { this.cenId = builder.cenId; this.cenOwnerId = builder.cenOwnerId; this.cenStatus = builder.cenStatus; } public static Builder builder() { return new Builder(); } public static AssociatedCen create() { return builder().build(); } /** * @return cenId */ public String getCenId() { return this.cenId; } /** * @return cenOwnerId */ public Long getCenOwnerId() { return this.cenOwnerId; } /** * @return cenStatus */ public String getCenStatus() { return this.cenStatus; } public static final class Builder { private String cenId; private Long cenOwnerId; private String cenStatus; private Builder() { } private Builder(AssociatedCen model) { this.cenId = model.cenId; this.cenOwnerId = model.cenOwnerId; this.cenStatus = model.cenStatus; } /** * <p>The ID of the CEN instance to which the VPC is attached.</p> * * <strong>example:</strong> * <p>cen-7qthudw0ll6jmc****</p> */ public Builder cenId(String cenId) { this.cenId = cenId; return this; } /** * <p>The ID of the account to which the CEN instance belongs.</p> * * <strong>example:</strong> * <p>28311773240248****</p> */ public Builder cenOwnerId(Long cenOwnerId) { this.cenOwnerId = cenOwnerId; return this; } /** * <p>The status of the CEN instance.</p> * <p><strong>Attached</strong> is returned only when the VPC is attached to a CEN instance.</p> * * <strong>example:</strong> * <p>Attached</p> */ public Builder cenStatus(String cenStatus) { this.cenStatus = cenStatus; return this; } public AssociatedCen build() { return new AssociatedCen(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class AssociatedCens extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociatedCen") private java.util.List<AssociatedCen> associatedCen; private AssociatedCens(Builder builder) { this.associatedCen = builder.associatedCen; } public static Builder builder() { return new Builder(); } public static AssociatedCens create() { return builder().build(); } /** * @return associatedCen */ public java.util.List<AssociatedCen> getAssociatedCen() { return this.associatedCen; } public static final class Builder { private java.util.List<AssociatedCen> associatedCen; private Builder() { } private Builder(AssociatedCens model) { this.associatedCen = model.associatedCen; } /** * AssociatedCen. */ public Builder associatedCen(java.util.List<AssociatedCen> associatedCen) { this.associatedCen = associatedCen; return this; } public AssociatedCens build() { return new AssociatedCens(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class AssociatedPropagationSourcesAssociatedPropagationSources extends TeaModel { @com.aliyun.core.annotation.NameInMap("RoutePropagated") private Boolean routePropagated; @com.aliyun.core.annotation.NameInMap("SourceInstanceId") private String sourceInstanceId; @com.aliyun.core.annotation.NameInMap("SourceOwnerId") private Long sourceOwnerId; @com.aliyun.core.annotation.NameInMap("SourceType") private String sourceType; @com.aliyun.core.annotation.NameInMap("Status") private String status; private AssociatedPropagationSourcesAssociatedPropagationSources(Builder builder) { this.routePropagated = builder.routePropagated; this.sourceInstanceId = builder.sourceInstanceId; this.sourceOwnerId = builder.sourceOwnerId; this.sourceType = builder.sourceType; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static AssociatedPropagationSourcesAssociatedPropagationSources create() { return builder().build(); } /** * @return routePropagated */ public Boolean getRoutePropagated() { return this.routePropagated; } /** * @return sourceInstanceId */ public String getSourceInstanceId() { return this.sourceInstanceId; } /** * @return sourceOwnerId */ public Long getSourceOwnerId() { return this.sourceOwnerId; } /** * @return sourceType */ public String getSourceType() { return this.sourceType; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private Boolean routePropagated; private String sourceInstanceId; private Long sourceOwnerId; private String sourceType; private String status; private Builder() { } private Builder(AssociatedPropagationSourcesAssociatedPropagationSources model) { this.routePropagated = model.routePropagated; this.sourceInstanceId = model.sourceInstanceId; this.sourceOwnerId = model.sourceOwnerId; this.sourceType = model.sourceType; this.status = model.status; } /** * <p>Indicates whether routes are advertised to the VPC.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder routePropagated(Boolean routePropagated) { this.routePropagated = routePropagated; return this; } /** * <p>The instance ID of the source.</p> * * <strong>example:</strong> * <p>cen-dc4vwznpwbobrl****</p> */ public Builder sourceInstanceId(String sourceInstanceId) { this.sourceInstanceId = sourceInstanceId; return this; } /** * <p>The account ID of the source.</p> * * <strong>example:</strong> * <p>153980532164****</p> */ public Builder sourceOwnerId(Long sourceOwnerId) { this.sourceOwnerId = sourceOwnerId; return this; } /** * <p>The source type.</p> * <ul> * <li><strong>CEN</strong></li> * <li><strong>VPN</strong></li> * <li><strong>TR</strong></li> * <li><strong>ECR</strong></li> * </ul> * * <strong>example:</strong> * <p>CEN</p> */ public Builder sourceType(String sourceType) { this.sourceType = sourceType; return this; } /** * <p>The binding status.</p> * <ul> * <li><strong>Attaching</strong></li> * <li><strong>Attached</strong></li> * <li><strong>Detaching</strong></li> * </ul> * * <strong>example:</strong> * <p>Attaching</p> */ public Builder status(String status) { this.status = status; return this; } public AssociatedPropagationSourcesAssociatedPropagationSources build() { return new AssociatedPropagationSourcesAssociatedPropagationSources(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class AssociatedPropagationSources extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociatedPropagationSources") private java.util.List<AssociatedPropagationSourcesAssociatedPropagationSources> associatedPropagationSources; private AssociatedPropagationSources(Builder builder) { this.associatedPropagationSources = builder.associatedPropagationSources; } public static Builder builder() { return new Builder(); } public static AssociatedPropagationSources create() { return builder().build(); } /** * @return associatedPropagationSources */ public java.util.List<AssociatedPropagationSourcesAssociatedPropagationSources> getAssociatedPropagationSources() { return this.associatedPropagationSources; } public static final class Builder { private java.util.List<AssociatedPropagationSourcesAssociatedPropagationSources> associatedPropagationSources; private Builder() { } private Builder(AssociatedPropagationSources model) { this.associatedPropagationSources = model.associatedPropagationSources; } /** * <p>The route source associated with the VPC.</p> */ public Builder associatedPropagationSources(java.util.List<AssociatedPropagationSourcesAssociatedPropagationSources> associatedPropagationSources) { this.associatedPropagationSources = associatedPropagationSources; return this; } public AssociatedPropagationSources build() { return new AssociatedPropagationSources(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class CloudResourceSetType extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceCount") private Integer resourceCount; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; private CloudResourceSetType(Builder builder) { this.resourceCount = builder.resourceCount; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static CloudResourceSetType create() { return builder().build(); } /** * @return resourceCount */ public Integer getResourceCount() { return this.resourceCount; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder { private Integer resourceCount; private String resourceType; private Builder() { } private Builder(CloudResourceSetType model) { this.resourceCount = model.resourceCount; this.resourceType = model.resourceType; } /** * <p>The number of resources in the VPC.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder resourceCount(Integer resourceCount) { this.resourceCount = resourceCount; return this; } /** * <p>The type of resource deployed in the VPC. Valid values: Valid values:</p> * <ul> * <li><strong>VSwitch</strong></li> * <li><strong>VRouter</strong></li> * <li><strong>RouteTable</strong></li> * </ul> * * <strong>example:</strong> * <p>VSwitch</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public CloudResourceSetType build() { return new CloudResourceSetType(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class CloudResources extends TeaModel { @com.aliyun.core.annotation.NameInMap("CloudResourceSetType") private java.util.List<CloudResourceSetType> cloudResourceSetType; private CloudResources(Builder builder) { this.cloudResourceSetType = builder.cloudResourceSetType; } public static Builder builder() { return new Builder(); } public static CloudResources create() { return builder().build(); } /** * @return cloudResourceSetType */ public java.util.List<CloudResourceSetType> getCloudResourceSetType() { return this.cloudResourceSetType; } public static final class Builder { private java.util.List<CloudResourceSetType> cloudResourceSetType; private Builder() { } private Builder(CloudResources model) { this.cloudResourceSetType = model.cloudResourceSetType; } /** * CloudResourceSetType. */ public Builder cloudResourceSetType(java.util.List<CloudResourceSetType> cloudResourceSetType) { this.cloudResourceSetType = cloudResourceSetType; return this; } public CloudResources build() { return new CloudResources(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class Ipv6CidrBlock extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.NameInMap("Ipv6Isp") private String ipv6Isp; private Ipv6CidrBlock(Builder builder) { this.ipv6CidrBlock = builder.ipv6CidrBlock; this.ipv6Isp = builder.ipv6Isp; } public static Builder builder() { return new Builder(); } public static Ipv6CidrBlock create() { return builder().build(); } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return ipv6Isp */ public String getIpv6Isp() { return this.ipv6Isp; } public static final class Builder { private String ipv6CidrBlock; private String ipv6Isp; private Builder() { } private Builder(Ipv6CidrBlock model) { this.ipv6CidrBlock = model.ipv6CidrBlock; this.ipv6Isp = model.ipv6Isp; } /** * <p>The IPv6 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:6a::/56</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>The IPv6 CIDR block type of the VPC. Valid values:</p> * <ul> * <li><strong>BGP</strong> (default)</li> * <li><strong>ChinaMobile</strong></li> * <li><strong>ChinaUnicom</strong></li> * <li><strong>ChinaTelecom</strong></li> * </ul> * <blockquote> * <p> If you are allowed to use single-ISP bandwidth, valid values are <strong>ChinaTelecom</strong>, <strong>ChinaUnicom</strong>, and <strong>ChinaMobile</strong></p> * </blockquote> * * <strong>example:</strong> * <p>BGP</p> */ public Builder ipv6Isp(String ipv6Isp) { this.ipv6Isp = ipv6Isp; return this; } public Ipv6CidrBlock build() { return new Ipv6CidrBlock(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class Ipv6CidrBlocks extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private java.util.List<Ipv6CidrBlock> ipv6CidrBlock; private Ipv6CidrBlocks(Builder builder) { this.ipv6CidrBlock = builder.ipv6CidrBlock; } public static Builder builder() { return new Builder(); } public static Ipv6CidrBlocks create() { return builder().build(); } /** * @return ipv6CidrBlock */ public java.util.List<Ipv6CidrBlock> getIpv6CidrBlock() { return this.ipv6CidrBlock; } public static final class Builder { private java.util.List<Ipv6CidrBlock> ipv6CidrBlock; private Builder() { } private Builder(Ipv6CidrBlocks model) { this.ipv6CidrBlock = model.ipv6CidrBlock; } /** * <p>The IPv6 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:6a::/56</p> */ public Builder ipv6CidrBlock(java.util.List<Ipv6CidrBlock> ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } public Ipv6CidrBlocks build() { return new Ipv6CidrBlocks(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class SecondaryCidrBlocks extends TeaModel { @com.aliyun.core.annotation.NameInMap("SecondaryCidrBlock") private java.util.List<String> secondaryCidrBlock; private SecondaryCidrBlocks(Builder builder) { this.secondaryCidrBlock = builder.secondaryCidrBlock; } public static Builder builder() { return new Builder(); } public static SecondaryCidrBlocks create() { return builder().build(); } /** * @return secondaryCidrBlock */ public java.util.List<String> getSecondaryCidrBlock() { return this.secondaryCidrBlock; } public static final class Builder { private java.util.List<String> secondaryCidrBlock; private Builder() { } private Builder(SecondaryCidrBlocks model) { this.secondaryCidrBlock = model.secondaryCidrBlock; } /** * SecondaryCidrBlock. */ public Builder secondaryCidrBlock(java.util.List<String> secondaryCidrBlock) { this.secondaryCidrBlock = secondaryCidrBlock; return this; } public SecondaryCidrBlocks build() { return new SecondaryCidrBlocks(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of tag N.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</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 DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class UserCidrs extends TeaModel { @com.aliyun.core.annotation.NameInMap("UserCidr") private java.util.List<String> userCidr; private UserCidrs(Builder builder) { this.userCidr = builder.userCidr; } public static Builder builder() { return new Builder(); } public static UserCidrs create() { return builder().build(); } /** * @return userCidr */ public java.util.List<String> getUserCidr() { return this.userCidr; } public static final class Builder { private java.util.List<String> userCidr; private Builder() { } private Builder(UserCidrs model) { this.userCidr = model.userCidr; } /** * UserCidr. */ public Builder userCidr(java.util.List<String> userCidr) { this.userCidr = userCidr; return this; } public UserCidrs build() { return new UserCidrs(this); } } } /** * * {@link DescribeVpcAttributeResponseBody} extends {@link TeaModel} * * <p>DescribeVpcAttributeResponseBody</p> */ public static class VSwitchIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("VSwitchId") private java.util.List<String> vSwitchId; private VSwitchIds(Builder builder) { this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static VSwitchIds create() { return builder().build(); } /** * @return vSwitchId */ public java.util.List<String> getVSwitchId() { return this.vSwitchId; } public static final class Builder { private java.util.List<String> vSwitchId; private Builder() { } private Builder(VSwitchIds model) { this.vSwitchId = model.vSwitchId; } /** * VSwitchId. */ public Builder vSwitchId(java.util.List<String> vSwitchId) { this.vSwitchId = vSwitchId; return this; } public VSwitchIds build() { return new VSwitchIds(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcGrantRulesToEcrRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcGrantRulesToEcrRequest} extends {@link RequestModel} * * <p>DescribeVpcGrantRulesToEcrRequest</p> */ public class DescribeVpcGrantRulesToEcrRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EcrInstanceId") private String ecrInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EcrOwnerId") private Long ecrOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private DescribeVpcGrantRulesToEcrRequest(Builder builder) { super(builder); this.ecrInstanceId = builder.ecrInstanceId; this.ecrOwnerId = builder.ecrOwnerId; this.instanceId = builder.instanceId; this.instanceType = builder.instanceType; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static DescribeVpcGrantRulesToEcrRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ecrInstanceId */ public String getEcrInstanceId() { return this.ecrInstanceId; } /** * @return ecrOwnerId */ public Long getEcrOwnerId() { return this.ecrOwnerId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<DescribeVpcGrantRulesToEcrRequest, Builder> { private String ecrInstanceId; private Long ecrOwnerId; private String instanceId; private String instanceType; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(DescribeVpcGrantRulesToEcrRequest request) { super(request); this.ecrInstanceId = request.ecrInstanceId; this.ecrOwnerId = request.ecrOwnerId; this.instanceId = request.instanceId; this.instanceType = request.instanceType; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; } /** * EcrInstanceId. */ public Builder ecrInstanceId(String ecrInstanceId) { this.putQueryParameter("EcrInstanceId", ecrInstanceId); this.ecrInstanceId = ecrInstanceId; return this; } /** * EcrOwnerId. */ public Builder ecrOwnerId(Long ecrOwnerId) { this.putQueryParameter("EcrOwnerId", ecrOwnerId); this.ecrOwnerId = ecrOwnerId; return this; } /** * InstanceId. */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * InstanceType. */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * MaxResults. */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * NextToken. */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; 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>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; } /** * ResourceGroupId. */ 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; } /** * Tags. */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public DescribeVpcGrantRulesToEcrRequest build() { return new DescribeVpcGrantRulesToEcrRequest(this); } } /** * * {@link DescribeVpcGrantRulesToEcrRequest} extends {@link TeaModel} * * <p>DescribeVpcGrantRulesToEcrRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcGrantRulesToEcrResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcGrantRulesToEcrResponse} extends {@link TeaModel} * * <p>DescribeVpcGrantRulesToEcrResponse</p> */ public class DescribeVpcGrantRulesToEcrResponse 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 DescribeVpcGrantRulesToEcrResponseBody body; private DescribeVpcGrantRulesToEcrResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpcGrantRulesToEcrResponse 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 DescribeVpcGrantRulesToEcrResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpcGrantRulesToEcrResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpcGrantRulesToEcrResponseBody body); @Override DescribeVpcGrantRulesToEcrResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpcGrantRulesToEcrResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpcGrantRulesToEcrResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpcGrantRulesToEcrResponse 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(DescribeVpcGrantRulesToEcrResponseBody body) { this.body = body; return this; } @Override public DescribeVpcGrantRulesToEcrResponse build() { return new DescribeVpcGrantRulesToEcrResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcGrantRulesToEcrResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcGrantRulesToEcrResponseBody} extends {@link TeaModel} * * <p>DescribeVpcGrantRulesToEcrResponseBody</p> */ public class DescribeVpcGrantRulesToEcrResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("GrantRuleModels") private java.util.List<GrantRuleModels> grantRuleModels; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private String totalCount; private DescribeVpcGrantRulesToEcrResponseBody(Builder builder) { this.grantRuleModels = builder.grantRuleModels; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeVpcGrantRulesToEcrResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return grantRuleModels */ public java.util.List<GrantRuleModels> getGrantRuleModels() { return this.grantRuleModels; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public String getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<GrantRuleModels> grantRuleModels; private String nextToken; private String requestId; private String totalCount; private Builder() { } private Builder(DescribeVpcGrantRulesToEcrResponseBody model) { this.grantRuleModels = model.grantRuleModels; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * GrantRuleModels. */ public Builder grantRuleModels(java.util.List<GrantRuleModels> grantRuleModels) { this.grantRuleModels = grantRuleModels; return this; } /** * NextToken. */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * TotalCount. */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } public DescribeVpcGrantRulesToEcrResponseBody build() { return new DescribeVpcGrantRulesToEcrResponseBody(this); } } /** * * {@link DescribeVpcGrantRulesToEcrResponseBody} extends {@link TeaModel} * * <p>DescribeVpcGrantRulesToEcrResponseBody</p> */ public static class GrantRuleModels extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("EcrId") private String ecrId; @com.aliyun.core.annotation.NameInMap("EcrOwnerId") private Long ecrOwnerId; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceUid") private Long instanceUid; @com.aliyun.core.annotation.NameInMap("RegionNo") private String regionNo; @com.aliyun.core.annotation.NameInMap("Type") private String type; private GrantRuleModels(Builder builder) { this.creationTime = builder.creationTime; this.ecrId = builder.ecrId; this.ecrOwnerId = builder.ecrOwnerId; this.instanceId = builder.instanceId; this.instanceUid = builder.instanceUid; this.regionNo = builder.regionNo; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static GrantRuleModels create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return ecrId */ public String getEcrId() { return this.ecrId; } /** * @return ecrOwnerId */ public Long getEcrOwnerId() { return this.ecrOwnerId; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceUid */ public Long getInstanceUid() { return this.instanceUid; } /** * @return regionNo */ public String getRegionNo() { return this.regionNo; } /** * @return type */ public String getType() { return this.type; } public static final class Builder { private String creationTime; private String ecrId; private Long ecrOwnerId; private String instanceId; private Long instanceUid; private String regionNo; private String type; private Builder() { } private Builder(GrantRuleModels model) { this.creationTime = model.creationTime; this.ecrId = model.ecrId; this.ecrOwnerId = model.ecrOwnerId; this.instanceId = model.instanceId; this.instanceUid = model.instanceUid; this.regionNo = model.regionNo; this.type = model.type; } /** * CreationTime. */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * EcrId. */ public Builder ecrId(String ecrId) { this.ecrId = ecrId; return this; } /** * EcrOwnerId. */ public Builder ecrOwnerId(Long ecrOwnerId) { this.ecrOwnerId = ecrOwnerId; return this; } /** * InstanceId. */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * InstanceUid. */ public Builder instanceUid(Long instanceUid) { this.instanceUid = instanceUid; return this; } /** * RegionNo. */ public Builder regionNo(String regionNo) { this.regionNo = regionNo; return this; } /** * Type. */ public Builder type(String type) { this.type = type; return this; } public GrantRuleModels build() { return new GrantRuleModels(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcsRequest} extends {@link RequestModel} * * <p>DescribeVpcsRequest</p> */ public class DescribeVpcsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId") private String dhcpOptionsSetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableIpv6") private Boolean enableIpv6; @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("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcName") private String vpcName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcOwnerId") private Long vpcOwnerId; private DescribeVpcsRequest(Builder builder) { super(builder); this.dhcpOptionsSetId = builder.dhcpOptionsSetId; this.dryRun = builder.dryRun; this.enableIpv6 = builder.enableIpv6; 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.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tag = builder.tag; this.vpcId = builder.vpcId; this.vpcName = builder.vpcName; this.vpcOwnerId = builder.vpcOwnerId; } public static Builder builder() { return new Builder(); } public static DescribeVpcsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dhcpOptionsSetId */ public String getDhcpOptionsSetId() { return this.dhcpOptionsSetId; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return enableIpv6 */ public Boolean getEnableIpv6() { return this.enableIpv6; } /** * @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 resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpcName */ public String getVpcName() { return this.vpcName; } /** * @return vpcOwnerId */ public Long getVpcOwnerId() { return this.vpcOwnerId; } public static final class Builder extends Request.Builder<DescribeVpcsRequest, Builder> { private String dhcpOptionsSetId; private Boolean dryRun; private Boolean enableIpv6; private Boolean isDefault; 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 String vpcId; private String vpcName; private Long vpcOwnerId; private Builder() { super(); } private Builder(DescribeVpcsRequest request) { super(request); this.dhcpOptionsSetId = request.dhcpOptionsSetId; this.dryRun = request.dryRun; this.enableIpv6 = request.enableIpv6; 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.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; this.vpcId = request.vpcId; this.vpcName = request.vpcName; this.vpcOwnerId = request.vpcOwnerId; } /** * <p>The ID of the DHCP options set.</p> * * <strong>example:</strong> * <p>dopt-o6w0df4epg9zo8isy****</p> */ public Builder dhcpOptionsSetId(String dhcpOptionsSetId) { this.putQueryParameter("DhcpOptionsSetId", dhcpOptionsSetId); this.dhcpOptionsSetId = dhcpOptionsSetId; return this; } /** * <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system prechecks whether your AccessKey pair is valid, whether the RAM user is authorized, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): sends the request. If the request passes the check, a 2xx HTTP status code is returned and VPCs are queried.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>Query for VPCs in the specified region that have enabled IPv6 CIDR blocks. The value is empty by default, which means no filtering based on IPv6 availability is conducted. Valid values:</p> * <ul> * <li><p>false: disabled</p> * </li> * <li><p>true: enabled</p> * </li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableIpv6(Boolean enableIpv6) { this.putQueryParameter("EnableIpv6", enableIpv6); this.enableIpv6 = enableIpv6; return this; } /** * <p>Specifies whether to query the default VPC in the specified region. Valid values:</p> * <ul> * <li><strong>true</strong> (default)</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. 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 VPC.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the VPC to be queried belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxvfvazb4p****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tags of the resource.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The VPC ID.</p> * <p>You can specify up to 20 VPC IDs. Separate multiple IDs with commas (,).</p> * * <strong>example:</strong> * <p>vpc-bp1b1xjllp3ve5yze****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } /** * <p>The name of the VPC.</p> * * <strong>example:</strong> * <p>Vpc-1</p> */ public Builder vpcName(String vpcName) { this.putQueryParameter("VpcName", vpcName); this.vpcName = vpcName; return this; } /** * <p>The ID of the Alibaba Cloud account to which the VPC belongs.</p> * * <strong>example:</strong> * <p>253460731706911258</p> */ public Builder vpcOwnerId(Long vpcOwnerId) { this.putQueryParameter("VpcOwnerId", vpcOwnerId); this.vpcOwnerId = vpcOwnerId; return this; } @Override public DescribeVpcsRequest build() { return new DescribeVpcsRequest(this); } } /** * * {@link DescribeVpcsRequest} extends {@link TeaModel} * * <p>DescribeVpcsRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of tag N to add to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N to add to the resource. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcsResponse} extends {@link TeaModel} * * <p>DescribeVpcsResponse</p> */ public class DescribeVpcsResponse 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 DescribeVpcsResponseBody body; private DescribeVpcsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpcsResponse 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 DescribeVpcsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpcsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpcsResponseBody body); @Override DescribeVpcsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpcsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpcsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpcsResponse 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(DescribeVpcsResponseBody body) { this.body = body; return this; } @Override public DescribeVpcsResponse build() { return new DescribeVpcsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpcsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public class DescribeVpcsResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("Vpcs") private Vpcs vpcs; private DescribeVpcsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpcs = builder.vpcs; } public static Builder builder() { return new Builder(); } public static DescribeVpcsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vpcs */ public Vpcs getVpcs() { return this.vpcs; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private Vpcs vpcs; private Builder() { } private Builder(DescribeVpcsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpcs = model.vpcs; } /** * <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>C6532AA8-D0F7-497F-A8EE-094126D441F5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The details of the VPC.</p> */ public Builder vpcs(Vpcs vpcs) { this.vpcs = vpcs; return this; } public DescribeVpcsResponseBody build() { return new DescribeVpcsResponseBody(this); } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class Ipv6CidrBlock extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.NameInMap("Ipv6Isp") private String ipv6Isp; private Ipv6CidrBlock(Builder builder) { this.ipv6CidrBlock = builder.ipv6CidrBlock; this.ipv6Isp = builder.ipv6Isp; } public static Builder builder() { return new Builder(); } public static Ipv6CidrBlock create() { return builder().build(); } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return ipv6Isp */ public String getIpv6Isp() { return this.ipv6Isp; } public static final class Builder { private String ipv6CidrBlock; private String ipv6Isp; private Builder() { } private Builder(Ipv6CidrBlock model) { this.ipv6CidrBlock = model.ipv6CidrBlock; this.ipv6Isp = model.ipv6Isp; } /** * <p>The IPv6 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:a600::/56</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>The type of IPv6 CIDR block. Valid values:</p> * <ul> * <li><strong>BGP</strong></li> * <li><strong>ChinaMobile</strong></li> * <li><strong>ChinaUnicom</strong></li> * <li><strong>ChinaTelecom</strong></li> * </ul> * <blockquote> * <p> If your Alibaba Cloud account is allowed to activate single-ISP bandwidth, you can set this parameter to <strong>ChinaTelecom</strong>, <strong>ChinaUnicom</strong>, or <strong>ChinaMobile</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>BGP</p> */ public Builder ipv6Isp(String ipv6Isp) { this.ipv6Isp = ipv6Isp; return this; } public Ipv6CidrBlock build() { return new Ipv6CidrBlock(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class Ipv6CidrBlocks extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private java.util.List<Ipv6CidrBlock> ipv6CidrBlock; private Ipv6CidrBlocks(Builder builder) { this.ipv6CidrBlock = builder.ipv6CidrBlock; } public static Builder builder() { return new Builder(); } public static Ipv6CidrBlocks create() { return builder().build(); } /** * @return ipv6CidrBlock */ public java.util.List<Ipv6CidrBlock> getIpv6CidrBlock() { return this.ipv6CidrBlock; } public static final class Builder { private java.util.List<Ipv6CidrBlock> ipv6CidrBlock; private Builder() { } private Builder(Ipv6CidrBlocks model) { this.ipv6CidrBlock = model.ipv6CidrBlock; } /** * <p>The IPv6 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:a600::/56</p> */ public Builder ipv6CidrBlock(java.util.List<Ipv6CidrBlock> ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } public Ipv6CidrBlocks build() { return new Ipv6CidrBlocks(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class NatGatewayIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("NatGatewayIds") private java.util.List<String> natGatewayIds; private NatGatewayIds(Builder builder) { this.natGatewayIds = builder.natGatewayIds; } public static Builder builder() { return new Builder(); } public static NatGatewayIds create() { return builder().build(); } /** * @return natGatewayIds */ public java.util.List<String> getNatGatewayIds() { return this.natGatewayIds; } public static final class Builder { private java.util.List<String> natGatewayIds; private Builder() { } private Builder(NatGatewayIds model) { this.natGatewayIds = model.natGatewayIds; } /** * NatGatewayIds. */ public Builder natGatewayIds(java.util.List<String> natGatewayIds) { this.natGatewayIds = natGatewayIds; return this; } public NatGatewayIds build() { return new NatGatewayIds(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class RouterTableIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouterTableIds") private java.util.List<String> routerTableIds; private RouterTableIds(Builder builder) { this.routerTableIds = builder.routerTableIds; } public static Builder builder() { return new Builder(); } public static RouterTableIds create() { return builder().build(); } /** * @return routerTableIds */ public java.util.List<String> getRouterTableIds() { return this.routerTableIds; } public static final class Builder { private java.util.List<String> routerTableIds; private Builder() { } private Builder(RouterTableIds model) { this.routerTableIds = model.routerTableIds; } /** * RouterTableIds. */ public Builder routerTableIds(java.util.List<String> routerTableIds) { this.routerTableIds = routerTableIds; return this; } public RouterTableIds build() { return new RouterTableIds(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class SecondaryCidrBlocks extends TeaModel { @com.aliyun.core.annotation.NameInMap("SecondaryCidrBlock") private java.util.List<String> secondaryCidrBlock; private SecondaryCidrBlocks(Builder builder) { this.secondaryCidrBlock = builder.secondaryCidrBlock; } public static Builder builder() { return new Builder(); } public static SecondaryCidrBlocks create() { return builder().build(); } /** * @return secondaryCidrBlock */ public java.util.List<String> getSecondaryCidrBlock() { return this.secondaryCidrBlock; } public static final class Builder { private java.util.List<String> secondaryCidrBlock; private Builder() { } private Builder(SecondaryCidrBlocks model) { this.secondaryCidrBlock = model.secondaryCidrBlock; } /** * SecondaryCidrBlock. */ public Builder secondaryCidrBlock(java.util.List<String> secondaryCidrBlock) { this.secondaryCidrBlock = secondaryCidrBlock; return this; } public SecondaryCidrBlocks build() { return new SecondaryCidrBlocks(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of tag N.</p> * * <strong>example:</strong> * <p>env</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of tag N.</p> * * <strong>example:</strong> * <p>internal</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</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 DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class UserCidrs extends TeaModel { @com.aliyun.core.annotation.NameInMap("UserCidr") private java.util.List<String> userCidr; private UserCidrs(Builder builder) { this.userCidr = builder.userCidr; } public static Builder builder() { return new Builder(); } public static UserCidrs create() { return builder().build(); } /** * @return userCidr */ public java.util.List<String> getUserCidr() { return this.userCidr; } public static final class Builder { private java.util.List<String> userCidr; private Builder() { } private Builder(UserCidrs model) { this.userCidr = model.userCidr; } /** * UserCidr. */ public Builder userCidr(java.util.List<String> userCidr) { this.userCidr = userCidr; return this; } public UserCidrs build() { return new UserCidrs(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class VSwitchIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("VSwitchId") private java.util.List<String> vSwitchId; private VSwitchIds(Builder builder) { this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static VSwitchIds create() { return builder().build(); } /** * @return vSwitchId */ public java.util.List<String> getVSwitchId() { return this.vSwitchId; } public static final class Builder { private java.util.List<String> vSwitchId; private Builder() { } private Builder(VSwitchIds model) { this.vSwitchId = model.vSwitchId; } /** * VSwitchId. */ public Builder vSwitchId(java.util.List<String> vSwitchId) { this.vSwitchId = vSwitchId; return this; } public VSwitchIds build() { return new VSwitchIds(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class Vpc extends TeaModel { @com.aliyun.core.annotation.NameInMap("CenStatus") private String cenStatus; @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId") private String dhcpOptionsSetId; @com.aliyun.core.annotation.NameInMap("DhcpOptionsSetStatus") private String dhcpOptionsSetStatus; @com.aliyun.core.annotation.NameInMap("DnsHostnameStatus") private String dnsHostnameStatus; @com.aliyun.core.annotation.NameInMap("EnabledIpv6") private Boolean enabledIpv6; @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlock") private String ipv6CidrBlock; @com.aliyun.core.annotation.NameInMap("Ipv6CidrBlocks") private Ipv6CidrBlocks ipv6CidrBlocks; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("NatGatewayIds") private NatGatewayIds natGatewayIds; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RouterTableIds") private RouterTableIds routerTableIds; @com.aliyun.core.annotation.NameInMap("SecondaryCidrBlocks") private SecondaryCidrBlocks secondaryCidrBlocks; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("UserCidrs") private UserCidrs userCidrs; @com.aliyun.core.annotation.NameInMap("VRouterId") private String vRouterId; @com.aliyun.core.annotation.NameInMap("VSwitchIds") private VSwitchIds vSwitchIds; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VpcName") private String vpcName; private Vpc(Builder builder) { this.cenStatus = builder.cenStatus; this.cidrBlock = builder.cidrBlock; this.creationTime = builder.creationTime; this.description = builder.description; this.dhcpOptionsSetId = builder.dhcpOptionsSetId; this.dhcpOptionsSetStatus = builder.dhcpOptionsSetStatus; this.dnsHostnameStatus = builder.dnsHostnameStatus; this.enabledIpv6 = builder.enabledIpv6; this.ipv6CidrBlock = builder.ipv6CidrBlock; this.ipv6CidrBlocks = builder.ipv6CidrBlocks; this.isDefault = builder.isDefault; this.natGatewayIds = builder.natGatewayIds; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.routerTableIds = builder.routerTableIds; this.secondaryCidrBlocks = builder.secondaryCidrBlocks; this.status = builder.status; this.tags = builder.tags; this.userCidrs = builder.userCidrs; this.vRouterId = builder.vRouterId; this.vSwitchIds = builder.vSwitchIds; this.vpcId = builder.vpcId; this.vpcName = builder.vpcName; } public static Builder builder() { return new Builder(); } public static Vpc create() { return builder().build(); } /** * @return cenStatus */ public String getCenStatus() { return this.cenStatus; } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return dhcpOptionsSetId */ public String getDhcpOptionsSetId() { return this.dhcpOptionsSetId; } /** * @return dhcpOptionsSetStatus */ public String getDhcpOptionsSetStatus() { return this.dhcpOptionsSetStatus; } /** * @return dnsHostnameStatus */ public String getDnsHostnameStatus() { return this.dnsHostnameStatus; } /** * @return enabledIpv6 */ public Boolean getEnabledIpv6() { return this.enabledIpv6; } /** * @return ipv6CidrBlock */ public String getIpv6CidrBlock() { return this.ipv6CidrBlock; } /** * @return ipv6CidrBlocks */ public Ipv6CidrBlocks getIpv6CidrBlocks() { return this.ipv6CidrBlocks; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return natGatewayIds */ public NatGatewayIds getNatGatewayIds() { return this.natGatewayIds; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return routerTableIds */ public RouterTableIds getRouterTableIds() { return this.routerTableIds; } /** * @return secondaryCidrBlocks */ public SecondaryCidrBlocks getSecondaryCidrBlocks() { return this.secondaryCidrBlocks; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return userCidrs */ public UserCidrs getUserCidrs() { return this.userCidrs; } /** * @return vRouterId */ public String getVRouterId() { return this.vRouterId; } /** * @return vSwitchIds */ public VSwitchIds getVSwitchIds() { return this.vSwitchIds; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpcName */ public String getVpcName() { return this.vpcName; } public static final class Builder { private String cenStatus; private String cidrBlock; private String creationTime; private String description; private String dhcpOptionsSetId; private String dhcpOptionsSetStatus; private String dnsHostnameStatus; private Boolean enabledIpv6; private String ipv6CidrBlock; private Ipv6CidrBlocks ipv6CidrBlocks; private Boolean isDefault; private NatGatewayIds natGatewayIds; private Long ownerId; private String regionId; private String resourceGroupId; private RouterTableIds routerTableIds; private SecondaryCidrBlocks secondaryCidrBlocks; private String status; private Tags tags; private UserCidrs userCidrs; private String vRouterId; private VSwitchIds vSwitchIds; private String vpcId; private String vpcName; private Builder() { } private Builder(Vpc model) { this.cenStatus = model.cenStatus; this.cidrBlock = model.cidrBlock; this.creationTime = model.creationTime; this.description = model.description; this.dhcpOptionsSetId = model.dhcpOptionsSetId; this.dhcpOptionsSetStatus = model.dhcpOptionsSetStatus; this.dnsHostnameStatus = model.dnsHostnameStatus; this.enabledIpv6 = model.enabledIpv6; this.ipv6CidrBlock = model.ipv6CidrBlock; this.ipv6CidrBlocks = model.ipv6CidrBlocks; this.isDefault = model.isDefault; this.natGatewayIds = model.natGatewayIds; this.ownerId = model.ownerId; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.routerTableIds = model.routerTableIds; this.secondaryCidrBlocks = model.secondaryCidrBlocks; this.status = model.status; this.tags = model.tags; this.userCidrs = model.userCidrs; this.vRouterId = model.vRouterId; this.vSwitchIds = model.vSwitchIds; this.vpcId = model.vpcId; this.vpcName = model.vpcName; } /** * <p>The status of the Cloud Enterprise Network (CEN) instance to which the VPC is attached. <strong>Attached</strong> is returned only if the VPC is attached to a CEN instance.</p> * * <strong>example:</strong> * <p>Attached</p> */ public Builder cenStatus(String cenStatus) { this.cenStatus = cenStatus; return this; } /** * <p>The IPv4 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder cidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; return this; } /** * <p>The time when the VPC was created.</p> * * <strong>example:</strong> * <p>2021-04-18T15:02:37Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the VPC.</p> * * <strong>example:</strong> * <p>This is my VPC.</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the DHCP options set.</p> * * <strong>example:</strong> * <p>dopt-o6w0df4epg9zo8isy****</p> */ public Builder dhcpOptionsSetId(String dhcpOptionsSetId) { this.dhcpOptionsSetId = dhcpOptionsSetId; return this; } /** * <p>The status of the DHCP options set. Valid values:</p> * <ul> * <li><strong>Available</strong></li> * <li><strong>InUse</strong></li> * <li><strong>Deleted</strong></li> * <li><strong>Pending</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder dhcpOptionsSetStatus(String dhcpOptionsSetStatus) { this.dhcpOptionsSetStatus = dhcpOptionsSetStatus; return this; } /** * <p>Indicates whether the Domain Name System (DNS) feature is enabled.</p> * * <strong>example:</strong> * <p>DISABLED</p> */ public Builder dnsHostnameStatus(String dnsHostnameStatus) { this.dnsHostnameStatus = dnsHostnameStatus; return this; } /** * <p>Indicates whether the IPv6 is enabled.</p> * <p>Valid values:</p> * <ul> * <li><p>false: false</p> * </li> * <li><p>true: true</p> * </li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enabledIpv6(Boolean enabledIpv6) { this.enabledIpv6 = enabledIpv6; return this; } /** * <p>The IPv6 CIDR block of the VPC.</p> * * <strong>example:</strong> * <p>2408:XXXX:0:a600::/56</p> */ public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } /** * <p>The IPv6 CIDR block of the VPC.</p> */ public Builder ipv6CidrBlocks(Ipv6CidrBlocks ipv6CidrBlocks) { this.ipv6CidrBlocks = ipv6CidrBlocks; return this; } /** * <p>Indicates whether the VPC is the default VPC in the region. 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.isDefault = isDefault; return this; } /** * <p>The ID of the Internet NAT gateway.</p> */ public Builder natGatewayIds(NatGatewayIds natGatewayIds) { this.natGatewayIds = natGatewayIds; return this; } /** * <p>The ID of the Alibaba Cloud account to which the VPC belongs.</p> * * <strong>example:</strong> * <p>253460731706911258</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The ID of the region to which the VPC belongs.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the VPC belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The information about the route table.</p> */ public Builder routerTableIds(RouterTableIds routerTableIds) { this.routerTableIds = routerTableIds; return this; } /** * <p>The information about the secondary CIDR block.</p> */ public Builder secondaryCidrBlocks(SecondaryCidrBlocks secondaryCidrBlocks) { this.secondaryCidrBlocks = secondaryCidrBlocks; return this; } /** * <p>The status of the VPC. Valid values:</p> * <ul> * <li><strong>Pending</strong></li> * <li><strong>Available</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag information about the VPC.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The list of user CIDR blocks.</p> */ public Builder userCidrs(UserCidrs userCidrs) { this.userCidrs = userCidrs; return this; } /** * <p>The ID of the vRouter.</p> * * <strong>example:</strong> * <p>vrt-bp1jcg5cmxjbl9xgc****</p> */ public Builder vRouterId(String vRouterId) { this.vRouterId = vRouterId; return this; } /** * <p>The vSwitches in the VPC.</p> * <p>You can query up to 300 vSwitches in the VPC. The information about the latest vSwitches is returned. If you want to query the information about all vSwitches in a VPC, call the <a href="https://help.aliyun.com/document_detail/35748.html">DescribeVSwitches</a> operation.</p> */ public Builder vSwitchIds(VSwitchIds vSwitchIds) { this.vSwitchIds = vSwitchIds; return this; } /** * <p>The VPC ID.</p> * * <strong>example:</strong> * <p>vpc-bp1qpo0kug3a20qqe****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The name of the VPC.</p> * * <strong>example:</strong> * <p>vpc1</p> */ public Builder vpcName(String vpcName) { this.vpcName = vpcName; return this; } public Vpc build() { return new Vpc(this); } } } /** * * {@link DescribeVpcsResponseBody} extends {@link TeaModel} * * <p>DescribeVpcsResponseBody</p> */ public static class Vpcs extends TeaModel { @com.aliyun.core.annotation.NameInMap("Vpc") private java.util.List<Vpc> vpc; private Vpcs(Builder builder) { this.vpc = builder.vpc; } public static Builder builder() { return new Builder(); } public static Vpcs create() { return builder().build(); } /** * @return vpc */ public java.util.List<Vpc> getVpc() { return this.vpc; } public static final class Builder { private java.util.List<Vpc> vpc; private Builder() { } private Builder(Vpcs model) { this.vpc = model.vpc; } /** * Vpc. */ public Builder vpc(java.util.List<Vpc> vpc) { this.vpc = vpc; return this; } public Vpcs build() { return new Vpcs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnAttachmentsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnAttachmentsRequest} extends {@link RequestModel} * * <p>DescribeVpnAttachmentsRequest</p> */ public class DescribeVpnAttachmentsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AttachType") private String attachType; @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("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") private String vpnConnectionId; private DescribeVpnAttachmentsRequest(Builder builder) { super(builder); this.attachType = builder.attachType; 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.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static DescribeVpnAttachmentsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return attachType */ public String getAttachType() { return this.attachType; } /** * @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 vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<DescribeVpnAttachmentsRequest, Builder> { private String attachType; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnConnectionId; private Builder() { super(); } private Builder(DescribeVpnAttachmentsRequest request) { super(request); this.attachType = request.attachType; 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.vpnConnectionId = request.vpnConnectionId; } /** * <p>The type of resource that is associated with the IPsec-VPN connection. Default value: <strong>CEN</strong>.</p> * <p>Set the value to <strong>CEN</strong>, which specifies to query IPsec-VPN connections associated with the transit router.</p> * * <strong>example:</strong> * <p>CEN</p> */ public Builder attachType(String attachType) { this.putQueryParameter("AttachType", attachType); this.attachType = attachType; 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. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</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 IPsec-VPN connection is established.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the 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> * <blockquote> * <p> If you do not specify an IPsec-VPN connection ID, all IPsec-VPN connections associated with a transit router in the region are queried.</p> * </blockquote> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } @Override public DescribeVpnAttachmentsRequest build() { return new DescribeVpnAttachmentsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnAttachmentsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnAttachmentsResponse} extends {@link TeaModel} * * <p>DescribeVpnAttachmentsResponse</p> */ public class DescribeVpnAttachmentsResponse 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 DescribeVpnAttachmentsResponseBody body; private DescribeVpnAttachmentsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnAttachmentsResponse 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 DescribeVpnAttachmentsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnAttachmentsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnAttachmentsResponseBody body); @Override DescribeVpnAttachmentsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnAttachmentsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnAttachmentsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnAttachmentsResponse 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(DescribeVpnAttachmentsResponseBody body) { this.body = body; return this; } @Override public DescribeVpnAttachmentsResponse build() { return new DescribeVpnAttachmentsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnAttachmentsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnAttachmentsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnAttachmentsResponseBody</p> */ public class DescribeVpnAttachmentsResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VpnAttachments") private java.util.List<VpnAttachments> vpnAttachments; private DescribeVpnAttachmentsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnAttachments = builder.vpnAttachments; } public static Builder builder() { return new Builder(); } public static DescribeVpnAttachmentsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vpnAttachments */ public java.util.List<VpnAttachments> getVpnAttachments() { return this.vpnAttachments; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private java.util.List<VpnAttachments> vpnAttachments; private Builder() { } private Builder(DescribeVpnAttachmentsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnAttachments = model.vpnAttachments; } /** * <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>9F0725BB-186A-3564-91C3-AAE48042F853</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; } /** * <p>The list of IPsec-VPN connections associated with the transit router.</p> */ public Builder vpnAttachments(java.util.List<VpnAttachments> vpnAttachments) { this.vpnAttachments = vpnAttachments; return this; } public DescribeVpnAttachmentsResponseBody build() { return new DescribeVpnAttachmentsResponseBody(this); } } /** * * {@link DescribeVpnAttachmentsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnAttachmentsResponseBody</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>TagKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>TagValue</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeVpnAttachmentsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnAttachmentsResponseBody</p> */ public static class VpnAttachments extends TeaModel { @com.aliyun.core.annotation.NameInMap("AttachType") private String attachType; @com.aliyun.core.annotation.NameInMap("CrossAccountAuthorized") private Boolean crossAccountAuthorized; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TransitRouterId") private String transitRouterId; @com.aliyun.core.annotation.NameInMap("TransitRouterName") private String transitRouterName; private VpnAttachments(Builder builder) { this.attachType = builder.attachType; this.crossAccountAuthorized = builder.crossAccountAuthorized; this.description = builder.description; this.instanceId = builder.instanceId; this.name = builder.name; this.tag = builder.tag; this.tags = builder.tags; this.transitRouterId = builder.transitRouterId; this.transitRouterName = builder.transitRouterName; } public static Builder builder() { return new Builder(); } public static VpnAttachments create() { return builder().build(); } /** * @return attachType */ public String getAttachType() { return this.attachType; } /** * @return crossAccountAuthorized */ public Boolean getCrossAccountAuthorized() { return this.crossAccountAuthorized; } /** * @return description */ public String getDescription() { return this.description; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return name */ public String getName() { return this.name; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return transitRouterId */ public String getTransitRouterId() { return this.transitRouterId; } /** * @return transitRouterName */ public String getTransitRouterName() { return this.transitRouterName; } public static final class Builder { private String attachType; private Boolean crossAccountAuthorized; private String description; private String instanceId; private String name; private String tag; private java.util.List<Tags> tags; private String transitRouterId; private String transitRouterName; private Builder() { } private Builder(VpnAttachments model) { this.attachType = model.attachType; this.crossAccountAuthorized = model.crossAccountAuthorized; this.description = model.description; this.instanceId = model.instanceId; this.name = model.name; this.tag = model.tag; this.tags = model.tags; this.transitRouterId = model.transitRouterId; this.transitRouterName = model.transitRouterName; } /** * <p>The type of resource that is associated with the IPsec-VPN connection. The value is set to <strong>CEN</strong>, which indicates that the IPsec-VPN connection is associated with a transit router.</p> * * <strong>example:</strong> * <p>CEN</p> */ public Builder attachType(String attachType) { this.attachType = attachType; return this; } /** * <p>Indicates whether the IPsec-VPN connection is associated with a transit router that belongs to another Alibaba Cloud account. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder crossAccountAuthorized(Boolean crossAccountAuthorized) { this.crossAccountAuthorized = crossAccountAuthorized; return this; } /** * <p>The description of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>desctest</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>nametest1</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The system tags of the IPsec-VPN connection.</p> * <p>You can check whether an IPsec-VPN connection supports BGP based on the system tags.</p> * <p><strong>BGPSupport</strong>: indicates whether the IPsec-VPN connection supports BGP.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>{&quot;description&quot;:&quot;forwarding 1.7.22&quot;,&quot;VisuallySsl&quot;:&quot;true&quot;,&quot;PbrPriority&quot;:&quot;true&quot;,&quot;BGPSupport&quot;:&quot;true&quot;,&quot;IDaaSNewVersion&quot;:&quot;true&quot;}</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The list of tags to be added to the IPsec-VPN connection.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The ID of the transit router with which the IPsec-VPN connection is associated.</p> * * <strong>example:</strong> * <p>tr-p0wkh4yryb1dnanqw****</p> */ public Builder transitRouterId(String transitRouterId) { this.transitRouterId = transitRouterId; return this; } /** * <p>The name of the transit router.</p> * * <strong>example:</strong> * <p>nametest2</p> */ public Builder transitRouterName(String transitRouterName) { this.transitRouterName = transitRouterName; return this; } public VpnAttachments build() { return new VpnAttachments(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionLogsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionLogsRequest} extends {@link RequestModel} * * <p>DescribeVpnConnectionLogsRequest</p> */ public class DescribeVpnConnectionLogsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("From") private Integer from; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MinutePeriod") private Integer minutePeriod; @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("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("To") private Integer to; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; private DescribeVpnConnectionLogsRequest(Builder builder) { super(builder); this.from = builder.from; this.minutePeriod = builder.minutePeriod; 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.to = builder.to; this.tunnelId = builder.tunnelId; this.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static DescribeVpnConnectionLogsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public Integer getFrom() { return this.from; } /** * @return minutePeriod */ public Integer getMinutePeriod() { return this.minutePeriod; } /** * @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 to */ public Integer getTo() { return this.to; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<DescribeVpnConnectionLogsRequest, Builder> { private Integer from; private Integer minutePeriod; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Integer to; private String tunnelId; private String vpnConnectionId; private Builder() { super(); } private Builder(DescribeVpnConnectionLogsRequest request) { super(request); this.from = request.from; this.minutePeriod = request.minutePeriod; 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.to = request.to; this.tunnelId = request.tunnelId; this.vpnConnectionId = request.vpnConnectionId; } /** * <p>The start time of the flow log. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * <blockquote> * <p> If you specify <strong>From</strong>, you must specify <strong>To</strong> or <strong>MinutePeriod</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1671003744</p> */ public Builder from(Integer from) { this.putQueryParameter("From", from); this.from = from; return this; } /** * <p>The interval at which log data is collected. Valid values: <strong>1</strong> to <strong>10</strong>. Unit: minutes.</p> * <blockquote> * <p> If you do not specify <strong>From</strong> and <strong>To</strong>, you must specify <strong>MinutePeriod</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder minutePeriod(Integer minutePeriod) { this.putQueryParameter("MinutePeriod", minutePeriod); this.minutePeriod = minutePeriod; 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</strong> to <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 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>eu-central-1</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The end time of the flow log. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * <blockquote> * <p> If you specify <strong>To</strong>, you must specify <strong>From</strong> or <strong>MinutePeriod</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1671004344</p> */ public Builder to(Integer to) { this.putQueryParameter("To", to); this.to = to; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * <p>This parameter is available only for a dual-tunnel IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>tun-opsqc4d97wni27****</p> */ public Builder tunnelId(String tunnelId) { this.putQueryParameter("TunnelId", tunnelId); this.tunnelId = tunnelId; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-m5evqnds4y459flt3****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } @Override public DescribeVpnConnectionLogsRequest build() { return new DescribeVpnConnectionLogsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionLogsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionLogsResponse} extends {@link TeaModel} * * <p>DescribeVpnConnectionLogsResponse</p> */ public class DescribeVpnConnectionLogsResponse 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 DescribeVpnConnectionLogsResponseBody body; private DescribeVpnConnectionLogsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnConnectionLogsResponse 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 DescribeVpnConnectionLogsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnConnectionLogsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnConnectionLogsResponseBody body); @Override DescribeVpnConnectionLogsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnConnectionLogsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnConnectionLogsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnConnectionLogsResponse 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(DescribeVpnConnectionLogsResponseBody body) { this.body = body; return this; } @Override public DescribeVpnConnectionLogsResponse build() { return new DescribeVpnConnectionLogsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionLogsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionLogsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionLogsResponseBody</p> */ public class DescribeVpnConnectionLogsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("IsCompleted") private Boolean isCompleted; @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; private DescribeVpnConnectionLogsResponseBody(Builder builder) { this.count = builder.count; this.data = builder.data; this.isCompleted = builder.isCompleted; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeVpnConnectionLogsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return data */ public Data getData() { return this.data; } /** * @return isCompleted */ public Boolean getIsCompleted() { return this.isCompleted; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Integer count; private Data data; private Boolean isCompleted; private Integer pageNumber; private Integer pageSize; private String requestId; private Builder() { } private Builder(DescribeVpnConnectionLogsResponseBody model) { this.count = model.count; this.data = model.data; this.isCompleted = model.isCompleted; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; } /** * <p>The number of entries on the current page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The log list.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>Indicates whether the log is accurate. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isCompleted(Boolean isCompleted) { this.isCompleted = isCompleted; 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>CF161502-4959-5C3B-B499-09B87BA931D9</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeVpnConnectionLogsResponseBody build() { return new DescribeVpnConnectionLogsResponseBody(this); } } /** * * {@link DescribeVpnConnectionLogsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionLogsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Logs") private java.util.List<String> logs; private Data(Builder builder) { this.logs = builder.logs; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return logs */ public java.util.List<String> getLogs() { return this.logs; } public static final class Builder { private java.util.List<String> logs; private Builder() { } private Builder(Data model) { this.logs = model.logs; } /** * Logs. */ public Builder logs(java.util.List<String> logs) { this.logs = logs; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionRequest} extends {@link RequestModel} * * <p>DescribeVpnConnectionRequest</p> */ public class DescribeVpnConnectionRequest 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("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; private DescribeVpnConnectionRequest(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.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static DescribeVpnConnectionRequest 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 vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<DescribeVpnConnectionRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnConnectionId; private Builder() { super(); } private Builder(DescribeVpnConnectionRequest request) { super(request); this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vpnConnectionId = request.vpnConnectionId; } /** * 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 DescribeVpnConnectionRequest build() { return new DescribeVpnConnectionRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionResponse} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponse</p> */ public class DescribeVpnConnectionResponse 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 DescribeVpnConnectionResponseBody body; private DescribeVpnConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnConnectionResponse 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 DescribeVpnConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnConnectionResponseBody body); @Override DescribeVpnConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnConnectionResponse 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(DescribeVpnConnectionResponseBody body) { this.body = body; return this; } @Override public DescribeVpnConnectionResponse build() { return new DescribeVpnConnectionResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public class DescribeVpnConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AttachInstanceId") private String attachInstanceId; @com.aliyun.core.annotation.NameInMap("AttachType") private String attachType; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("CrossAccountAuthorized") private Boolean crossAccountAuthorized; @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp") private Boolean enableTunnelsBgp; @com.aliyun.core.annotation.NameInMap("IkeConfig") private IkeConfig ikeConfig; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IpsecConfig") private IpsecConfig ipsecConfig; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NetworkType") private String networkType; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("RemoteSubnet") private String remoteSubnet; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("TransitRouterId") private String transitRouterId; @com.aliyun.core.annotation.NameInMap("TransitRouterName") private String transitRouterName; @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private TunnelOptionsSpecification tunnelOptionsSpecification; @com.aliyun.core.annotation.NameInMap("VcoHealthCheck") private VcoHealthCheck vcoHealthCheck; @com.aliyun.core.annotation.NameInMap("VpnBgpConfig") private VpnBgpConfig vpnBgpConfig; @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; @com.aliyun.core.annotation.NameInMap("ZoneNo") private String zoneNo; private DescribeVpnConnectionResponseBody(Builder builder) { this.attachInstanceId = builder.attachInstanceId; this.attachType = builder.attachType; this.createTime = builder.createTime; this.crossAccountAuthorized = builder.crossAccountAuthorized; this.customerGatewayId = builder.customerGatewayId; this.effectImmediately = builder.effectImmediately; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.enableTunnelsBgp = builder.enableTunnelsBgp; this.ikeConfig = builder.ikeConfig; this.internetIp = builder.internetIp; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.name = builder.name; this.networkType = builder.networkType; this.remoteCaCertificate = builder.remoteCaCertificate; this.remoteSubnet = builder.remoteSubnet; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.state = builder.state; this.status = builder.status; this.tags = builder.tags; this.transitRouterId = builder.transitRouterId; this.transitRouterName = builder.transitRouterName; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vcoHealthCheck = builder.vcoHealthCheck; this.vpnBgpConfig = builder.vpnBgpConfig; this.vpnConnectionId = builder.vpnConnectionId; this.vpnGatewayId = builder.vpnGatewayId; this.zoneNo = builder.zoneNo; } public static Builder builder() { return new Builder(); } public static DescribeVpnConnectionResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return attachInstanceId */ public String getAttachInstanceId() { return this.attachInstanceId; } /** * @return attachType */ public String getAttachType() { return this.attachType; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return crossAccountAuthorized */ public Boolean getCrossAccountAuthorized() { return this.crossAccountAuthorized; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return enableTunnelsBgp */ public Boolean getEnableTunnelsBgp() { return this.enableTunnelsBgp; } /** * @return ikeConfig */ public IkeConfig getIkeConfig() { return this.ikeConfig; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return ipsecConfig */ public IpsecConfig getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return networkType */ public String getNetworkType() { return this.networkType; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return remoteSubnet */ public String getRemoteSubnet() { return this.remoteSubnet; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return state */ public String getState() { return this.state; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return transitRouterId */ public String getTransitRouterId() { return this.transitRouterId; } /** * @return transitRouterName */ public String getTransitRouterName() { return this.transitRouterName; } /** * @return tunnelOptionsSpecification */ public TunnelOptionsSpecification getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vcoHealthCheck */ public VcoHealthCheck getVcoHealthCheck() { return this.vcoHealthCheck; } /** * @return vpnBgpConfig */ public VpnBgpConfig getVpnBgpConfig() { return this.vpnBgpConfig; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return zoneNo */ public String getZoneNo() { return this.zoneNo; } public static final class Builder { private String attachInstanceId; private String attachType; private Long createTime; private Boolean crossAccountAuthorized; private String customerGatewayId; private Boolean effectImmediately; private Boolean enableDpd; private Boolean enableNatTraversal; private Boolean enableTunnelsBgp; private IkeConfig ikeConfig; private String internetIp; private IpsecConfig ipsecConfig; private String localSubnet; private String name; private String networkType; private String remoteCaCertificate; private String remoteSubnet; private String requestId; private String resourceGroupId; private String spec; private String state; private String status; private Tags tags; private String transitRouterId; private String transitRouterName; private TunnelOptionsSpecification tunnelOptionsSpecification; private VcoHealthCheck vcoHealthCheck; private VpnBgpConfig vpnBgpConfig; private String vpnConnectionId; private String vpnGatewayId; private String zoneNo; private Builder() { } private Builder(DescribeVpnConnectionResponseBody model) { this.attachInstanceId = model.attachInstanceId; this.attachType = model.attachType; this.createTime = model.createTime; this.crossAccountAuthorized = model.crossAccountAuthorized; this.customerGatewayId = model.customerGatewayId; this.effectImmediately = model.effectImmediately; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.enableTunnelsBgp = model.enableTunnelsBgp; this.ikeConfig = model.ikeConfig; this.internetIp = model.internetIp; this.ipsecConfig = model.ipsecConfig; this.localSubnet = model.localSubnet; this.name = model.name; this.networkType = model.networkType; this.remoteCaCertificate = model.remoteCaCertificate; this.remoteSubnet = model.remoteSubnet; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.state = model.state; this.status = model.status; this.tags = model.tags; this.transitRouterId = model.transitRouterId; this.transitRouterName = model.transitRouterName; this.tunnelOptionsSpecification = model.tunnelOptionsSpecification; this.vcoHealthCheck = model.vcoHealthCheck; this.vpnBgpConfig = model.vpnBgpConfig; this.vpnConnectionId = model.vpnConnectionId; this.vpnGatewayId = model.vpnGatewayId; this.zoneNo = model.zoneNo; } /** * <p>The ID of the CEN instance to which the transit router belongs.</p> * * <strong>example:</strong> * <p>cen-lxxpbpalc776qz****</p> */ public Builder attachInstanceId(String attachInstanceId) { this.attachInstanceId = attachInstanceId; return this; } /** * <p>The type of the resource that is associated with the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>CEN</strong>: indicates that the IPsec-VPN connection is associated with a transit router of a Cloud Enterprise Network (CEN) instance.</li> * <li><strong>NO_ASSOCIATED</strong>: indicates that the IPsec-VPN connection is not associated with any resource.</li> * <li><strong>VPNGW</strong>: indicates that the IPsec-VPN connection is associated with a VPN gateway.</li> * </ul> * * <strong>example:</strong> * <p>CEN</p> */ public Builder attachType(String attachType) { this.attachType = attachType; return this; } /** * <p>The timestamp generated when the IPsec-VPN connection was established. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1492753817000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>Indicates whether the IPsec-VPN connection is associated with a transit router that belongs to another Alibaba Cloud account. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder crossAccountAuthorized(Boolean crossAccountAuthorized) { this.crossAccountAuthorized = crossAccountAuthorized; return this; } /** * <p>The ID of the customer gateway associated with the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>cgw-bp1mvj4g9kogwwcxk****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Indicates whether IPsec negotiations immediately start after the configuration takes effect. Valid values:</p> * <ul> * <li><strong>true</strong>: Negotiations are reinitiated after the configuration is changed.</li> * <li><strong>false</strong>: Negotiations are reinitiated after traffic is detected.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.effectImmediately = effectImmediately; return this; } /** * <p>Indicates whether the dead peer detection (DPD) feature is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * <p>After you enable the DPD feature, the initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no response is received from the peer within a specified period of time, the connection fails. Then, the ISAKMP security association (SA), IPsec SA, and IPsec tunnel are deleted.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * <p>After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec tunnel.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>Indicates whether BGP is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) { this.enableTunnelsBgp = enableTunnelsBgp; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> */ public Builder ikeConfig(IkeConfig ikeConfig) { this.ikeConfig = ikeConfig; return this; } /** * <p>The gateway IP address of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>47.XX.XX.162</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The configuration of Phase 2 negotiations.</p> */ public Builder ipsecConfig(IpsecConfig ipsecConfig) { this.ipsecConfig = ipsecConfig; return this; } /** * <p>The CIDR block on the Alibaba Cloud side.</p> * <p>Multiple CIDR blocks are separated by commas (,).</p> * * <strong>example:</strong> * <p>10.0.0.0/8</p> */ public Builder localSubnet(String localSubnet) { this.localSubnet = localSubnet; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>ipsec1</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The network type of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>public</strong>: an encrypted connection over the Internet</li> * <li><strong>private</strong>: an encrypted connection over private networks</li> * </ul> * * <strong>example:</strong> * <p>public</p> */ public Builder networkType(String networkType) { this.networkType = networkType; return this; } /** * <p>The certificate authority (CA) certificate of the peer.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW****</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The CIDR block on the data center side.</p> * <p>Multiple CIDR blocks are separated by commas (,).</p> * * <strong>example:</strong> * <p>192.168.0.0/16</p> */ public Builder remoteSubnet(String remoteSubnet) { this.remoteSubnet = remoteSubnet; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F2310D45-BCF6-4E2E-9082-B4503844BA4C</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the IPsec-VPN connection 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 information.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The bandwidth specification of the IPsec-VPN connection. Unit: <strong>Mbit/s</strong>.</p> * * <strong>example:</strong> * <p>1000M</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The association state of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>active</strong>: The IPsec-VPN connection is associated with a VPN gateway.</li> * <li><strong>init</strong>: The IPsec-VPN connection is not associated with any resource and is being initialized.</li> * <li><strong>attaching</strong>: The IPsec-VPN connection is being associated with a transit router.</li> * <li><strong>attached</strong>: The IPsec-VPN connection is associated with a transit router.</li> * <li><strong>detaching</strong>: The IPsec-VPN connection is being disassociated from a transit router.</li> * <li><strong>financialLocked</strong>: The IPsec-VPN connection is locked due to overdue payments.</li> * <li><strong>provisioning</strong>: The IPsec-VPN connection is being prepared.</li> * <li><strong>updating</strong>: The IPsec-VPN connection is being updated.</li> * <li><strong>Upgrading</strong>: The IPsec-VPN connection is being upgraded.</li> * <li><strong>deleted</strong>: The IPsec-VPN connection is deleted.</li> * </ul> * * <strong>example:</strong> * <p>attached</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The state of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>ike_sa_not_established</strong>: Phase 1 negotiations failed.</li> * <li><strong>ike_sa_established</strong>: Phase 1 negotiations succeeded.</li> * <li><strong>ipsec_sa_not_established</strong>: Phase 2 negotiations failed.</li> * <li><strong>ipsec_sa_established</strong>: Phase 2 negotiations succeeded.</li> * </ul> * * <strong>example:</strong> * <p>ike_sa_not_established</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The list of tags added to the IPsec-VPN connection.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The ID of the transit router with which the IPsec-VPN connection is associated.</p> * * <strong>example:</strong> * <p>tr-p0we2edef9qr44a85****</p> */ public Builder transitRouterId(String transitRouterId) { this.transitRouterId = transitRouterId; return this; } /** * <p>The name of the transit router.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder transitRouterName(String transitRouterName) { this.transitRouterName = transitRouterName; return this; } /** * <p>The tunnel configurations of the IPsec-VPN connection.</p> * <p>Parameters in <strong>TunnelOptionsSpecification</strong> are returned only if you query an IPsec-VPN connection in dual-tunnel mode.</p> */ public Builder tunnelOptionsSpecification(TunnelOptionsSpecification tunnelOptionsSpecification) { this.tunnelOptionsSpecification = tunnelOptionsSpecification; return this; } /** * <p>The health check information about the IPsec-VPN connection.</p> */ public Builder vcoHealthCheck(VcoHealthCheck vcoHealthCheck) { this.vcoHealthCheck = vcoHealthCheck; return this; } /** * <p>The Border Gateway Protocol (BGP) configuration of the IPsec-VPN connection.</p> */ public Builder vpnBgpConfig(VpnBgpConfig vpnBgpConfig) { this.vpnBgpConfig = vpnBgpConfig; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-bp1bbi27hojx80nck****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm2ogj****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The ID of the zone where the IPsec-VPN connection is deployed.</p> * <p>You can call <a href="https://help.aliyun.com/document_detail/36064.html">DescribeZones</a> to query zone IDs and mapping between zone IDs and zone names.</p> * * <strong>example:</strong> * <p>cn-hangzhou-h</p> */ public Builder zoneNo(String zoneNo) { this.zoneNo = zoneNo; return this; } public DescribeVpnConnectionResponseBody build() { return new DescribeVpnConnectionResponseBody(this); } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class IkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private IkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static IkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(IkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The lifetime in the IKE phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main</strong>: This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman (DH) group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * <ul> * <li><strong>ikev1</strong></li> * <li><strong>ikev2</strong></li> * </ul> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and is more suitable for scenarios in which multiple CIDR blocks are used.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the IPsec-VPN connection on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>116.28.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>pgw6dy****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the IPsec-VPN connection on the data center side.</p> * * <strong>example:</strong> * <p>139.34.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public IkeConfig build() { return new IkeConfig(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class IpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Long ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private IpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static IpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Long getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Long ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(IpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The lifetime in the IPsec phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Long ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The DH group in the IPsec phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public IpsecConfig build() { return new IpsecConfig(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</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 DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</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 DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("BgpStatus") private String bgpStatus; @com.aliyun.core.annotation.NameInMap("LocalAsn") private String localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private String peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.bgpStatus = builder.bgpStatus; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return bgpStatus */ public String getBgpStatus() { return this.bgpStatus; } /** * @return localAsn */ public String getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public String getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private String bgpStatus; private String localAsn; private String localBgpIp; private String peerAsn; private String peerBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.bgpStatus = model.bgpStatus; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The negotiation state of BGP. Valid values:</p> * <ul> * <li><strong>success</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder bgpStatus(String bgpStatus) { this.bgpStatus = bgpStatus; return this; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(String localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN of the tunnel peer.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder peerAsn(String peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the tunnel peer.</p> * * <strong>example:</strong> * <p>169.254.10.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The BGP CIDR block of the tunnel.</p> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private String ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public String getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private String ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The lifetime in the IKE phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(String ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main</strong>: This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman (DH) group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.21.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the tunnel peer.</p> * * <strong>example:</strong> * <p>47.42.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private String ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public String getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private String ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The lifetime in the IPsec phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(String ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The DH group in the IPsec phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class TunnelOptions extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private String enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private String enableNatTraversal; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("Role") private String role; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIndex") private Integer tunnelIndex; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; @com.aliyun.core.annotation.NameInMap("ZoneNo") private String zoneNo; private TunnelOptions(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.internetIp = builder.internetIp; this.remoteCaCertificate = builder.remoteCaCertificate; this.role = builder.role; this.state = builder.state; this.status = builder.status; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIndex = builder.tunnelIndex; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; this.zoneNo = builder.zoneNo; } public static Builder builder() { return new Builder(); } public static TunnelOptions create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public String getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public String getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return role */ public String getRole() { return this.role; } /** * @return state */ public String getState() { return this.state; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIndex */ public Integer getTunnelIndex() { return this.tunnelIndex; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } /** * @return zoneNo */ public String getZoneNo() { return this.zoneNo; } public static final class Builder { private String customerGatewayId; private String enableDpd; private String enableNatTraversal; private String internetIp; private String remoteCaCertificate; private String role; private String state; private String status; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private Integer tunnelIndex; private TunnelIpsecConfig tunnelIpsecConfig; private String zoneNo; private Builder() { } private Builder(TunnelOptions model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.internetIp = model.internetIp; this.remoteCaCertificate = model.remoteCaCertificate; this.role = model.role; this.state = model.state; this.status = model.status; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIndex = model.tunnelIndex; this.tunnelIpsecConfig = model.tunnelIpsecConfig; this.zoneNo = model.zoneNo; } /** * <p>The ID of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>cgw-p0wy363lucf1uyae8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Indicates whether the DPD feature is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(String enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(String enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>The tunnel IP address.</p> * * <strong>example:</strong> * <p>47.21.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The CA certificate of the tunnel peer.</p> * <p>This parameter is returned only if the VPN gateway is of the ShangMi (SM) type.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The tunnel role. Valid values:</p> * <ul> * <li><strong>master</strong>: The tunnel is an active tunnel.</li> * <li><strong>slave</strong>: The tunnel is a standby tunnel.</li> * </ul> * * <strong>example:</strong> * <p>master</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The tunnel status. Valid values:</p> * <ul> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The state of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>ike_sa_not_established</strong>: Phase 1 negotiations failed.</li> * <li><strong>ike_sa_established</strong>: Phase 1 negotiations succeeded.</li> * <li><strong>ipsec_sa_not_established</strong>: Phase 2 negotiations failed.</li> * <li><strong>ipsec_sa_established</strong>: Phase 2 negotiations succeeded.</li> * </ul> * * <strong>example:</strong> * <p>ipsec_sa_established</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The BGP configurations.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-opsqc4d97wni27****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The order in which the tunnel is created.</p> * <ul> * <li><strong>1</strong>: Tunnel 1.</li> * <li><strong>2</strong>: Tunnel 2.</li> * </ul> * <blockquote> * <p> This parameter is returned only if the IPsec-VPN connection is associated with a transit router.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder tunnelIndex(Integer tunnelIndex) { this.tunnelIndex = tunnelIndex; return this; } /** * <p>The configurations of Phase 2 negotiations.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } /** * <p>The zone where the tunnel is deployed.</p> * <p>You can call <a href="https://help.aliyun.com/document_detail/36064.html">DescribeZones</a> to query zone IDs.</p> * * <strong>example:</strong> * <p>cn-hangzhou-i</p> */ public Builder zoneNo(String zoneNo) { this.zoneNo = zoneNo; return this; } public TunnelOptions build() { return new TunnelOptions(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("TunnelOptions") private java.util.List<TunnelOptions> tunnelOptions; private TunnelOptionsSpecification(Builder builder) { this.tunnelOptions = builder.tunnelOptions; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return tunnelOptions */ public java.util.List<TunnelOptions> getTunnelOptions() { return this.tunnelOptions; } public static final class Builder { private java.util.List<TunnelOptions> tunnelOptions; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.tunnelOptions = model.tunnelOptions; } /** * TunnelOptions. */ public Builder tunnelOptions(java.util.List<TunnelOptions> tunnelOptions) { this.tunnelOptions = tunnelOptions; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class VcoHealthCheck extends TeaModel { @com.aliyun.core.annotation.NameInMap("Dip") private String dip; @com.aliyun.core.annotation.NameInMap("Enable") private String enable; @com.aliyun.core.annotation.NameInMap("Interval") private Integer interval; @com.aliyun.core.annotation.NameInMap("Policy") private String policy; @com.aliyun.core.annotation.NameInMap("Retry") private Integer retry; @com.aliyun.core.annotation.NameInMap("Sip") private String sip; @com.aliyun.core.annotation.NameInMap("Status") private String status; private VcoHealthCheck(Builder builder) { this.dip = builder.dip; this.enable = builder.enable; this.interval = builder.interval; this.policy = builder.policy; this.retry = builder.retry; this.sip = builder.sip; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static VcoHealthCheck create() { return builder().build(); } /** * @return dip */ public String getDip() { return this.dip; } /** * @return enable */ public String getEnable() { return this.enable; } /** * @return interval */ public Integer getInterval() { return this.interval; } /** * @return policy */ public String getPolicy() { return this.policy; } /** * @return retry */ public Integer getRetry() { return this.retry; } /** * @return sip */ public String getSip() { return this.sip; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String dip; private String enable; private Integer interval; private String policy; private Integer retry; private String sip; private String status; private Builder() { } private Builder(VcoHealthCheck model) { this.dip = model.dip; this.enable = model.enable; this.interval = model.interval; this.policy = model.policy; this.retry = model.retry; this.sip = model.sip; this.status = model.status; } /** * <p>The destination IP address.</p> * * <strong>example:</strong> * <p>10.0.0.1</p> */ public Builder dip(String dip) { this.dip = dip; return this; } /** * <p>Indicates whether the health check feature is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enable(String enable) { this.enable = enable; return this; } /** * <p>The interval between two consecutive health checks. Unit: seconds.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder interval(Integer interval) { this.interval = interval; return this; } /** * <p>Indicates whether advertised routes are withdrawn when the health check fails. Valid values:</p> * <ul> * <li><strong>revoke_route</strong>: Advertised routes are withdrawn.</li> * <li><strong>reserve_route</strong>: Advertised routes are not withdrawn.</li> * </ul> * * <strong>example:</strong> * <p>revoke_route</p> */ public Builder policy(String policy) { this.policy = policy; return this; } /** * <p>The maximum number of health check retries.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder retry(Integer retry) { this.retry = retry; return this; } /** * <p>The source IP address.</p> * * <strong>example:</strong> * <p>192.168.1.1</p> */ public Builder sip(String sip) { this.sip = sip; return this; } /** * <p>The state of the health check. Valid values:</p> * <ul> * <li><strong>failed</strong></li> * <li><strong>success</strong>: normal</li> * </ul> * * <strong>example:</strong> * <p>failed</p> */ public Builder status(String status) { this.status = status; return this; } public VcoHealthCheck build() { return new VcoHealthCheck(this); } } } /** * * {@link DescribeVpnConnectionResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionResponseBody</p> */ public static class VpnBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("AuthKey") private String authKey; @com.aliyun.core.annotation.NameInMap("EnableBgp") private String enableBgp; @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private VpnBgpConfig(Builder builder) { this.authKey = builder.authKey; this.enableBgp = builder.enableBgp; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.status = builder.status; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static VpnBgpConfig create() { return builder().build(); } /** * @return authKey */ public String getAuthKey() { return this.authKey; } /** * @return enableBgp */ public String getEnableBgp() { return this.enableBgp; } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private String authKey; private String enableBgp; private Long localAsn; private String localBgpIp; private Long peerAsn; private String peerBgpIp; private String status; private String tunnelCidr; private Builder() { } private Builder(VpnBgpConfig model) { this.authKey = model.authKey; this.enableBgp = model.enableBgp; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.status = model.status; this.tunnelCidr = model.tunnelCidr; } /** * <p>The authentication key of the BGP routing protocol.</p> * * <strong>example:</strong> * <p>AuthKey****</p> */ public Builder authKey(String authKey) { this.authKey = authKey; return this; } /** * <p>Indicates whether BGP is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(String enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.11.2</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The autonomous system number (ASN) of the peer.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder peerAsn(Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the peer.</p> * * <strong>example:</strong> * <p>169.254.11.1</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The negotiation state of the BGP routing protocol. Valid values:</p> * <ul> * <li><strong>success</strong>: normal</li> * <li><strong>failed</strong></li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The BGP CIDR block of the IPsec-VPN connection. The CIDR block falls within 169.254.0.0/16. The subnet mask of the CIDR block must be 30 bits in length.</p> * * <strong>example:</strong> * <p>169.254.11.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public VpnBgpConfig build() { return new VpnBgpConfig(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionsRequest} extends {@link RequestModel} * * <p>DescribeVpnConnectionsRequest</p> */ public class DescribeVpnConnectionsRequest 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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private DescribeVpnConnectionsRequest(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; this.vpnConnectionId = builder.vpnConnectionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeVpnConnectionsRequest 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; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<DescribeVpnConnectionsRequest, 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 String vpnConnectionId; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeVpnConnectionsRequest 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; this.vpnConnectionId = request.vpnConnectionId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The ID of the customer gateway.</p> * * <strong>example:</strong> * <p>cgw-bp1mvj4g9kogw****</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 of the page to return. 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 returned on each page. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</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 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; } /** * <p>The ID of the resource group to which the IPsec-VPN connection 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 ID.</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 tag value.</p> * <p>The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * <p>Each tag key corresponds to one tag value. You can specify up to 20 tag values in each call.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-bp10lz7aejumd****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkx****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public DescribeVpnConnectionsRequest build() { return new DescribeVpnConnectionsRequest(this); } } /** * * {@link DescribeVpnConnectionsRequest} extends {@link TeaModel} * * <p>DescribeVpnConnectionsRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key. The tag key cannot be an empty string.</p> * <p>It can be at most 64 characters in length, and cannot contain <code>http://</code> or <code>https://</code>. It cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * <p>You can specify at most 20 tag keys in each call.</p> * * <strong>example:</strong> * <p>TagKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * <p>The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * <p>Each tag key corresponds to one tag value. You can specify at most 20 tag values in each call.</p> * * <strong>example:</strong> * <p>TagValue</p> */ public Builder value(String value) { this.value = value; return this; } public 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/DescribeVpnConnectionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionsResponse} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponse</p> */ public class DescribeVpnConnectionsResponse 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 DescribeVpnConnectionsResponseBody body; private DescribeVpnConnectionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnConnectionsResponse 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 DescribeVpnConnectionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnConnectionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnConnectionsResponseBody body); @Override DescribeVpnConnectionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnConnectionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnConnectionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnConnectionsResponse 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(DescribeVpnConnectionsResponseBody body) { this.body = body; return this; } @Override public DescribeVpnConnectionsResponse build() { return new DescribeVpnConnectionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnConnectionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public class DescribeVpnConnectionsResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VpnConnections") private VpnConnections vpnConnections; private DescribeVpnConnectionsResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnConnections = builder.vpnConnections; } public static Builder builder() { return new Builder(); } public static DescribeVpnConnectionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vpnConnections */ public VpnConnections getVpnConnections() { return this.vpnConnections; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VpnConnections vpnConnections; private Builder() { } private Builder(DescribeVpnConnectionsResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnConnections = model.vpnConnections; } /** * <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>238752DC-0693-49BE-9C85-711D5691D3E5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The information about the IPsec-VPN connections.</p> */ public Builder vpnConnections(VpnConnections vpnConnections) { this.vpnConnections = vpnConnections; return this; } public DescribeVpnConnectionsResponseBody build() { return new DescribeVpnConnectionsResponseBody(this); } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class IkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private IkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static IkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(IkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The lifetime in the IKE phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main</strong>: This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The DH group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * <ul> * <li><strong>ikev1</strong></li> * <li><strong>ikev2</strong></li> * </ul> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and is more suitable for scenarios in which multiple CIDR blocks are used.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the IPsec-VPN connection on the data center side.</p> * * <strong>example:</strong> * <p>116.64.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>pgw6dy7****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the IPsec-VPN connection on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>139.17.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public IkeConfig build() { return new IkeConfig(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class IpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Long ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private IpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static IpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Long getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Long ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(IpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The lifetime in the IPsec phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Long ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The DH group in the IPsec phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public IpsecConfig build() { return new IpsecConfig(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>TagKey</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value of the IPsec-VPN connection.</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 DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class VpnConnectionTag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private VpnConnectionTag(Builder builder) { this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static VpnConnectionTag 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(VpnConnectionTag model) { this.tag = model.tag; } /** * Tag. */ public Builder tag(java.util.List<Tag> tag) { this.tag = tag; return this; } public VpnConnectionTag build() { return new VpnConnectionTag(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("BgpStatus") private String bgpStatus; @com.aliyun.core.annotation.NameInMap("LocalAsn") private String localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private String peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.bgpStatus = builder.bgpStatus; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return bgpStatus */ public String getBgpStatus() { return this.bgpStatus; } /** * @return localAsn */ public String getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public String getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private String bgpStatus; private String localAsn; private String localBgpIp; private String peerAsn; private String peerBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.bgpStatus = model.bgpStatus; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The negotiation state of BGP. Valid values:</p> * <ul> * <li><strong>success</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder bgpStatus(String bgpStatus) { this.bgpStatus = bgpStatus; return this; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(String localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN of the tunnel peer.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder peerAsn(String peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the tunnel peer.</p> * * <strong>example:</strong> * <p>169.254.10.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The BGP CIDR block of the tunnel.</p> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private String ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public String getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private String ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The lifetime in the IKE phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(String ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main</strong>: This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The DH group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.21.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the tunnel peer.</p> * * <strong>example:</strong> * <p>47.42.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private String ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public String getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private String ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm in the IPsec phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The lifetime in the IPsec phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(String ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The DH group in the IPsec phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class TunnelOptions extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private String enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private String enableNatTraversal; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("Role") private String role; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIndex") private Integer tunnelIndex; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; @com.aliyun.core.annotation.NameInMap("ZoneNo") private String zoneNo; private TunnelOptions(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.internetIp = builder.internetIp; this.remoteCaCertificate = builder.remoteCaCertificate; this.role = builder.role; this.state = builder.state; this.status = builder.status; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIndex = builder.tunnelIndex; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; this.zoneNo = builder.zoneNo; } public static Builder builder() { return new Builder(); } public static TunnelOptions create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public String getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public String getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return role */ public String getRole() { return this.role; } /** * @return state */ public String getState() { return this.state; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIndex */ public Integer getTunnelIndex() { return this.tunnelIndex; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } /** * @return zoneNo */ public String getZoneNo() { return this.zoneNo; } public static final class Builder { private String customerGatewayId; private String enableDpd; private String enableNatTraversal; private String internetIp; private String remoteCaCertificate; private String role; private String state; private String status; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private Integer tunnelIndex; private TunnelIpsecConfig tunnelIpsecConfig; private String zoneNo; private Builder() { } private Builder(TunnelOptions model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.internetIp = model.internetIp; this.remoteCaCertificate = model.remoteCaCertificate; this.role = model.role; this.state = model.state; this.status = model.status; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIndex = model.tunnelIndex; this.tunnelIpsecConfig = model.tunnelIpsecConfig; this.zoneNo = model.zoneNo; } /** * <p>The ID of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>cgw-p0wy363lucf1uyae8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Indicates whether the DPD feature is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(String enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(String enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>The tunnel IP address.</p> * * <strong>example:</strong> * <p>47.21.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The CA certificate of the tunnel peer.</p> * <p>This parameter is returned only if the VPN gateway is of the SM type.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The tunnel role. Valid values:</p> * <ul> * <li><strong>master</strong>: The tunnel is an active tunnel.</li> * <li><strong>slave</strong>: The tunnel is a standby tunnel.</li> * </ul> * * <strong>example:</strong> * <p>master</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The tunnel status. Valid values:</p> * <ul> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The state of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>ike_sa_not_established</strong>: Phase 1 negotiations failed.</li> * <li><strong>ike_sa_established</strong>: Phase 1 negotiations succeeded.</li> * <li><strong>ipsec_sa_not_established</strong>: Phase 2 negotiations failed.</li> * <li><strong>ipsec_sa_established</strong>: Phase 2 negotiations succeeded.</li> * </ul> * * <strong>example:</strong> * <p>ipsec_sa_established</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The BGP configurations.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-opsqc4d97wni27****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The order in which the tunnel is created.</p> * <ul> * <li><strong>1</strong>: Tunnel 1.</li> * <li><strong>2</strong>: Tunnel 2.</li> * </ul> * <blockquote> * <p> This parameter is returned only if the IPsec-VPN connection is associated with a transit router.</p> * </blockquote> * * <strong>example:</strong> * <p>1</p> */ public Builder tunnelIndex(Integer tunnelIndex) { this.tunnelIndex = tunnelIndex; return this; } /** * <p>The configurations of Phase 2 negotiations.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } /** * <p>The zone of the tunnel.</p> * * <strong>example:</strong> * <p>ap-southeast-5a</p> */ public Builder zoneNo(String zoneNo) { this.zoneNo = zoneNo; return this; } public TunnelOptions build() { return new TunnelOptions(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("TunnelOptions") private java.util.List<TunnelOptions> tunnelOptions; private TunnelOptionsSpecification(Builder builder) { this.tunnelOptions = builder.tunnelOptions; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return tunnelOptions */ public java.util.List<TunnelOptions> getTunnelOptions() { return this.tunnelOptions; } public static final class Builder { private java.util.List<TunnelOptions> tunnelOptions; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.tunnelOptions = model.tunnelOptions; } /** * TunnelOptions. */ public Builder tunnelOptions(java.util.List<TunnelOptions> tunnelOptions) { this.tunnelOptions = tunnelOptions; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class VcoHealthCheck extends TeaModel { @com.aliyun.core.annotation.NameInMap("Dip") private String dip; @com.aliyun.core.annotation.NameInMap("Enable") private String enable; @com.aliyun.core.annotation.NameInMap("Interval") private Integer interval; @com.aliyun.core.annotation.NameInMap("Policy") private String policy; @com.aliyun.core.annotation.NameInMap("Retry") private Integer retry; @com.aliyun.core.annotation.NameInMap("Sip") private String sip; @com.aliyun.core.annotation.NameInMap("Status") private String status; private VcoHealthCheck(Builder builder) { this.dip = builder.dip; this.enable = builder.enable; this.interval = builder.interval; this.policy = builder.policy; this.retry = builder.retry; this.sip = builder.sip; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static VcoHealthCheck create() { return builder().build(); } /** * @return dip */ public String getDip() { return this.dip; } /** * @return enable */ public String getEnable() { return this.enable; } /** * @return interval */ public Integer getInterval() { return this.interval; } /** * @return policy */ public String getPolicy() { return this.policy; } /** * @return retry */ public Integer getRetry() { return this.retry; } /** * @return sip */ public String getSip() { return this.sip; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String dip; private String enable; private Integer interval; private String policy; private Integer retry; private String sip; private String status; private Builder() { } private Builder(VcoHealthCheck model) { this.dip = model.dip; this.enable = model.enable; this.interval = model.interval; this.policy = model.policy; this.retry = model.retry; this.sip = model.sip; this.status = model.status; } /** * <p>The destination IP address.</p> * * <strong>example:</strong> * <p>192.168.0.1</p> */ public Builder dip(String dip) { this.dip = dip; return this; } /** * <p>Indicates whether the health check feature is enabled.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enable(String enable) { this.enable = enable; return this; } /** * <p>The interval between two consecutive health checks. Unit: seconds.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder interval(Integer interval) { this.interval = interval; return this; } /** * <p>Indicates whether advertised routes are withdrawn when the health check fails.</p> * <ul> * <li><strong>revoke_route</strong>: Advertised routes are withdrawn.</li> * <li><strong>reserve_route</strong>: Advertised routes are not withdrawn.</li> * </ul> * * <strong>example:</strong> * <p>revoke_route</p> */ public Builder policy(String policy) { this.policy = policy; return this; } /** * <p>The maximum number of health check retries.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder retry(Integer retry) { this.retry = retry; return this; } /** * <p>The source IP address.</p> * * <strong>example:</strong> * <p>192.168.0.50</p> */ public Builder sip(String sip) { this.sip = sip; return this; } /** * <p>The state of the health check. Valid values:</p> * <ul> * <li><strong>success</strong></li> * <li><strong>failed</strong></li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder status(String status) { this.status = status; return this; } public VcoHealthCheck build() { return new VcoHealthCheck(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class VpnBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("AuthKey") private String authKey; @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private VpnBgpConfig(Builder builder) { this.authKey = builder.authKey; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.status = builder.status; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static VpnBgpConfig create() { return builder().build(); } /** * @return authKey */ public String getAuthKey() { return this.authKey; } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private String authKey; private Long localAsn; private String localBgpIp; private Long peerAsn; private String peerBgpIp; private String status; private String tunnelCidr; private Builder() { } private Builder(VpnBgpConfig model) { this.authKey = model.authKey; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.status = model.status; this.tunnelCidr = model.tunnelCidr; } /** * <p>The authentication key of the BGP routing protocol.</p> * * <strong>example:</strong> * <p>AuthKey****</p> */ public Builder authKey(String authKey) { this.authKey = authKey; return this; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.10.2</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN of the peer.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder peerAsn(Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the peer.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The negotiation state of the BGP routing protocol. Valid values:</p> * <ul> * <li><strong>success</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The BGP CIDR block of the IPsec-VPN connection. The CIDR block falls within 169.254.0.0/16. The subnet mask of the CIDR block must be 30 bits in length.</p> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public VpnBgpConfig build() { return new VpnBgpConfig(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class VpnConnection extends TeaModel { @com.aliyun.core.annotation.NameInMap("AttachInstanceId") private String attachInstanceId; @com.aliyun.core.annotation.NameInMap("AttachType") private String attachType; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("CrossAccountAuthorized") private Boolean crossAccountAuthorized; @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp") private Boolean enableTunnelsBgp; @com.aliyun.core.annotation.NameInMap("IkeConfig") private IkeConfig ikeConfig; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IpsecConfig") private IpsecConfig ipsecConfig; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NetworkType") private String networkType; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("RemoteSubnet") private String remoteSubnet; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private VpnConnectionTag tag; @com.aliyun.core.annotation.NameInMap("TransitRouterId") private String transitRouterId; @com.aliyun.core.annotation.NameInMap("TransitRouterName") private String transitRouterName; @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private TunnelOptionsSpecification tunnelOptionsSpecification; @com.aliyun.core.annotation.NameInMap("VcoHealthCheck") private VcoHealthCheck vcoHealthCheck; @com.aliyun.core.annotation.NameInMap("VpnBgpConfig") private VpnBgpConfig vpnBgpConfig; @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private VpnConnection(Builder builder) { this.attachInstanceId = builder.attachInstanceId; this.attachType = builder.attachType; this.createTime = builder.createTime; this.crossAccountAuthorized = builder.crossAccountAuthorized; this.customerGatewayId = builder.customerGatewayId; this.effectImmediately = builder.effectImmediately; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.enableTunnelsBgp = builder.enableTunnelsBgp; this.ikeConfig = builder.ikeConfig; this.internetIp = builder.internetIp; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.name = builder.name; this.networkType = builder.networkType; this.remoteCaCertificate = builder.remoteCaCertificate; this.remoteSubnet = builder.remoteSubnet; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.state = builder.state; this.status = builder.status; this.tag = builder.tag; this.transitRouterId = builder.transitRouterId; this.transitRouterName = builder.transitRouterName; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vcoHealthCheck = builder.vcoHealthCheck; this.vpnBgpConfig = builder.vpnBgpConfig; this.vpnConnectionId = builder.vpnConnectionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static VpnConnection create() { return builder().build(); } /** * @return attachInstanceId */ public String getAttachInstanceId() { return this.attachInstanceId; } /** * @return attachType */ public String getAttachType() { return this.attachType; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return crossAccountAuthorized */ public Boolean getCrossAccountAuthorized() { return this.crossAccountAuthorized; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return enableTunnelsBgp */ public Boolean getEnableTunnelsBgp() { return this.enableTunnelsBgp; } /** * @return ikeConfig */ public IkeConfig getIkeConfig() { return this.ikeConfig; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return ipsecConfig */ public IpsecConfig getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return networkType */ public String getNetworkType() { return this.networkType; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return remoteSubnet */ public String getRemoteSubnet() { return this.remoteSubnet; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return state */ public String getState() { return this.state; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public VpnConnectionTag getTag() { return this.tag; } /** * @return transitRouterId */ public String getTransitRouterId() { return this.transitRouterId; } /** * @return transitRouterName */ public String getTransitRouterName() { return this.transitRouterName; } /** * @return tunnelOptionsSpecification */ public TunnelOptionsSpecification getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vcoHealthCheck */ public VcoHealthCheck getVcoHealthCheck() { return this.vcoHealthCheck; } /** * @return vpnBgpConfig */ public VpnBgpConfig getVpnBgpConfig() { return this.vpnBgpConfig; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String attachInstanceId; private String attachType; private Long createTime; private Boolean crossAccountAuthorized; private String customerGatewayId; private Boolean effectImmediately; private Boolean enableDpd; private Boolean enableNatTraversal; private Boolean enableTunnelsBgp; private IkeConfig ikeConfig; private String internetIp; private IpsecConfig ipsecConfig; private String localSubnet; private String name; private String networkType; private String remoteCaCertificate; private String remoteSubnet; private String resourceGroupId; private String spec; private String state; private String status; private VpnConnectionTag tag; private String transitRouterId; private String transitRouterName; private TunnelOptionsSpecification tunnelOptionsSpecification; private VcoHealthCheck vcoHealthCheck; private VpnBgpConfig vpnBgpConfig; private String vpnConnectionId; private String vpnGatewayId; private Builder() { } private Builder(VpnConnection model) { this.attachInstanceId = model.attachInstanceId; this.attachType = model.attachType; this.createTime = model.createTime; this.crossAccountAuthorized = model.crossAccountAuthorized; this.customerGatewayId = model.customerGatewayId; this.effectImmediately = model.effectImmediately; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.enableTunnelsBgp = model.enableTunnelsBgp; this.ikeConfig = model.ikeConfig; this.internetIp = model.internetIp; this.ipsecConfig = model.ipsecConfig; this.localSubnet = model.localSubnet; this.name = model.name; this.networkType = model.networkType; this.remoteCaCertificate = model.remoteCaCertificate; this.remoteSubnet = model.remoteSubnet; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.state = model.state; this.status = model.status; this.tag = model.tag; this.transitRouterId = model.transitRouterId; this.transitRouterName = model.transitRouterName; this.tunnelOptionsSpecification = model.tunnelOptionsSpecification; this.vcoHealthCheck = model.vcoHealthCheck; this.vpnBgpConfig = model.vpnBgpConfig; this.vpnConnectionId = model.vpnConnectionId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The ID of the CEN instance to which the transit router belongs.</p> * * <strong>example:</strong> * <p>cen-lxxpbpalc776qz****</p> */ public Builder attachInstanceId(String attachInstanceId) { this.attachInstanceId = attachInstanceId; return this; } /** * <p>The type of resource that is associated with the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>CEN</strong>: indicates that the IPsec-VPN connection is associated with a transit router of a Cloud Enterprise Network (CEN) instance.</li> * <li><strong>NO_ASSOCIATED</strong>: indicates that the IPsec-VPN connection is not associated with any resource.</li> * <li><strong>VPNGW</strong>: indicates that the IPsec-VPN connection is associated with a VPN gateway.</li> * </ul> * * <strong>example:</strong> * <p>CEN</p> */ public Builder attachType(String attachType) { this.attachType = attachType; return this; } /** * <p>The timestamp generated when the IPsec-VPN connection was established. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1492753817000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>Indicates whether the IPsec-VPN connection is associated with a transit router that belongs to another Alibaba Cloud account. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder crossAccountAuthorized(Boolean crossAccountAuthorized) { this.crossAccountAuthorized = crossAccountAuthorized; return this; } /** * <p>The ID of the customer gateway associated with the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>cgw-bp1mvj4g9kogw****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Indicates whether IPsec negotiations immediately start.</p> * <ul> * <li><strong>true</strong>: Negotiations are reinitiated after the configuration is changed.</li> * <li><strong>false</strong>: Negotiations are reinitiated after traffic is detected.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.effectImmediately = effectImmediately; return this; } /** * <p>Indicates whether dead peer detection (DPD) is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><p><strong>true</strong></p> * <p>The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within a specific period of time, the connection fails. Then, the ISAKMP security association (SA), IPsec SA, and IPsec tunnel are deleted.</p> * </li> * <li><p><strong>false</strong></p> * </li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled for the IPsec-VPN connection.</p> * <ul> * <li><p><strong>true</strong></p> * <p>After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec tunnel.</p> * </li> * <li><p><strong>false</strong></p> * </li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>Indicates whether BGP is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) { this.enableTunnelsBgp = enableTunnelsBgp; return this; } /** * <p>The configurations of Phase 1 negotiations.</p> */ public Builder ikeConfig(IkeConfig ikeConfig) { this.ikeConfig = ikeConfig; return this; } /** * <p>The gateway IP address of the IPsec-VPN connection.</p> * <blockquote> * <p> This parameter is returned only if the IPsec-VPN connection is associated with a transit router.</p> * </blockquote> * * <strong>example:</strong> * <p>10.XX.XX.10</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The configurations of Phase 2 negotiations.</p> */ public Builder ipsecConfig(IpsecConfig ipsecConfig) { this.ipsecConfig = ipsecConfig; return this; } /** * <p>The CIDR block on the Alibaba Cloud side.</p> * <p>Multiple CIDR blocks are separated by commas (,).</p> * * <strong>example:</strong> * <p>192.168.0.0/16,172.17.0.0/16</p> */ public Builder localSubnet(String localSubnet) { this.localSubnet = localSubnet; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The network type of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>public</strong></li> * <li><strong>private</strong></li> * </ul> * * <strong>example:</strong> * <p>public</p> */ public Builder networkType(String networkType) { this.networkType = networkType; return this; } /** * <p>The certificate authority (CA) certificate of the peer.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The CIDR block of the data center.</p> * <p>Multiple CIDR blocks are separated by commas (,).</p> * * <strong>example:</strong> * <p>10.0.0.0/8,172.16.0.0/16</p> */ public Builder remoteSubnet(String remoteSubnet) { this.remoteSubnet = remoteSubnet; return this; } /** * <p>The ID of the resource group to which the IPsec-VPN connection 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 information.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The bandwidth specification of the IPsec-VPN connection. Unit: <strong>Mbit/s</strong>.</p> * * <strong>example:</strong> * <p>1000M</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The association state of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>active</strong>: The IPsec-VPN connection is associated with a VPN gateway.</li> * <li><strong>init</strong>: The IPsec-VPN connection is not associated with any resource and is being initialized.</li> * <li><strong>attaching</strong>: The IPsec-VPN connection is being associated with a transit router.</li> * <li><strong>attached</strong>: The IPsec-VPN connection is associated with a transit router.</li> * <li><strong>detaching</strong>: The IPsec-VPN connection is being disassociated from a transit router.</li> * <li><strong>financialLocked</strong>: The IPsec-VPN connection is locked due to overdue payments.</li> * <li><strong>provisioning</strong>: The IPsec-VPN connection is being prepared.</li> * <li><strong>updating</strong>: The IPsec-VPN connection is being updated.</li> * <li><strong>Upgrading</strong>: The IPsec-VPN connection is being upgraded.</li> * <li><strong>deleted</strong>: The IPsec-VPN connection is deleted.</li> * </ul> * * <strong>example:</strong> * <p>attached</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The status of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>ike_sa_not_established</strong>: Phase 1 negotiations failed.</li> * <li><strong>ike_sa_established</strong>: Phase 1 negotiations succeeded.</li> * <li><strong>ipsec_sa_not_established</strong>: Phase 2 negotiations failed.</li> * <li><strong>ipsec_sa_established</strong>: Phase 2 negotiations succeeded.</li> * </ul> * * <strong>example:</strong> * <p>ipsec_sa_established</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The list of tags to be added to the IPsec-VPN connection.</p> */ public Builder tag(VpnConnectionTag tag) { this.tag = tag; return this; } /** * <p>The ID of the transit router with which the IPsec-VPN connection is associated.</p> * * <strong>example:</strong> * <p>tr-p0we2edef9qr44a85****</p> */ public Builder transitRouterId(String transitRouterId) { this.transitRouterId = transitRouterId; return this; } /** * <p>The name of the transit router.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder transitRouterName(String transitRouterName) { this.transitRouterName = transitRouterName; return this; } /** * <p>The tunnel configurations of the IPsec-VPN connection.</p> * <p>Parameters in <strong>TunnelOptionsSpecification</strong> are returned only if you query an IPsec-VPN connection in dual-tunnel mode.</p> */ public Builder tunnelOptionsSpecification(TunnelOptionsSpecification tunnelOptionsSpecification) { this.tunnelOptionsSpecification = tunnelOptionsSpecification; return this; } /** * <p>The health check configuration of the IPsec-VPN connection.</p> */ public Builder vcoHealthCheck(VcoHealthCheck vcoHealthCheck) { this.vcoHealthCheck = vcoHealthCheck; return this; } /** * <p>The BGP configuration of the IPsec-VPN connection.</p> */ public Builder vpnBgpConfig(VpnBgpConfig vpnBgpConfig) { this.vpnBgpConfig = vpnBgpConfig; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-bp10lz7aejumd****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public VpnConnection build() { return new VpnConnection(this); } } } /** * * {@link DescribeVpnConnectionsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnConnectionsResponseBody</p> */ public static class VpnConnections extends TeaModel { @com.aliyun.core.annotation.NameInMap("VpnConnection") private java.util.List<VpnConnection> vpnConnection; private VpnConnections(Builder builder) { this.vpnConnection = builder.vpnConnection; } public static Builder builder() { return new Builder(); } public static VpnConnections create() { return builder().build(); } /** * @return vpnConnection */ public java.util.List<VpnConnection> getVpnConnection() { return this.vpnConnection; } public static final class Builder { private java.util.List<VpnConnection> vpnConnection; private Builder() { } private Builder(VpnConnections model) { this.vpnConnection = model.vpnConnection; } /** * VpnConnection. */ public Builder vpnConnection(java.util.List<VpnConnection> vpnConnection) { this.vpnConnection = vpnConnection; return this; } public VpnConnections build() { return new VpnConnections(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnCrossAccountAuthorizationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnCrossAccountAuthorizationsRequest} extends {@link RequestModel} * * <p>DescribeVpnCrossAccountAuthorizationsRequest</p> */ public class DescribeVpnCrossAccountAuthorizationsRequest 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("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("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 DescribeVpnCrossAccountAuthorizationsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; 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 DescribeVpnCrossAccountAuthorizationsRequest 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 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 vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<DescribeVpnCrossAccountAuthorizationsRequest, Builder> { private String clientToken; private String ownerAccount; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnConnectionId; private Builder() { super(); } private Builder(DescribeVpnCrossAccountAuthorizationsRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; 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 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 to return per page. Default value: <strong>10</strong>. Valid values: <strong>1</strong> to <strong>50</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 to which the IPsec-VPN connection belongs.</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; } /** * 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-p0w2jpkhi2eeop6q6****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } @Override public DescribeVpnCrossAccountAuthorizationsRequest build() { return new DescribeVpnCrossAccountAuthorizationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnCrossAccountAuthorizationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnCrossAccountAuthorizationsResponse} extends {@link TeaModel} * * <p>DescribeVpnCrossAccountAuthorizationsResponse</p> */ public class DescribeVpnCrossAccountAuthorizationsResponse 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 DescribeVpnCrossAccountAuthorizationsResponseBody body; private DescribeVpnCrossAccountAuthorizationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnCrossAccountAuthorizationsResponse 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 DescribeVpnCrossAccountAuthorizationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnCrossAccountAuthorizationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnCrossAccountAuthorizationsResponseBody body); @Override DescribeVpnCrossAccountAuthorizationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnCrossAccountAuthorizationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnCrossAccountAuthorizationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnCrossAccountAuthorizationsResponse 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(DescribeVpnCrossAccountAuthorizationsResponseBody body) { this.body = body; return this; } @Override public DescribeVpnCrossAccountAuthorizationsResponse build() { return new DescribeVpnCrossAccountAuthorizationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnCrossAccountAuthorizationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnCrossAccountAuthorizationsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnCrossAccountAuthorizationsResponseBody</p> */ public class DescribeVpnCrossAccountAuthorizationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CrossAccountAuthorizations") private java.util.List<CrossAccountAuthorizations> crossAccountAuthorizations; @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 DescribeVpnCrossAccountAuthorizationsResponseBody(Builder builder) { this.crossAccountAuthorizations = builder.crossAccountAuthorizations; 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 DescribeVpnCrossAccountAuthorizationsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return crossAccountAuthorizations */ public java.util.List<CrossAccountAuthorizations> getCrossAccountAuthorizations() { return this.crossAccountAuthorizations; } /** * @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 java.util.List<CrossAccountAuthorizations> crossAccountAuthorizations; private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private Builder() { } private Builder(DescribeVpnCrossAccountAuthorizationsResponseBody model) { this.crossAccountAuthorizations = model.crossAccountAuthorizations; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The cross-account authorization information about the IPsec-VPN connection.</p> */ public Builder crossAccountAuthorizations(java.util.List<CrossAccountAuthorizations> crossAccountAuthorizations) { this.crossAccountAuthorizations = crossAccountAuthorizations; 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>DB04E39A-6F0C-36AC-BCA0-B6D371B90062</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 DescribeVpnCrossAccountAuthorizationsResponseBody build() { return new DescribeVpnCrossAccountAuthorizationsResponseBody(this); } } /** * * {@link DescribeVpnCrossAccountAuthorizationsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnCrossAccountAuthorizationsResponseBody</p> */ public static class CrossAccountAuthorizations extends TeaModel { @com.aliyun.core.annotation.NameInMap("AliUid") private Long aliUid; @com.aliyun.core.annotation.NameInMap("BindInstance") private String bindInstance; @com.aliyun.core.annotation.NameInMap("BindProduct") private String bindProduct; @com.aliyun.core.annotation.NameInMap("BindUid") private Long bindUid; @com.aliyun.core.annotation.NameInMap("CreationTime") private Long creationTime; @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; private CrossAccountAuthorizations(Builder builder) { this.aliUid = builder.aliUid; this.bindInstance = builder.bindInstance; this.bindProduct = builder.bindProduct; this.bindUid = builder.bindUid; this.creationTime = builder.creationTime; this.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static CrossAccountAuthorizations create() { return builder().build(); } /** * @return aliUid */ public Long getAliUid() { return this.aliUid; } /** * @return bindInstance */ public String getBindInstance() { return this.bindInstance; } /** * @return bindProduct */ public String getBindProduct() { return this.bindProduct; } /** * @return bindUid */ public Long getBindUid() { return this.bindUid; } /** * @return creationTime */ public Long getCreationTime() { return this.creationTime; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder { private Long aliUid; private String bindInstance; private String bindProduct; private Long bindUid; private Long creationTime; private String vpnConnectionId; private Builder() { } private Builder(CrossAccountAuthorizations model) { this.aliUid = model.aliUid; this.bindInstance = model.bindInstance; this.bindProduct = model.bindProduct; this.bindUid = model.bindUid; this.creationTime = model.creationTime; this.vpnConnectionId = model.vpnConnectionId; } /** * <p>The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.</p> * * <strong>example:</strong> * <p>1250123456123456</p> */ public Builder aliUid(Long aliUid) { this.aliUid = aliUid; return this; } /** * <p>The ID of the CEN instance.</p> * * <strong>example:</strong> * <p>cen-vv8h0t3klfpaae****</p> */ public Builder bindInstance(String bindInstance) { this.bindInstance = bindInstance; return this; } /** * <p>The type of resource that can be associated with the IPsec-VPN connection.</p> * <p>Only <strong>CEN</strong> can be returned, which indicates that the IPsec-VPN connection is authorized to be associated with the transit router of a Cloud Enterprise Network (CEN) instance that belongs to another Alibaba Cloud account.</p> * * <strong>example:</strong> * <p>CEN</p> */ public Builder bindProduct(String bindProduct) { this.bindProduct = bindProduct; return this; } /** * <p>The ID of the Alibaba Cloud account whose resources the IPsec-VPN connection is authorized to be associated with.</p> * * <strong>example:</strong> * <p>1210123456123456</p> */ public Builder bindUid(Long bindUid) { this.bindUid = bindUid; return this; } /** * <p>The time when the authorization for the IPsec-VPN connection was created.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1658201810000</p> */ public Builder creationTime(Long creationTime) { this.creationTime = creationTime; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-p0w2jpkhi2eeop6q6****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; } public CrossAccountAuthorizations build() { return new CrossAccountAuthorizations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewayAvailableZonesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewayAvailableZonesRequest} extends {@link RequestModel} * * <p>DescribeVpnGatewayAvailableZonesRequest</p> */ public class DescribeVpnGatewayAvailableZonesRequest 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("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Spec") @com.aliyun.core.annotation.Validation(required = true) private String spec; private DescribeVpnGatewayAvailableZonesRequest(Builder builder) { super(builder); this.acceptLanguage = builder.acceptLanguage; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.spec = builder.spec; } public static Builder builder() { return new Builder(); } public static DescribeVpnGatewayAvailableZonesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return acceptLanguage */ public String getAcceptLanguage() { return this.acceptLanguage; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return spec */ public String getSpec() { return this.spec; } public static final class Builder extends Request.Builder<DescribeVpnGatewayAvailableZonesRequest, Builder> { private String acceptLanguage; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String spec; private Builder() { super(); } private Builder(DescribeVpnGatewayAvailableZonesRequest request) { super(request); this.acceptLanguage = request.acceptLanguage; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.spec = request.spec; } /** * <p>The language in which the returned results are displayed. 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; } /** * 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.</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 bandwidth specification.</p> * <ul> * <li>If an IPsec-VPN connection can be associated with the VPN gateway, this parameter specifies the bandwidth specification of the VPN gateway.</li> * <li>In scenarios where an IPsec-VPN connection can be associated with a transit router. This parameter specifies the bandwidth specification supported by an IPsec-VPN connection.</li> * </ul> * <p>Different bandwidth specifications may affect returned zone information. Valid values:</p> * <ul> * <li><strong>5M</strong></li> * <li><strong>10M</strong></li> * <li><strong>20M</strong></li> * <li><strong>50M</strong></li> * <li><strong>100M</strong></li> * <li><strong>200M</strong></li> * <li><strong>500M</strong></li> * <li><strong>1000M</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>5M</p> */ public Builder spec(String spec) { this.putQueryParameter("Spec", spec); this.spec = spec; return this; } @Override public DescribeVpnGatewayAvailableZonesRequest build() { return new DescribeVpnGatewayAvailableZonesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewayAvailableZonesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewayAvailableZonesResponse} extends {@link TeaModel} * * <p>DescribeVpnGatewayAvailableZonesResponse</p> */ public class DescribeVpnGatewayAvailableZonesResponse 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 DescribeVpnGatewayAvailableZonesResponseBody body; private DescribeVpnGatewayAvailableZonesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnGatewayAvailableZonesResponse 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 DescribeVpnGatewayAvailableZonesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnGatewayAvailableZonesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnGatewayAvailableZonesResponseBody body); @Override DescribeVpnGatewayAvailableZonesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnGatewayAvailableZonesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnGatewayAvailableZonesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnGatewayAvailableZonesResponse 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(DescribeVpnGatewayAvailableZonesResponseBody body) { this.body = body; return this; } @Override public DescribeVpnGatewayAvailableZonesResponse build() { return new DescribeVpnGatewayAvailableZonesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewayAvailableZonesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewayAvailableZonesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayAvailableZonesResponseBody</p> */ public class DescribeVpnGatewayAvailableZonesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AvailableZoneIdList") private java.util.List<AvailableZoneIdList> availableZoneIdList; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeVpnGatewayAvailableZonesResponseBody(Builder builder) { this.availableZoneIdList = builder.availableZoneIdList; this.regionId = builder.regionId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeVpnGatewayAvailableZonesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return availableZoneIdList */ public java.util.List<AvailableZoneIdList> getAvailableZoneIdList() { return this.availableZoneIdList; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private java.util.List<AvailableZoneIdList> availableZoneIdList; private String regionId; private String requestId; private Builder() { } private Builder(DescribeVpnGatewayAvailableZonesResponseBody model) { this.availableZoneIdList = model.availableZoneIdList; this.regionId = model.regionId; this.requestId = model.requestId; } /** * <p>The zones.</p> */ public Builder availableZoneIdList(java.util.List<AvailableZoneIdList> availableZoneIdList) { this.availableZoneIdList = availableZoneIdList; return this; } /** * <p>The region ID.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>29784052-931F-543D-A612-36B3838163FA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeVpnGatewayAvailableZonesResponseBody build() { return new DescribeVpnGatewayAvailableZonesResponseBody(this); } } /** * * {@link DescribeVpnGatewayAvailableZonesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayAvailableZonesResponseBody</p> */ public static class AvailableZoneIdList extends TeaModel { @com.aliyun.core.annotation.NameInMap("ZoneId") private String zoneId; @com.aliyun.core.annotation.NameInMap("ZoneName") private String zoneName; private AvailableZoneIdList(Builder builder) { this.zoneId = builder.zoneId; this.zoneName = builder.zoneName; } public static Builder builder() { return new Builder(); } public static AvailableZoneIdList create() { return builder().build(); } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } /** * @return zoneName */ public String getZoneName() { return this.zoneName; } public static final class Builder { private String zoneId; private String zoneName; private Builder() { } private Builder(AvailableZoneIdList model) { this.zoneId = model.zoneId; this.zoneName = model.zoneName; } /** * <p>The zone ID.</p> * * <strong>example:</strong> * <p>cn-hangzhou-h</p> */ public Builder zoneId(String zoneId) { this.zoneId = zoneId; return this; } /** * <p>The zone name.</p> * * <strong>example:</strong> * <p>cn-hangzhou-h</p> */ public Builder zoneName(String zoneName) { this.zoneName = zoneName; return this; } public AvailableZoneIdList build() { return new AvailableZoneIdList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewayRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewayRequest} extends {@link RequestModel} * * <p>DescribeVpnGatewayRequest</p> */ public class DescribeVpnGatewayRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludeReservationData") private Boolean includeReservationData; @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 DescribeVpnGatewayRequest(Builder builder) { super(builder); this.includeReservationData = builder.includeReservationData; 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 DescribeVpnGatewayRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return includeReservationData */ public Boolean getIncludeReservationData() { return this.includeReservationData; } /** * @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<DescribeVpnGatewayRequest, Builder> { private Boolean includeReservationData; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeVpnGatewayRequest request) { super(request); this.includeReservationData = request.includeReservationData; 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>Specifies whether to include the data about pending orders. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder includeReservationData(Boolean includeReservationData) { this.putQueryParameter("IncludeReservationData", includeReservationData); this.includeReservationData = includeReservationData; 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-zhangjiakou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1r3v1xqkl0w519g****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public DescribeVpnGatewayRequest build() { return new DescribeVpnGatewayRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewayResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewayResponse} extends {@link TeaModel} * * <p>DescribeVpnGatewayResponse</p> */ public class DescribeVpnGatewayResponse 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 DescribeVpnGatewayResponseBody body; private DescribeVpnGatewayResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnGatewayResponse 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 DescribeVpnGatewayResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnGatewayResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnGatewayResponseBody body); @Override DescribeVpnGatewayResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnGatewayResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnGatewayResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnGatewayResponse 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(DescribeVpnGatewayResponseBody body) { this.body = body; return this; } @Override public DescribeVpnGatewayResponse build() { return new DescribeVpnGatewayResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewayResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewayResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayResponseBody</p> */ public class DescribeVpnGatewayResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AutoPropagate") private Boolean autoPropagate; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisasterRecoveryInternetIp") private String disasterRecoveryInternetIp; @com.aliyun.core.annotation.NameInMap("DisasterRecoveryVSwitchId") private String disasterRecoveryVSwitchId; @com.aliyun.core.annotation.NameInMap("EnableBgp") private Boolean enableBgp; @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.NameInMap("EniInstanceIds") private EniInstanceIds eniInstanceIds; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IpsecVpn") private String ipsecVpn; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NetworkType") private String networkType; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ReservationData") private ReservationData reservationData; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("SslMaxConnections") private Long sslMaxConnections; @com.aliyun.core.annotation.NameInMap("SslVpn") private String sslVpn; @com.aliyun.core.annotation.NameInMap("SslVpnInternetIp") private String sslVpnInternetIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; @com.aliyun.core.annotation.NameInMap("VpnType") private String vpnType; private DescribeVpnGatewayResponseBody(Builder builder) { this.autoPropagate = builder.autoPropagate; this.businessStatus = builder.businessStatus; this.chargeType = builder.chargeType; this.createTime = builder.createTime; this.description = builder.description; this.disasterRecoveryInternetIp = builder.disasterRecoveryInternetIp; this.disasterRecoveryVSwitchId = builder.disasterRecoveryVSwitchId; this.enableBgp = builder.enableBgp; this.endTime = builder.endTime; this.eniInstanceIds = builder.eniInstanceIds; this.internetIp = builder.internetIp; this.ipsecVpn = builder.ipsecVpn; this.name = builder.name; this.networkType = builder.networkType; this.requestId = builder.requestId; this.reservationData = builder.reservationData; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.sslMaxConnections = builder.sslMaxConnections; this.sslVpn = builder.sslVpn; this.sslVpnInternetIp = builder.sslVpnInternetIp; this.status = builder.status; this.tag = builder.tag; this.tags = builder.tags; this.vSwitchId = builder.vSwitchId; this.vpcId = builder.vpcId; this.vpnGatewayId = builder.vpnGatewayId; this.vpnType = builder.vpnType; } public static Builder builder() { return new Builder(); } public static DescribeVpnGatewayResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return autoPropagate */ public Boolean getAutoPropagate() { return this.autoPropagate; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disasterRecoveryInternetIp */ public String getDisasterRecoveryInternetIp() { return this.disasterRecoveryInternetIp; } /** * @return disasterRecoveryVSwitchId */ public String getDisasterRecoveryVSwitchId() { return this.disasterRecoveryVSwitchId; } /** * @return enableBgp */ public Boolean getEnableBgp() { return this.enableBgp; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return eniInstanceIds */ public EniInstanceIds getEniInstanceIds() { return this.eniInstanceIds; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return ipsecVpn */ public String getIpsecVpn() { return this.ipsecVpn; } /** * @return name */ public String getName() { return this.name; } /** * @return networkType */ public String getNetworkType() { return this.networkType; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return reservationData */ public ReservationData getReservationData() { return this.reservationData; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return sslMaxConnections */ public Long getSslMaxConnections() { return this.sslMaxConnections; } /** * @return sslVpn */ public String getSslVpn() { return this.sslVpn; } /** * @return sslVpnInternetIp */ public String getSslVpnInternetIp() { return this.sslVpnInternetIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return vpnType */ public String getVpnType() { return this.vpnType; } public static final class Builder { private Boolean autoPropagate; private String businessStatus; private String chargeType; private Long createTime; private String description; private String disasterRecoveryInternetIp; private String disasterRecoveryVSwitchId; private Boolean enableBgp; private Long endTime; private EniInstanceIds eniInstanceIds; private String internetIp; private String ipsecVpn; private String name; private String networkType; private String requestId; private ReservationData reservationData; private String resourceGroupId; private String spec; private Long sslMaxConnections; private String sslVpn; private String sslVpnInternetIp; private String status; private String tag; private Tags tags; private String vSwitchId; private String vpcId; private String vpnGatewayId; private String vpnType; private Builder() { } private Builder(DescribeVpnGatewayResponseBody model) { this.autoPropagate = model.autoPropagate; this.businessStatus = model.businessStatus; this.chargeType = model.chargeType; this.createTime = model.createTime; this.description = model.description; this.disasterRecoveryInternetIp = model.disasterRecoveryInternetIp; this.disasterRecoveryVSwitchId = model.disasterRecoveryVSwitchId; this.enableBgp = model.enableBgp; this.endTime = model.endTime; this.eniInstanceIds = model.eniInstanceIds; this.internetIp = model.internetIp; this.ipsecVpn = model.ipsecVpn; this.name = model.name; this.networkType = model.networkType; this.requestId = model.requestId; this.reservationData = model.reservationData; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.sslMaxConnections = model.sslMaxConnections; this.sslVpn = model.sslVpn; this.sslVpnInternetIp = model.sslVpnInternetIp; this.status = model.status; this.tag = model.tag; this.tags = model.tags; this.vSwitchId = model.vSwitchId; this.vpcId = model.vpcId; this.vpnGatewayId = model.vpnGatewayId; this.vpnType = model.vpnType; } /** * <p>Indicates whether BGP routes are automatically advertised to the VPC. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoPropagate(Boolean autoPropagate) { this.autoPropagate = autoPropagate; return this; } /** * <p>The payment status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The billing method. Valid value:</p> * <p><strong>POSTPAY</strong>: pay-as-you-go</p> * * <strong>example:</strong> * <p>China site (aliyun.com): Prepay. International site (alibabacloud.com): POSTPAY.</p> */ public Builder chargeType(String chargeType) { this.chargeType = chargeType; return this; } /** * <p>The timestamp when the VPN 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>1495382400000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The description of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpngatewaydescription</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The second IP address assigned by the system to create an IPsec-VPN connection.</p> * <p>This parameter is returned only when the VPN gateway supports the dual-tunnel mode.</p> * * <strong>example:</strong> * <p>47.91.XX.XX</p> */ public Builder disasterRecoveryInternetIp(String disasterRecoveryInternetIp) { this.disasterRecoveryInternetIp = disasterRecoveryInternetIp; return this; } /** * <p>The ID of the second vSwitch associated with the VPN gateway.</p> * <p>This parameter is returned only when the VPN gateway supports the dual-tunnel mode.</p> * * <strong>example:</strong> * <p>vsw-p0w95ql6tmr2ludkt****</p> */ public Builder disasterRecoveryVSwitchId(String disasterRecoveryVSwitchId) { this.disasterRecoveryVSwitchId = disasterRecoveryVSwitchId; return this; } /** * <p>Indicates whether BGP is enabled for the VPN gateway. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(Boolean enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The timestamp when the VPN gateway expires. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1544666102000</p> */ public Builder endTime(Long endTime) { this.endTime = endTime; return this; } /** * <p>The ENIs created by the system for the VPN gateway.</p> */ public Builder eniInstanceIds(EniInstanceIds eniInstanceIds) { this.eniInstanceIds = eniInstanceIds; return this; } /** * <ul> * <li><p>If the VPN gateway supports IPsec-VPN connections in single-tunnel mode, the address is the IP address of the VPN gateway and can be used to create an IPsec-VPN connection or an SSL-VPN connection.</p> * </li> * <li><p>If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the address is the first IP address used to create an IPsec-VPN connection. The address cannot be used to create an SSL-VPN connection.</p> * <p>If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the system assigns two IP addresses to the VPN gateway to create two encrypted tunnels.</p> * </li> * </ul> * * <strong>example:</strong> * <p>47.22.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>Indicates whether the IPsec-VPN feature is enabled. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder ipsecVpn(String ipsecVpn) { this.ipsecVpn = ipsecVpn; return this; } /** * <p>The name of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpngatewayname</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The network type of the VPN gateway.</p> * <ul> * <li><strong>public</strong></li> * <li><strong>private</strong></li> * </ul> * * <strong>example:</strong> * <p>public</p> */ public Builder networkType(String networkType) { this.networkType = networkType; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>27E4E088-8DE0-4672-BF5C-0A412389DB9E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The information about pending orders.</p> * <blockquote> * <p>This set of parameters is returned only when <strong>IncludeReservationData</strong> is set to <strong>true</strong>.</p> * </blockquote> */ public Builder reservationData(ReservationData reservationData) { this.reservationData = reservationData; return this; } /** * <p>The ID of the resource group to which the VPN 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 maximum bandwidth of the VPN gateway. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The maximum number of concurrent SSL-VPN connections.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder sslMaxConnections(Long sslMaxConnections) { this.sslMaxConnections = sslMaxConnections; return this; } /** * <p>The status of the SSL-VPN feature. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder sslVpn(String sslVpn) { this.sslVpn = sslVpn; return this; } /** * <p>The IP address of the SSL-VPN connection.</p> * <p>This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.</p> * * <strong>example:</strong> * <p>47.74.XX.XX</p> */ public Builder sslVpnInternetIp(String sslVpnInternetIp) { this.sslVpnInternetIp = sslVpnInternetIp; return this; } /** * <p>The status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>init</strong></li> * <li><strong>provisioning</strong></li> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>init</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag that is automatically generated for the VPN gateway. The tag consists of the following parameters:</p> * <ul> * <li><p><strong>VpnEnableBgp</strong>: indicates whether the VPN gateway supports BGP. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>VisuallySsl</strong>: indicates whether the VPN gateway allows you to view the connection information of SSL clients. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>PbrPriority</strong>: indicates whether the VPN gateway allows you to configure priorities for policy-based routes. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>VpnNewImage</strong>: indicates whether the VPN gateway is upgraded. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>description</strong>: the description of the VPN gateway. This parameter is only for internal use.</p> * </li> * <li><p><strong>VpnVersion</strong>: the version of the VPN gateway.</p> * </li> * <li><p><strong>IDaaSNewVersion</strong>: indicates whether the VPN gateway can be associated with an EIAM 2.0 instance.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;VpnEnableBgp&quot;:&quot;true&quot;,&quot;VisuallySsl&quot;:&quot;true&quot;,&quot;PbrPriority&quot;:&quot;true&quot;,&quot;VpnNewImage&quot;:&quot;true&quot;,&quot;description&quot;:&quot;forwarding1.3.7&quot;,&quot;VpnVersion&quot;:&quot;v1.2.4&quot;}</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The tags that are added to the VPN gateway.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The ID of the vSwitch to which the VPN gateway belongs.</p> * * <strong>example:</strong> * <p>vsw-bp1dmzugdikc6hdgx****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The ID of the VPC to which the VPN gateway belongs.</p> * * <strong>example:</strong> * <p>vpc-bp19m2yx1m5q0avyq****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1r3v1xqkl0w519g****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The type of VPN gateway. Only <strong>Normal</strong> may be returned, which indicates a standard VPN gateway.</p> * * <strong>example:</strong> * <p>Normal</p> */ public Builder vpnType(String vpnType) { this.vpnType = vpnType; return this; } public DescribeVpnGatewayResponseBody build() { return new DescribeVpnGatewayResponseBody(this); } } /** * * {@link DescribeVpnGatewayResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayResponseBody</p> */ public static class EniInstanceIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("EniInstanceId") private java.util.List<String> eniInstanceId; private EniInstanceIds(Builder builder) { this.eniInstanceId = builder.eniInstanceId; } public static Builder builder() { return new Builder(); } public static EniInstanceIds create() { return builder().build(); } /** * @return eniInstanceId */ public java.util.List<String> getEniInstanceId() { return this.eniInstanceId; } public static final class Builder { private java.util.List<String> eniInstanceId; private Builder() { } private Builder(EniInstanceIds model) { this.eniInstanceId = model.eniInstanceId; } /** * EniInstanceId. */ public Builder eniInstanceId(java.util.List<String> eniInstanceId) { this.eniInstanceId = eniInstanceId; return this; } public EniInstanceIds build() { return new EniInstanceIds(this); } } } /** * * {@link DescribeVpnGatewayResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayResponseBody</p> */ public static class ReservationData extends TeaModel { @com.aliyun.core.annotation.NameInMap("ReservationEndTime") private String reservationEndTime; @com.aliyun.core.annotation.NameInMap("ReservationIpsec") private String reservationIpsec; @com.aliyun.core.annotation.NameInMap("ReservationMaxConnections") private Integer reservationMaxConnections; @com.aliyun.core.annotation.NameInMap("ReservationOrderType") private String reservationOrderType; @com.aliyun.core.annotation.NameInMap("ReservationSpec") private String reservationSpec; @com.aliyun.core.annotation.NameInMap("ReservationSsl") private String reservationSsl; @com.aliyun.core.annotation.NameInMap("Status") private String status; private ReservationData(Builder builder) { this.reservationEndTime = builder.reservationEndTime; this.reservationIpsec = builder.reservationIpsec; this.reservationMaxConnections = builder.reservationMaxConnections; this.reservationOrderType = builder.reservationOrderType; this.reservationSpec = builder.reservationSpec; this.reservationSsl = builder.reservationSsl; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ReservationData create() { return builder().build(); } /** * @return reservationEndTime */ public String getReservationEndTime() { return this.reservationEndTime; } /** * @return reservationIpsec */ public String getReservationIpsec() { return this.reservationIpsec; } /** * @return reservationMaxConnections */ public Integer getReservationMaxConnections() { return this.reservationMaxConnections; } /** * @return reservationOrderType */ public String getReservationOrderType() { return this.reservationOrderType; } /** * @return reservationSpec */ public String getReservationSpec() { return this.reservationSpec; } /** * @return reservationSsl */ public String getReservationSsl() { return this.reservationSsl; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String reservationEndTime; private String reservationIpsec; private Integer reservationMaxConnections; private String reservationOrderType; private String reservationSpec; private String reservationSsl; private String status; private Builder() { } private Builder(ReservationData model) { this.reservationEndTime = model.reservationEndTime; this.reservationIpsec = model.reservationIpsec; this.reservationMaxConnections = model.reservationMaxConnections; this.reservationOrderType = model.reservationOrderType; this.reservationSpec = model.reservationSpec; this.reservationSsl = model.reservationSsl; this.status = model.status; } /** * <p>If the order type is <strong>TEMP_UPGRADE</strong> (temporary upgrade), this parameter specifies the time when the temporary upgrade expires.</p> * <p>If the order type is <strong>RENEWCHANGE</strong> (renewal with a specification change) or <strong>RENEW</strong> (renewal), this parameter indicates the time when the renewal or renewal with a specification change takes effect.</p> * * <strong>example:</strong> * <p>2020-07-20T16:00:00Z</p> */ public Builder reservationEndTime(String reservationEndTime) { this.reservationEndTime = reservationEndTime; return this; } /** * <p>The IPsec-VPN status of the pending order. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder reservationIpsec(String reservationIpsec) { this.reservationIpsec = reservationIpsec; return this; } /** * <p>The maximum number of concurrent SSL-VPN connections of the pending order.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder reservationMaxConnections(Integer reservationMaxConnections) { this.reservationMaxConnections = reservationMaxConnections; return this; } /** * <p>The type of the pending order. Valid values:</p> * <ul> * <li><strong>RENEWCHANGE</strong>: renewal with upgrade or downgrade</li> * <li><strong>TEMP_UPGRADE</strong>: temporary upgrade</li> * <li><strong>RENEW</strong>: renewal</li> * </ul> * * <strong>example:</strong> * <p>TEMP_UPGRADE</p> */ public Builder reservationOrderType(String reservationOrderType) { this.reservationOrderType = reservationOrderType; return this; } /** * <p>The bandwidth of the pending order. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder reservationSpec(String reservationSpec) { this.reservationSpec = reservationSpec; return this; } /** * <p>The SSL-VPN status of the pending order. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder reservationSsl(String reservationSsl) { this.reservationSsl = reservationSsl; return this; } /** * <p>The status of the pending order. Valid values:</p> * <ul> * <li><strong>1</strong>: indicates that the order of the renewal or specification change has not taken effect.</li> * <li><strong>2</strong>: indicates that the order is an order for temporary upgrade and the order has taken effect. After the temporary upgrade expires, the system restores the VPN gateway to its previous specifications. In this case, <strong>ReservationIpsec</strong>, <strong>ReservationMaxConnections</strong>, <strong>ReservationSpec</strong>, and <strong>ReservationSsl</strong> indicate the previous specification.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(String status) { this.status = status; return this; } public ReservationData build() { return new ReservationData(this); } } } /** * * {@link DescribeVpnGatewayResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayResponseBody</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>aaa</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>bbb</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeVpnGatewayResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewayResponseBody</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; } /** * <p>The tag that is automatically generated for the VPN gateway. The tag consists of the following parameters:</p> * <ul> * <li><p><strong>VpnEnableBgp</strong>: indicates whether the VPN gateway supports BGP. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>VisuallySsl</strong>: indicates whether the VPN gateway allows you to view the connection information of SSL clients. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>PbrPriority</strong>: indicates whether the VPN gateway allows you to configure priorities for policy-based routes. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>VpnNewImage</strong>: indicates whether the VPN gateway is upgraded. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>description</strong>: the description of the VPN gateway. This parameter is only for internal use.</p> * </li> * <li><p><strong>VpnVersion</strong>: the version of the VPN gateway.</p> * </li> * <li><p><strong>IDaaSNewVersion</strong>: indicates whether the VPN gateway can be associated with an EIAM 2.0 instance.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;VpnEnableBgp&quot;:&quot;true&quot;,&quot;VisuallySsl&quot;:&quot;true&quot;,&quot;PbrPriority&quot;:&quot;true&quot;,&quot;VpnNewImage&quot;:&quot;true&quot;,&quot;description&quot;:&quot;forwarding1.3.7&quot;,&quot;VpnVersion&quot;:&quot;v1.2.4&quot;}</p> */ 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/DescribeVpnGatewaysRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewaysRequest} extends {@link RequestModel} * * <p>DescribeVpnGatewaysRequest</p> */ public class DescribeVpnGatewaysRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IncludeReservationData") private Boolean includeReservationData; @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("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private DescribeVpnGatewaysRequest(Builder builder) { super(builder); this.businessStatus = builder.businessStatus; this.includeReservationData = builder.includeReservationData; 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.status = builder.status; this.tag = builder.tag; this.vpcId = builder.vpcId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeVpnGatewaysRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return includeReservationData */ public Boolean getIncludeReservationData() { return this.includeReservationData; } /** * @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 status */ public String getStatus() { return this.status; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<DescribeVpnGatewaysRequest, Builder> { private String businessStatus; private Boolean includeReservationData; 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 String status; private java.util.List<Tag> tag; private String vpcId; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeVpnGatewaysRequest request) { super(request); this.businessStatus = request.businessStatus; this.includeReservationData = request.includeReservationData; 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.status = request.status; this.tag = request.tag; this.vpcId = request.vpcId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The payment status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder businessStatus(String businessStatus) { this.putQueryParameter("BusinessStatus", businessStatus); this.businessStatus = businessStatus; return this; } /** * <p>Specifies whether to return information about pending orders. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder includeReservationData(Boolean includeReservationData) { this.putQueryParameter("IncludeReservationData", includeReservationData); this.includeReservationData = includeReservationData; 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</strong> to <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 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-zhangjiakou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the VPN gateway belongs.</p> * <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 status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>init</strong></li> * <li><strong>provisioning</strong></li> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The tags that are added to the VPN gateway.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * <p>The ID of the virtual private cloud (VPC) to which the VPN gateway belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1m3i0kn1nd4wiw9****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp17lofy9fd0dnvzv****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public DescribeVpnGatewaysRequest build() { return new DescribeVpnGatewaysRequest(this); } } /** * * {@link DescribeVpnGatewaysRequest} extends {@link TeaModel} * * <p>DescribeVpnGatewaysRequest</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> * <p>You can specify at most 20 tag keys at a time.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</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>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewaysResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewaysResponse} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponse</p> */ public class DescribeVpnGatewaysResponse 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 DescribeVpnGatewaysResponseBody body; private DescribeVpnGatewaysResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnGatewaysResponse 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 DescribeVpnGatewaysResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnGatewaysResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnGatewaysResponseBody body); @Override DescribeVpnGatewaysResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnGatewaysResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnGatewaysResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnGatewaysResponse 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(DescribeVpnGatewaysResponseBody body) { this.body = body; return this; } @Override public DescribeVpnGatewaysResponse build() { return new DescribeVpnGatewaysResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnGatewaysResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</p> */ public class DescribeVpnGatewaysResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VpnGateways") private VpnGateways vpnGateways; private DescribeVpnGatewaysResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnGateways = builder.vpnGateways; } public static Builder builder() { return new Builder(); } public static DescribeVpnGatewaysResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vpnGateways */ public VpnGateways getVpnGateways() { return this.vpnGateways; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VpnGateways vpnGateways; private Builder() { } private Builder(DescribeVpnGatewaysResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnGateways = model.vpnGateways; } /** * <p>The number of the returned page.</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>DF11D6F6-E35A-41C3-9B20-6FC8A901FE65</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; } /** * <p>The information about the VPN gateways.</p> */ public Builder vpnGateways(VpnGateways vpnGateways) { this.vpnGateways = vpnGateways; return this; } public DescribeVpnGatewaysResponseBody build() { return new DescribeVpnGatewaysResponseBody(this); } } /** * * {@link DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</p> */ public static class EniInstanceIds extends TeaModel { @com.aliyun.core.annotation.NameInMap("EniInstanceId") private java.util.List<String> eniInstanceId; private EniInstanceIds(Builder builder) { this.eniInstanceId = builder.eniInstanceId; } public static Builder builder() { return new Builder(); } public static EniInstanceIds create() { return builder().build(); } /** * @return eniInstanceId */ public java.util.List<String> getEniInstanceId() { return this.eniInstanceId; } public static final class Builder { private java.util.List<String> eniInstanceId; private Builder() { } private Builder(EniInstanceIds model) { this.eniInstanceId = model.eniInstanceId; } /** * EniInstanceId. */ public Builder eniInstanceId(java.util.List<String> eniInstanceId) { this.eniInstanceId = eniInstanceId; return this; } public EniInstanceIds build() { return new EniInstanceIds(this); } } } /** * * {@link DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</p> */ public static class ReservationData extends TeaModel { @com.aliyun.core.annotation.NameInMap("ReservationEndTime") private String reservationEndTime; @com.aliyun.core.annotation.NameInMap("ReservationIpsec") private String reservationIpsec; @com.aliyun.core.annotation.NameInMap("ReservationMaxConnections") private Integer reservationMaxConnections; @com.aliyun.core.annotation.NameInMap("ReservationOrderType") private String reservationOrderType; @com.aliyun.core.annotation.NameInMap("ReservationSpec") private String reservationSpec; @com.aliyun.core.annotation.NameInMap("ReservationSsl") private String reservationSsl; @com.aliyun.core.annotation.NameInMap("Status") private String status; private ReservationData(Builder builder) { this.reservationEndTime = builder.reservationEndTime; this.reservationIpsec = builder.reservationIpsec; this.reservationMaxConnections = builder.reservationMaxConnections; this.reservationOrderType = builder.reservationOrderType; this.reservationSpec = builder.reservationSpec; this.reservationSsl = builder.reservationSsl; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static ReservationData create() { return builder().build(); } /** * @return reservationEndTime */ public String getReservationEndTime() { return this.reservationEndTime; } /** * @return reservationIpsec */ public String getReservationIpsec() { return this.reservationIpsec; } /** * @return reservationMaxConnections */ public Integer getReservationMaxConnections() { return this.reservationMaxConnections; } /** * @return reservationOrderType */ public String getReservationOrderType() { return this.reservationOrderType; } /** * @return reservationSpec */ public String getReservationSpec() { return this.reservationSpec; } /** * @return reservationSsl */ public String getReservationSsl() { return this.reservationSsl; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String reservationEndTime; private String reservationIpsec; private Integer reservationMaxConnections; private String reservationOrderType; private String reservationSpec; private String reservationSsl; private String status; private Builder() { } private Builder(ReservationData model) { this.reservationEndTime = model.reservationEndTime; this.reservationIpsec = model.reservationIpsec; this.reservationMaxConnections = model.reservationMaxConnections; this.reservationOrderType = model.reservationOrderType; this.reservationSpec = model.reservationSpec; this.reservationSsl = model.reservationSsl; this.status = model.status; } /** * <p>If the value of ReservationOrderType is <strong>TEMP_UPGRADE</strong>, this parameter indicates the time when the temporary upgrade expires.</p> * <p>If the value of ReservationOrderType is <strong>RENEWCHANGE</strong> or <strong>RENEW</strong>, this parameter indicates the time when the renewal or renewal with a specification change takes effect.</p> * * <strong>example:</strong> * <p>2021-07-20T16:00:00Z</p> */ public Builder reservationEndTime(String reservationEndTime) { this.reservationEndTime = reservationEndTime; return this; } /** * <p>The IPsec-VPN status of the pending order. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder reservationIpsec(String reservationIpsec) { this.reservationIpsec = reservationIpsec; return this; } /** * <p>The maximum number of concurrent SSL-VPN connections of the pending order.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder reservationMaxConnections(Integer reservationMaxConnections) { this.reservationMaxConnections = reservationMaxConnections; return this; } /** * <p>The type of the order that has not taken effect. Valid values:</p> * <ul> * <li><strong>RENEWCHANGE</strong>: renewal with upgrade or downgrade</li> * <li><strong>TEMP_UPGRADE</strong>: temporary upgrade</li> * <li><strong>RENEW</strong>: renewal</li> * </ul> * * <strong>example:</strong> * <p>TEMP_UPGRADE</p> */ public Builder reservationOrderType(String reservationOrderType) { this.reservationOrderType = reservationOrderType; return this; } /** * <p>The bandwidth of the pending order. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder reservationSpec(String reservationSpec) { this.reservationSpec = reservationSpec; return this; } /** * <p>The SSL-VPN status of the pending order. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder reservationSsl(String reservationSsl) { this.reservationSsl = reservationSsl; return this; } /** * <p>The status of the pending order.</p> * <ul> * <li><strong>1</strong>: indicates that the order for renewal or the order for renewal with a specification change has not taken effect.</li> * <li><strong>2</strong>: indicates that the order of the temporary upgrade has taken effect. After the temporary upgrade expires, the system restores the VPN gateway to its previous specifications. In this case, the values of <strong>ReservationIpsec</strong>, <strong>ReservationMaxConnections</strong>, <strong>ReservationSpec</strong>, and <strong>ReservationSsl</strong> indicate the previous specifications of the VPN gateway.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder status(String status) { this.status = status; return this; } public ReservationData build() { return new ReservationData(this); } } } /** * * {@link DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</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>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</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 DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</p> */ public static class VpnGateway extends TeaModel { @com.aliyun.core.annotation.NameInMap("AutoPropagate") private Boolean autoPropagate; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisasterRecoveryInternetIp") private String disasterRecoveryInternetIp; @com.aliyun.core.annotation.NameInMap("DisasterRecoveryVSwitchId") private String disasterRecoveryVSwitchId; @com.aliyun.core.annotation.NameInMap("EnableBgp") private Boolean enableBgp; @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.NameInMap("EniInstanceIds") private EniInstanceIds eniInstanceIds; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IpsecVpn") private String ipsecVpn; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NetworkType") private String networkType; @com.aliyun.core.annotation.NameInMap("ReservationData") private ReservationData reservationData; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("SslMaxConnections") private Long sslMaxConnections; @com.aliyun.core.annotation.NameInMap("SslVpn") private String sslVpn; @com.aliyun.core.annotation.NameInMap("SslVpnInternetIp") private String sslVpnInternetIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tag") private String tag; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; @com.aliyun.core.annotation.NameInMap("VpnType") private String vpnType; private VpnGateway(Builder builder) { this.autoPropagate = builder.autoPropagate; this.businessStatus = builder.businessStatus; this.chargeType = builder.chargeType; this.createTime = builder.createTime; this.description = builder.description; this.disasterRecoveryInternetIp = builder.disasterRecoveryInternetIp; this.disasterRecoveryVSwitchId = builder.disasterRecoveryVSwitchId; this.enableBgp = builder.enableBgp; this.endTime = builder.endTime; this.eniInstanceIds = builder.eniInstanceIds; this.internetIp = builder.internetIp; this.ipsecVpn = builder.ipsecVpn; this.name = builder.name; this.networkType = builder.networkType; this.reservationData = builder.reservationData; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.sslMaxConnections = builder.sslMaxConnections; this.sslVpn = builder.sslVpn; this.sslVpnInternetIp = builder.sslVpnInternetIp; this.status = builder.status; this.tag = builder.tag; this.tags = builder.tags; this.vSwitchId = builder.vSwitchId; this.vpcId = builder.vpcId; this.vpnGatewayId = builder.vpnGatewayId; this.vpnType = builder.vpnType; } public static Builder builder() { return new Builder(); } public static VpnGateway create() { return builder().build(); } /** * @return autoPropagate */ public Boolean getAutoPropagate() { return this.autoPropagate; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disasterRecoveryInternetIp */ public String getDisasterRecoveryInternetIp() { return this.disasterRecoveryInternetIp; } /** * @return disasterRecoveryVSwitchId */ public String getDisasterRecoveryVSwitchId() { return this.disasterRecoveryVSwitchId; } /** * @return enableBgp */ public Boolean getEnableBgp() { return this.enableBgp; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return eniInstanceIds */ public EniInstanceIds getEniInstanceIds() { return this.eniInstanceIds; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return ipsecVpn */ public String getIpsecVpn() { return this.ipsecVpn; } /** * @return name */ public String getName() { return this.name; } /** * @return networkType */ public String getNetworkType() { return this.networkType; } /** * @return reservationData */ public ReservationData getReservationData() { return this.reservationData; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return sslMaxConnections */ public Long getSslMaxConnections() { return this.sslMaxConnections; } /** * @return sslVpn */ public String getSslVpn() { return this.sslVpn; } /** * @return sslVpnInternetIp */ public String getSslVpnInternetIp() { return this.sslVpnInternetIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public String getTag() { return this.tag; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return vpnType */ public String getVpnType() { return this.vpnType; } public static final class Builder { private Boolean autoPropagate; private String businessStatus; private String chargeType; private Long createTime; private String description; private String disasterRecoveryInternetIp; private String disasterRecoveryVSwitchId; private Boolean enableBgp; private Long endTime; private EniInstanceIds eniInstanceIds; private String internetIp; private String ipsecVpn; private String name; private String networkType; private ReservationData reservationData; private String resourceGroupId; private String spec; private Long sslMaxConnections; private String sslVpn; private String sslVpnInternetIp; private String status; private String tag; private Tags tags; private String vSwitchId; private String vpcId; private String vpnGatewayId; private String vpnType; private Builder() { } private Builder(VpnGateway model) { this.autoPropagate = model.autoPropagate; this.businessStatus = model.businessStatus; this.chargeType = model.chargeType; this.createTime = model.createTime; this.description = model.description; this.disasterRecoveryInternetIp = model.disasterRecoveryInternetIp; this.disasterRecoveryVSwitchId = model.disasterRecoveryVSwitchId; this.enableBgp = model.enableBgp; this.endTime = model.endTime; this.eniInstanceIds = model.eniInstanceIds; this.internetIp = model.internetIp; this.ipsecVpn = model.ipsecVpn; this.name = model.name; this.networkType = model.networkType; this.reservationData = model.reservationData; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.sslMaxConnections = model.sslMaxConnections; this.sslVpn = model.sslVpn; this.sslVpnInternetIp = model.sslVpnInternetIp; this.status = model.status; this.tag = model.tag; this.tags = model.tags; this.vSwitchId = model.vSwitchId; this.vpcId = model.vpcId; this.vpnGatewayId = model.vpnGatewayId; this.vpnType = model.vpnType; } /** * <p>Indicates whether BGP routes are automatically advertised to the VPC.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoPropagate(Boolean autoPropagate) { this.autoPropagate = autoPropagate; return this; } /** * <p>The payment status of the VPN gateway.</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The billing method of the VPN gateway.</p> * <p>Only <strong>POSTPAY</strong> may be returned, which indicates the pay-as-you-go billing method.</p> * * <strong>example:</strong> * <p>Example value for the China site (aliyun.com): Prepay. Example value for the International site (alibabacloud.com): POSTPAY.</p> */ public Builder chargeType(String chargeType) { this.chargeType = chargeType; return this; } /** * <p>The timestamp generated when the VPN gateway was created. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1515383700000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The description of the VPN gateway.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The second IP address that is assigned to the VPN gateway to create IPsec-VPN connections.</p> * <p>This parameter is returned only if the VPN gateway supports IPsec-VPN connections in dual-tunnel mode.</p> * * <strong>example:</strong> * <p>47.91.XX.XX</p> */ public Builder disasterRecoveryInternetIp(String disasterRecoveryInternetIp) { this.disasterRecoveryInternetIp = disasterRecoveryInternetIp; return this; } /** * <p>The ID of the second vSwitch that is associated with the VPN gateway.</p> * <p>This parameter is returned only if the VPN gateway supports IPsec-VPN connections in dual-tunnel mode.</p> * * <strong>example:</strong> * <p>vsw-p0w95ql6tmr2ludkt****</p> */ public Builder disasterRecoveryVSwitchId(String disasterRecoveryVSwitchId) { this.disasterRecoveryVSwitchId = disasterRecoveryVSwitchId; return this; } /** * <p>The BGP status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(Boolean enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The timestamp generated when the VPN gateway expires. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1518105600000</p> */ public Builder endTime(Long endTime) { this.endTime = endTime; return this; } /** * <p>The ENIs created by the system for the VPN gateway.</p> */ public Builder eniInstanceIds(EniInstanceIds eniInstanceIds) { this.eniInstanceIds = eniInstanceIds; return this; } /** * <ul> * <li><p>If the VPN gateway supports IPsec-VPN connections in single-tunnel mode, the value of this parameter is the IP address of the VPN gateway, which can be used to create IPsec-VPN or SSL-VPN connections.</p> * </li> * <li><p>If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the value of this parameter is the first IP address that is used to create an IPsec-VPN connection. The IP address cannot be used to create SSL-VPN connections.</p> * <p>If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the system assigns two IPsec addresses to the VPN gateway to create IPsec-VPN connections in dual-tunnel mode.</p> * </li> * </ul> * * <strong>example:</strong> * <p>47.12.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>Indicates whether IPsec-VPN is enabled for the VPN gateway. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder ipsecVpn(String ipsecVpn) { this.ipsecVpn = ipsecVpn; return this; } /** * <p>The name of the VPN gateway.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The network type of the VPN gateway.</p> * <ul> * <li><strong>public</strong></li> * <li><strong>private</strong></li> * </ul> * * <strong>example:</strong> * <p>public</p> */ public Builder networkType(String networkType) { this.networkType = networkType; return this; } /** * <p>The information about pending orders.</p> * <blockquote> * <p>This parameter is returned only if <strong>IncludeReservationData</strong> is set to <strong>true</strong>.</p> * </blockquote> */ public Builder reservationData(ReservationData reservationData) { this.reservationData = reservationData; return this; } /** * <p>The ID of the resource group to which the VPN 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 maximum bandwidth of the VPN gateway. Unit: <strong>M</strong>, which indicates Mbit/s.</p> * * <strong>example:</strong> * <p>5M</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The number of SSL-VPN connections supported by the VPN gateway.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder sslMaxConnections(Long sslMaxConnections) { this.sslMaxConnections = sslMaxConnections; return this; } /** * <p>Indicates whether SSL-VPN is enabled for the VPN gateway. Valid values:</p> * <ul> * <li><strong>enable</strong></li> * <li><strong>disable</strong></li> * </ul> * * <strong>example:</strong> * <p>enable</p> */ public Builder sslVpn(String sslVpn) { this.sslVpn = sslVpn; return this; } /** * <p>The IP address of the SSL-VPN connection.</p> * <p>This parameter is returned only if the VPN gateway is a public VPN gateway and supports IPsec-VPN connections in dual-tunnel mode. In addition, SSL-VPN must be enabled for the VPN gateway.</p> * * <strong>example:</strong> * <p>47.74.XX.XX</p> */ public Builder sslVpnInternetIp(String sslVpnInternetIp) { this.sslVpnInternetIp = sslVpnInternetIp; return this; } /** * <p>The status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>init</strong></li> * <li><strong>provisioning</strong></li> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag that is automatically generated for the VPN gateway.</p> * <ul> * <li><p><strong>VpnEnableBgp</strong>: indicates whether the VPN gateway supports BGP. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>VisuallySsl</strong>: indicates whether the VPN gateway allows you to view the connection information of SSL clients. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>PbrPriority</strong>: indicates whether the VPN gateway allows you to configure priorities for policy-based routes. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>VpnNewImage</strong>: indicates whether the VPN gateway is upgraded. Valid values:</p> * <ul> * <li><strong>true</strong>: queries only SQL templates that need to be optimized.</li> * <li><strong>false</strong>: does not query only SQL statements that need to be optimized.</li> * </ul> * </li> * <li><p><strong>description</strong>: the description of the VPN gateway. This parameter is only for internal use.</p> * </li> * <li><p><strong>VpnVersion</strong>: the version of the VPN gateway.</p> * </li> * <li><p><strong>IDaaSNewVersion</strong>: indicates whether the VPN gateway can be associated with an EIAM 2.0 instance.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;VpnEnableBgp&quot;:&quot;true&quot;,&quot;VisuallySsl&quot;:&quot;true&quot;,&quot;PbrPriority&quot;:&quot;true&quot;,&quot;VpnNewImage&quot;:&quot;true&quot;,&quot;description&quot;:&quot;forwarding1.3.7&quot;,&quot;VpnVersion&quot;:&quot;v1.2.4&quot;}</p> */ public Builder tag(String tag) { this.tag = tag; return this; } /** * <p>The tags that are added to the VPN gateway.</p> */ public Builder tags(Tags tags) { this.tags = tags; return this; } /** * <p>The ID of the vSwitch to which the VPN gateway belongs.</p> * * <strong>example:</strong> * <p>vsw-bp15lbk8sgtr6r5b0****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The ID of the VPC to which the VPN gateway belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1m3i0kn1nd4wiw9****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp17lofy9fd0dnvzv****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The type of VPN gateway.</p> * <p>Only <strong>Normal</strong> may be returned, which indicates a standard VPN gateway.</p> * * <strong>example:</strong> * <p>Normal</p> */ public Builder vpnType(String vpnType) { this.vpnType = vpnType; return this; } public VpnGateway build() { return new VpnGateway(this); } } } /** * * {@link DescribeVpnGatewaysResponseBody} extends {@link TeaModel} * * <p>DescribeVpnGatewaysResponseBody</p> */ public static class VpnGateways extends TeaModel { @com.aliyun.core.annotation.NameInMap("VpnGateway") private java.util.List<VpnGateway> vpnGateway; private VpnGateways(Builder builder) { this.vpnGateway = builder.vpnGateway; } public static Builder builder() { return new Builder(); } public static VpnGateways create() { return builder().build(); } /** * @return vpnGateway */ public java.util.List<VpnGateway> getVpnGateway() { return this.vpnGateway; } public static final class Builder { private java.util.List<VpnGateway> vpnGateway; private Builder() { } private Builder(VpnGateways model) { this.vpnGateway = model.vpnGateway; } /** * VpnGateway. */ public Builder vpnGateway(java.util.List<VpnGateway> vpnGateway) { this.vpnGateway = vpnGateway; return this; } public VpnGateways build() { return new VpnGateways(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnPbrRouteEntriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnPbrRouteEntriesRequest} extends {@link RequestModel} * * <p>DescribeVpnPbrRouteEntriesRequest</p> */ public class DescribeVpnPbrRouteEntriesRequest 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") 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("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; private DescribeVpnPbrRouteEntriesRequest(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.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeVpnPbrRouteEntriesRequest 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 vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<DescribeVpnPbrRouteEntriesRequest, Builder> { private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeVpnPbrRouteEntriesRequest 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.vpnGatewayId = request.vpnGatewayId; } /** * 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 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-zhangjiakou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The 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; } @Override public DescribeVpnPbrRouteEntriesRequest build() { return new DescribeVpnPbrRouteEntriesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnPbrRouteEntriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnPbrRouteEntriesResponse} extends {@link TeaModel} * * <p>DescribeVpnPbrRouteEntriesResponse</p> */ public class DescribeVpnPbrRouteEntriesResponse 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 DescribeVpnPbrRouteEntriesResponseBody body; private DescribeVpnPbrRouteEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnPbrRouteEntriesResponse 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 DescribeVpnPbrRouteEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnPbrRouteEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnPbrRouteEntriesResponseBody body); @Override DescribeVpnPbrRouteEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnPbrRouteEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnPbrRouteEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnPbrRouteEntriesResponse 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(DescribeVpnPbrRouteEntriesResponseBody body) { this.body = body; return this; } @Override public DescribeVpnPbrRouteEntriesResponse build() { return new DescribeVpnPbrRouteEntriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnPbrRouteEntriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnPbrRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnPbrRouteEntriesResponseBody</p> */ public class DescribeVpnPbrRouteEntriesResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VpnPbrRouteEntries") private VpnPbrRouteEntries vpnPbrRouteEntries; private DescribeVpnPbrRouteEntriesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnPbrRouteEntries = builder.vpnPbrRouteEntries; } public static Builder builder() { return new Builder(); } public static DescribeVpnPbrRouteEntriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vpnPbrRouteEntries */ public VpnPbrRouteEntries getVpnPbrRouteEntries() { return this.vpnPbrRouteEntries; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VpnPbrRouteEntries vpnPbrRouteEntries; private Builder() { } private Builder(DescribeVpnPbrRouteEntriesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnPbrRouteEntries = model.vpnPbrRouteEntries; } /** * <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>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</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; } /** * <p>The list of policy-based routes.</p> */ public Builder vpnPbrRouteEntries(VpnPbrRouteEntries vpnPbrRouteEntries) { this.vpnPbrRouteEntries = vpnPbrRouteEntries; return this; } public DescribeVpnPbrRouteEntriesResponseBody build() { return new DescribeVpnPbrRouteEntriesResponseBody(this); } } /** * * {@link DescribeVpnPbrRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnPbrRouteEntriesResponseBody</p> */ public static class VpnPbrRouteEntry extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("NextHop") private String nextHop; @com.aliyun.core.annotation.NameInMap("NextHopTunnelId") private String nextHopTunnelId; @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.NameInMap("RouteDest") private String routeDest; @com.aliyun.core.annotation.NameInMap("RouteSource") private String routeSource; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("VpnInstanceId") private String vpnInstanceId; @com.aliyun.core.annotation.NameInMap("Weight") private Integer weight; private VpnPbrRouteEntry(Builder builder) { this.createTime = builder.createTime; this.nextHop = builder.nextHop; this.nextHopTunnelId = builder.nextHopTunnelId; this.priority = builder.priority; this.routeDest = builder.routeDest; this.routeSource = builder.routeSource; this.state = builder.state; this.vpnInstanceId = builder.vpnInstanceId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static VpnPbrRouteEntry create() { return builder().build(); } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return nextHopTunnelId */ public String getNextHopTunnelId() { return this.nextHopTunnelId; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeSource */ public String getRouteSource() { return this.routeSource; } /** * @return state */ public String getState() { return this.state; } /** * @return vpnInstanceId */ public String getVpnInstanceId() { return this.vpnInstanceId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder { private Long createTime; private String nextHop; private String nextHopTunnelId; private Integer priority; private String routeDest; private String routeSource; private String state; private String vpnInstanceId; private Integer weight; private Builder() { } private Builder(VpnPbrRouteEntry model) { this.createTime = model.createTime; this.nextHop = model.nextHop; this.nextHopTunnelId = model.nextHopTunnelId; this.priority = model.priority; this.routeDest = model.routeDest; this.routeSource = model.routeSource; this.state = model.state; this.vpnInstanceId = model.vpnInstanceId; this.weight = model.weight; } /** * <p>The time when the policy-based route 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 next hop of the policy-based route.</p> * * <strong>example:</strong> * <p>vco-bp15oes1py4i66rmd****</p> */ public Builder nextHop(String nextHop) { this.nextHop = nextHop; return this; } /** * <p>The ID of the tunnel associated with the next hop of the policy-based route.</p> * <p>This parameter is returned only if the VPN gateway supports IPsec-VPN connections in dual-tunnel mode.</p> * * <strong>example:</strong> * <p>tun-opsqc4d97wni2****</p> */ public Builder nextHopTunnelId(String nextHopTunnelId) { this.nextHopTunnelId = nextHopTunnelId; return this; } /** * <p>The priority of the policy-based route.</p> * <p>A smaller value indicates a higher priority.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder priority(Integer priority) { this.priority = priority; return this; } /** * <p>The destination CIDR block of the policy-based route.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.routeDest = routeDest; return this; } /** * <p>The source CIDR block of the policy-based route.</p> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder routeSource(String routeSource) { this.routeSource = routeSource; return this; } /** * <p>The status of the policy-based route. Valid values:</p> * <ul> * <li><strong>published</strong>: advertised to the VPC route table.</li> * <li><strong>normal</strong>: not advertised to the VPC route table.</li> * </ul> * * <strong>example:</strong> * <p>published</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1a3kqjiiq9legfx****</p> */ public Builder vpnInstanceId(String vpnInstanceId) { this.vpnInstanceId = vpnInstanceId; return this; } /** * <p>The weight of the policy-based route.</p> * <p>For a VPN gateway that supports IPsec-VPN connections in single-tunnel mode, the weight of a policy-based route indicates the priority of the route.</p> * <ul> * <li><strong>100</strong>: a high priority If multiple policy-based routes with the same source CIDR block and destination CIDR block exist, the IPsec-VPN connection associated with the policy-based route is the active connection.</li> * <li><strong>0</strong>: a low priority If multiple policy-based routes with the same source CIDR block and destination CIDR block exist, the IPsec-VPN connection associated with the policy-based route is the standby connection.</li> * </ul> * <blockquote> * <p> For a VPN gateway that does not support IPsec-VPN connections in single-tunnel mode, this parameter does not take effect.</p> * </blockquote> * * <strong>example:</strong> * <p>0</p> */ public Builder weight(Integer weight) { this.weight = weight; return this; } public VpnPbrRouteEntry build() { return new VpnPbrRouteEntry(this); } } } /** * * {@link DescribeVpnPbrRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnPbrRouteEntriesResponseBody</p> */ public static class VpnPbrRouteEntries extends TeaModel { @com.aliyun.core.annotation.NameInMap("VpnPbrRouteEntry") private java.util.List<VpnPbrRouteEntry> vpnPbrRouteEntry; private VpnPbrRouteEntries(Builder builder) { this.vpnPbrRouteEntry = builder.vpnPbrRouteEntry; } public static Builder builder() { return new Builder(); } public static VpnPbrRouteEntries create() { return builder().build(); } /** * @return vpnPbrRouteEntry */ public java.util.List<VpnPbrRouteEntry> getVpnPbrRouteEntry() { return this.vpnPbrRouteEntry; } public static final class Builder { private java.util.List<VpnPbrRouteEntry> vpnPbrRouteEntry; private Builder() { } private Builder(VpnPbrRouteEntries model) { this.vpnPbrRouteEntry = model.vpnPbrRouteEntry; } /** * VpnPbrRouteEntry. */ public Builder vpnPbrRouteEntry(java.util.List<VpnPbrRouteEntry> vpnPbrRouteEntry) { this.vpnPbrRouteEntry = vpnPbrRouteEntry; return this; } public VpnPbrRouteEntries build() { return new VpnPbrRouteEntries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnRouteEntriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnRouteEntriesRequest} extends {@link RequestModel} * * <p>DescribeVpnRouteEntriesRequest</p> */ public class DescribeVpnRouteEntriesRequest 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") 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("RouteEntryType") private String routeEntryType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; private DescribeVpnRouteEntriesRequest(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.routeEntryType = builder.routeEntryType; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static DescribeVpnRouteEntriesRequest 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 routeEntryType */ public String getRouteEntryType() { return this.routeEntryType; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<DescribeVpnRouteEntriesRequest, Builder> { private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeEntryType; private String vpnGatewayId; private Builder() { super(); } private Builder(DescribeVpnRouteEntriesRequest 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.routeEntryType = request.routeEntryType; this.vpnGatewayId = request.vpnGatewayId; } /** * 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 page to return. 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 to return on each 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 VPN gateway is created.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of the route entry. Valid values:</p> * <ul> * <li><strong>Custom</strong>: custom</li> * <li><strong>System</strong>: system</li> * </ul> * * <strong>example:</strong> * <p>System</p> */ public Builder routeEntryType(String routeEntryType) { this.putQueryParameter("RouteEntryType", routeEntryType); this.routeEntryType = routeEntryType; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1cmw7jh1nfe43m9****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public DescribeVpnRouteEntriesRequest build() { return new DescribeVpnRouteEntriesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnRouteEntriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnRouteEntriesResponse} extends {@link TeaModel} * * <p>DescribeVpnRouteEntriesResponse</p> */ public class DescribeVpnRouteEntriesResponse 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 DescribeVpnRouteEntriesResponseBody body; private DescribeVpnRouteEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnRouteEntriesResponse 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 DescribeVpnRouteEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnRouteEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnRouteEntriesResponseBody body); @Override DescribeVpnRouteEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnRouteEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnRouteEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnRouteEntriesResponse 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(DescribeVpnRouteEntriesResponseBody body) { this.body = body; return this; } @Override public DescribeVpnRouteEntriesResponse build() { return new DescribeVpnRouteEntriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnRouteEntriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnRouteEntriesResponseBody</p> */ public class DescribeVpnRouteEntriesResponseBody extends TeaModel { @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; @com.aliyun.core.annotation.NameInMap("VpnRouteCounts") private VpnRouteCounts vpnRouteCounts; @com.aliyun.core.annotation.NameInMap("VpnRouteEntries") private VpnRouteEntries vpnRouteEntries; private DescribeVpnRouteEntriesResponseBody(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnRouteCounts = builder.vpnRouteCounts; this.vpnRouteEntries = builder.vpnRouteEntries; } public static Builder builder() { return new Builder(); } public static DescribeVpnRouteEntriesResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return vpnRouteCounts */ public VpnRouteCounts getVpnRouteCounts() { return this.vpnRouteCounts; } /** * @return vpnRouteEntries */ public VpnRouteEntries getVpnRouteEntries() { return this.vpnRouteEntries; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private String requestId; private Integer totalCount; private VpnRouteCounts vpnRouteCounts; private VpnRouteEntries vpnRouteEntries; private Builder() { } private Builder(DescribeVpnRouteEntriesResponseBody model) { this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnRouteCounts = model.vpnRouteCounts; this.vpnRouteEntries = model.vpnRouteEntries; } /** * <p>The page number of the returned page.</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 ID of the request.</p> * * <strong>example:</strong> * <p>BF3995A6-FA4F-4C74-B90F-89ECF4BFF4D5</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; } /** * <p>The information about route entries of the VPN gateway in dual-tunnel mode.</p> * <blockquote> * <p>This parameter is returned only if the VPN gateway supports IPsec-VPN connections in dual-tunnel mode.</p> * </blockquote> */ public Builder vpnRouteCounts(VpnRouteCounts vpnRouteCounts) { this.vpnRouteCounts = vpnRouteCounts; return this; } /** * <p>The route entry list.</p> */ public Builder vpnRouteEntries(VpnRouteEntries vpnRouteEntries) { this.vpnRouteEntries = vpnRouteEntries; return this; } public DescribeVpnRouteEntriesResponseBody build() { return new DescribeVpnRouteEntriesResponseBody(this); } } /** * * {@link DescribeVpnRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnRouteEntriesResponseBody</p> */ public static class VpnRouteCount extends TeaModel { @com.aliyun.core.annotation.NameInMap("RouteCount") private Integer routeCount; @com.aliyun.core.annotation.NameInMap("RouteEntryType") private String routeEntryType; @com.aliyun.core.annotation.NameInMap("Source") private String source; private VpnRouteCount(Builder builder) { this.routeCount = builder.routeCount; this.routeEntryType = builder.routeEntryType; this.source = builder.source; } public static Builder builder() { return new Builder(); } public static VpnRouteCount create() { return builder().build(); } /** * @return routeCount */ public Integer getRouteCount() { return this.routeCount; } /** * @return routeEntryType */ public String getRouteEntryType() { return this.routeEntryType; } /** * @return source */ public String getSource() { return this.source; } public static final class Builder { private Integer routeCount; private String routeEntryType; private String source; private Builder() { } private Builder(VpnRouteCount model) { this.routeCount = model.routeCount; this.routeEntryType = model.routeEntryType; this.source = model.source; } /** * <p>The number of route entries.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder routeCount(Integer routeCount) { this.routeCount = routeCount; return this; } /** * <p>The route type. Valid values:</p> * <ul> * <li><strong>custom</strong> (default): destination-based route.</li> * <li><strong>bgp</strong> : BGP route entry.</li> * </ul> * * <strong>example:</strong> * <p>bgp</p> */ public Builder routeEntryType(String routeEntryType) { this.routeEntryType = routeEntryType; return this; } /** * <p>The source of the BGP route. Valid values:</p> * <ul> * <li><strong>CLOUD</strong>: advertised from a cloud service associated with the VPN gateway.</li> * <li><strong>VPN_BGP</strong>: indicates that the current route is learned by using BGP of the VPN gateway. For example, the BGP is used to learn the route of the on-premises data center.</li> * </ul> * * <strong>example:</strong> * <p>VPN_BGP</p> */ public Builder source(String source) { this.source = source; return this; } public VpnRouteCount build() { return new VpnRouteCount(this); } } } /** * * {@link DescribeVpnRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnRouteEntriesResponseBody</p> */ public static class VpnRouteCounts extends TeaModel { @com.aliyun.core.annotation.NameInMap("VpnRouteCount") private java.util.List<VpnRouteCount> vpnRouteCount; private VpnRouteCounts(Builder builder) { this.vpnRouteCount = builder.vpnRouteCount; } public static Builder builder() { return new Builder(); } public static VpnRouteCounts create() { return builder().build(); } /** * @return vpnRouteCount */ public java.util.List<VpnRouteCount> getVpnRouteCount() { return this.vpnRouteCount; } public static final class Builder { private java.util.List<VpnRouteCount> vpnRouteCount; private Builder() { } private Builder(VpnRouteCounts model) { this.vpnRouteCount = model.vpnRouteCount; } /** * VpnRouteCount. */ public Builder vpnRouteCount(java.util.List<VpnRouteCount> vpnRouteCount) { this.vpnRouteCount = vpnRouteCount; return this; } public VpnRouteCounts build() { return new VpnRouteCounts(this); } } } /** * * {@link DescribeVpnRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnRouteEntriesResponseBody</p> */ public static class VpnRouteEntry extends TeaModel { @com.aliyun.core.annotation.NameInMap("AsPath") private String asPath; @com.aliyun.core.annotation.NameInMap("Community") private String community; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("NextHop") private String nextHop; @com.aliyun.core.annotation.NameInMap("NextHopTunnelId") private String nextHopTunnelId; @com.aliyun.core.annotation.NameInMap("RouteDest") private String routeDest; @com.aliyun.core.annotation.NameInMap("RouteEntryType") private String routeEntryType; @com.aliyun.core.annotation.NameInMap("Source") private String source; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("VpnInstanceId") private String vpnInstanceId; @com.aliyun.core.annotation.NameInMap("Weight") private Integer weight; private VpnRouteEntry(Builder builder) { this.asPath = builder.asPath; this.community = builder.community; this.createTime = builder.createTime; this.nextHop = builder.nextHop; this.nextHopTunnelId = builder.nextHopTunnelId; this.routeDest = builder.routeDest; this.routeEntryType = builder.routeEntryType; this.source = builder.source; this.state = builder.state; this.vpnInstanceId = builder.vpnInstanceId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static VpnRouteEntry create() { return builder().build(); } /** * @return asPath */ public String getAsPath() { return this.asPath; } /** * @return community */ public String getCommunity() { return this.community; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return nextHopTunnelId */ public String getNextHopTunnelId() { return this.nextHopTunnelId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeEntryType */ public String getRouteEntryType() { return this.routeEntryType; } /** * @return source */ public String getSource() { return this.source; } /** * @return state */ public String getState() { return this.state; } /** * @return vpnInstanceId */ public String getVpnInstanceId() { return this.vpnInstanceId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder { private String asPath; private String community; private Long createTime; private String nextHop; private String nextHopTunnelId; private String routeDest; private String routeEntryType; private String source; private String state; private String vpnInstanceId; private Integer weight; private Builder() { } private Builder(VpnRouteEntry model) { this.asPath = model.asPath; this.community = model.community; this.createTime = model.createTime; this.nextHop = model.nextHop; this.nextHopTunnelId = model.nextHopTunnelId; this.routeDest = model.routeDest; this.routeEntryType = model.routeEntryType; this.source = model.source; this.state = model.state; this.vpnInstanceId = model.vpnInstanceId; this.weight = model.weight; } /** * <p>The AS path of the route entry.</p> * * <strong>example:</strong> * <p>65501,65001,60011</p> */ public Builder asPath(String asPath) { this.asPath = asPath; return this; } /** * <p>The community attributes of the route entry.</p> * * <strong>example:</strong> * <p>65001:1000,65501:2000</p> */ public Builder community(String community) { this.community = community; return this; } /** * <p>The timestamp when the route entry was created.</p> * * <strong>example:</strong> * <p>1563874074000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The next hop of the route entry.</p> * * <strong>example:</strong> * <p>vco-bp1tui07ob10fmuro****</p> */ public Builder nextHop(String nextHop) { this.nextHop = nextHop; return this; } /** * <p>The ID of the tunnel associated with the next hop. </p> * <blockquote> * <p>This parameter is returned only if the VPN gateway supports the dual-tunnel mode.</p> * </blockquote> * * <strong>example:</strong> * <p>tun-36cfgpwjn58axj****</p> */ public Builder nextHopTunnelId(String nextHopTunnelId) { this.nextHopTunnelId = nextHopTunnelId; return this; } /** * <p>The destination CIDR block of the route entry.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.routeDest = routeDest; return this; } /** * <p>The type of the route entry. Valid values:</p> * <ul> * <li><strong>Custom</strong>: custom</li> * <li><strong>System</strong>: system</li> * </ul> * * <strong>example:</strong> * <p>System</p> */ public Builder routeEntryType(String routeEntryType) { this.routeEntryType = routeEntryType; return this; } /** * <p>The source of the BGP route. Valid values:</p> * <ul> * <li><strong>CLOUD</strong>: advertised from a cloud service associated with the VPN gateway.</li> * <li><strong>VPN_BGP</strong>: indicates that the current route is learned by using BGP of the VPN gateway. For example, the BGP is used to learn the route of the on-premises data center.</li> * </ul> * * <strong>example:</strong> * <p>192.168.10.0/24</p> */ public Builder source(String source) { this.source = source; return this; } /** * <p>The status of the route entry. Valid values:</p> * <ul> * <li><strong>published</strong>: advertised</li> * <li><strong>normal</strong>: not advertised</li> * </ul> * * <strong>example:</strong> * <p>normal</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1cmw7jh1nfe43m9****</p> */ public Builder vpnInstanceId(String vpnInstanceId) { this.vpnInstanceId = vpnInstanceId; return this; } /** * <p>The weight of the route entry. Valid values: <strong>0</strong> and <strong>100</strong>.</p> * <ul> * <li><strong>0</strong>: a low priority</li> * <li><strong>100</strong>: a high priority</li> * </ul> * * <strong>example:</strong> * <p>100</p> */ public Builder weight(Integer weight) { this.weight = weight; return this; } public VpnRouteEntry build() { return new VpnRouteEntry(this); } } } /** * * {@link DescribeVpnRouteEntriesResponseBody} extends {@link TeaModel} * * <p>DescribeVpnRouteEntriesResponseBody</p> */ public static class VpnRouteEntries extends TeaModel { @com.aliyun.core.annotation.NameInMap("VpnRouteEntry") private java.util.List<VpnRouteEntry> vpnRouteEntry; private VpnRouteEntries(Builder builder) { this.vpnRouteEntry = builder.vpnRouteEntry; } public static Builder builder() { return new Builder(); } public static VpnRouteEntries create() { return builder().build(); } /** * @return vpnRouteEntry */ public java.util.List<VpnRouteEntry> getVpnRouteEntry() { return this.vpnRouteEntry; } public static final class Builder { private java.util.List<VpnRouteEntry> vpnRouteEntry; private Builder() { } private Builder(VpnRouteEntries model) { this.vpnRouteEntry = model.vpnRouteEntry; } /** * VpnRouteEntry. */ public Builder vpnRouteEntry(java.util.List<VpnRouteEntry> vpnRouteEntry) { this.vpnRouteEntry = vpnRouteEntry; return this; } public VpnRouteEntries build() { return new VpnRouteEntries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnSslServerLogsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnSslServerLogsRequest} extends {@link RequestModel} * * <p>DescribeVpnSslServerLogsRequest</p> */ public class DescribeVpnSslServerLogsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("From") private Integer from; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MinutePeriod") private Integer minutePeriod; @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("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") private String sslVpnClientCertId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("To") private Integer to; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnSslServerId") @com.aliyun.core.annotation.Validation(required = true) private String vpnSslServerId; private DescribeVpnSslServerLogsRequest(Builder builder) { super(builder); this.from = builder.from; this.minutePeriod = builder.minutePeriod; 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.sslVpnClientCertId = builder.sslVpnClientCertId; this.to = builder.to; this.vpnSslServerId = builder.vpnSslServerId; } public static Builder builder() { return new Builder(); } public static DescribeVpnSslServerLogsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public Integer getFrom() { return this.from; } /** * @return minutePeriod */ public Integer getMinutePeriod() { return this.minutePeriod; } /** * @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 sslVpnClientCertId */ public String getSslVpnClientCertId() { return this.sslVpnClientCertId; } /** * @return to */ public Integer getTo() { return this.to; } /** * @return vpnSslServerId */ public String getVpnSslServerId() { return this.vpnSslServerId; } public static final class Builder extends Request.Builder<DescribeVpnSslServerLogsRequest, Builder> { private Integer from; private Integer minutePeriod; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String sslVpnClientCertId; private Integer to; private String vpnSslServerId; private Builder() { super(); } private Builder(DescribeVpnSslServerLogsRequest request) { super(request); this.from = request.from; this.minutePeriod = request.minutePeriod; 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.sslVpnClientCertId = request.sslVpnClientCertId; this.to = request.to; this.vpnSslServerId = request.vpnSslServerId; } /** * <p>The beginning of the time range to query. The value must be a unix timestamp. For example, 1600738962 specifies 09:42:42 (UTC+8) on September 22, 2020.</p> * <blockquote> * <p> If you specify <strong>From</strong>, you must also specify <strong>To</strong> or <strong>MinutePeriod</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1600738962</p> */ public Builder from(Integer from) { this.putQueryParameter("From", from); this.from = from; return this; } /** * <p>The interval at which log data is queried. Unit: minutes.</p> * <blockquote> * <p> If both <strong>From</strong> and <strong>To</strong> are not specified, you must specify <strong>MinutePeriod</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder minutePeriod(Integer minutePeriod) { this.putQueryParameter("MinutePeriod", minutePeriod); this.minutePeriod = minutePeriod; 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 number of the page to return. 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 to return on each 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 SSL server 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 ID of the SSL client certificate.</p> * * <strong>example:</strong> * <p>vsc-m5euof6s5jy8vs5kd****</p> */ public Builder sslVpnClientCertId(String sslVpnClientCertId) { this.putQueryParameter("SslVpnClientCertId", sslVpnClientCertId); this.sslVpnClientCertId = sslVpnClientCertId; return this; } /** * <p>The end of the time range to query. The value must be a unix timestamp. For example, 1600738962 specifies 09:42:42 (UTC+8) on September 22, 2020.</p> * <blockquote> * <p> If you specify <strong>To</strong>, you must also specify <strong>From</strong> or <strong>MinutePeriod</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1600738962</p> */ public Builder to(Integer to) { this.putQueryParameter("To", to); this.to = to; return this; } /** * <p>The ID of the SSL server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vss-bp155e9yclsg1xgq4****</p> */ public Builder vpnSslServerId(String vpnSslServerId) { this.putQueryParameter("VpnSslServerId", vpnSslServerId); this.vpnSslServerId = vpnSslServerId; return this; } @Override public DescribeVpnSslServerLogsRequest build() { return new DescribeVpnSslServerLogsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnSslServerLogsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnSslServerLogsResponse} extends {@link TeaModel} * * <p>DescribeVpnSslServerLogsResponse</p> */ public class DescribeVpnSslServerLogsResponse 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 DescribeVpnSslServerLogsResponseBody body; private DescribeVpnSslServerLogsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeVpnSslServerLogsResponse 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 DescribeVpnSslServerLogsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeVpnSslServerLogsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeVpnSslServerLogsResponseBody body); @Override DescribeVpnSslServerLogsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeVpnSslServerLogsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeVpnSslServerLogsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeVpnSslServerLogsResponse 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(DescribeVpnSslServerLogsResponseBody body) { this.body = body; return this; } @Override public DescribeVpnSslServerLogsResponse build() { return new DescribeVpnSslServerLogsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeVpnSslServerLogsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeVpnSslServerLogsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnSslServerLogsResponseBody</p> */ public class DescribeVpnSslServerLogsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("IsCompleted") private Boolean isCompleted; @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; private DescribeVpnSslServerLogsResponseBody(Builder builder) { this.count = builder.count; this.data = builder.data; this.isCompleted = builder.isCompleted; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeVpnSslServerLogsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return data */ public Data getData() { return this.data; } /** * @return isCompleted */ public Boolean getIsCompleted() { return this.isCompleted; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Integer count; private Data data; private Boolean isCompleted; private Integer pageNumber; private Integer pageSize; private String requestId; private Builder() { } private Builder(DescribeVpnSslServerLogsResponseBody model) { this.count = model.count; this.data = model.data; this.isCompleted = model.isCompleted; this.pageNumber = model.pageNumber; this.pageSize = model.pageSize; this.requestId = model.requestId; } /** * <p>The number of log entries.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>Log information list.</p> */ public Builder data(Data data) { this.data = data; return this; } /** * <p>Indicates whether the log is accurate. Valid values:</p> * <ul> * <li><strong>true</strong>: accurate</li> * <li><strong>false</strong>: inaccurate</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isCompleted(Boolean isCompleted) { this.isCompleted = isCompleted; return this; } /** * <p>The page number of the returned page.</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 ID of the request.</p> * * <strong>example:</strong> * <p>DEDAC5B1-9292-5BF7-BDDF-61BA58CFB2FB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeVpnSslServerLogsResponseBody build() { return new DescribeVpnSslServerLogsResponseBody(this); } } /** * * {@link DescribeVpnSslServerLogsResponseBody} extends {@link TeaModel} * * <p>DescribeVpnSslServerLogsResponseBody</p> */ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Logs") private java.util.List<String> logs; private Data(Builder builder) { this.logs = builder.logs; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return logs */ public java.util.List<String> getLogs() { return this.logs; } public static final class Builder { private java.util.List<String> logs; private Builder() { } private Builder(Data model) { this.logs = model.logs; } /** * Logs. */ public Builder logs(java.util.List<String> logs) { this.logs = logs; return this; } public Data build() { return new Data(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeZonesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeZonesRequest} extends {@link RequestModel} * * <p>DescribeZonesRequest</p> */ public class DescribeZonesRequest 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("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("ZoneType") private String zoneType; private DescribeZonesRequest(Builder builder) { super(builder); this.acceptLanguage = builder.acceptLanguage; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.zoneType = builder.zoneType; } public static Builder builder() { return new Builder(); } public static DescribeZonesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return acceptLanguage */ public String getAcceptLanguage() { return this.acceptLanguage; } /** * @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 zoneType */ public String getZoneType() { return this.zoneType; } public static final class Builder extends Request.Builder<DescribeZonesRequest, Builder> { private String acceptLanguage; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String zoneType; private Builder() { super(); } private Builder(DescribeZonesRequest request) { super(request); this.acceptLanguage = request.acceptLanguage; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.zoneType = request.zoneType; } /** * <p>The language used in the <strong>LocalName</strong> parameter. Valid values:</p> * <ul> * <li><strong>zh-cn</strong>: Chinese</li> * <li><strong>en-us</strong>: English</li> * <li><strong>ja</strong>: Japanese</li> * </ul> * * <strong>example:</strong> * <p>zh-cn</p> */ public Builder acceptLanguage(String acceptLanguage) { this.putQueryParameter("AcceptLanguage", acceptLanguage); this.acceptLanguage = acceptLanguage; 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 zone. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The zone type. Default value: <strong>AvailabilityZone</strong>.</p> * * <strong>example:</strong> * <p>AvailabilityZone</p> */ public Builder zoneType(String zoneType) { this.putQueryParameter("ZoneType", zoneType); this.zoneType = zoneType; return this; } @Override public DescribeZonesRequest build() { return new DescribeZonesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DescribeZonesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link DescribeZonesResponse} extends {@link TeaModel} * * <p>DescribeZonesResponse</p> */ public class DescribeZonesResponse 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 DescribeZonesResponseBody body; private DescribeZonesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeZonesResponse 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 DescribeZonesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<DescribeZonesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(DescribeZonesResponseBody body); @Override DescribeZonesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<DescribeZonesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private DescribeZonesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(DescribeZonesResponse 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(DescribeZonesResponseBody body) { this.body = body; return this; } @Override public DescribeZonesResponse build() { return new DescribeZonesResponse(this); } } }