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/ListGeographicSubRegionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListGeographicSubRegionsRequest} extends {@link RequestModel} * * <p>ListGeographicSubRegionsRequest</p> */ public class ListGeographicSubRegionsRequest extends Request { private ListGeographicSubRegionsRequest(Builder builder) { super(builder); } public static Builder builder() { return new Builder(); } public static ListGeographicSubRegionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } public static final class Builder extends Request.Builder<ListGeographicSubRegionsRequest, Builder> { private Builder() { super(); } private Builder(ListGeographicSubRegionsRequest request) { super(request); } @Override public ListGeographicSubRegionsRequest build() { return new ListGeographicSubRegionsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListGeographicSubRegionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListGeographicSubRegionsResponse} extends {@link TeaModel} * * <p>ListGeographicSubRegionsResponse</p> */ public class ListGeographicSubRegionsResponse 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 ListGeographicSubRegionsResponseBody body; private ListGeographicSubRegionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListGeographicSubRegionsResponse 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 ListGeographicSubRegionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListGeographicSubRegionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListGeographicSubRegionsResponseBody body); @Override ListGeographicSubRegionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListGeographicSubRegionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListGeographicSubRegionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListGeographicSubRegionsResponse 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(ListGeographicSubRegionsResponseBody body) { this.body = body; return this; } @Override public ListGeographicSubRegionsResponse build() { return new ListGeographicSubRegionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListGeographicSubRegionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListGeographicSubRegionsResponseBody} extends {@link TeaModel} * * <p>ListGeographicSubRegionsResponseBody</p> */ public class ListGeographicSubRegionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Long count; @com.aliyun.core.annotation.NameInMap("GeographicSubRegions") private java.util.List<String> geographicSubRegions; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ListGeographicSubRegionsResponseBody(Builder builder) { this.count = builder.count; this.geographicSubRegions = builder.geographicSubRegions; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ListGeographicSubRegionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Long getCount() { return this.count; } /** * @return geographicSubRegions */ public java.util.List<String> getGeographicSubRegions() { return this.geographicSubRegions; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Long count; private java.util.List<String> geographicSubRegions; private String requestId; private Builder() { } private Builder(ListGeographicSubRegionsResponseBody model) { this.count = model.count; this.geographicSubRegions = model.geographicSubRegions; this.requestId = model.requestId; } /** * <p>The number of entries.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder count(Long count) { this.count = count; return this; } /** * <p>The region list.</p> */ public Builder geographicSubRegions(java.util.List<String> geographicSubRegions) { this.geographicSubRegions = geographicSubRegions; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ListGeographicSubRegionsResponseBody build() { return new ListGeographicSubRegionsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpsecServerLogsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpsecServerLogsRequest} extends {@link RequestModel} * * <p>ListIpsecServerLogsRequest</p> */ public class ListIpsecServerLogsRequest 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("IpsecServerId") @com.aliyun.core.annotation.Validation(required = true) private String ipsecServerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MinutePeriod") private Integer minutePeriod; @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("To") private Integer to; private ListIpsecServerLogsRequest(Builder builder) { super(builder); this.from = builder.from; this.ipsecServerId = builder.ipsecServerId; this.minutePeriod = builder.minutePeriod; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.to = builder.to; } public static Builder builder() { return new Builder(); } public static ListIpsecServerLogsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return from */ public Integer getFrom() { return this.from; } /** * @return ipsecServerId */ public String getIpsecServerId() { return this.ipsecServerId; } /** * @return minutePeriod */ public Integer getMinutePeriod() { return this.minutePeriod; } /** * @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 to */ public Integer getTo() { return this.to; } public static final class Builder extends Request.Builder<ListIpsecServerLogsRequest, Builder> { private Integer from; private String ipsecServerId; private Integer minutePeriod; private Integer pageNumber; private Integer pageSize; private String regionId; private Integer to; private Builder() { super(); } private Builder(ListIpsecServerLogsRequest request) { super(request); this.from = request.from; this.ipsecServerId = request.ipsecServerId; this.minutePeriod = request.minutePeriod; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.to = request.to; } /** * <p>The beginning of the time range to query. The value must be a UNIX timestamp. For example, 1671003744 specifies 15:42:24 (UTC+8) on December 14, 2022.</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>1671003744</p> */ public Builder from(Integer from) { this.putQueryParameter("From", from); this.from = from; return this; } /** * <p>The ID of the IPsec server.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>iss-2zei2n5q5zhirfh73****</p> */ public Builder ipsecServerId(String ipsecServerId) { this.putQueryParameter("IpsecServerId", ipsecServerId); this.ipsecServerId = ipsecServerId; return this; } /** * <p>The interval at which log data is queried. Valid values: <strong>1</strong> to <strong>10</strong>. 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; } /** * <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. 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 ID of the region where the IPsec server is created.</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 end of the time range to query. The value must be a unix timestamp. For example, 1671004344 specifies 15:52:24 (UTC+8) on December 14, 2022.</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>1671004344</p> */ public Builder to(Integer to) { this.putQueryParameter("To", to); this.to = to; return this; } @Override public ListIpsecServerLogsRequest build() { return new ListIpsecServerLogsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpsecServerLogsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpsecServerLogsResponse} extends {@link TeaModel} * * <p>ListIpsecServerLogsResponse</p> */ public class ListIpsecServerLogsResponse 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 ListIpsecServerLogsResponseBody body; private ListIpsecServerLogsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpsecServerLogsResponse 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 ListIpsecServerLogsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpsecServerLogsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpsecServerLogsResponseBody body); @Override ListIpsecServerLogsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpsecServerLogsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpsecServerLogsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpsecServerLogsResponse 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(ListIpsecServerLogsResponseBody body) { this.body = body; return this; } @Override public ListIpsecServerLogsResponse build() { return new ListIpsecServerLogsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpsecServerLogsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpsecServerLogsResponseBody} extends {@link TeaModel} * * <p>ListIpsecServerLogsResponseBody</p> */ public class ListIpsecServerLogsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("Data") private java.util.List<String> 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 ListIpsecServerLogsResponseBody(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 ListIpsecServerLogsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return data */ public java.util.List<String> 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 java.util.List<String> data; private Boolean isCompleted; private Integer pageNumber; private Integer pageSize; private String requestId; private Builder() { } private Builder(ListIpsecServerLogsResponseBody 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>Log information list.</p> */ public Builder data(java.util.List<String> 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 ListIpsecServerLogsResponseBody build() { return new ListIpsecServerLogsResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpsecServersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpsecServersRequest} extends {@link RequestModel} * * <p>ListIpsecServersRequest</p> */ public class ListIpsecServersRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpsecServerId") @com.aliyun.core.annotation.Validation(maxLength = 128) private java.util.List<String> ipsecServerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpsecServerName") private String ipsecServerName; @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("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("VpnGatewayId") private String vpnGatewayId; private ListIpsecServersRequest(Builder builder) { super(builder); this.ipsecServerId = builder.ipsecServerId; this.ipsecServerName = builder.ipsecServerName; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ListIpsecServersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipsecServerId */ public java.util.List<String> getIpsecServerId() { return this.ipsecServerId; } /** * @return ipsecServerName */ public String getIpsecServerName() { return this.ipsecServerName; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<ListIpsecServersRequest, Builder> { private java.util.List<String> ipsecServerId; private String ipsecServerName; private Integer maxResults; private String nextToken; private String regionId; private String resourceGroupId; private String vpnGatewayId; private Builder() { super(); } private Builder(ListIpsecServersRequest request) { super(request); this.ipsecServerId = request.ipsecServerId; this.ipsecServerName = request.ipsecServerName; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The ID of the IPsec server.</p> * * <strong>example:</strong> * <p>iss-bp1bo3xuvcxo7ixll****</p> */ public Builder ipsecServerId(java.util.List<String> ipsecServerId) { this.putQueryParameter("IpsecServerId", ipsecServerId); this.ipsecServerId = ipsecServerId; return this; } /** * <p>The name of the IPsec server.</p> * <p>The name must be 1 to 100 characters in length.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipsecServerName(String ipsecServerName) { this.putQueryParameter("IpsecServerName", ipsecServerName); this.ipsecServerName = ipsecServerName; return this; } /** * <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>20</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If this is your first request and no next requests are to be performed, you do not need to specify this parameter.</li> * <li>You must specify the token that is obtained from the previous query as the value of <strong>NextToken</strong>.</li> * </ul> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0a****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the region where the IPsec server 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 server belongs.</p> * <p>The IPsec server and its associated VPN gateway belong to the same resource group. You can call <a href="https://help.aliyun.com/document_detail/2794055.html">DescribeVpnGateway</a> 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; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm2ogj****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public ListIpsecServersRequest build() { return new ListIpsecServersRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpsecServersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpsecServersResponse} extends {@link TeaModel} * * <p>ListIpsecServersResponse</p> */ public class ListIpsecServersResponse 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 ListIpsecServersResponseBody body; private ListIpsecServersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpsecServersResponse 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 ListIpsecServersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpsecServersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpsecServersResponseBody body); @Override ListIpsecServersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpsecServersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpsecServersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpsecServersResponse 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(ListIpsecServersResponseBody body) { this.body = body; return this; } @Override public ListIpsecServersResponse build() { return new ListIpsecServersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpsecServersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpsecServersResponseBody} extends {@link TeaModel} * * <p>ListIpsecServersResponseBody</p> */ public class ListIpsecServersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecServers") private java.util.List<IpsecServers> ipsecServers; @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @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 Integer totalCount; private ListIpsecServersResponseBody(Builder builder) { this.ipsecServers = builder.ipsecServers; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpsecServersResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipsecServers */ public java.util.List<IpsecServers> getIpsecServers() { return this.ipsecServers; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @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<IpsecServers> ipsecServers; private Integer maxResults; private String nextToken; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListIpsecServersResponseBody model) { this.ipsecServers = model.ipsecServers; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The list of IPsec servers.</p> */ public Builder ipsecServers(java.util.List<IpsecServers> ipsecServers) { this.ipsecServers = ipsecServers; return this; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If no value is returned for <strong>NextToken</strong>, no next queries are sent.</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>caeba0bbb2be03f84eb48b699f0a****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>54B48E3D-DF70-471B-AA93-08E683A1B457</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListIpsecServersResponseBody build() { return new ListIpsecServersResponseBody(this); } } /** * * {@link ListIpsecServersResponseBody} extends {@link TeaModel} * * <p>ListIpsecServersResponseBody</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("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.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 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 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.remoteId = model.remoteId; } /** * <p>The IKE authentication algorithm.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The IKE encryption algorithm.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The IKE lifetime. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode. Valid values:</p> * <p><strong>main</strong>: This mode offers higher security during negotiations.</p> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman key exchange algorithm.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The IKE version.</p> * * <strong>example:</strong> * <p>ikev2</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The ID of the IPsec server. The default value is the public IP address of the VPN gateway. Both FQDNs and IP addresses are supported.</p> * * <strong>example:</strong> * <p>116.64.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The identifier of the customer gateway. Both fully qualified domain names (FQDNs) and IP addresses are supported. By default, this parameter is empty.</p> * * <strong>example:</strong> * <p>139.67.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public IkeConfig build() { return new IkeConfig(this); } } } /** * * {@link ListIpsecServersResponseBody} extends {@link TeaModel} * * <p>ListIpsecServersResponseBody</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 IPsec authentication algorithm.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The IPsec encryption algorithm.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The IPsec lifetime. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Long ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The Diffie-Hellman key exchange algorithm.</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 ListIpsecServersResponseBody} extends {@link TeaModel} * * <p>ListIpsecServersResponseBody</p> */ public static class IpsecServers extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClientIpPool") private String clientIpPool; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.NameInMap("IDaaSInstanceId") private String iDaaSInstanceId; @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("IpsecServerId") private String ipsecServerId; @com.aliyun.core.annotation.NameInMap("IpsecServerName") private String ipsecServerName; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("MaxConnections") private Integer maxConnections; @com.aliyun.core.annotation.NameInMap("MultiFactorAuthEnabled") private Boolean multiFactorAuthEnabled; @com.aliyun.core.annotation.NameInMap("OnlineClientCount") private Integer onlineClientCount; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("PskEnabled") private Boolean pskEnabled; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private IpsecServers(Builder builder) { this.clientIpPool = builder.clientIpPool; this.creationTime = builder.creationTime; this.effectImmediately = builder.effectImmediately; this.iDaaSInstanceId = builder.iDaaSInstanceId; this.ikeConfig = builder.ikeConfig; this.internetIp = builder.internetIp; this.ipsecConfig = builder.ipsecConfig; this.ipsecServerId = builder.ipsecServerId; this.ipsecServerName = builder.ipsecServerName; this.localSubnet = builder.localSubnet; this.maxConnections = builder.maxConnections; this.multiFactorAuthEnabled = builder.multiFactorAuthEnabled; this.onlineClientCount = builder.onlineClientCount; this.psk = builder.psk; this.pskEnabled = builder.pskEnabled; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static IpsecServers create() { return builder().build(); } /** * @return clientIpPool */ public String getClientIpPool() { return this.clientIpPool; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return iDaaSInstanceId */ public String getIDaaSInstanceId() { return this.iDaaSInstanceId; } /** * @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 ipsecServerId */ public String getIpsecServerId() { return this.ipsecServerId; } /** * @return ipsecServerName */ public String getIpsecServerName() { return this.ipsecServerName; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return maxConnections */ public Integer getMaxConnections() { return this.maxConnections; } /** * @return multiFactorAuthEnabled */ public Boolean getMultiFactorAuthEnabled() { return this.multiFactorAuthEnabled; } /** * @return onlineClientCount */ public Integer getOnlineClientCount() { return this.onlineClientCount; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return pskEnabled */ public Boolean getPskEnabled() { return this.pskEnabled; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String clientIpPool; private String creationTime; private Boolean effectImmediately; private String iDaaSInstanceId; private IkeConfig ikeConfig; private String internetIp; private IpsecConfig ipsecConfig; private String ipsecServerId; private String ipsecServerName; private String localSubnet; private Integer maxConnections; private Boolean multiFactorAuthEnabled; private Integer onlineClientCount; private String psk; private Boolean pskEnabled; private String regionId; private String resourceGroupId; private String vpnGatewayId; private Builder() { } private Builder(IpsecServers model) { this.clientIpPool = model.clientIpPool; this.creationTime = model.creationTime; this.effectImmediately = model.effectImmediately; this.iDaaSInstanceId = model.iDaaSInstanceId; this.ikeConfig = model.ikeConfig; this.internetIp = model.internetIp; this.ipsecConfig = model.ipsecConfig; this.ipsecServerId = model.ipsecServerId; this.ipsecServerName = model.ipsecServerName; this.localSubnet = model.localSubnet; this.maxConnections = model.maxConnections; this.multiFactorAuthEnabled = model.multiFactorAuthEnabled; this.onlineClientCount = model.onlineClientCount; this.psk = model.psk; this.pskEnabled = model.pskEnabled; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The client CIDR block. It refers to the CIDR block that is allocated to the virtual interface of the client.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder clientIpPool(String clientIpPool) { this.clientIpPool = clientIpPool; return this; } /** * <p>The time when the IPsec server was created.</p> * <p>T is used as a delimiter. Z indicates that the time is in UTC.</p> * * <strong>example:</strong> * <p>2018-12-03T10:11:55Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>Indicates whether the current IPsec tunnel is deleted and negotiations are reinitiated. Valid values:</p> * <ul> * <li><strong>true</strong>: immediately initiates negotiations after the configuration is completed.</li> * <li><strong>false</strong>: initiates negotiations when inbound traffic is detected.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.effectImmediately = effectImmediately; return this; } /** * <p>The ID of the IDaaS instance.</p> * * <strong>example:</strong> * <p>idaas-cn-hangzhou-****</p> */ public Builder iDaaSInstanceId(String iDaaSInstanceId) { this.iDaaSInstanceId = iDaaSInstanceId; return this; } /** * <p>The configurations of Phase 1 negotiations.</p> */ public Builder ikeConfig(IkeConfig ikeConfig) { this.ikeConfig = ikeConfig; return this; } /** * <p>The public IP address of the VPN gateway.</p> * * <strong>example:</strong> * <p>47.22.XX.XX</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 IPsec server ID.</p> * * <strong>example:</strong> * <p>iss-bp1bo3xuvcxo7ixll****</p> */ public Builder ipsecServerId(String ipsecServerId) { this.ipsecServerId = ipsecServerId; return this; } /** * <p>The name of the IPsec server.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipsecServerName(String ipsecServerName) { this.ipsecServerName = ipsecServerName; return this; } /** * <p>The local CIDR blocks, which refer to the CIDR blocks on the virtual private cloud (VPC) side.</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 number of SSL-VPN connections supported by the VPN gateway.</p> * <blockquote> * <p> The number of SSL-VPN connections specified in this parameter includes both SSL-VPN and IPsec-VPN connections. For example, you have five SSL-VPN connections and three SSL clients occupy three SSL-VPN connections. In this case, two clients can connect to the IPsec server.</p> * </blockquote> * * <strong>example:</strong> * <p>5</p> */ public Builder maxConnections(Integer maxConnections) { this.maxConnections = maxConnections; return this; } /** * <p>Indicates whether two-factor authentication is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong>: The feature is disabled.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder multiFactorAuthEnabled(Boolean multiFactorAuthEnabled) { this.multiFactorAuthEnabled = multiFactorAuthEnabled; return this; } /** * <p>The number of clients that are connected to the IPsec server.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder onlineClientCount(Integer onlineClientCount) { this.onlineClientCount = onlineClientCount; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>pgw6dy7d****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>Indicates whether pre-shared key authentication is enabled. Only <strong>true</strong> may be returned, which indicates that pre-shared key authentication is enabled.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder pskEnabled(Boolean pskEnabled) { this.pskEnabled = pskEnabled; return this; } /** * <p>The ID of the region where the IPsec server is created.</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 IPsec server 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 ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm2ogj****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public IpsecServers build() { return new IpsecServers(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpv4GatewaysRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpv4GatewaysRequest} extends {@link RequestModel} * * <p>ListIpv4GatewaysRequest</p> */ public class ListIpv4GatewaysRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv4GatewayId") private String ipv4GatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Ipv4GatewayName") private String ipv4GatewayName; @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private ListIpv4GatewaysRequest(Builder builder) { super(builder); this.ipv4GatewayId = builder.ipv4GatewayId; this.ipv4GatewayName = builder.ipv4GatewayName; 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; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static ListIpv4GatewaysRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipv4GatewayId */ public String getIpv4GatewayId() { return this.ipv4GatewayId; } /** * @return ipv4GatewayName */ public String getIpv4GatewayName() { return this.ipv4GatewayName; } /** * @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; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder extends Request.Builder<ListIpv4GatewaysRequest, Builder> { private String ipv4GatewayId; private String ipv4GatewayName; 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 String vpcId; private Builder() { super(); } private Builder(ListIpv4GatewaysRequest request) { super(request); this.ipv4GatewayId = request.ipv4GatewayId; this.ipv4GatewayName = request.ipv4GatewayName; 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; this.vpcId = request.vpcId; } /** * <p>The ID of the IPv4 gateway.</p> * * <strong>example:</strong> * <p>ipv4gw-5tsnc6s4ogsedtp3k****</p> */ public Builder ipv4GatewayId(String ipv4GatewayId) { this.putQueryParameter("Ipv4GatewayId", ipv4GatewayId); this.ipv4GatewayId = ipv4GatewayId; return this; } /** * <p>The name of the IPv4 gateway.</p> * <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder ipv4GatewayName(String ipv4GatewayName) { this.putQueryParameter("Ipv4GatewayName", ipv4GatewayName); this.ipv4GatewayName = ipv4GatewayName; return this; } /** * <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If this is your first query and no next queries are to be sent, ignore this parameter.</li> * <li>If a next query is to be sent, set the value 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 where the IPv4 gateways to be queried are 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>ap-southeast-6</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the IPv4 gateway 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 tags of the resource.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The ID of the virtual private cloud (VPC) with which the IPv4 gateway is associated.</p> * * <strong>example:</strong> * <p>vpc-5tsrxlw7dv074gci4****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public ListIpv4GatewaysRequest build() { return new ListIpv4GatewaysRequest(this); } } /** * * {@link ListIpv4GatewaysRequest} extends {@link TeaModel} * * <p>ListIpv4GatewaysRequest</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 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 tag value. You can specify at most 20 tag values. It can be an empty string.</p> * <p>The tag value cannot exceed 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public 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/ListIpv4GatewaysResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpv4GatewaysResponse} extends {@link TeaModel} * * <p>ListIpv4GatewaysResponse</p> */ public class ListIpv4GatewaysResponse 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 ListIpv4GatewaysResponseBody body; private ListIpv4GatewaysResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListIpv4GatewaysResponse 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 ListIpv4GatewaysResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListIpv4GatewaysResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListIpv4GatewaysResponseBody body); @Override ListIpv4GatewaysResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListIpv4GatewaysResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListIpv4GatewaysResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListIpv4GatewaysResponse 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(ListIpv4GatewaysResponseBody body) { this.body = body; return this; } @Override public ListIpv4GatewaysResponse build() { return new ListIpv4GatewaysResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListIpv4GatewaysResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListIpv4GatewaysResponseBody} extends {@link TeaModel} * * <p>ListIpv4GatewaysResponseBody</p> */ public class ListIpv4GatewaysResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv4GatewayModels") private java.util.List<Ipv4GatewayModels> ipv4GatewayModels; @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 ListIpv4GatewaysResponseBody(Builder builder) { this.ipv4GatewayModels = builder.ipv4GatewayModels; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListIpv4GatewaysResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return ipv4GatewayModels */ public java.util.List<Ipv4GatewayModels> getIpv4GatewayModels() { return this.ipv4GatewayModels; } /** * @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<Ipv4GatewayModels> ipv4GatewayModels; private String nextToken; private String requestId; private String totalCount; private Builder() { } private Builder(ListIpv4GatewaysResponseBody model) { this.ipv4GatewayModels = model.ipv4GatewayModels; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The list of IPv4 gateways.</p> */ public Builder ipv4GatewayModels(java.util.List<Ipv4GatewayModels> ipv4GatewayModels) { this.ipv4GatewayModels = ipv4GatewayModels; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If no value is returned for <strong>NextToken</strong>, no next queries are 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>2D265800-E306-529C-8418-84B0A1D201DB</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(String totalCount) { this.totalCount = totalCount; return this; } public ListIpv4GatewaysResponseBody build() { return new ListIpv4GatewaysResponseBody(this); } } /** * * {@link ListIpv4GatewaysResponseBody} extends {@link TeaModel} * * <p>ListIpv4GatewaysResponseBody</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.</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 Tags build() { return new Tags(this); } } } /** * * {@link ListIpv4GatewaysResponseBody} extends {@link TeaModel} * * <p>ListIpv4GatewaysResponseBody</p> */ public static class Ipv4GatewayModels extends TeaModel { @com.aliyun.core.annotation.NameInMap("Enabled") private Boolean enabled; @com.aliyun.core.annotation.NameInMap("GmtCreate") private String gmtCreate; @com.aliyun.core.annotation.NameInMap("Ipv4GatewayDescription") private String ipv4GatewayDescription; @com.aliyun.core.annotation.NameInMap("Ipv4GatewayId") private String ipv4GatewayId; @com.aliyun.core.annotation.NameInMap("Ipv4GatewayName") private String ipv4GatewayName; @com.aliyun.core.annotation.NameInMap("Ipv4GatewayRouteTableId") private String ipv4GatewayRouteTableId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private Ipv4GatewayModels(Builder builder) { this.enabled = builder.enabled; this.gmtCreate = builder.gmtCreate; this.ipv4GatewayDescription = builder.ipv4GatewayDescription; this.ipv4GatewayId = builder.ipv4GatewayId; this.ipv4GatewayName = builder.ipv4GatewayName; this.ipv4GatewayRouteTableId = builder.ipv4GatewayRouteTableId; this.resourceGroupId = builder.resourceGroupId; this.status = builder.status; this.tags = builder.tags; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static Ipv4GatewayModels create() { return builder().build(); } /** * @return enabled */ public Boolean getEnabled() { return this.enabled; } /** * @return gmtCreate */ public String getGmtCreate() { return this.gmtCreate; } /** * @return ipv4GatewayDescription */ public String getIpv4GatewayDescription() { return this.ipv4GatewayDescription; } /** * @return ipv4GatewayId */ public String getIpv4GatewayId() { return this.ipv4GatewayId; } /** * @return ipv4GatewayName */ public String getIpv4GatewayName() { return this.ipv4GatewayName; } /** * @return ipv4GatewayRouteTableId */ public String getIpv4GatewayRouteTableId() { return this.ipv4GatewayRouteTableId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private Boolean enabled; private String gmtCreate; private String ipv4GatewayDescription; private String ipv4GatewayId; private String ipv4GatewayName; private String ipv4GatewayRouteTableId; private String resourceGroupId; private String status; private java.util.List<Tags> tags; private String vpcId; private Builder() { } private Builder(Ipv4GatewayModels model) { this.enabled = model.enabled; this.gmtCreate = model.gmtCreate; this.ipv4GatewayDescription = model.ipv4GatewayDescription; this.ipv4GatewayId = model.ipv4GatewayId; this.ipv4GatewayName = model.ipv4GatewayName; this.ipv4GatewayRouteTableId = model.ipv4GatewayRouteTableId; this.resourceGroupId = model.resourceGroupId; this.status = model.status; this.tags = model.tags; this.vpcId = model.vpcId; } /** * <p>Indicates whether the IPv4 gateway is activated. Valid values:</p> * <ul> * <li><strong>true</strong>: yes</li> * <li><strong>false</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * <p>The time when the IPv4 gateway was created.</p> * * <strong>example:</strong> * <p>2021-12-02T07:07:35Z</p> */ public Builder gmtCreate(String gmtCreate) { this.gmtCreate = gmtCreate; return this; } /** * <p>The description of the IPv4 gateway.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder ipv4GatewayDescription(String ipv4GatewayDescription) { this.ipv4GatewayDescription = ipv4GatewayDescription; 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 name of the IPv4 gateway.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder ipv4GatewayName(String ipv4GatewayName) { this.ipv4GatewayName = ipv4GatewayName; return this; } /** * <p>The ID of the route table associated with the IPv4 gateway.</p> * * <strong>example:</strong> * <p>vtb-5ts0ohchwkp3dydt2****</p> */ public Builder ipv4GatewayRouteTableId(String ipv4GatewayRouteTableId) { this.ipv4GatewayRouteTableId = ipv4GatewayRouteTableId; return this; } /** * <p>The ID of the resource group to which the IPv4 gateway belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The status of the IPv4 gateway. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The list of tags that are added to the resource group.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The ID of the VPC with which the IPv4 gateways are associated.</p> * * <strong>example:</strong> * <p>vpc-5tsrxlw7dv074gci4****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public Ipv4GatewayModels build() { return new Ipv4GatewayModels(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListNatIpCidrsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListNatIpCidrsRequest} extends {@link RequestModel} * * <p>ListNatIpCidrsRequest</p> */ public class ListNatIpCidrsRequest 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("MaxResults") private String maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String natGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidr") private String natIpCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidrName") private java.util.List<String> natIpCidrName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidrStatus") private String natIpCidrStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidrs") private java.util.List<String> natIpCidrs; @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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ListNatIpCidrsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.maxResults = builder.maxResults; this.natGatewayId = builder.natGatewayId; this.natIpCidr = builder.natIpCidr; this.natIpCidrName = builder.natIpCidrName; this.natIpCidrStatus = builder.natIpCidrStatus; this.natIpCidrs = builder.natIpCidrs; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ListNatIpCidrsRequest 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 maxResults */ public String getMaxResults() { return this.maxResults; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return natIpCidr */ public String getNatIpCidr() { return this.natIpCidr; } /** * @return natIpCidrName */ public java.util.List<String> getNatIpCidrName() { return this.natIpCidrName; } /** * @return natIpCidrStatus */ public String getNatIpCidrStatus() { return this.natIpCidrStatus; } /** * @return natIpCidrs */ public java.util.List<String> getNatIpCidrs() { return this.natIpCidrs; } /** * @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 resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ListNatIpCidrsRequest, Builder> { private String clientToken; private Boolean dryRun; private String maxResults; private String natGatewayId; private String natIpCidr; private java.util.List<String> natIpCidrName; private String natIpCidrStatus; private java.util.List<String> natIpCidrs; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ListNatIpCidrsRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.maxResults = request.maxResults; this.natGatewayId = request.natGatewayId; this.natIpCidr = request.natIpCidr; this.natIpCidrName = request.natIpCidrName; this.natIpCidrStatus = request.natIpCidrStatus; this.natIpCidrs = request.natIpCidrs; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * <blockquote> * <p> If you do not set this parameter, the system automatically uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to only precheck this request. Valid values:</p> * <ul> * <li><strong>true</strong>: checks the API request. The CIDR blocks of the NAT gateway are not queried if the API request passes the precheck. The system checks whether your AccessKey pair is valid, whether the Resource Access Management (RAM) user is authorized, and whether the required parameters are set. If the request fails to pass the precheck, the corresponding error message is returned. If the check succeeds, the DryRunOperation error code is returned.</li> * <li><strong>false</strong>: sends the API request. If the request passes the precheck, 2xx HTTP status code is returned and the CIDR blocks of the NAT gateway are queried. This is the default value.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(String maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The ID of the VPC NAT gateway that you want to query.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ngw-gw8v16wgvtq26vh59****</p> */ public Builder natGatewayId(String natGatewayId) { this.putQueryParameter("NatGatewayId", natGatewayId); this.natGatewayId = natGatewayId; return this; } /** * <p>The CIDR block of the NAT gateway that you want to query.</p> * * <strong>example:</strong> * <p>172.16.0.0/24</p> */ public Builder natIpCidr(String natIpCidr) { this.putQueryParameter("NatIpCidr", natIpCidr); this.natIpCidr = natIpCidr; return this; } /** * <p>The name of the CIDR block that you want to query. Valid values of <strong>N</strong>: <strong>1</strong> to <strong>20</strong>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder natIpCidrName(java.util.List<String> natIpCidrName) { this.putQueryParameter("NatIpCidrName", natIpCidrName); this.natIpCidrName = natIpCidrName; return this; } /** * <p>The status of the CIDR block that you want to query. Set the value to <strong>Available</strong>.</p> * * <strong>example:</strong> * <p>Available</p> */ public Builder natIpCidrStatus(String natIpCidrStatus) { this.putQueryParameter("NatIpCidrStatus", natIpCidrStatus); this.natIpCidrStatus = natIpCidrStatus; return this; } /** * <p>The CIDR block of the NAT gateway that you want to query. Valid values of <strong>N</strong>: <strong>1</strong> to <strong>20</strong>.</p> * * <strong>example:</strong> * <p>172.16.0.0/24</p> */ public Builder natIpCidrs(java.util.List<String> natIpCidrs) { this.putQueryParameter("NatIpCidrs", natIpCidrs); this.natIpCidrs = natIpCidrs; return this; } /** * <p>The token that is used for the next query. Set the value as needed.</p> * <ul> * <li>If this is your first query or no next query is to be sent, ignore this parameter.</li> * <li>If a next query is to be sent, set the value to the value of NextToken that is returned from the last call.</li> * </ul> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0a4883</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 Virtual Private Cloud (VPC) NAT gateway 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>eu-central-1</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ListNatIpCidrsRequest build() { return new ListNatIpCidrsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListNatIpCidrsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListNatIpCidrsResponse} extends {@link TeaModel} * * <p>ListNatIpCidrsResponse</p> */ public class ListNatIpCidrsResponse 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 ListNatIpCidrsResponseBody body; private ListNatIpCidrsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListNatIpCidrsResponse 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 ListNatIpCidrsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListNatIpCidrsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListNatIpCidrsResponseBody body); @Override ListNatIpCidrsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListNatIpCidrsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListNatIpCidrsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListNatIpCidrsResponse 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(ListNatIpCidrsResponseBody body) { this.body = body; return this; } @Override public ListNatIpCidrsResponse build() { return new ListNatIpCidrsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListNatIpCidrsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListNatIpCidrsResponseBody} extends {@link TeaModel} * * <p>ListNatIpCidrsResponseBody</p> */ public class ListNatIpCidrsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NatIpCidrs") private java.util.List<NatIpCidrs> natIpCidrs; @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 ListNatIpCidrsResponseBody(Builder builder) { this.natIpCidrs = builder.natIpCidrs; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListNatIpCidrsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return natIpCidrs */ public java.util.List<NatIpCidrs> getNatIpCidrs() { return this.natIpCidrs; } /** * @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<NatIpCidrs> natIpCidrs; private String nextToken; private String requestId; private String totalCount; private Builder() { } private Builder(ListNatIpCidrsResponseBody model) { this.natIpCidrs = model.natIpCidrs; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The CIDR blocks of the NAT gateway.</p> */ public Builder natIpCidrs(java.util.List<NatIpCidrs> natIpCidrs) { this.natIpCidrs = natIpCidrs; return this; } /** * <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 the value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>caeba0bbb2be03f84eb48b699f0a4883</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>7479A224-4A28-4895-9604-11F48BCE6A88</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of CIDR blocks that are returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } public ListNatIpCidrsResponseBody build() { return new ListNatIpCidrsResponseBody(this); } } /** * * {@link ListNatIpCidrsResponseBody} extends {@link TeaModel} * * <p>ListNatIpCidrsResponseBody</p> */ public static class NatIpCidrs extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("NatGatewayId") private String natGatewayId; @com.aliyun.core.annotation.NameInMap("NatIpCidr") private String natIpCidr; @com.aliyun.core.annotation.NameInMap("NatIpCidrDescription") private String natIpCidrDescription; @com.aliyun.core.annotation.NameInMap("NatIpCidrId") private String natIpCidrId; @com.aliyun.core.annotation.NameInMap("NatIpCidrName") private String natIpCidrName; @com.aliyun.core.annotation.NameInMap("NatIpCidrStatus") private String natIpCidrStatus; private NatIpCidrs(Builder builder) { this.creationTime = builder.creationTime; this.isDefault = builder.isDefault; this.natGatewayId = builder.natGatewayId; this.natIpCidr = builder.natIpCidr; this.natIpCidrDescription = builder.natIpCidrDescription; this.natIpCidrId = builder.natIpCidrId; this.natIpCidrName = builder.natIpCidrName; this.natIpCidrStatus = builder.natIpCidrStatus; } public static Builder builder() { return new Builder(); } public static NatIpCidrs create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return natIpCidr */ public String getNatIpCidr() { return this.natIpCidr; } /** * @return natIpCidrDescription */ public String getNatIpCidrDescription() { return this.natIpCidrDescription; } /** * @return natIpCidrId */ public String getNatIpCidrId() { return this.natIpCidrId; } /** * @return natIpCidrName */ public String getNatIpCidrName() { return this.natIpCidrName; } /** * @return natIpCidrStatus */ public String getNatIpCidrStatus() { return this.natIpCidrStatus; } public static final class Builder { private String creationTime; private Boolean isDefault; private String natGatewayId; private String natIpCidr; private String natIpCidrDescription; private String natIpCidrId; private String natIpCidrName; private String natIpCidrStatus; private Builder() { } private Builder(NatIpCidrs model) { this.creationTime = model.creationTime; this.isDefault = model.isDefault; this.natGatewayId = model.natGatewayId; this.natIpCidr = model.natIpCidr; this.natIpCidrDescription = model.natIpCidrDescription; this.natIpCidrId = model.natIpCidrId; this.natIpCidrName = model.natIpCidrName; this.natIpCidrStatus = model.natIpCidrStatus; } /** * <p>The time when the CIDR block was created.</p> * * <strong>example:</strong> * <p>2021-06-28T20:50Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>Indicates whether the CIDR block is the default CIDR block of the NAT gateway. Valid values:</p> * <ul> * <li><strong>true</strong>: The CIDR block is the default CIDR block of the NAT gateway.</li> * <li><strong>false</strong>: The CIDR block is not the default CIDR block of the NAT gateway.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isDefault(Boolean isDefault) { this.isDefault = isDefault; return this; } /** * <p>The ID of the VPC NAT gateway.</p> * * <strong>example:</strong> * <p>ngw-gw8v16wgvtq26vh59****</p> */ public Builder natGatewayId(String natGatewayId) { this.natGatewayId = natGatewayId; return this; } /** * <p>The CIDR block of the NAT gateway.</p> * * <strong>example:</strong> * <p>172.16.0.0/24</p> */ public Builder natIpCidr(String natIpCidr) { this.natIpCidr = natIpCidr; return this; } /** * <p>The description of the CIDR block of the NAT gateway.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder natIpCidrDescription(String natIpCidrDescription) { this.natIpCidrDescription = natIpCidrDescription; return this; } /** * <p>The ID of the CIDR block of the NAT gateway.</p> * * <strong>example:</strong> * <p>vpcnatcidr-gw8ov42ei6xh1jys2****</p> */ public Builder natIpCidrId(String natIpCidrId) { this.natIpCidrId = natIpCidrId; return this; } /** * <p>The name of the CIDR block of the NAT gateway.</p> * * <strong>example:</strong> * <p>Name</p> */ public Builder natIpCidrName(String natIpCidrName) { this.natIpCidrName = natIpCidrName; return this; } /** * <p>The status of the CIDR block of the NAT gateway. If <strong>Available</strong> is returned, it indicates that the CIDR block is available.</p> * * <strong>example:</strong> * <p>Available</p> */ public Builder natIpCidrStatus(String natIpCidrStatus) { this.natIpCidrStatus = natIpCidrStatus; return this; } public NatIpCidrs build() { return new NatIpCidrs(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListNatIpsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListNatIpsRequest} extends {@link RequestModel} * * <p>ListNatIpsRequest</p> */ public class ListNatIpsRequest 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("MaxResults") private String maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String natGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpCidr") private String natIpCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpIds") private java.util.List<String> natIpIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpName") private java.util.List<String> natIpName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NatIpStatus") private String natIpStatus; @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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ListNatIpsRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.maxResults = builder.maxResults; this.natGatewayId = builder.natGatewayId; this.natIpCidr = builder.natIpCidr; this.natIpIds = builder.natIpIds; this.natIpName = builder.natIpName; this.natIpStatus = builder.natIpStatus; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ListNatIpsRequest 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 maxResults */ public String getMaxResults() { return this.maxResults; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return natIpCidr */ public String getNatIpCidr() { return this.natIpCidr; } /** * @return natIpIds */ public java.util.List<String> getNatIpIds() { return this.natIpIds; } /** * @return natIpName */ public java.util.List<String> getNatIpName() { return this.natIpName; } /** * @return natIpStatus */ public String getNatIpStatus() { return this.natIpStatus; } /** * @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 resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ListNatIpsRequest, Builder> { private String clientToken; private Boolean dryRun; private String maxResults; private String natGatewayId; private String natIpCidr; private java.util.List<String> natIpIds; private java.util.List<String> natIpName; private String natIpStatus; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ListNatIpsRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.maxResults = request.maxResults; this.natGatewayId = request.natGatewayId; this.natIpCidr = request.natIpCidr; this.natIpIds = request.natIpIds; this.natIpName = request.natIpName; this.natIpStatus = request.natIpStatus; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * <blockquote> * <p> If you do not set this parameter, the system automatically uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to only precheck the request. Valid values:</p> * <ul> * <li><strong>true</strong>: checks the API request. IP addresses are not queried. The system checks the required parameters, request syntax, and limits. If the request fails to pass the precheck, the corresponding error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): sends the request. If the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(String maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The ID of the NAT gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ngw-gw8v16wgvtq26vh59****</p> */ public Builder natGatewayId(String natGatewayId) { this.putQueryParameter("NatGatewayId", natGatewayId); this.natGatewayId = natGatewayId; return this; } /** * <p>The CIDR block to which the IP address belongs.</p> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder natIpCidr(String natIpCidr) { this.putQueryParameter("NatIpCidr", natIpCidr); this.natIpCidr = natIpCidr; return this; } /** * <p>The ID of the IP address. Valid values of <strong>N</strong>: <strong>1</strong> to <strong>20</strong>.</p> * * <strong>example:</strong> * <p>vpcnatip-gw8a863sut1zijxh0****</p> */ public Builder natIpIds(java.util.List<String> natIpIds) { this.putQueryParameter("NatIpIds", natIpIds); this.natIpIds = natIpIds; return this; } /** * <p>The name of the IP address. Valid values of <strong>N</strong>: <strong>1</strong> to <strong>20</strong>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder natIpName(java.util.List<String> natIpName) { this.putQueryParameter("NatIpName", natIpName); this.natIpName = natIpName; return this; } /** * <p>The status of the IP address. Valid values:</p> * <ul> * <li><strong>Available</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Creating</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder natIpStatus(String natIpStatus) { this.putQueryParameter("NatIpStatus", natIpStatus); this.natIpStatus = natIpStatus; 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 next query is to be sent, set the value to the value of NextToken that is returned from the last call.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****f84eb48b699f0a4883</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 where the NAT gateway is deployed.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eu-central-1</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ListNatIpsRequest build() { return new ListNatIpsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListNatIpsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListNatIpsResponse} extends {@link TeaModel} * * <p>ListNatIpsResponse</p> */ public class ListNatIpsResponse 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 ListNatIpsResponseBody body; private ListNatIpsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListNatIpsResponse 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 ListNatIpsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListNatIpsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListNatIpsResponseBody body); @Override ListNatIpsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListNatIpsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListNatIpsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListNatIpsResponse 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(ListNatIpsResponseBody body) { this.body = body; return this; } @Override public ListNatIpsResponse build() { return new ListNatIpsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListNatIpsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListNatIpsResponseBody} extends {@link TeaModel} * * <p>ListNatIpsResponseBody</p> */ public class ListNatIpsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NatIps") private java.util.List<NatIps> natIps; @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 ListNatIpsResponseBody(Builder builder) { this.natIps = builder.natIps; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListNatIpsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return natIps */ public java.util.List<NatIps> getNatIps() { return this.natIps; } /** * @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<NatIps> natIps; private String nextToken; private String requestId; private String totalCount; private Builder() { } private Builder(ListNatIpsResponseBody model) { this.natIps = model.natIps; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The list of IP addresses of the NAT gateway.</p> */ public Builder natIps(java.util.List<NatIps> natIps) { this.natIps = natIps; return this; } /** * <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 the value of <strong>NextToken</strong> is returned, the value indicates the token that is used for the next 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>7E78CEEA-BF8F-44D1-9DCD-D9141135B71E</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of IP addresses that are returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } public ListNatIpsResponseBody build() { return new ListNatIpsResponseBody(this); } } /** * * {@link ListNatIpsResponseBody} extends {@link TeaModel} * * <p>ListNatIpsResponseBody</p> */ public static class NatIps extends TeaModel { @com.aliyun.core.annotation.NameInMap("Ipv4Prefix") private String ipv4Prefix; @com.aliyun.core.annotation.NameInMap("IsDefault") private Boolean isDefault; @com.aliyun.core.annotation.NameInMap("NatGatewayId") private String natGatewayId; @com.aliyun.core.annotation.NameInMap("NatIp") private String natIp; @com.aliyun.core.annotation.NameInMap("NatIpCidr") private String natIpCidr; @com.aliyun.core.annotation.NameInMap("NatIpDescription") private String natIpDescription; @com.aliyun.core.annotation.NameInMap("NatIpId") private String natIpId; @com.aliyun.core.annotation.NameInMap("NatIpName") private String natIpName; @com.aliyun.core.annotation.NameInMap("NatIpStatus") private String natIpStatus; private NatIps(Builder builder) { this.ipv4Prefix = builder.ipv4Prefix; this.isDefault = builder.isDefault; this.natGatewayId = builder.natGatewayId; this.natIp = builder.natIp; this.natIpCidr = builder.natIpCidr; this.natIpDescription = builder.natIpDescription; this.natIpId = builder.natIpId; this.natIpName = builder.natIpName; this.natIpStatus = builder.natIpStatus; } public static Builder builder() { return new Builder(); } public static NatIps create() { return builder().build(); } /** * @return ipv4Prefix */ public String getIpv4Prefix() { return this.ipv4Prefix; } /** * @return isDefault */ public Boolean getIsDefault() { return this.isDefault; } /** * @return natGatewayId */ public String getNatGatewayId() { return this.natGatewayId; } /** * @return natIp */ public String getNatIp() { return this.natIp; } /** * @return natIpCidr */ public String getNatIpCidr() { return this.natIpCidr; } /** * @return natIpDescription */ public String getNatIpDescription() { return this.natIpDescription; } /** * @return natIpId */ public String getNatIpId() { return this.natIpId; } /** * @return natIpName */ public String getNatIpName() { return this.natIpName; } /** * @return natIpStatus */ public String getNatIpStatus() { return this.natIpStatus; } public static final class Builder { private String ipv4Prefix; private Boolean isDefault; private String natGatewayId; private String natIp; private String natIpCidr; private String natIpDescription; private String natIpId; private String natIpName; private String natIpStatus; private Builder() { } private Builder(NatIps model) { this.ipv4Prefix = model.ipv4Prefix; this.isDefault = model.isDefault; this.natGatewayId = model.natGatewayId; this.natIp = model.natIp; this.natIpCidr = model.natIpCidr; this.natIpDescription = model.natIpDescription; this.natIpId = model.natIpId; this.natIpName = model.natIpName; this.natIpStatus = model.natIpStatus; } /** * Ipv4Prefix. */ public Builder ipv4Prefix(String ipv4Prefix) { this.ipv4Prefix = ipv4Prefix; return this; } /** * <p>Indicates whether the IP address is the default IP address of the NAT gateway. Valid values:</p> * <ul> * <li><strong>true</strong>: yes</li> * <li><strong>false</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isDefault(Boolean isDefault) { this.isDefault = isDefault; return this; } /** * <p>The ID of the Virtual Private Cloud (VPC) NAT gateway to which the IP address is assigned.</p> * * <strong>example:</strong> * <p>ngw-gw8v16wgvtq26vh59****</p> */ public Builder natGatewayId(String natGatewayId) { this.natGatewayId = natGatewayId; return this; } /** * <p>The IP address.</p> * * <strong>example:</strong> * <p>192.168.0.126</p> */ public Builder natIp(String natIp) { this.natIp = natIp; return this; } /** * <p>The CIDR block to which the IP address belongs.</p> * * <strong>example:</strong> * <p>192.168.0.0/24</p> */ public Builder natIpCidr(String natIpCidr) { this.natIpCidr = natIpCidr; return this; } /** * <p>The description of the IP address.</p> * * <strong>example:</strong> * <p>default</p> */ public Builder natIpDescription(String natIpDescription) { this.natIpDescription = natIpDescription; return this; } /** * <p>The ID of the IP address.</p> * * <strong>example:</strong> * <p>vpcnatip-gw8a863sut1zijxh0****</p> */ public Builder natIpId(String natIpId) { this.natIpId = natIpId; return this; } /** * <p>The name of the IP address.</p> * * <strong>example:</strong> * <p>default</p> */ public Builder natIpName(String natIpName) { this.natIpName = natIpName; return this; } /** * <p>The status of the IP address. Valid values:</p> * <ul> * <li><strong>Available</strong>: available</li> * <li><strong>Deleted</strong>: deleted</li> * <li><strong>Deleting</strong>: deleting</li> * <li><strong>Creating</strong>: creating</li> * <li><strong>Associated</strong>: specified in an SNAT or DNAT entry</li> * <li><strong>Associating</strong>: being specified in an SNAT or DNAT entry</li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder natIpStatus(String natIpStatus) { this.natIpStatus = natIpStatus; return this; } public NatIps build() { return new NatIps(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPrefixListsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPrefixListsRequest} extends {@link RequestModel} * * <p>ListPrefixListsRequest</p> */ public class ListPrefixListsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long 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("PrefixListIds") private java.util.List<String> prefixListIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrefixListName") private String prefixListName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ListPrefixListsRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.prefixListIds = builder.prefixListIds; this.prefixListName = builder.prefixListName; 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 ListPrefixListsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long 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 prefixListIds */ public java.util.List<String> getPrefixListIds() { return this.prefixListIds; } /** * @return prefixListName */ public String getPrefixListName() { return this.prefixListName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<ListPrefixListsRequest, Builder> { private Long maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private java.util.List<String> prefixListIds; private String prefixListName; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(ListPrefixListsRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.prefixListIds = request.prefixListIds; this.prefixListName = request.prefixListName; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; } /** * <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 maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</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 IDs of prefix lists to be queried. Valid values of <strong>N</strong> are <strong>1</strong> to <strong>100</strong>, which specifies that you can query up to 100 prefix lists at a time.</p> * * <strong>example:</strong> * <p>pl-m5estsqsdqwg88hjf****</p> */ public Builder prefixListIds(java.util.List<String> prefixListIds) { this.putQueryParameter("PrefixListIds", prefixListIds); this.prefixListIds = prefixListIds; return this; } /** * <p>The name of the prefix list to query.</p> * <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>name</p> */ public Builder prefixListName(String prefixListName) { this.putQueryParameter("PrefixListName", prefixListName); this.prefixListName = prefixListName; return this; } /** * <p>The ID of the region where you want to query prefix lists.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the prefix list belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tags.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public ListPrefixListsRequest build() { return new ListPrefixListsRequest(this); } } /** * * {@link ListPrefixListsRequest} extends {@link TeaModel} * * <p>ListPrefixListsRequest</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 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 tag value. 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 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/ListPrefixListsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPrefixListsResponse} extends {@link TeaModel} * * <p>ListPrefixListsResponse</p> */ public class ListPrefixListsResponse 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 ListPrefixListsResponseBody body; private ListPrefixListsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListPrefixListsResponse 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 ListPrefixListsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListPrefixListsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListPrefixListsResponseBody body); @Override ListPrefixListsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListPrefixListsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListPrefixListsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListPrefixListsResponse 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(ListPrefixListsResponseBody body) { this.body = body; return this; } @Override public ListPrefixListsResponse build() { return new ListPrefixListsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPrefixListsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPrefixListsResponseBody} extends {@link TeaModel} * * <p>ListPrefixListsResponseBody</p> */ public class ListPrefixListsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("PrefixLists") private java.util.List<PrefixLists> prefixLists; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private ListPrefixListsResponseBody(Builder builder) { this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.prefixLists = builder.prefixLists; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListPrefixListsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return prefixLists */ public java.util.List<PrefixLists> getPrefixLists() { return this.prefixLists; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private Long maxResults; private String nextToken; private java.util.List<PrefixLists> prefixLists; private String requestId; private Long totalCount; private Builder() { } private Builder(ListPrefixListsResponseBody model) { this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.prefixLists = model.prefixLists; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <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 maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</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 indicates the token that is used for 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 information about the prefix lists.</p> */ public Builder prefixLists(java.util.List<PrefixLists> prefixLists) { this.prefixLists = prefixLists; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>DF72F7BB-5DFA-529C-887E-B0BB70D89C4F</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(Long totalCount) { this.totalCount = totalCount; return this; } public ListPrefixListsResponseBody build() { return new ListPrefixListsResponseBody(this); } } /** * * {@link ListPrefixListsResponseBody} extends {@link TeaModel} * * <p>ListPrefixListsResponseBody</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.</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 Tags build() { return new Tags(this); } } } /** * * {@link ListPrefixListsResponseBody} extends {@link TeaModel} * * <p>ListPrefixListsResponseBody</p> */ public static class PrefixLists extends TeaModel { @com.aliyun.core.annotation.NameInMap("CidrBlocks") private java.util.List<String> cidrBlocks; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.NameInMap("MaxEntries") private Integer maxEntries; @com.aliyun.core.annotation.NameInMap("OwnerId") private String ownerId; @com.aliyun.core.annotation.NameInMap("PrefixListDescription") private String prefixListDescription; @com.aliyun.core.annotation.NameInMap("PrefixListId") private String prefixListId; @com.aliyun.core.annotation.NameInMap("PrefixListName") private String prefixListName; @com.aliyun.core.annotation.NameInMap("PrefixListStatus") private String prefixListStatus; @com.aliyun.core.annotation.NameInMap("PrefixListType") private String prefixListType; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @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 java.util.List<Tags> tags; private PrefixLists(Builder builder) { this.cidrBlocks = builder.cidrBlocks; this.creationTime = builder.creationTime; this.ipVersion = builder.ipVersion; this.maxEntries = builder.maxEntries; this.ownerId = builder.ownerId; this.prefixListDescription = builder.prefixListDescription; this.prefixListId = builder.prefixListId; this.prefixListName = builder.prefixListName; this.prefixListStatus = builder.prefixListStatus; this.prefixListType = builder.prefixListType; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.shareType = builder.shareType; this.status = builder.status; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static PrefixLists create() { return builder().build(); } /** * @return cidrBlocks */ public java.util.List<String> getCidrBlocks() { return this.cidrBlocks; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return maxEntries */ public Integer getMaxEntries() { return this.maxEntries; } /** * @return ownerId */ public String getOwnerId() { return this.ownerId; } /** * @return prefixListDescription */ public String getPrefixListDescription() { return this.prefixListDescription; } /** * @return prefixListId */ public String getPrefixListId() { return this.prefixListId; } /** * @return prefixListName */ public String getPrefixListName() { return this.prefixListName; } /** * @return prefixListStatus */ public String getPrefixListStatus() { return this.prefixListStatus; } /** * @return prefixListType */ public String getPrefixListType() { return this.prefixListType; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder { private java.util.List<String> cidrBlocks; private String creationTime; private String ipVersion; private Integer maxEntries; private String ownerId; private String prefixListDescription; private String prefixListId; private String prefixListName; private String prefixListStatus; private String prefixListType; private String regionId; private String resourceGroupId; private String shareType; private String status; private java.util.List<Tags> tags; private Builder() { } private Builder(PrefixLists model) { this.cidrBlocks = model.cidrBlocks; this.creationTime = model.creationTime; this.ipVersion = model.ipVersion; this.maxEntries = model.maxEntries; this.ownerId = model.ownerId; this.prefixListDescription = model.prefixListDescription; this.prefixListId = model.prefixListId; this.prefixListName = model.prefixListName; this.prefixListStatus = model.prefixListStatus; this.prefixListType = model.prefixListType; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.shareType = model.shareType; this.status = model.status; this.tags = model.tags; } /** * <p>The CIDR block specified in the prefix list.</p> */ public Builder cidrBlocks(java.util.List<String> cidrBlocks) { this.cidrBlocks = cidrBlocks; return this; } /** * <p>The time when the prefix list was created.</p> * * <strong>example:</strong> * <p>2022-07-12T14:22:32Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The IP version of the prefix list. Valid values:</p> * <ul> * <li><strong>IPV4</strong></li> * <li><strong>IPV6</strong></li> * </ul> * * <strong>example:</strong> * <p>IPV4</p> */ public Builder ipVersion(String ipVersion) { this.ipVersion = ipVersion; return this; } /** * <p>The maximum number of CIDR blocks that you can specify in the prefix list.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxEntries(Integer maxEntries) { this.maxEntries = maxEntries; return this; } /** * <p>The Alibaba Cloud account to which the prefix list belongs.</p> * * <strong>example:</strong> * <p>1210123456123456</p> */ public Builder ownerId(String ownerId) { this.ownerId = ownerId; return this; } /** * <p>The description of the prefix list.</p> * * <strong>example:</strong> * <p>Created with oss service by system.</p> */ public Builder prefixListDescription(String prefixListDescription) { this.prefixListDescription = prefixListDescription; return this; } /** * <p>The ID of the prefix list.</p> * * <strong>example:</strong> * <p>pl-m5estsqsdqwg88hjf****</p> */ public Builder prefixListId(String prefixListId) { this.prefixListId = prefixListId; return this; } /** * <p>The name of the prefix list.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder prefixListName(String prefixListName) { this.prefixListName = prefixListName; return this; } /** * <p>The status of the prefix list. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * <li><strong>Modifying</strong></li> * </ul> * <blockquote> * <p> This parameter is the same as the <strong>Status</strong> parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>Created</p> */ public Builder prefixListStatus(String prefixListStatus) { this.prefixListStatus = prefixListStatus; return this; } /** * <p>The type of the prefix list.</p> * * <strong>example:</strong> * <p>Custom</p> */ public Builder prefixListType(String prefixListType) { this.prefixListType = prefixListType; return this; } /** * <p>The region ID of the prefix list.</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 prefix list belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>Indicates whether the prefix list is shared. Valid values:</p> * <ul> * <li><strong>Shared</strong>: The prefix list is shared.</li> * <li>If an empty value is returned, the prefix list is not shared.</li> * </ul> * * <strong>example:</strong> * <p>Shared</p> */ public Builder shareType(String shareType) { this.shareType = shareType; return this; } /** * <p>The status of the prefix list. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleted</strong></li> * <li><strong>Modifying</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tags.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } public PrefixLists build() { return new PrefixLists(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPublicIpAddressPoolCidrBlocksRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPublicIpAddressPoolCidrBlocksRequest} extends {@link RequestModel} * * <p>ListPublicIpAddressPoolCidrBlocksRequest</p> */ public class ListPublicIpAddressPoolCidrBlocksRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @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("PublicIpAddressPoolId") @com.aliyun.core.annotation.Validation(required = true) private String publicIpAddressPoolId; @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 ListPublicIpAddressPoolCidrBlocksRequest(Builder builder) { super(builder); this.cidrBlock = builder.cidrBlock; this.dryRun = builder.dryRun; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.publicIpAddressPoolId = builder.publicIpAddressPoolId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ListPublicIpAddressPoolCidrBlocksRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @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 publicIpAddressPoolId */ public String getPublicIpAddressPoolId() { return this.publicIpAddressPoolId; } /** * @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<ListPublicIpAddressPoolCidrBlocksRequest, Builder> { private String cidrBlock; private Boolean dryRun; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String publicIpAddressPoolId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ListPublicIpAddressPoolCidrBlocksRequest request) { super(request); this.cidrBlock = request.cidrBlock; this.dryRun = request.dryRun; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.publicIpAddressPoolId = request.publicIpAddressPoolId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The CIDR blocks.</p> * * <strong>example:</strong> * <p>47.0.XX.XX/24</p> */ public Builder cidrBlock(String cidrBlock) { this.putQueryParameter("CidrBlock", cidrBlock); this.cidrBlock = cidrBlock; return this; } /** * <p>Specifies whether to perform a dry run. Valid values:</p> * <ul> * <li><strong>true</strong>: performs a dry run. The system checks the required parameters, request syntax, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The maximum number of entries to return. Valid values: <strong>10</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If this is your first query and no next queries are 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 IP address pool.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pippool-6wetvn6fumkgycssx****</p> */ public Builder publicIpAddressPoolId(String publicIpAddressPoolId) { this.putQueryParameter("PublicIpAddressPoolId", publicIpAddressPoolId); this.publicIpAddressPoolId = publicIpAddressPoolId; return this; } /** * <p>The region ID of the CIDR blocks.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-chengdu</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * 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 ListPublicIpAddressPoolCidrBlocksRequest build() { return new ListPublicIpAddressPoolCidrBlocksRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPublicIpAddressPoolCidrBlocksResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPublicIpAddressPoolCidrBlocksResponse} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolCidrBlocksResponse</p> */ public class ListPublicIpAddressPoolCidrBlocksResponse 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 ListPublicIpAddressPoolCidrBlocksResponseBody body; private ListPublicIpAddressPoolCidrBlocksResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListPublicIpAddressPoolCidrBlocksResponse 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 ListPublicIpAddressPoolCidrBlocksResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListPublicIpAddressPoolCidrBlocksResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListPublicIpAddressPoolCidrBlocksResponseBody body); @Override ListPublicIpAddressPoolCidrBlocksResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListPublicIpAddressPoolCidrBlocksResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListPublicIpAddressPoolCidrBlocksResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListPublicIpAddressPoolCidrBlocksResponse 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(ListPublicIpAddressPoolCidrBlocksResponseBody body) { this.body = body; return this; } @Override public ListPublicIpAddressPoolCidrBlocksResponse build() { return new ListPublicIpAddressPoolCidrBlocksResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPublicIpAddressPoolCidrBlocksResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPublicIpAddressPoolCidrBlocksResponseBody} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolCidrBlocksResponseBody</p> */ public class ListPublicIpAddressPoolCidrBlocksResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("PublicIpPoolCidrBlockList") private java.util.List<PublicIpPoolCidrBlockList> publicIpPoolCidrBlockList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListPublicIpAddressPoolCidrBlocksResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.publicIpPoolCidrBlockList = builder.publicIpPoolCidrBlockList; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListPublicIpAddressPoolCidrBlocksResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return publicIpPoolCidrBlockList */ public java.util.List<PublicIpPoolCidrBlockList> getPublicIpPoolCidrBlockList() { return this.publicIpPoolCidrBlockList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private String nextToken; private java.util.List<PublicIpPoolCidrBlockList> publicIpPoolCidrBlockList; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListPublicIpAddressPoolCidrBlocksResponseBody model) { this.nextToken = model.nextToken; this.publicIpPoolCidrBlockList = model.publicIpPoolCidrBlockList; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> was not returned, it indicates that no additional results exist.</li> * <li>If <strong>NextToken</strong> is returned, the value is the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The total number of entries returned.</p> */ public Builder publicIpPoolCidrBlockList(java.util.List<PublicIpPoolCidrBlockList> publicIpPoolCidrBlockList) { this.publicIpPoolCidrBlockList = publicIpPoolCidrBlockList; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The maximum number of entries returned. Valid values: <strong>10</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListPublicIpAddressPoolCidrBlocksResponseBody build() { return new ListPublicIpAddressPoolCidrBlocksResponseBody(this); } } /** * * {@link ListPublicIpAddressPoolCidrBlocksResponseBody} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolCidrBlocksResponseBody</p> */ public static class PublicIpPoolCidrBlockList extends TeaModel { @com.aliyun.core.annotation.NameInMap("CidrBlock") private String cidrBlock; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("PublicIpAddressPoolId") private String publicIpAddressPoolId; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TotalIpNum") private Integer totalIpNum; @com.aliyun.core.annotation.NameInMap("UsedIpNum") private Integer usedIpNum; private PublicIpPoolCidrBlockList(Builder builder) { this.cidrBlock = builder.cidrBlock; this.creationTime = builder.creationTime; this.publicIpAddressPoolId = builder.publicIpAddressPoolId; this.status = builder.status; this.totalIpNum = builder.totalIpNum; this.usedIpNum = builder.usedIpNum; } public static Builder builder() { return new Builder(); } public static PublicIpPoolCidrBlockList create() { return builder().build(); } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return publicIpAddressPoolId */ public String getPublicIpAddressPoolId() { return this.publicIpAddressPoolId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return totalIpNum */ public Integer getTotalIpNum() { return this.totalIpNum; } /** * @return usedIpNum */ public Integer getUsedIpNum() { return this.usedIpNum; } public static final class Builder { private String cidrBlock; private String creationTime; private String publicIpAddressPoolId; private String status; private Integer totalIpNum; private Integer usedIpNum; private Builder() { } private Builder(PublicIpPoolCidrBlockList model) { this.cidrBlock = model.cidrBlock; this.creationTime = model.creationTime; this.publicIpAddressPoolId = model.publicIpAddressPoolId; this.status = model.status; this.totalIpNum = model.totalIpNum; this.usedIpNum = model.usedIpNum; } /** * <p>The ID of the IP address pool.</p> * * <strong>example:</strong> * <p>47.0.XX.XX/24</p> */ public Builder cidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; return this; } /** * <p>The CIDR blocks.</p> * * <strong>example:</strong> * <p>2022-05-10T01:37:38Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The information about the CIDR blocks.</p> * * <strong>example:</strong> * <p>pippool-6wetvn6fumkgycssx****</p> */ public Builder publicIpAddressPoolId(String publicIpAddressPoolId) { this.publicIpAddressPoolId = publicIpAddressPoolId; return this; } /** * <p>The time when the CIDR block was created. The time is displayed in <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The total number of available IP addresses in the CIDR block.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder totalIpNum(Integer totalIpNum) { this.totalIpNum = totalIpNum; return this; } /** * <p>The status of the CIDR block in the IP address pool. Valid values:</p> * <ul> * <li><strong>Created</strong>: available</li> * <li><strong>Deleting</strong>: being deleted</li> * <li><strong>Modifying</strong>: being modified</li> * </ul> * * <strong>example:</strong> * <p>20</p> */ public Builder usedIpNum(Integer usedIpNum) { this.usedIpNum = usedIpNum; return this; } public PublicIpPoolCidrBlockList build() { return new PublicIpPoolCidrBlockList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPublicIpAddressPoolsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPublicIpAddressPoolsRequest} extends {@link RequestModel} * * <p>ListPublicIpAddressPoolsRequest</p> */ public class ListPublicIpAddressPoolsRequest 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("Isp") private String isp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @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("PublicIpAddressPoolIds") private java.util.List<String> publicIpAddressPoolIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityProtectionEnabled") private Boolean securityProtectionEnabled; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; private ListPublicIpAddressPoolsRequest(Builder builder) { super(builder); this.dryRun = builder.dryRun; this.isp = builder.isp; this.maxResults = builder.maxResults; this.name = builder.name; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.publicIpAddressPoolIds = builder.publicIpAddressPoolIds; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.securityProtectionEnabled = builder.securityProtectionEnabled; this.status = builder.status; this.tags = builder.tags; } public static Builder builder() { return new Builder(); } public static ListPublicIpAddressPoolsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return isp */ public String getIsp() { return this.isp; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return name */ public String getName() { return this.name; } /** * @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 publicIpAddressPoolIds */ public java.util.List<String> getPublicIpAddressPoolIds() { return this.publicIpAddressPoolIds; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return securityProtectionEnabled */ public Boolean getSecurityProtectionEnabled() { return this.securityProtectionEnabled; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } public static final class Builder extends Request.Builder<ListPublicIpAddressPoolsRequest, Builder> { private Boolean dryRun; private String isp; private Integer maxResults; private String name; private String nextToken; private String ownerAccount; private Long ownerId; private java.util.List<String> publicIpAddressPoolIds; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private Boolean securityProtectionEnabled; private String status; private java.util.List<Tags> tags; private Builder() { super(); } private Builder(ListPublicIpAddressPoolsRequest request) { super(request); this.dryRun = request.dryRun; this.isp = request.isp; this.maxResults = request.maxResults; this.name = request.name; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.publicIpAddressPoolIds = request.publicIpAddressPoolIds; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.securityProtectionEnabled = request.securityProtectionEnabled; this.status = request.status; this.tags = request.tags; } /** * <p>Specifies whether to perform a dry run, without performing the actual request. Valid values:</p> * <ul> * <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong>(default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The line type. Valid values:</p> * <ul> * <li><strong>BGP</strong> (default): BGP (Multi-ISP) line</li> * <li><strong>BGP_PRO</strong>: BGP (Multi-ISP) Pro line</li> * </ul> * <p>For more information about the BGP (Multi-ISP) line and BGP (Multi-ISP) Pro line, see the &quot;Line types&quot; section of <a href="https://help.aliyun.com/document_detail/32321.html">What is EIP?</a></p> * <p>If you are allowed to use single-ISP bandwidth, you can also choose one of the following values:</p> * <ul> * <li><strong>ChinaTelecom</strong></li> * <li><strong>ChinaUnicom</strong></li> * <li><strong>ChinaMobile</strong></li> * <li><strong>ChinaTelecom_L2</strong></li> * <li><strong>ChinaUnicom_L2</strong></li> * <li><strong>ChinaMobile_L2</strong></li> * </ul> * <p>If your services are deployed in China East 1 Finance, this parameter is required and you must set the parameter to <strong>BGP_FinanceCloud</strong>.</p> * * <strong>example:</strong> * <p>BGP</p> */ public Builder isp(String isp) { this.putQueryParameter("Isp", isp); this.isp = isp; return this; } /** * <p>The maximum number of entries to return. Valid values: <strong>10</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The name of the IP address pool.</p> * <p>If you enter a name, the name must be 1 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>AddressPoolName</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; 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 IDs of the IP address pool.</p> * <p>You can enter up to 100 IDs.</p> */ public Builder publicIpAddressPoolIds(java.util.List<String> publicIpAddressPoolIds) { this.putQueryParameter("PublicIpAddressPoolIds", publicIpAddressPoolIds); this.publicIpAddressPoolIds = publicIpAddressPoolIds; return this; } /** * <p>The ID of the region in which the IP address pool that you want to query resides.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the region ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-chengdu</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the IP address pool belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4pcdvf****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>Specifies whether to enable Anti-DDoS Pro/Premium. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder securityProtectionEnabled(Boolean securityProtectionEnabled) { this.putQueryParameter("SecurityProtectionEnabled", securityProtectionEnabled); this.securityProtectionEnabled = securityProtectionEnabled; return this; } /** * <p>The status of the IP address pool. Valid values:</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Modifying</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * <p>The tags to add to the resource.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } @Override public ListPublicIpAddressPoolsRequest build() { return new ListPublicIpAddressPoolsRequest(this); } } /** * * {@link ListPublicIpAddressPoolsRequest} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolsRequest</p> */ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tags(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tags model) { this.key = model.key; this.value = model.value; } /** * <p>The tag key to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p> * <p>The tag key can be up to 128 characters in length. 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 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/ListPublicIpAddressPoolsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPublicIpAddressPoolsResponse} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolsResponse</p> */ public class ListPublicIpAddressPoolsResponse 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 ListPublicIpAddressPoolsResponseBody body; private ListPublicIpAddressPoolsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListPublicIpAddressPoolsResponse 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 ListPublicIpAddressPoolsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListPublicIpAddressPoolsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListPublicIpAddressPoolsResponseBody body); @Override ListPublicIpAddressPoolsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListPublicIpAddressPoolsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListPublicIpAddressPoolsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListPublicIpAddressPoolsResponse 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(ListPublicIpAddressPoolsResponseBody body) { this.body = body; return this; } @Override public ListPublicIpAddressPoolsResponse build() { return new ListPublicIpAddressPoolsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListPublicIpAddressPoolsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListPublicIpAddressPoolsResponseBody} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolsResponseBody</p> */ public class ListPublicIpAddressPoolsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("PublicIpAddressPoolList") private java.util.List<PublicIpAddressPoolList> publicIpAddressPoolList; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private ListPublicIpAddressPoolsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.publicIpAddressPoolList = builder.publicIpAddressPoolList; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListPublicIpAddressPoolsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return publicIpAddressPoolList */ public java.util.List<PublicIpAddressPoolList> getPublicIpAddressPoolList() { return this.publicIpAddressPoolList; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private String nextToken; private java.util.List<PublicIpAddressPoolList> publicIpAddressPoolList; private String requestId; private Integer totalCount; private Builder() { } private Builder(ListPublicIpAddressPoolsResponseBody model) { this.nextToken = model.nextToken; this.publicIpAddressPoolList = model.publicIpAddressPoolList; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <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 is used 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 IP address pools.</p> */ public Builder publicIpAddressPoolList(java.util.List<PublicIpAddressPoolList> publicIpAddressPoolList) { this.publicIpAddressPoolList = publicIpAddressPoolList; 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 total number of entries returned.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public ListPublicIpAddressPoolsResponseBody build() { return new ListPublicIpAddressPoolsResponseBody(this); } } /** * * {@link ListPublicIpAddressPoolsResponseBody} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolsResponseBody</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 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>FinanceDept</p> */ public Builder value(String value) { this.value = value; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link ListPublicIpAddressPoolsResponseBody} extends {@link TeaModel} * * <p>ListPublicIpAddressPoolsResponseBody</p> */ public static class PublicIpAddressPoolList extends TeaModel { @com.aliyun.core.annotation.NameInMap("BizType") private String bizType; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("IpAddressRemaining") private Boolean ipAddressRemaining; @com.aliyun.core.annotation.NameInMap("Isp") private String isp; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.NameInMap("PublicIpAddressPoolId") private String publicIpAddressPoolId; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("SecurityProtectionTypes") private java.util.List<String> securityProtectionTypes; @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 java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TotalIpNum") private Integer totalIpNum; @com.aliyun.core.annotation.NameInMap("UsedIpNum") private Integer usedIpNum; @com.aliyun.core.annotation.NameInMap("UserType") private String userType; @com.aliyun.core.annotation.NameInMap("Zones") private java.util.List<String> zones; private PublicIpAddressPoolList(Builder builder) { this.bizType = builder.bizType; this.businessStatus = builder.businessStatus; this.creationTime = builder.creationTime; this.description = builder.description; this.ipAddressRemaining = builder.ipAddressRemaining; this.isp = builder.isp; this.name = builder.name; this.ownerId = builder.ownerId; this.publicIpAddressPoolId = builder.publicIpAddressPoolId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.securityProtectionTypes = builder.securityProtectionTypes; this.shareType = builder.shareType; this.status = builder.status; this.tags = builder.tags; this.totalIpNum = builder.totalIpNum; this.usedIpNum = builder.usedIpNum; this.userType = builder.userType; this.zones = builder.zones; } public static Builder builder() { return new Builder(); } public static PublicIpAddressPoolList create() { return builder().build(); } /** * @return bizType */ public String getBizType() { return this.bizType; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ipAddressRemaining */ public Boolean getIpAddressRemaining() { return this.ipAddressRemaining; } /** * @return isp */ public String getIsp() { return this.isp; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return publicIpAddressPoolId */ public String getPublicIpAddressPoolId() { return this.publicIpAddressPoolId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return securityProtectionTypes */ public java.util.List<String> getSecurityProtectionTypes() { return this.securityProtectionTypes; } /** * @return shareType */ public String getShareType() { return this.shareType; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return totalIpNum */ public Integer getTotalIpNum() { return this.totalIpNum; } /** * @return usedIpNum */ public Integer getUsedIpNum() { return this.usedIpNum; } /** * @return userType */ public String getUserType() { return this.userType; } /** * @return zones */ public java.util.List<String> getZones() { return this.zones; } public static final class Builder { private String bizType; private String businessStatus; private String creationTime; private String description; private Boolean ipAddressRemaining; private String isp; private String name; private Long ownerId; private String publicIpAddressPoolId; private String regionId; private String resourceGroupId; private java.util.List<String> securityProtectionTypes; private String shareType; private String status; private java.util.List<Tags> tags; private Integer totalIpNum; private Integer usedIpNum; private String userType; private java.util.List<String> zones; private Builder() { } private Builder(PublicIpAddressPoolList model) { this.bizType = model.bizType; this.businessStatus = model.businessStatus; this.creationTime = model.creationTime; this.description = model.description; this.ipAddressRemaining = model.ipAddressRemaining; this.isp = model.isp; this.name = model.name; this.ownerId = model.ownerId; this.publicIpAddressPoolId = model.publicIpAddressPoolId; this.regionId = model.regionId; this.resourceGroupId = model.resourceGroupId; this.securityProtectionTypes = model.securityProtectionTypes; this.shareType = model.shareType; this.status = model.status; this.tags = model.tags; this.totalIpNum = model.totalIpNum; this.usedIpNum = model.usedIpNum; this.userType = model.userType; this.zones = model.zones; } /** * <p>The service type of the IP address pool.</p> * <ul> * <li><strong>CloudBox</strong> Only cloud box users can select this type.</li> * <li><strong>Default</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>CloudBox</p> */ public Builder bizType(String bizType) { this.bizType = bizType; return this; } /** * <p>The status of the IP address pool.</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 time when the IP address pool was created. The time is displayed in the <code>YYYY-MM-DDThh:mm:ssZ</code> format.</p> * * <strong>example:</strong> * <p>2022-05-10T01:37:38Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the IP address pool.</p> * * <strong>example:</strong> * <p>AddressPoolDescription</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether idle IP addresses exist.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder ipAddressRemaining(Boolean ipAddressRemaining) { this.ipAddressRemaining = ipAddressRemaining; return this; } /** * <p>The line type.</p> * <ul> * <li><strong>BGP</strong>: BGP (Multi-ISP)</li> * <li><strong>BGP_PRO</strong>: BGP (Multi-ISP) Pro</li> * </ul> * <p>For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see <a href="https://help.aliyun.com/document_detail/32321.html">EIP line types</a>.</p> * <p>If you are allowed to use single-ISP bandwidth, one of the following values may be returned:</p> * <ul> * <li><strong>ChinaTelecom</strong></li> * <li><strong>ChinaUnicom</strong></li> * <li><strong>ChinaMobile</strong></li> * <li><strong>ChinaTelecom_L2</strong></li> * <li><strong>ChinaUnicom_L2</strong></li> * <li><strong>ChinaMobile_L2</strong></li> * </ul> * <p>If your services are deployed in China East 1 Finance, <strong>BGP_FinanceCloud</strong> is returned.</p> * * <strong>example:</strong> * <p>BGP</p> */ public Builder isp(String isp) { this.isp = isp; return this; } /** * <p>The name of the IP address pool.</p> * * <strong>example:</strong> * <p>AddressPoolName</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The Alibaba Cloud account to which the IP address pool belongs.</p> * * <strong>example:</strong> * <p>121012345612****</p> */ public Builder ownerId(Long ownerId) { this.ownerId = ownerId; return this; } /** * <p>The ID of the IP address pool.</p> * * <strong>example:</strong> * <p>pippool-6wetvn6fumkgycssx****</p> */ public Builder publicIpAddressPoolId(String publicIpAddressPoolId) { this.publicIpAddressPoolId = publicIpAddressPoolId; return this; } /** * <p>The region ID of the IP address pool.</p> * * <strong>example:</strong> * <p>cn-chengdu</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the IP address pool belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4pcdvf****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The edition of Anti-DDoS.</p> * <ul> * <li>If you do not set this parameter, Anti-DDoS Origin Basic is used.</li> * <li>If the value is set to <strong>AntiDDoS_Enhanced</strong>, Anti-DDoS Pro/Premium is used.</li> * </ul> */ public Builder securityProtectionTypes(java.util.List<String> securityProtectionTypes) { this.securityProtectionTypes = securityProtectionTypes; return this; } /** * <p>The sharing type of the IP address pool.</p> * <ul> * <li>If <strong>Shared</strong> is returned, the IP address pool is shared.</li> * <li>If an empty value is returned, the IP address pool is not shared.</li> * </ul> * * <strong>example:</strong> * <p>Shared</p> */ public Builder shareType(String shareType) { this.shareType = shareType; return this; } /** * <p>The status of the IP address pool.</p> * <ul> * <li><strong>Created</strong></li> * <li><strong>Deleting</strong></li> * <li><strong>Modifying</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The total number of available IP addresses in the public IP address pool.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder totalIpNum(Integer totalIpNum) { this.totalIpNum = totalIpNum; return this; } /** * <p>The number of used IP addresses in the public IP address pool.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder usedIpNum(Integer usedIpNum) { this.usedIpNum = usedIpNum; return this; } /** * <p>The user type. Valid values:</p> * <ul> * <li><strong>admin</strong>: An administrator can delete, modify, and query IP address pools, and can assign elastic IP addresses (EIPs) to the pool.</li> * <li><strong>user</strong>: A user can only assign EIPs to the IP address pool and query the IP address pool, but cannot modify or delete the IP address pool.</li> * </ul> * * <strong>example:</strong> * <p>admin</p> */ public Builder userType(String userType) { this.userType = userType; return this; } /** * <p>The zone of the IP address pool. This parameter is returned only when the service type of the IP address pool is CloudBox.</p> */ public Builder zones(java.util.List<String> zones) { this.zones = zones; return this; } public PublicIpAddressPoolList build() { return new PublicIpAddressPoolList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTagResourcesForExpressConnectRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesForExpressConnectRequest} extends {@link RequestModel} * * <p>ListTagResourcesForExpressConnectRequest</p> */ public class ListTagResourcesForExpressConnectRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 50) 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("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") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private ListTagResourcesForExpressConnectRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; 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 ListTagResourcesForExpressConnectRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 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<ListTagResourcesForExpressConnectRequest, Builder> { private Integer maxResults; 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(ListTagResourcesForExpressConnectRequest request) { super(request); this.maxResults = request.maxResults; 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: <strong>1</strong> to <strong>100</strong>. Default value: <strong>20</strong>.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; 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 <strong>NextToken</strong>.</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 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. Valid values:</p> * <ul> * <li><strong>PHYSICALCONNECTION</strong>: Express Connect circuit.</li> * <li><strong>VIRTUALBORDERROUTER</strong>: virtual border router (VBR).</li> * <li><strong>ROUTERINTERFACE</strong>: router interface.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public ListTagResourcesForExpressConnectRequest build() { return new ListTagResourcesForExpressConnectRequest(this); } } /** * * {@link ListTagResourcesForExpressConnectRequest} extends {@link TeaModel} * * <p>ListTagResourcesForExpressConnectRequest</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 to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag to add to the resource. You can specify up to 20 tag values The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTagResourcesForExpressConnectResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesForExpressConnectResponse} extends {@link TeaModel} * * <p>ListTagResourcesForExpressConnectResponse</p> */ public class ListTagResourcesForExpressConnectResponse 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 ListTagResourcesForExpressConnectResponseBody body; private ListTagResourcesForExpressConnectResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTagResourcesForExpressConnectResponse 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 ListTagResourcesForExpressConnectResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTagResourcesForExpressConnectResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTagResourcesForExpressConnectResponseBody body); @Override ListTagResourcesForExpressConnectResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTagResourcesForExpressConnectResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTagResourcesForExpressConnectResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTagResourcesForExpressConnectResponse 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(ListTagResourcesForExpressConnectResponseBody body) { this.body = body; return this; } @Override public ListTagResourcesForExpressConnectResponse build() { return new ListTagResourcesForExpressConnectResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTagResourcesForExpressConnectResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesForExpressConnectResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesForExpressConnectResponseBody</p> */ public class ListTagResourcesForExpressConnectResponseBody 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 ListTagResourcesForExpressConnectResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagResources = builder.tagResources; } public static Builder builder() { return new Builder(); } public static ListTagResourcesForExpressConnectResponseBody 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(ListTagResourcesForExpressConnectResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagResources = model.tagResources; } /** * <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 tags that are added to the resource.</p> */ public Builder tagResources(TagResources tagResources) { this.tagResources = tagResources; return this; } public ListTagResourcesForExpressConnectResponseBody build() { return new ListTagResourcesForExpressConnectResponseBody(this); } } /** * * {@link ListTagResourcesForExpressConnectResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesForExpressConnectResponseBody</p> */ public static class TagResource extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private TagResource(Builder builder) { this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static TagResource create() { return builder().build(); } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String resourceId; private String resourceType; private String tagKey; private String tagValue; private Builder() { } private Builder(TagResource model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; this.tagKey = model.tagKey; this.tagValue = model.tagValue; } /** * <p>The resource ID.</p> * * <strong>example:</strong> * <p>pc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li><strong>PHYSICALCONNECTION</strong>: Express Connect circuit.</li> * <li><strong>VIRTUALBORDERROUTER</strong>: VBR.</li> * <li><strong>ROUTERINTERFACE</strong>: router interface.</li> * </ul> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } /** * <p>The key of the tag that is added to the resource.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** * <p>The value of the tag that is added to the resource.</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 ListTagResourcesForExpressConnectResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesForExpressConnectResponseBody</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/ListTagResourcesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesRequest} extends {@link RequestModel} * * <p>ListTagResourcesRequest</p> */ public class ListTagResourcesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 50) 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("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") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List<Tag> tag; private ListTagResourcesRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; 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 ListTagResourcesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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 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<ListTagResourcesRequest, Builder> { private Integer maxResults; 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(ListTagResourcesRequest request) { super(request); this.maxResults = request.maxResults; 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 to return on each page. Valid values:<strong>1</strong> to <strong>50</strong>. Default value: <strong>50</strong>.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</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 <strong>NextToken</strong>.</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 ID. You can specify up to 20 resource IDs.</p> * * <strong>example:</strong> * <p>vpc-bp16qjewdsunr41m1****</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></li> * <li><strong>VSWITCH</strong></li> * <li><strong>ROUTETABLE</strong></li> * <li><strong>EIP</strong></li> * <li><strong>VpnGateway</strong></li> * <li><strong>NATGATEWAY</strong></li> * <li><strong>COMMONBANDWIDTHPACKAGE</strong>: EIP bandwidth plan</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>VPC</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tag value. You can specify up to 20 tag values. It can be an empty string.</p> * <p>The value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The value cannot contain <code>http://</code> or <code>https://</code>.</p> * <blockquote> * <p> You must specify at least one of <strong>ResourceId.N</strong> and <strong>Tag.N</strong> (<strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong>).</p> * </blockquote> * * <strong>example:</strong> * <p>ListTagResources</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public ListTagResourcesRequest build() { return new ListTagResourcesRequest(this); } } /** * * {@link ListTagResourcesRequest} extends {@link TeaModel} * * <p>ListTagResourcesRequest</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 can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The key cannot contain <code>http://</code> or <code>https://</code>.</p> * <blockquote> * <p> Specify at least one of the <strong>ResourceId.N</strong> and <strong>Tag.N</strong> parameters (<strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong>).</p> * </blockquote> * * <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 value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The value cannot contain <code>http://</code> or <code>https://</code>.</p> * <blockquote> * <p> Specify at least one of the <strong>ResourceId.N</strong> and <strong>Tag.N</strong> parameters (<strong>Tag.N.Key</strong> and <strong>Tag.N.Value</strong>).</p> * </blockquote> * * <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/ListTagResourcesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesResponse} extends {@link TeaModel} * * <p>ListTagResourcesResponse</p> */ public class ListTagResourcesResponse 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 ListTagResourcesResponseBody body; private ListTagResourcesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTagResourcesResponse 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 ListTagResourcesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTagResourcesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTagResourcesResponseBody body); @Override ListTagResourcesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTagResourcesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTagResourcesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTagResourcesResponse 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(ListTagResourcesResponseBody body) { this.body = body; return this; } @Override public ListTagResourcesResponse build() { return new ListTagResourcesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTagResourcesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public class ListTagResourcesResponseBody 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 ListTagResourcesResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.tagResources = builder.tagResources; } public static Builder builder() { return new Builder(); } public static ListTagResourcesResponseBody 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(ListTagResourcesResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.tagResources = model.tagResources; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If no value is returned for <strong>NextToken</strong>, no next queries are sent.</li> * <li>If a value is returned for <strong>NextToken</strong>, the value is used 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>DE65F6B7-7566-4802-9007-96F2494AC512</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The tag key.</p> */ public Builder tagResources(TagResources tagResources) { this.tagResources = tagResources; return this; } public ListTagResourcesResponseBody build() { return new ListTagResourcesResponseBody(this); } } /** * * {@link ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</p> */ public static class TagResource extends TeaModel { @com.aliyun.core.annotation.NameInMap("ResourceId") private String resourceId; @com.aliyun.core.annotation.NameInMap("ResourceType") private String resourceType; @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private TagResource(Builder builder) { this.resourceId = builder.resourceId; this.resourceType = builder.resourceType; this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static TagResource create() { return builder().build(); } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String resourceId; private String resourceType; private String tagKey; private String tagValue; private Builder() { } private Builder(TagResource model) { this.resourceId = model.resourceId; this.resourceType = model.resourceType; this.tagKey = model.tagKey; this.tagValue = model.tagValue; } /** * <p>The ID of the resource.</p> * * <strong>example:</strong> * <p>vpc-bp16qjewdsunr41m1****</p> */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; return this; } /** * <p>The type of the resource. 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>: 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.resourceType = resourceType; return this; } /** * <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 ListTagResourcesResponseBody} extends {@link TeaModel} * * <p>ListTagResourcesResponseBody</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/ListTrafficMirrorFiltersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTrafficMirrorFiltersRequest} extends {@link RequestModel} * * <p>ListTrafficMirrorFiltersRequest</p> */ public class ListTrafficMirrorFiltersRequest extends Request { @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; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterIds") @com.aliyun.core.annotation.Validation(maxLength = 128) private java.util.List<String> trafficMirrorFilterIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterName") private String trafficMirrorFilterName; private ListTrafficMirrorFiltersRequest(Builder builder) { super(builder); 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; this.trafficMirrorFilterIds = builder.trafficMirrorFilterIds; this.trafficMirrorFilterName = builder.trafficMirrorFilterName; } public static Builder builder() { return new Builder(); } public static ListTrafficMirrorFiltersRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @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; } /** * @return trafficMirrorFilterIds */ public java.util.List<String> getTrafficMirrorFilterIds() { return this.trafficMirrorFilterIds; } /** * @return trafficMirrorFilterName */ public String getTrafficMirrorFilterName() { return this.trafficMirrorFilterName; } public static final class Builder extends Request.Builder<ListTrafficMirrorFiltersRequest, Builder> { 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 java.util.List<String> trafficMirrorFilterIds; private String trafficMirrorFilterName; private Builder() { super(); } private Builder(ListTrafficMirrorFiltersRequest request) { super(request); 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; this.trafficMirrorFilterIds = request.trafficMirrorFilterIds; this.trafficMirrorFilterName = request.trafficMirrorFilterName; } /** * <p>The maximum number of entries to return.</p> * <p>Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</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 mirrored traffic belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hongkong</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the mirrored traffic belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The ID of the traffic mirror filter. The maximum value of <strong>N</strong> is <strong>100</strong>, which specifies that you can query up to 100 filters at a time.</p> * * <strong>example:</strong> * <p>tmf-j6cmls82xnc86vtpe****</p> */ public Builder trafficMirrorFilterIds(java.util.List<String> trafficMirrorFilterIds) { this.putQueryParameter("TrafficMirrorFilterIds", trafficMirrorFilterIds); this.trafficMirrorFilterIds = trafficMirrorFilterIds; return this; } /** * <p>The name of the filter.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder trafficMirrorFilterName(String trafficMirrorFilterName) { this.putQueryParameter("TrafficMirrorFilterName", trafficMirrorFilterName); this.trafficMirrorFilterName = trafficMirrorFilterName; return this; } @Override public ListTrafficMirrorFiltersRequest build() { return new ListTrafficMirrorFiltersRequest(this); } } /** * * {@link ListTrafficMirrorFiltersRequest} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersRequest</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 tag key can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The tag value. You can specify at most 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length. It cannot start with <code>aliyun</code> or <code>acs:</code>, and cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public 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/ListTrafficMirrorFiltersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTrafficMirrorFiltersResponse} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersResponse</p> */ public class ListTrafficMirrorFiltersResponse 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 ListTrafficMirrorFiltersResponseBody body; private ListTrafficMirrorFiltersResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTrafficMirrorFiltersResponse 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 ListTrafficMirrorFiltersResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTrafficMirrorFiltersResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTrafficMirrorFiltersResponseBody body); @Override ListTrafficMirrorFiltersResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTrafficMirrorFiltersResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTrafficMirrorFiltersResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTrafficMirrorFiltersResponse 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(ListTrafficMirrorFiltersResponseBody body) { this.body = body; return this; } @Override public ListTrafficMirrorFiltersResponse build() { return new ListTrafficMirrorFiltersResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTrafficMirrorFiltersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTrafficMirrorFiltersResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersResponseBody</p> */ public class ListTrafficMirrorFiltersResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @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; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilters") private java.util.List<TrafficMirrorFilters> trafficMirrorFilters; private ListTrafficMirrorFiltersResponseBody(Builder builder) { this.count = builder.count; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.trafficMirrorFilters = builder.trafficMirrorFilters; } public static Builder builder() { return new Builder(); } public static ListTrafficMirrorFiltersResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public String getTotalCount() { return this.totalCount; } /** * @return trafficMirrorFilters */ public java.util.List<TrafficMirrorFilters> getTrafficMirrorFilters() { return this.trafficMirrorFilters; } public static final class Builder { private Integer count; private Integer maxResults; private String nextToken; private String requestId; private String totalCount; private java.util.List<TrafficMirrorFilters> trafficMirrorFilters; private Builder() { } private Builder(ListTrafficMirrorFiltersResponseBody model) { this.count = model.count; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; this.trafficMirrorFilters = model.trafficMirrorFilters; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>The maximum number of entries returned.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</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 is the token that is used for the next query.</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>739CA01C-92EB-4C69-BCC0-280149C6F41E</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(String totalCount) { this.totalCount = totalCount; return this; } /** * <p>The information about the filters.</p> */ public Builder trafficMirrorFilters(java.util.List<TrafficMirrorFilters> trafficMirrorFilters) { this.trafficMirrorFilters = trafficMirrorFilters; return this; } public ListTrafficMirrorFiltersResponseBody build() { return new ListTrafficMirrorFiltersResponseBody(this); } } /** * * {@link ListTrafficMirrorFiltersResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersResponseBody</p> */ public static class EgressRules extends TeaModel { @com.aliyun.core.annotation.NameInMap("Action") private String action; @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") private String destinationCidrBlock; @com.aliyun.core.annotation.NameInMap("DestinationPortRange") private String destinationPortRange; @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.NameInMap("Protocol") private String protocol; @com.aliyun.core.annotation.NameInMap("SourceCidrBlock") private String sourceCidrBlock; @com.aliyun.core.annotation.NameInMap("SourcePortRange") private String sourcePortRange; @com.aliyun.core.annotation.NameInMap("TrafficDirection") private String trafficDirection; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId") private String trafficMirrorFilterId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterRuleId") private String trafficMirrorFilterRuleId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterRuleStatus") private String trafficMirrorFilterRuleStatus; private EgressRules(Builder builder) { this.action = builder.action; this.destinationCidrBlock = builder.destinationCidrBlock; this.destinationPortRange = builder.destinationPortRange; this.ipVersion = builder.ipVersion; this.priority = builder.priority; this.protocol = builder.protocol; this.sourceCidrBlock = builder.sourceCidrBlock; this.sourcePortRange = builder.sourcePortRange; this.trafficDirection = builder.trafficDirection; this.trafficMirrorFilterId = builder.trafficMirrorFilterId; this.trafficMirrorFilterRuleId = builder.trafficMirrorFilterRuleId; this.trafficMirrorFilterRuleStatus = builder.trafficMirrorFilterRuleStatus; } public static Builder builder() { return new Builder(); } public static EgressRules create() { return builder().build(); } /** * @return action */ public String getAction() { return this.action; } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @return destinationPortRange */ public String getDestinationPortRange() { return this.destinationPortRange; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return protocol */ public String getProtocol() { return this.protocol; } /** * @return sourceCidrBlock */ public String getSourceCidrBlock() { return this.sourceCidrBlock; } /** * @return sourcePortRange */ public String getSourcePortRange() { return this.sourcePortRange; } /** * @return trafficDirection */ public String getTrafficDirection() { return this.trafficDirection; } /** * @return trafficMirrorFilterId */ public String getTrafficMirrorFilterId() { return this.trafficMirrorFilterId; } /** * @return trafficMirrorFilterRuleId */ public String getTrafficMirrorFilterRuleId() { return this.trafficMirrorFilterRuleId; } /** * @return trafficMirrorFilterRuleStatus */ public String getTrafficMirrorFilterRuleStatus() { return this.trafficMirrorFilterRuleStatus; } public static final class Builder { private String action; private String destinationCidrBlock; private String destinationPortRange; private String ipVersion; private Integer priority; private String protocol; private String sourceCidrBlock; private String sourcePortRange; private String trafficDirection; private String trafficMirrorFilterId; private String trafficMirrorFilterRuleId; private String trafficMirrorFilterRuleStatus; private Builder() { } private Builder(EgressRules model) { this.action = model.action; this.destinationCidrBlock = model.destinationCidrBlock; this.destinationPortRange = model.destinationPortRange; this.ipVersion = model.ipVersion; this.priority = model.priority; this.protocol = model.protocol; this.sourceCidrBlock = model.sourceCidrBlock; this.sourcePortRange = model.sourcePortRange; this.trafficDirection = model.trafficDirection; this.trafficMirrorFilterId = model.trafficMirrorFilterId; this.trafficMirrorFilterRuleId = model.trafficMirrorFilterRuleId; this.trafficMirrorFilterRuleStatus = model.trafficMirrorFilterRuleStatus; } /** * <p>The action of the outbound rule. Valid values:</p> * <ul> * <li><strong>accept</strong></li> * <li><strong>drop</strong></li> * </ul> * * <strong>example:</strong> * <p>accept</p> */ public Builder action(String action) { this.action = action; return this; } /** * <p>The destination CIDR block of the outbound traffic.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>The destination port range of the outbound traffic.</p> * * <strong>example:</strong> * <p>22/40</p> */ public Builder destinationPortRange(String destinationPortRange) { this.destinationPortRange = destinationPortRange; return this; } /** * IpVersion. */ public Builder ipVersion(String ipVersion) { this.ipVersion = ipVersion; return this; } /** * <p>The priority of the outbound rule. A smaller value indicates a higher priority.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder priority(Integer priority) { this.priority = priority; return this; } /** * <p>The protocol that is used by the outbound traffic to be mirrored. Valid values:</p> * <ul> * <li><strong>ALL</strong></li> * <li><strong>ICMP</strong></li> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * </ul> * * <strong>example:</strong> * <p>TCP</p> */ public Builder protocol(String protocol) { this.protocol = protocol; return this; } /** * <p>The source CIDR block of the outbound traffic.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder sourceCidrBlock(String sourceCidrBlock) { this.sourceCidrBlock = sourceCidrBlock; return this; } /** * <p>The source port range of the outbound traffic.</p> * * <strong>example:</strong> * <p>22/40</p> */ public Builder sourcePortRange(String sourcePortRange) { this.sourcePortRange = sourcePortRange; return this; } /** * <p>The direction of the network traffic. Valid values:</p> * <ul> * <li><strong>egress</strong></li> * <li><strong>ingress</strong></li> * </ul> * * <strong>example:</strong> * <p>egress</p> */ public Builder trafficDirection(String trafficDirection) { this.trafficDirection = trafficDirection; return this; } /** * <p>The ID of the filter associated with the outbound rule.</p> * * <strong>example:</strong> * <p>tmf-j6cmls82xnc86vtpe****</p> */ public Builder trafficMirrorFilterId(String trafficMirrorFilterId) { this.trafficMirrorFilterId = trafficMirrorFilterId; return this; } /** * <p>The ID of the outbound rule.</p> * * <strong>example:</strong> * <p>tmr-j6c89rzmtd3hhdugq****</p> */ public Builder trafficMirrorFilterRuleId(String trafficMirrorFilterRuleId) { this.trafficMirrorFilterRuleId = trafficMirrorFilterRuleId; return this; } /** * <p>The status of the outbound rule. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder trafficMirrorFilterRuleStatus(String trafficMirrorFilterRuleStatus) { this.trafficMirrorFilterRuleStatus = trafficMirrorFilterRuleStatus; return this; } public EgressRules build() { return new EgressRules(this); } } } /** * * {@link ListTrafficMirrorFiltersResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersResponseBody</p> */ public static class IngressRules extends TeaModel { @com.aliyun.core.annotation.NameInMap("Action") private String action; @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") private String destinationCidrBlock; @com.aliyun.core.annotation.NameInMap("DestinationPortRange") private String destinationPortRange; @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.NameInMap("Protocol") private String protocol; @com.aliyun.core.annotation.NameInMap("SourceCidrBlock") private String sourceCidrBlock; @com.aliyun.core.annotation.NameInMap("SourcePortRange") private String sourcePortRange; @com.aliyun.core.annotation.NameInMap("TrafficDirection") private String trafficDirection; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId") private String trafficMirrorFilterId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterRuleId") private String trafficMirrorFilterRuleId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterRuleStatus") private String trafficMirrorFilterRuleStatus; private IngressRules(Builder builder) { this.action = builder.action; this.destinationCidrBlock = builder.destinationCidrBlock; this.destinationPortRange = builder.destinationPortRange; this.ipVersion = builder.ipVersion; this.priority = builder.priority; this.protocol = builder.protocol; this.sourceCidrBlock = builder.sourceCidrBlock; this.sourcePortRange = builder.sourcePortRange; this.trafficDirection = builder.trafficDirection; this.trafficMirrorFilterId = builder.trafficMirrorFilterId; this.trafficMirrorFilterRuleId = builder.trafficMirrorFilterRuleId; this.trafficMirrorFilterRuleStatus = builder.trafficMirrorFilterRuleStatus; } public static Builder builder() { return new Builder(); } public static IngressRules create() { return builder().build(); } /** * @return action */ public String getAction() { return this.action; } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @return destinationPortRange */ public String getDestinationPortRange() { return this.destinationPortRange; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return protocol */ public String getProtocol() { return this.protocol; } /** * @return sourceCidrBlock */ public String getSourceCidrBlock() { return this.sourceCidrBlock; } /** * @return sourcePortRange */ public String getSourcePortRange() { return this.sourcePortRange; } /** * @return trafficDirection */ public String getTrafficDirection() { return this.trafficDirection; } /** * @return trafficMirrorFilterId */ public String getTrafficMirrorFilterId() { return this.trafficMirrorFilterId; } /** * @return trafficMirrorFilterRuleId */ public String getTrafficMirrorFilterRuleId() { return this.trafficMirrorFilterRuleId; } /** * @return trafficMirrorFilterRuleStatus */ public String getTrafficMirrorFilterRuleStatus() { return this.trafficMirrorFilterRuleStatus; } public static final class Builder { private String action; private String destinationCidrBlock; private String destinationPortRange; private String ipVersion; private Integer priority; private String protocol; private String sourceCidrBlock; private String sourcePortRange; private String trafficDirection; private String trafficMirrorFilterId; private String trafficMirrorFilterRuleId; private String trafficMirrorFilterRuleStatus; private Builder() { } private Builder(IngressRules model) { this.action = model.action; this.destinationCidrBlock = model.destinationCidrBlock; this.destinationPortRange = model.destinationPortRange; this.ipVersion = model.ipVersion; this.priority = model.priority; this.protocol = model.protocol; this.sourceCidrBlock = model.sourceCidrBlock; this.sourcePortRange = model.sourcePortRange; this.trafficDirection = model.trafficDirection; this.trafficMirrorFilterId = model.trafficMirrorFilterId; this.trafficMirrorFilterRuleId = model.trafficMirrorFilterRuleId; this.trafficMirrorFilterRuleStatus = model.trafficMirrorFilterRuleStatus; } /** * <p>The action of the inbound rule. Valid values:</p> * <ul> * <li><strong>accept</strong></li> * <li><strong>drop</strong></li> * </ul> * * <strong>example:</strong> * <p>accept</p> */ public Builder action(String action) { this.action = action; return this; } /** * <p>The destination CIDR block of the inbound traffic.</p> * * <strong>example:</strong> * <p>0.0.0.0/0</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>The destination port range of the inbound traffic.</p> * * <strong>example:</strong> * <p>-1/-1</p> */ public Builder destinationPortRange(String destinationPortRange) { this.destinationPortRange = destinationPortRange; return this; } /** * IpVersion. */ public Builder ipVersion(String ipVersion) { this.ipVersion = ipVersion; return this; } /** * <p>The priority of the inbound rule. A smaller value indicates a higher priority.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder priority(Integer priority) { this.priority = priority; return this; } /** * <p>The protocol that is used by the inbound traffic to be mirrored. Valid values:</p> * <ul> * <li><strong>ALL</strong></li> * <li><strong>ICMP</strong></li> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * </ul> * * <strong>example:</strong> * <p>ALL</p> */ public Builder protocol(String protocol) { this.protocol = protocol; return this; } /** * <p>The source CIDR block of the inbound traffic.</p> * * <strong>example:</strong> * <p>0.0.0.0/0</p> */ public Builder sourceCidrBlock(String sourceCidrBlock) { this.sourceCidrBlock = sourceCidrBlock; return this; } /** * <p>The destination port range of the inbound traffic.</p> * * <strong>example:</strong> * <p>-1/-1</p> */ public Builder sourcePortRange(String sourcePortRange) { this.sourcePortRange = sourcePortRange; return this; } /** * <p>The direction of the network traffic. Valid values:</p> * <ul> * <li><strong>egress</strong></li> * <li><strong>ingress</strong></li> * </ul> * * <strong>example:</strong> * <p>ingress</p> */ public Builder trafficDirection(String trafficDirection) { this.trafficDirection = trafficDirection; return this; } /** * <p>The ID of the filter associated with the inbound rule.</p> * * <strong>example:</strong> * <p>tmf-j6cmls82xnc86vtpe****</p> */ public Builder trafficMirrorFilterId(String trafficMirrorFilterId) { this.trafficMirrorFilterId = trafficMirrorFilterId; return this; } /** * <p>The ID of the inbound rule.</p> * * <strong>example:</strong> * <p>tmr-j6cezu8e68rnpepet****</p> */ public Builder trafficMirrorFilterRuleId(String trafficMirrorFilterRuleId) { this.trafficMirrorFilterRuleId = trafficMirrorFilterRuleId; return this; } /** * <p>The status of the inbound rule. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder trafficMirrorFilterRuleStatus(String trafficMirrorFilterRuleStatus) { this.trafficMirrorFilterRuleStatus = trafficMirrorFilterRuleStatus; return this; } public IngressRules build() { return new IngressRules(this); } } } /** * * {@link ListTrafficMirrorFiltersResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersResponseBody</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.</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 Tags build() { return new Tags(this); } } } /** * * {@link ListTrafficMirrorFiltersResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorFiltersResponseBody</p> */ public static class TrafficMirrorFilters extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("EgressRules") private java.util.List<EgressRules> egressRules; @com.aliyun.core.annotation.NameInMap("IngressRules") private java.util.List<IngressRules> ingressRules; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterDescription") private String trafficMirrorFilterDescription; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId") private String trafficMirrorFilterId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterName") private String trafficMirrorFilterName; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterStatus") private String trafficMirrorFilterStatus; private TrafficMirrorFilters(Builder builder) { this.creationTime = builder.creationTime; this.egressRules = builder.egressRules; this.ingressRules = builder.ingressRules; this.resourceGroupId = builder.resourceGroupId; this.tags = builder.tags; this.trafficMirrorFilterDescription = builder.trafficMirrorFilterDescription; this.trafficMirrorFilterId = builder.trafficMirrorFilterId; this.trafficMirrorFilterName = builder.trafficMirrorFilterName; this.trafficMirrorFilterStatus = builder.trafficMirrorFilterStatus; } public static Builder builder() { return new Builder(); } public static TrafficMirrorFilters create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return egressRules */ public java.util.List<EgressRules> getEgressRules() { return this.egressRules; } /** * @return ingressRules */ public java.util.List<IngressRules> getIngressRules() { return this.ingressRules; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return trafficMirrorFilterDescription */ public String getTrafficMirrorFilterDescription() { return this.trafficMirrorFilterDescription; } /** * @return trafficMirrorFilterId */ public String getTrafficMirrorFilterId() { return this.trafficMirrorFilterId; } /** * @return trafficMirrorFilterName */ public String getTrafficMirrorFilterName() { return this.trafficMirrorFilterName; } /** * @return trafficMirrorFilterStatus */ public String getTrafficMirrorFilterStatus() { return this.trafficMirrorFilterStatus; } public static final class Builder { private String creationTime; private java.util.List<EgressRules> egressRules; private java.util.List<IngressRules> ingressRules; private String resourceGroupId; private java.util.List<Tags> tags; private String trafficMirrorFilterDescription; private String trafficMirrorFilterId; private String trafficMirrorFilterName; private String trafficMirrorFilterStatus; private Builder() { } private Builder(TrafficMirrorFilters model) { this.creationTime = model.creationTime; this.egressRules = model.egressRules; this.ingressRules = model.ingressRules; this.resourceGroupId = model.resourceGroupId; this.tags = model.tags; this.trafficMirrorFilterDescription = model.trafficMirrorFilterDescription; this.trafficMirrorFilterId = model.trafficMirrorFilterId; this.trafficMirrorFilterName = model.trafficMirrorFilterName; this.trafficMirrorFilterStatus = model.trafficMirrorFilterStatus; } /** * <p>The time when the filter is created.</p> * * <strong>example:</strong> * <p>2023-09-05T15:26Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The information about the outbound rules.</p> */ public Builder egressRules(java.util.List<EgressRules> egressRules) { this.egressRules = egressRules; return this; } /** * <p>The information about the inbound rules.</p> */ public Builder ingressRules(java.util.List<IngressRules> ingressRules) { this.ingressRules = ingressRules; return this; } /** * <p>The ID of the resource group to which the traffic mirror session belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The description of the filter.</p> * * <strong>example:</strong> * <p>This is a filter.</p> */ public Builder trafficMirrorFilterDescription(String trafficMirrorFilterDescription) { this.trafficMirrorFilterDescription = trafficMirrorFilterDescription; return this; } /** * <p>The ID of the filter.</p> * * <strong>example:</strong> * <p>tmf-j6cmls82xnc86vtpe****</p> */ public Builder trafficMirrorFilterId(String trafficMirrorFilterId) { this.trafficMirrorFilterId = trafficMirrorFilterId; return this; } /** * <p>The filter name.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder trafficMirrorFilterName(String trafficMirrorFilterName) { this.trafficMirrorFilterName = trafficMirrorFilterName; return this; } /** * <p>The status of the filter. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder trafficMirrorFilterStatus(String trafficMirrorFilterStatus) { this.trafficMirrorFilterStatus = trafficMirrorFilterStatus; return this; } public TrafficMirrorFilters build() { return new TrafficMirrorFilters(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTrafficMirrorSessionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTrafficMirrorSessionsRequest} extends {@link RequestModel} * * <p>ListTrafficMirrorSessionsRequest</p> */ public class ListTrafficMirrorSessionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Enabled") private Boolean enabled; @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("Priority") private Integer priority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId") private String trafficMirrorFilterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionIds") @com.aliyun.core.annotation.Validation(maxLength = 128) private java.util.List<String> trafficMirrorSessionIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionName") private String trafficMirrorSessionName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorSourceId") private String trafficMirrorSourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorTargetId") private String trafficMirrorTargetId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VirtualNetworkId") private Integer virtualNetworkId; private ListTrafficMirrorSessionsRequest(Builder builder) { super(builder); this.enabled = builder.enabled; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.priority = builder.priority; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tags = builder.tags; this.trafficMirrorFilterId = builder.trafficMirrorFilterId; this.trafficMirrorSessionIds = builder.trafficMirrorSessionIds; this.trafficMirrorSessionName = builder.trafficMirrorSessionName; this.trafficMirrorSourceId = builder.trafficMirrorSourceId; this.trafficMirrorTargetId = builder.trafficMirrorTargetId; this.virtualNetworkId = builder.virtualNetworkId; } public static Builder builder() { return new Builder(); } public static ListTrafficMirrorSessionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return enabled */ public Boolean getEnabled() { return this.enabled; } /** * @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 priority */ public Integer getPriority() { return this.priority; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return trafficMirrorFilterId */ public String getTrafficMirrorFilterId() { return this.trafficMirrorFilterId; } /** * @return trafficMirrorSessionIds */ public java.util.List<String> getTrafficMirrorSessionIds() { return this.trafficMirrorSessionIds; } /** * @return trafficMirrorSessionName */ public String getTrafficMirrorSessionName() { return this.trafficMirrorSessionName; } /** * @return trafficMirrorSourceId */ public String getTrafficMirrorSourceId() { return this.trafficMirrorSourceId; } /** * @return trafficMirrorTargetId */ public String getTrafficMirrorTargetId() { return this.trafficMirrorTargetId; } /** * @return virtualNetworkId */ public Integer getVirtualNetworkId() { return this.virtualNetworkId; } public static final class Builder extends Request.Builder<ListTrafficMirrorSessionsRequest, Builder> { private Boolean enabled; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private Integer priority; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private String trafficMirrorFilterId; private java.util.List<String> trafficMirrorSessionIds; private String trafficMirrorSessionName; private String trafficMirrorSourceId; private String trafficMirrorTargetId; private Integer virtualNetworkId; private Builder() { super(); } private Builder(ListTrafficMirrorSessionsRequest request) { super(request); this.enabled = request.enabled; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.priority = request.priority; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; this.trafficMirrorFilterId = request.trafficMirrorFilterId; this.trafficMirrorSessionIds = request.trafficMirrorSessionIds; this.trafficMirrorSessionName = request.trafficMirrorSessionName; this.trafficMirrorSourceId = request.trafficMirrorSourceId; this.trafficMirrorTargetId = request.trafficMirrorTargetId; this.virtualNetworkId = request.virtualNetworkId; } /** * <p>Specifies whether to enable the traffic mirror session. Valid values:</p> * <ul> * <li><strong>false</strong>: does not enable the traffic mirror session.</li> * <li><strong>true</strong>: enables the traffic mirror session.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enabled(Boolean enabled) { this.putQueryParameter("Enabled", enabled); this.enabled = enabled; return this; } /** * <p>The maximum number of entries to return. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If this is your first query and no next queries are to be sent, ignore this parameter.</li> * <li>If a next query is to be sent, set the value 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 priority of the traffic mirror session. Valid values: <strong>1</strong> to <strong>32766</strong>.</p> * <p>A smaller value indicates a higher priority. You cannot specify identical priorities for traffic mirror sessions that are created in the same region by using the same account.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder priority(Integer priority) { this.putQueryParameter("Priority", priority); this.priority = priority; return this; } /** * <p>The ID of the region to which the traffic mirror session belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hongkong</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the mirrored traffic belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tags of the resource.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The ID of the traffic mirror filter.</p> * * <strong>example:</strong> * <p>tmf-j6cmls82xnc86vtpe****</p> */ public Builder trafficMirrorFilterId(String trafficMirrorFilterId) { this.putQueryParameter("TrafficMirrorFilterId", trafficMirrorFilterId); this.trafficMirrorFilterId = trafficMirrorFilterId; return this; } /** * <p>The IDs of the traffic mirror session. The maximum value of N is 100, which indicates that you can query up to 100 traffic mirror sessions at a time.</p> * * <strong>example:</strong> * <p>tms-j6cla50buc44ap8tu****</p> */ public Builder trafficMirrorSessionIds(java.util.List<String> trafficMirrorSessionIds) { this.putQueryParameter("TrafficMirrorSessionIds", trafficMirrorSessionIds); this.trafficMirrorSessionIds = trafficMirrorSessionIds; return this; } /** * <p>The name of the traffic mirror session.</p> * <p>The name must be 1 to 128 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder trafficMirrorSessionName(String trafficMirrorSessionName) { this.putQueryParameter("TrafficMirrorSessionName", trafficMirrorSessionName); this.trafficMirrorSessionName = trafficMirrorSessionName; return this; } /** * <p>The ID of the traffic mirror source. You can specify only an elastic network interface (ENI) as the mirror source.</p> * * <strong>example:</strong> * <p>eni-j6c8znm5l1yt4sox*****</p> */ public Builder trafficMirrorSourceId(String trafficMirrorSourceId) { this.putQueryParameter("TrafficMirrorSourceId", trafficMirrorSourceId); this.trafficMirrorSourceId = trafficMirrorSourceId; return this; } /** * <p>The ID of the traffic mirror destination. You can specify only an ENI or a Server Load Balancer (SLB) instance as a traffic mirror destination.</p> * * <strong>example:</strong> * <p>eni-j6c2fp57q8rr47rp****</p> */ public Builder trafficMirrorTargetId(String trafficMirrorTargetId) { this.putQueryParameter("TrafficMirrorTargetId", trafficMirrorTargetId); this.trafficMirrorTargetId = trafficMirrorTargetId; return this; } /** * <p>The VXLAN network identifier (VNI) that is used to distinguish different mirrored traffic. Valid values: <strong>0</strong> to <strong>16777215</strong>. You can use VNIs to identify mirrored traffic from different sessions at the traffic mirror destination. You can specify a custom VNI or use a random VNI that is allocated by the system. If you want the system to randomly allocate a VNI, ignore this parameter.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder virtualNetworkId(Integer virtualNetworkId) { this.putQueryParameter("VirtualNetworkId", virtualNetworkId); this.virtualNetworkId = virtualNetworkId; return this; } @Override public ListTrafficMirrorSessionsRequest build() { return new ListTrafficMirrorSessionsRequest(this); } } /** * * {@link ListTrafficMirrorSessionsRequest} extends {@link TeaModel} * * <p>ListTrafficMirrorSessionsRequest</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 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 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 can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. It cannot contain <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public 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/ListTrafficMirrorSessionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTrafficMirrorSessionsResponse} extends {@link TeaModel} * * <p>ListTrafficMirrorSessionsResponse</p> */ public class ListTrafficMirrorSessionsResponse 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 ListTrafficMirrorSessionsResponseBody body; private ListTrafficMirrorSessionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListTrafficMirrorSessionsResponse 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 ListTrafficMirrorSessionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListTrafficMirrorSessionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListTrafficMirrorSessionsResponseBody body); @Override ListTrafficMirrorSessionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListTrafficMirrorSessionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListTrafficMirrorSessionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListTrafficMirrorSessionsResponse 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(ListTrafficMirrorSessionsResponseBody body) { this.body = body; return this; } @Override public ListTrafficMirrorSessionsResponse build() { return new ListTrafficMirrorSessionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListTrafficMirrorSessionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListTrafficMirrorSessionsResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorSessionsResponseBody</p> */ public class ListTrafficMirrorSessionsResponseBody 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("TotalCount") private String totalCount; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessions") private java.util.List<TrafficMirrorSessions> trafficMirrorSessions; private ListTrafficMirrorSessionsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.trafficMirrorSessions = builder.trafficMirrorSessions; } public static Builder builder() { return new Builder(); } public static ListTrafficMirrorSessionsResponseBody 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 totalCount */ public String getTotalCount() { return this.totalCount; } /** * @return trafficMirrorSessions */ public java.util.List<TrafficMirrorSessions> getTrafficMirrorSessions() { return this.trafficMirrorSessions; } public static final class Builder { private String nextToken; private String requestId; private String totalCount; private java.util.List<TrafficMirrorSessions> trafficMirrorSessions; private Builder() { } private Builder(ListTrafficMirrorSessionsResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; this.trafficMirrorSessions = model.trafficMirrorSessions; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If no value is returned for <strong>NextToken</strong>, no next queries are 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>739CA01C-92EB-4C69-BCC0-280149C6F41E</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(String totalCount) { this.totalCount = totalCount; return this; } /** * <p>The details about the traffic mirror session.</p> */ public Builder trafficMirrorSessions(java.util.List<TrafficMirrorSessions> trafficMirrorSessions) { this.trafficMirrorSessions = trafficMirrorSessions; return this; } public ListTrafficMirrorSessionsResponseBody build() { return new ListTrafficMirrorSessionsResponseBody(this); } } /** * * {@link ListTrafficMirrorSessionsResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorSessionsResponseBody</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.</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 Tags build() { return new Tags(this); } } } /** * * {@link ListTrafficMirrorSessionsResponseBody} extends {@link TeaModel} * * <p>ListTrafficMirrorSessionsResponseBody</p> */ public static class TrafficMirrorSessions extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Enabled") private Boolean enabled; @com.aliyun.core.annotation.NameInMap("PacketLength") private Integer packetLength; @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("TrafficMirrorFilterId") private String trafficMirrorFilterId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionBusinessStatus") private String trafficMirrorSessionBusinessStatus; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionDescription") private String trafficMirrorSessionDescription; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionId") private String trafficMirrorSessionId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionName") private String trafficMirrorSessionName; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionStatus") private String trafficMirrorSessionStatus; @com.aliyun.core.annotation.NameInMap("TrafficMirrorSourceIds") private java.util.List<String> trafficMirrorSourceIds; @com.aliyun.core.annotation.NameInMap("TrafficMirrorTargetId") private String trafficMirrorTargetId; @com.aliyun.core.annotation.NameInMap("TrafficMirrorTargetType") private String trafficMirrorTargetType; @com.aliyun.core.annotation.NameInMap("VirtualNetworkId") private Integer virtualNetworkId; private TrafficMirrorSessions(Builder builder) { this.creationTime = builder.creationTime; this.enabled = builder.enabled; this.packetLength = builder.packetLength; this.priority = builder.priority; this.resourceGroupId = builder.resourceGroupId; this.tags = builder.tags; this.trafficMirrorFilterId = builder.trafficMirrorFilterId; this.trafficMirrorSessionBusinessStatus = builder.trafficMirrorSessionBusinessStatus; this.trafficMirrorSessionDescription = builder.trafficMirrorSessionDescription; this.trafficMirrorSessionId = builder.trafficMirrorSessionId; this.trafficMirrorSessionName = builder.trafficMirrorSessionName; this.trafficMirrorSessionStatus = builder.trafficMirrorSessionStatus; this.trafficMirrorSourceIds = builder.trafficMirrorSourceIds; this.trafficMirrorTargetId = builder.trafficMirrorTargetId; this.trafficMirrorTargetType = builder.trafficMirrorTargetType; this.virtualNetworkId = builder.virtualNetworkId; } public static Builder builder() { return new Builder(); } public static TrafficMirrorSessions create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return enabled */ public Boolean getEnabled() { return this.enabled; } /** * @return packetLength */ public Integer getPacketLength() { return this.packetLength; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return trafficMirrorFilterId */ public String getTrafficMirrorFilterId() { return this.trafficMirrorFilterId; } /** * @return trafficMirrorSessionBusinessStatus */ public String getTrafficMirrorSessionBusinessStatus() { return this.trafficMirrorSessionBusinessStatus; } /** * @return trafficMirrorSessionDescription */ public String getTrafficMirrorSessionDescription() { return this.trafficMirrorSessionDescription; } /** * @return trafficMirrorSessionId */ public String getTrafficMirrorSessionId() { return this.trafficMirrorSessionId; } /** * @return trafficMirrorSessionName */ public String getTrafficMirrorSessionName() { return this.trafficMirrorSessionName; } /** * @return trafficMirrorSessionStatus */ public String getTrafficMirrorSessionStatus() { return this.trafficMirrorSessionStatus; } /** * @return trafficMirrorSourceIds */ public java.util.List<String> getTrafficMirrorSourceIds() { return this.trafficMirrorSourceIds; } /** * @return trafficMirrorTargetId */ public String getTrafficMirrorTargetId() { return this.trafficMirrorTargetId; } /** * @return trafficMirrorTargetType */ public String getTrafficMirrorTargetType() { return this.trafficMirrorTargetType; } /** * @return virtualNetworkId */ public Integer getVirtualNetworkId() { return this.virtualNetworkId; } public static final class Builder { private String creationTime; private Boolean enabled; private Integer packetLength; private Integer priority; private String resourceGroupId; private java.util.List<Tags> tags; private String trafficMirrorFilterId; private String trafficMirrorSessionBusinessStatus; private String trafficMirrorSessionDescription; private String trafficMirrorSessionId; private String trafficMirrorSessionName; private String trafficMirrorSessionStatus; private java.util.List<String> trafficMirrorSourceIds; private String trafficMirrorTargetId; private String trafficMirrorTargetType; private Integer virtualNetworkId; private Builder() { } private Builder(TrafficMirrorSessions model) { this.creationTime = model.creationTime; this.enabled = model.enabled; this.packetLength = model.packetLength; this.priority = model.priority; this.resourceGroupId = model.resourceGroupId; this.tags = model.tags; this.trafficMirrorFilterId = model.trafficMirrorFilterId; this.trafficMirrorSessionBusinessStatus = model.trafficMirrorSessionBusinessStatus; this.trafficMirrorSessionDescription = model.trafficMirrorSessionDescription; this.trafficMirrorSessionId = model.trafficMirrorSessionId; this.trafficMirrorSessionName = model.trafficMirrorSessionName; this.trafficMirrorSessionStatus = model.trafficMirrorSessionStatus; this.trafficMirrorSourceIds = model.trafficMirrorSourceIds; this.trafficMirrorTargetId = model.trafficMirrorTargetId; this.trafficMirrorTargetType = model.trafficMirrorTargetType; this.virtualNetworkId = model.virtualNetworkId; } /** * <p>The time when the session is created.</p> * * <strong>example:</strong> * <p>2023-09-05T15:26Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>Indicates whether the traffic mirror session was enabled.</p> * <ul> * <li><strong>false</strong> </li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * <p>The maximum transmission unit.</p> * * <strong>example:</strong> * <p>1500</p> */ public Builder packetLength(Integer packetLength) { this.packetLength = packetLength; return this; } /** * <p>The priority of the traffic mirror session.</p> * <p>A smaller value indicates a higher priority.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder priority(Integer priority) { this.priority = priority; return this; } /** * <p>The ID of the resource group to which the traffic mirror session belongs.</p> * * <strong>example:</strong> * <p>rg-bp67acfmxazb4ph****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The ID of the filter.</p> * * <strong>example:</strong> * <p>tmf-j6cmls82xnc86vtpe****</p> */ public Builder trafficMirrorFilterId(String trafficMirrorFilterId) { this.trafficMirrorFilterId = trafficMirrorFilterId; return this; } /** * <p>The status of the traffic mirror session.</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder trafficMirrorSessionBusinessStatus(String trafficMirrorSessionBusinessStatus) { this.trafficMirrorSessionBusinessStatus = trafficMirrorSessionBusinessStatus; return this; } /** * <p>The description of the traffic mirror session.</p> * * <strong>example:</strong> * <p>This is a session.</p> */ public Builder trafficMirrorSessionDescription(String trafficMirrorSessionDescription) { this.trafficMirrorSessionDescription = trafficMirrorSessionDescription; return this; } /** * <p>The ID of the traffic mirror session.</p> * * <strong>example:</strong> * <p>tms-j6cla50buc44ap8tu****</p> */ public Builder trafficMirrorSessionId(String trafficMirrorSessionId) { this.trafficMirrorSessionId = trafficMirrorSessionId; return this; } /** * <p>The name of the traffic mirror session.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder trafficMirrorSessionName(String trafficMirrorSessionName) { this.trafficMirrorSessionName = trafficMirrorSessionName; return this; } /** * <p>The status of the traffic mirror session. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder trafficMirrorSessionStatus(String trafficMirrorSessionStatus) { this.trafficMirrorSessionStatus = trafficMirrorSessionStatus; return this; } /** * <p>The ID of the traffic mirror source.</p> */ public Builder trafficMirrorSourceIds(java.util.List<String> trafficMirrorSourceIds) { this.trafficMirrorSourceIds = trafficMirrorSourceIds; return this; } /** * <p>The ID of the traffic mirror destination.</p> * * <strong>example:</strong> * <p>eni-j6c2fp57q8rr47rp****</p> */ public Builder trafficMirrorTargetId(String trafficMirrorTargetId) { this.trafficMirrorTargetId = trafficMirrorTargetId; return this; } /** * <p>The type of the traffic mirror destination. Valid values:</p> * <ul> * <li><strong>NetworkInterface</strong>: an elastic network interface (ENI)</li> * <li><strong>SLB</strong>: an internal-facing Server Load Balancer (SLB) instance</li> * </ul> * * <strong>example:</strong> * <p>NetworkInterface</p> */ public Builder trafficMirrorTargetType(String trafficMirrorTargetType) { this.trafficMirrorTargetType = trafficMirrorTargetType; return this; } /** * <p>You can specify VNIs to distinguish different mirrored traffic.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder virtualNetworkId(Integer virtualNetworkId) { this.virtualNetworkId = virtualNetworkId; return this; } public TrafficMirrorSessions build() { return new TrafficMirrorSessions(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVSwitchCidrReservationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVSwitchCidrReservationsRequest} extends {@link RequestModel} * * <p>ListVSwitchCidrReservationsRequest</p> */ public class ListVSwitchCidrReservationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long 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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationIds") private java.util.List<String> vSwitchCidrReservationIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationType") private String vSwitchCidrReservationType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; private ListVSwitchCidrReservationsRequest(Builder builder) { super(builder); this.ipVersion = builder.ipVersion; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tags = builder.tags; this.vSwitchCidrReservationIds = builder.vSwitchCidrReservationIds; this.vSwitchCidrReservationType = builder.vSwitchCidrReservationType; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static ListVSwitchCidrReservationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return maxResults */ public Long 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 resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return vSwitchCidrReservationIds */ public java.util.List<String> getVSwitchCidrReservationIds() { return this.vSwitchCidrReservationIds; } /** * @return vSwitchCidrReservationType */ public String getVSwitchCidrReservationType() { return this.vSwitchCidrReservationType; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder extends Request.Builder<ListVSwitchCidrReservationsRequest, Builder> { private String ipVersion; private Long maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<Tags> tags; private java.util.List<String> vSwitchCidrReservationIds; private String vSwitchCidrReservationType; private String vSwitchId; private Builder() { super(); } private Builder(ListVSwitchCidrReservationsRequest request) { super(request); this.ipVersion = request.ipVersion; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tags = request.tags; this.vSwitchCidrReservationIds = request.vSwitchCidrReservationIds; this.vSwitchCidrReservationType = request.vSwitchCidrReservationType; this.vSwitchId = request.vSwitchId; } /** * <p>The IP version of the reserved CIDR block. Valid values:</p> * <ul> * <li><strong>IPv4</strong> (default)</li> * <li><strong>IPv6</strong></li> * </ul> * * <strong>example:</strong> * <p>IPv4</p> */ public Builder ipVersion(String ipVersion) { this.putQueryParameter("IpVersion", ipVersion); this.ipVersion = ipVersion; return this; } /** * <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>100</strong>. Default value: <strong>10</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</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 region ID of the vSwitch.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tags.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The ID of the reserved CIDR block. You can specify at most 10 IDs.</p> */ public Builder vSwitchCidrReservationIds(java.util.List<String> vSwitchCidrReservationIds) { this.putQueryParameter("VSwitchCidrReservationIds", vSwitchCidrReservationIds); this.vSwitchCidrReservationIds = vSwitchCidrReservationIds; return this; } /** * <p>The type of the reserved CIDR block. Set the value to <strong>prefix</strong>.</p> * <blockquote> * <p> When you allocate CIDR blocks, or enable the service to automatically allocate CIDR blocks to elastic network interfaces (ENIs), the CIDR blocks to allocate must fall into the reserved CIDR block. If the reserved CIDR is exhausted, an error message is returned.</p> * </blockquote> * * <strong>example:</strong> * <p>prefix</p> */ public Builder vSwitchCidrReservationType(String vSwitchCidrReservationType) { this.putQueryParameter("VSwitchCidrReservationType", vSwitchCidrReservationType); this.vSwitchCidrReservationType = vSwitchCidrReservationType; return this; } /** * <p>The ID of the vSwitch for which you want to query reserved CIDR blocks.</p> * * <strong>example:</strong> * <p>vsw-25navfgbue4g****</p> */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } @Override public ListVSwitchCidrReservationsRequest build() { return new ListVSwitchCidrReservationsRequest(this); } } /** * * {@link ListVSwitchCidrReservationsRequest} extends {@link TeaModel} * * <p>ListVSwitchCidrReservationsRequest</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>A tag key can be up to 128 characters in length. It cannot start with aliyun or acs:, and cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The 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 start with acs: or aliyun. It cannot contain http:// or https://.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public 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/ListVSwitchCidrReservationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVSwitchCidrReservationsResponse} extends {@link TeaModel} * * <p>ListVSwitchCidrReservationsResponse</p> */ public class ListVSwitchCidrReservationsResponse 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 ListVSwitchCidrReservationsResponseBody body; private ListVSwitchCidrReservationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListVSwitchCidrReservationsResponse 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 ListVSwitchCidrReservationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListVSwitchCidrReservationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListVSwitchCidrReservationsResponseBody body); @Override ListVSwitchCidrReservationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListVSwitchCidrReservationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListVSwitchCidrReservationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListVSwitchCidrReservationsResponse 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(ListVSwitchCidrReservationsResponseBody body) { this.body = body; return this; } @Override public ListVSwitchCidrReservationsResponse build() { return new ListVSwitchCidrReservationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVSwitchCidrReservationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVSwitchCidrReservationsResponseBody} extends {@link TeaModel} * * <p>ListVSwitchCidrReservationsResponseBody</p> */ public class ListVSwitchCidrReservationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @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 Long totalCount; @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservations") private java.util.List<VSwitchCidrReservations> vSwitchCidrReservations; private ListVSwitchCidrReservationsResponseBody(Builder builder) { this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vSwitchCidrReservations = builder.vSwitchCidrReservations; } public static Builder builder() { return new Builder(); } public static ListVSwitchCidrReservationsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } /** * @return vSwitchCidrReservations */ public java.util.List<VSwitchCidrReservations> getVSwitchCidrReservations() { return this.vSwitchCidrReservations; } public static final class Builder { private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private java.util.List<VSwitchCidrReservations> vSwitchCidrReservations; private Builder() { } private Builder(ListVSwitchCidrReservationsResponseBody model) { this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vSwitchCidrReservations = model.vSwitchCidrReservations; } /** * <p>The number of entries to return per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. Valid values:</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 is the token that determines the start point of the next query.</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 total number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } /** * <p>A list of reserved CIDR blocks.</p> */ public Builder vSwitchCidrReservations(java.util.List<VSwitchCidrReservations> vSwitchCidrReservations) { this.vSwitchCidrReservations = vSwitchCidrReservations; return this; } public ListVSwitchCidrReservationsResponseBody build() { return new ListVSwitchCidrReservationsResponseBody(this); } } /** * * {@link ListVSwitchCidrReservationsResponseBody} extends {@link TeaModel} * * <p>ListVSwitchCidrReservationsResponseBody</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.</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 Tags build() { return new Tags(this); } } } /** * * {@link ListVSwitchCidrReservationsResponseBody} extends {@link TeaModel} * * <p>ListVSwitchCidrReservationsResponseBody</p> */ public static class VSwitchCidrReservations extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssignedCidrCount") private Integer assignedCidrCount; @com.aliyun.core.annotation.NameInMap("AvailableCidrCount") private Integer availableCidrCount; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationCidr") private String vSwitchCidrReservationCidr; @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationDescription") private String vSwitchCidrReservationDescription; @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationId") private String vSwitchCidrReservationId; @com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationName") private String vSwitchCidrReservationName; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private VSwitchCidrReservations(Builder builder) { this.assignedCidrCount = builder.assignedCidrCount; this.availableCidrCount = builder.availableCidrCount; this.creationTime = builder.creationTime; this.ipVersion = builder.ipVersion; this.status = builder.status; this.tags = builder.tags; this.type = builder.type; this.vSwitchCidrReservationCidr = builder.vSwitchCidrReservationCidr; this.vSwitchCidrReservationDescription = builder.vSwitchCidrReservationDescription; this.vSwitchCidrReservationId = builder.vSwitchCidrReservationId; this.vSwitchCidrReservationName = builder.vSwitchCidrReservationName; this.vSwitchId = builder.vSwitchId; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static VSwitchCidrReservations create() { return builder().build(); } /** * @return assignedCidrCount */ public Integer getAssignedCidrCount() { return this.assignedCidrCount; } /** * @return availableCidrCount */ public Integer getAvailableCidrCount() { return this.availableCidrCount; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return type */ public String getType() { return this.type; } /** * @return vSwitchCidrReservationCidr */ public String getVSwitchCidrReservationCidr() { return this.vSwitchCidrReservationCidr; } /** * @return vSwitchCidrReservationDescription */ public String getVSwitchCidrReservationDescription() { return this.vSwitchCidrReservationDescription; } /** * @return vSwitchCidrReservationId */ public String getVSwitchCidrReservationId() { return this.vSwitchCidrReservationId; } /** * @return vSwitchCidrReservationName */ public String getVSwitchCidrReservationName() { return this.vSwitchCidrReservationName; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private Integer assignedCidrCount; private Integer availableCidrCount; private String creationTime; private String ipVersion; private String status; private java.util.List<Tags> tags; private String type; private String vSwitchCidrReservationCidr; private String vSwitchCidrReservationDescription; private String vSwitchCidrReservationId; private String vSwitchCidrReservationName; private String vSwitchId; private String vpcId; private Builder() { } private Builder(VSwitchCidrReservations model) { this.assignedCidrCount = model.assignedCidrCount; this.availableCidrCount = model.availableCidrCount; this.creationTime = model.creationTime; this.ipVersion = model.ipVersion; this.status = model.status; this.tags = model.tags; this.type = model.type; this.vSwitchCidrReservationCidr = model.vSwitchCidrReservationCidr; this.vSwitchCidrReservationDescription = model.vSwitchCidrReservationDescription; this.vSwitchCidrReservationId = model.vSwitchCidrReservationId; this.vSwitchCidrReservationName = model.vSwitchCidrReservationName; this.vSwitchId = model.vSwitchId; this.vpcId = model.vpcId; } /** * <p>The number of used prefixes in the reserved CIDR block.</p> * * <strong>example:</strong> * <p>6</p> */ public Builder assignedCidrCount(Integer assignedCidrCount) { this.assignedCidrCount = assignedCidrCount; return this; } /** * <p>The number of available prefixes in the reserved CIDR block.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder availableCidrCount(Integer availableCidrCount) { this.availableCidrCount = availableCidrCount; return this; } /** * <p>The time when the reserved CIDR block was created.</p> * * <strong>example:</strong> * <p>2023-03-14T10:02:37Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The IP version of the reserved CIDR block. Valid values:</p> * <ul> * <li><strong>IPv4</strong> (default)</li> * <li><strong>IPv6</strong></li> * </ul> * * <strong>example:</strong> * <p>IPv4</p> */ public Builder ipVersion(String ipVersion) { this.ipVersion = ipVersion; return this; } /** * <p>The status of the reserved CIDR block. Valid values:</p> * <ul> * <li><strong>Assigning</strong></li> * <li><strong>Assigned</strong></li> * <li><strong>Releasing</strong></li> * <li><strong>Released</strong></li> * </ul> * * <strong>example:</strong> * <p>Assigned</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tags.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The type of the reserved CIDR block. Valid value: <strong>prefix</strong>. CIDR blocks are allocated from the reserved CIDR block.</p> * * <strong>example:</strong> * <p>prefix</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The reserved CIDR block.</p> * * <strong>example:</strong> * <p>192.168.1.64/28</p> */ public Builder vSwitchCidrReservationCidr(String vSwitchCidrReservationCidr) { this.vSwitchCidrReservationCidr = vSwitchCidrReservationCidr; return this; } /** * <p>The description of the reserved CIDR block.</p> * * <strong>example:</strong> * <p>ReservationDescription</p> */ public Builder vSwitchCidrReservationDescription(String vSwitchCidrReservationDescription) { this.vSwitchCidrReservationDescription = vSwitchCidrReservationDescription; return this; } /** * <p>The ID of the reserved CIDR block.</p> * * <strong>example:</strong> * <p>vcr-bp1m12saqteraw3rp****</p> */ public Builder vSwitchCidrReservationId(String vSwitchCidrReservationId) { this.vSwitchCidrReservationId = vSwitchCidrReservationId; return this; } /** * <p>The name of the reserved CIDR block.</p> * * <strong>example:</strong> * <p>ReservationName</p> */ public Builder vSwitchCidrReservationName(String vSwitchCidrReservationName) { this.vSwitchCidrReservationName = vSwitchCidrReservationName; return this; } /** * <p>The ID of the vSwitch to which the reserved CIDR block belongs.</p> * * <strong>example:</strong> * <p>vsw-25navfgbue4g****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The virtual private cloud (VPC) to which the reserved CIDR block belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1wdz2pdhgurz1od****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public VSwitchCidrReservations build() { return new VSwitchCidrReservations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVirtualPhysicalConnectionsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVirtualPhysicalConnectionsRequest} extends {@link RequestModel} * * <p>ListVirtualPhysicalConnectionsRequest</p> */ public class ListVirtualPhysicalConnectionsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsConfirmed") private Boolean isConfirmed; @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("PhysicalConnectionId") private String physicalConnectionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnectionAliUids") private java.util.List<String> virtualPhysicalConnectionAliUids; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnectionBusinessStatus") private String virtualPhysicalConnectionBusinessStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnectionIds") private java.util.List<String> virtualPhysicalConnectionIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnectionStatuses") private java.util.List<String> virtualPhysicalConnectionStatuses; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VlanIds") private java.util.List<String> vlanIds; private ListVirtualPhysicalConnectionsRequest(Builder builder) { super(builder); this.isConfirmed = builder.isConfirmed; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.physicalConnectionId = builder.physicalConnectionId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.tags = builder.tags; this.virtualPhysicalConnectionAliUids = builder.virtualPhysicalConnectionAliUids; this.virtualPhysicalConnectionBusinessStatus = builder.virtualPhysicalConnectionBusinessStatus; this.virtualPhysicalConnectionIds = builder.virtualPhysicalConnectionIds; this.virtualPhysicalConnectionStatuses = builder.virtualPhysicalConnectionStatuses; this.vlanIds = builder.vlanIds; } public static Builder builder() { return new Builder(); } public static ListVirtualPhysicalConnectionsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return isConfirmed */ public Boolean getIsConfirmed() { return this.isConfirmed; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return virtualPhysicalConnectionAliUids */ public java.util.List<String> getVirtualPhysicalConnectionAliUids() { return this.virtualPhysicalConnectionAliUids; } /** * @return virtualPhysicalConnectionBusinessStatus */ public String getVirtualPhysicalConnectionBusinessStatus() { return this.virtualPhysicalConnectionBusinessStatus; } /** * @return virtualPhysicalConnectionIds */ public java.util.List<String> getVirtualPhysicalConnectionIds() { return this.virtualPhysicalConnectionIds; } /** * @return virtualPhysicalConnectionStatuses */ public java.util.List<String> getVirtualPhysicalConnectionStatuses() { return this.virtualPhysicalConnectionStatuses; } /** * @return vlanIds */ public java.util.List<String> getVlanIds() { return this.vlanIds; } public static final class Builder extends Request.Builder<ListVirtualPhysicalConnectionsRequest, Builder> { private Boolean isConfirmed; private Integer maxResults; private String nextToken; private String physicalConnectionId; private String regionId; private String resourceGroupId; private java.util.List<Tags> tags; private java.util.List<String> virtualPhysicalConnectionAliUids; private String virtualPhysicalConnectionBusinessStatus; private java.util.List<String> virtualPhysicalConnectionIds; private java.util.List<String> virtualPhysicalConnectionStatuses; private java.util.List<String> vlanIds; private Builder() { super(); } private Builder(ListVirtualPhysicalConnectionsRequest request) { super(request); this.isConfirmed = request.isConfirmed; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.physicalConnectionId = request.physicalConnectionId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.tags = request.tags; this.virtualPhysicalConnectionAliUids = request.virtualPhysicalConnectionAliUids; this.virtualPhysicalConnectionBusinessStatus = request.virtualPhysicalConnectionBusinessStatus; this.virtualPhysicalConnectionIds = request.virtualPhysicalConnectionIds; this.virtualPhysicalConnectionStatuses = request.virtualPhysicalConnectionStatuses; this.vlanIds = request.vlanIds; } /** * <p>Specifies whether the hosted connection is accepted by the tenant. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder isConfirmed(Boolean isConfirmed) { this.putQueryParameter("IsConfirmed", isConfirmed); this.isConfirmed = isConfirmed; 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 maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</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>dd20****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The ID of the Express Connect circuit over which the hosted connections are created.</p> * <p>Express Connect circuits in this topic refer to Express Connect circuits over which hosted connections are created.</p> * * <strong>example:</strong> * <p>pc-bp1ciz7ekd2grn1as****</p> */ public Builder physicalConnectionId(String physicalConnectionId) { this.putQueryParameter("PhysicalConnectionId", physicalConnectionId); this.physicalConnectionId = physicalConnectionId; return this; } /** * <p>The region ID of the hosted connection.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the hosted connection belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxazb4p****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * <p>The information about the Alibaba Cloud account that owns the hosted connection.</p> * * <strong>example:</strong> * <p>189xxx</p> */ public Builder virtualPhysicalConnectionAliUids(java.util.List<String> virtualPhysicalConnectionAliUids) { this.putQueryParameter("VirtualPhysicalConnectionAliUids", virtualPhysicalConnectionAliUids); this.virtualPhysicalConnectionAliUids = virtualPhysicalConnectionAliUids; return this; } /** * <p>The business status of the hosted connection. 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 virtualPhysicalConnectionBusinessStatus(String virtualPhysicalConnectionBusinessStatus) { this.putQueryParameter("VirtualPhysicalConnectionBusinessStatus", virtualPhysicalConnectionBusinessStatus); this.virtualPhysicalConnectionBusinessStatus = virtualPhysicalConnectionBusinessStatus; return this; } /** * <p>The information about the hosted connection.</p> * * <strong>example:</strong> * <p>pc-xxx</p> */ public Builder virtualPhysicalConnectionIds(java.util.List<String> virtualPhysicalConnectionIds) { this.putQueryParameter("VirtualPhysicalConnectionIds", virtualPhysicalConnectionIds); this.virtualPhysicalConnectionIds = virtualPhysicalConnectionIds; return this; } /** * <p>The business status of the hosted connection.</p> * * <strong>example:</strong> * <p>pc-xxx</p> */ public Builder virtualPhysicalConnectionStatuses(java.util.List<String> virtualPhysicalConnectionStatuses) { this.putQueryParameter("VirtualPhysicalConnectionStatuses", virtualPhysicalConnectionStatuses); this.virtualPhysicalConnectionStatuses = virtualPhysicalConnectionStatuses; return this; } /** * <p>The VLAN ID of the hosted connection.</p> * * <strong>example:</strong> * <p>pc-xxx</p> */ public Builder vlanIds(java.util.List<String> vlanIds) { this.putQueryParameter("VlanIds", vlanIds); this.vlanIds = vlanIds; return this; } @Override public ListVirtualPhysicalConnectionsRequest build() { return new ListVirtualPhysicalConnectionsRequest(this); } } /** * * {@link ListVirtualPhysicalConnectionsRequest} extends {@link TeaModel} * * <p>ListVirtualPhysicalConnectionsRequest</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 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>It 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 to add 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 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/ListVirtualPhysicalConnectionsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVirtualPhysicalConnectionsResponse} extends {@link TeaModel} * * <p>ListVirtualPhysicalConnectionsResponse</p> */ public class ListVirtualPhysicalConnectionsResponse 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 ListVirtualPhysicalConnectionsResponseBody body; private ListVirtualPhysicalConnectionsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListVirtualPhysicalConnectionsResponse 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 ListVirtualPhysicalConnectionsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListVirtualPhysicalConnectionsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListVirtualPhysicalConnectionsResponseBody body); @Override ListVirtualPhysicalConnectionsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListVirtualPhysicalConnectionsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListVirtualPhysicalConnectionsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListVirtualPhysicalConnectionsResponse 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(ListVirtualPhysicalConnectionsResponseBody body) { this.body = body; return this; } @Override public ListVirtualPhysicalConnectionsResponse build() { return new ListVirtualPhysicalConnectionsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVirtualPhysicalConnectionsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVirtualPhysicalConnectionsResponseBody} extends {@link TeaModel} * * <p>ListVirtualPhysicalConnectionsResponseBody</p> */ public class ListVirtualPhysicalConnectionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Count") private Integer count; @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 Integer totalCount; @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnections") private java.util.List<VirtualPhysicalConnections> virtualPhysicalConnections; private ListVirtualPhysicalConnectionsResponseBody(Builder builder) { this.count = builder.count; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.virtualPhysicalConnections = builder.virtualPhysicalConnections; } public static Builder builder() { return new Builder(); } public static ListVirtualPhysicalConnectionsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return count */ public Integer getCount() { return this.count; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return virtualPhysicalConnections */ public java.util.List<VirtualPhysicalConnections> getVirtualPhysicalConnections() { return this.virtualPhysicalConnections; } public static final class Builder { private Integer count; private String nextToken; private String requestId; private Integer totalCount; private java.util.List<VirtualPhysicalConnections> virtualPhysicalConnections; private Builder() { } private Builder(ListVirtualPhysicalConnectionsResponseBody model) { this.count = model.count; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; this.virtualPhysicalConnections = model.virtualPhysicalConnections; } /** * <p>The number of entries returned in this query.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder count(Integer count) { this.count = count; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. 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 <strong>NextToken</strong> was returned in the previous query, specify the value to obtain the next set of results.</li> * </ul> * * <strong>example:</strong> * <p>dd20****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>2A55F69E-EE3D-5CBE-8805-734F7D5B46B9</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 list of hosted connections returned.</p> */ public Builder virtualPhysicalConnections(java.util.List<VirtualPhysicalConnections> virtualPhysicalConnections) { this.virtualPhysicalConnections = virtualPhysicalConnections; return this; } public ListVirtualPhysicalConnectionsResponseBody build() { return new ListVirtualPhysicalConnectionsResponseBody(this); } } /** * * {@link ListVirtualPhysicalConnectionsResponseBody} extends {@link TeaModel} * * <p>ListVirtualPhysicalConnectionsResponseBody</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 tag N that is added to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.</p> * <p>It 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 that is 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 Tags build() { return new Tags(this); } } } /** * * {@link ListVirtualPhysicalConnectionsResponseBody} extends {@link TeaModel} * * <p>ListVirtualPhysicalConnectionsResponseBody</p> */ public static class VirtualPhysicalConnections extends TeaModel { @com.aliyun.core.annotation.NameInMap("AccessPointId") private String accessPointId; @com.aliyun.core.annotation.NameInMap("AdLocation") private String adLocation; @com.aliyun.core.annotation.NameInMap("AliUid") private String aliUid; @com.aliyun.core.annotation.NameInMap("Bandwidth") private Long bandwidth; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("ChargeType") private String chargeType; @com.aliyun.core.annotation.NameInMap("CircuitCode") private String circuitCode; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EnabledTime") private String enabledTime; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("ExpectSpec") private String expectSpec; @com.aliyun.core.annotation.NameInMap("LineOperator") private String lineOperator; @com.aliyun.core.annotation.NameInMap("LoaStatus") private String loaStatus; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("OrderMode") private String orderMode; @com.aliyun.core.annotation.NameInMap("ParentPhysicalConnectionAliUid") private String parentPhysicalConnectionAliUid; @com.aliyun.core.annotation.NameInMap("ParentPhysicalConnectionId") private String parentPhysicalConnectionId; @com.aliyun.core.annotation.NameInMap("PeerLocation") private String peerLocation; @com.aliyun.core.annotation.NameInMap("PhysicalConnectionId") private String physicalConnectionId; @com.aliyun.core.annotation.NameInMap("PortNumber") private String portNumber; @com.aliyun.core.annotation.NameInMap("PortType") private String portType; @com.aliyun.core.annotation.NameInMap("ProductType") private String productType; @com.aliyun.core.annotation.NameInMap("RedundantPhysicalConnectionId") private String redundantPhysicalConnectionId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @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 java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("VirtualPhysicalConnectionStatus") private String virtualPhysicalConnectionStatus; @com.aliyun.core.annotation.NameInMap("VlanId") private String vlanId; private VirtualPhysicalConnections(Builder builder) { this.accessPointId = builder.accessPointId; this.adLocation = builder.adLocation; this.aliUid = builder.aliUid; this.bandwidth = builder.bandwidth; this.businessStatus = builder.businessStatus; this.chargeType = builder.chargeType; this.circuitCode = builder.circuitCode; this.creationTime = builder.creationTime; this.description = builder.description; this.enabledTime = builder.enabledTime; this.endTime = builder.endTime; this.expectSpec = builder.expectSpec; this.lineOperator = builder.lineOperator; this.loaStatus = builder.loaStatus; this.name = builder.name; this.orderMode = builder.orderMode; this.parentPhysicalConnectionAliUid = builder.parentPhysicalConnectionAliUid; this.parentPhysicalConnectionId = builder.parentPhysicalConnectionId; this.peerLocation = builder.peerLocation; this.physicalConnectionId = builder.physicalConnectionId; this.portNumber = builder.portNumber; this.portType = builder.portType; this.productType = builder.productType; this.redundantPhysicalConnectionId = builder.redundantPhysicalConnectionId; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.status = builder.status; this.tags = builder.tags; this.type = builder.type; this.virtualPhysicalConnectionStatus = builder.virtualPhysicalConnectionStatus; this.vlanId = builder.vlanId; } public static Builder builder() { return new Builder(); } public static VirtualPhysicalConnections create() { return builder().build(); } /** * @return accessPointId */ public String getAccessPointId() { return this.accessPointId; } /** * @return adLocation */ public String getAdLocation() { return this.adLocation; } /** * @return aliUid */ public String getAliUid() { return this.aliUid; } /** * @return bandwidth */ public Long getBandwidth() { return this.bandwidth; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return chargeType */ public String getChargeType() { return this.chargeType; } /** * @return circuitCode */ public String getCircuitCode() { return this.circuitCode; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return enabledTime */ public String getEnabledTime() { return this.enabledTime; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return expectSpec */ public String getExpectSpec() { return this.expectSpec; } /** * @return lineOperator */ public String getLineOperator() { return this.lineOperator; } /** * @return loaStatus */ public String getLoaStatus() { return this.loaStatus; } /** * @return name */ public String getName() { return this.name; } /** * @return orderMode */ public String getOrderMode() { return this.orderMode; } /** * @return parentPhysicalConnectionAliUid */ public String getParentPhysicalConnectionAliUid() { return this.parentPhysicalConnectionAliUid; } /** * @return parentPhysicalConnectionId */ public String getParentPhysicalConnectionId() { return this.parentPhysicalConnectionId; } /** * @return peerLocation */ public String getPeerLocation() { return this.peerLocation; } /** * @return physicalConnectionId */ public String getPhysicalConnectionId() { return this.physicalConnectionId; } /** * @return portNumber */ public String getPortNumber() { return this.portNumber; } /** * @return portType */ public String getPortType() { return this.portType; } /** * @return productType */ public String getProductType() { return this.productType; } /** * @return redundantPhysicalConnectionId */ public String getRedundantPhysicalConnectionId() { return this.redundantPhysicalConnectionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return type */ public String getType() { return this.type; } /** * @return virtualPhysicalConnectionStatus */ public String getVirtualPhysicalConnectionStatus() { return this.virtualPhysicalConnectionStatus; } /** * @return vlanId */ public String getVlanId() { return this.vlanId; } public static final class Builder { private String accessPointId; private String adLocation; private String aliUid; private Long bandwidth; private String businessStatus; private String chargeType; private String circuitCode; private String creationTime; private String description; private String enabledTime; private String endTime; private String expectSpec; private String lineOperator; private String loaStatus; private String name; private String orderMode; private String parentPhysicalConnectionAliUid; private String parentPhysicalConnectionId; private String peerLocation; private String physicalConnectionId; private String portNumber; private String portType; private String productType; private String redundantPhysicalConnectionId; private String resourceGroupId; private String spec; private String status; private java.util.List<Tags> tags; private String type; private String virtualPhysicalConnectionStatus; private String vlanId; private Builder() { } private Builder(VirtualPhysicalConnections model) { this.accessPointId = model.accessPointId; this.adLocation = model.adLocation; this.aliUid = model.aliUid; this.bandwidth = model.bandwidth; this.businessStatus = model.businessStatus; this.chargeType = model.chargeType; this.circuitCode = model.circuitCode; this.creationTime = model.creationTime; this.description = model.description; this.enabledTime = model.enabledTime; this.endTime = model.endTime; this.expectSpec = model.expectSpec; this.lineOperator = model.lineOperator; this.loaStatus = model.loaStatus; this.name = model.name; this.orderMode = model.orderMode; this.parentPhysicalConnectionAliUid = model.parentPhysicalConnectionAliUid; this.parentPhysicalConnectionId = model.parentPhysicalConnectionId; this.peerLocation = model.peerLocation; this.physicalConnectionId = model.physicalConnectionId; this.portNumber = model.portNumber; this.portType = model.portType; this.productType = model.productType; this.redundantPhysicalConnectionId = model.redundantPhysicalConnectionId; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.status = model.status; this.tags = model.tags; this.type = model.type; this.virtualPhysicalConnectionStatus = model.virtualPhysicalConnectionStatus; this.vlanId = model.vlanId; } /** * <p>The ID of the access point that is associated with the Express Connect circuit.</p> * * <strong>example:</strong> * <p>ap-cn-hangzhou-finance-yh-E</p> */ public Builder accessPointId(String accessPointId) { this.accessPointId = accessPointId; return this; } /** * <p>The geographical location of the access device.</p> * * <strong>example:</strong> * <p>Yuhang Economic Development Zone XXX Intersection, Yuhang XX Machine Room, E*** Suite.</p> */ public Builder adLocation(String adLocation) { this.adLocation = adLocation; return this; } /** * <p>The Alibaba Cloud account ID of the hosted connection owner.</p> * * <strong>example:</strong> * <p>253460731706911258</p> */ public Builder aliUid(String aliUid) { this.aliUid = aliUid; return this; } /** * <p>The bandwidth of the Express Connect circuit. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder bandwidth(Long bandwidth) { this.bandwidth = bandwidth; return this; } /** * <p>The status of the Express Connect circuit. 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 of the Express Connect circuit.</p> * <p>If <strong>Prepaid</strong> is returned, it indicates that the Express Connect circuit is billed on a subscription basis.</p> * * <strong>example:</strong> * <p>Prepaid</p> */ public Builder chargeType(String chargeType) { this.chargeType = chargeType; return this; } /** * <p>The circuit code of the Express Connect circuit. The circuit code is provided by the connectivity provider.</p> * * <strong>example:</strong> * <p>longtel001</p> */ public Builder circuitCode(String circuitCode) { this.circuitCode = circuitCode; return this; } /** * <p>The time when the Express Connect circuit 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 Express Connect circuit.</p> * * <strong>example:</strong> * <p>desctest</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The time when the Express Connect circuit is enabled.</p> * * <strong>example:</strong> * <p>2021-10-08T10:44Z</p> */ public Builder enabledTime(String enabledTime) { this.enabledTime = enabledTime; return this; } /** * <p>The expiration date of the hosted connection.</p> * <p>The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-11-08T16:00:00Z</p> */ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** * <p>The estimated maximum bandwidth of the shared Express Connect circuit. The estimated bandwidth takes effect after you complete the payment.</p> * <p><strong>M</strong> indicates Mbit/s and <strong>G</strong> indicates Gbit/s.</p> * * <strong>example:</strong> * <p>50M</p> */ public Builder expectSpec(String expectSpec) { this.expectSpec = expectSpec; return this; } /** * <p>The connectivity provider of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>CT</strong>: China Telecom.</li> * <li><strong>CU</strong>: China Unicom.</li> * <li><strong>CM</strong>: China Mobile.</li> * <li><strong>CO</strong>: other connectivity providers in the Chinese mainland.</li> * <li><strong>Equinix</strong>: Equinix.</li> * <li><strong>Other</strong>: other connectivity providers outside the Chinese mainland.</li> * </ul> * * <strong>example:</strong> * <p>CU</p> */ public Builder lineOperator(String lineOperator) { this.lineOperator = lineOperator; return this; } /** * <p>The status of the letter of authorization (LOA). Valid values:</p> * <ul> * <li><strong>Applying</strong></li> * <li><strong>Accept</strong></li> * <li><strong>Available</strong></li> * <li><strong>Rejected</strong></li> * <li><strong>Completing</strong></li> * <li><strong>Complete</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Available</p> */ public Builder loaStatus(String loaStatus) { this.loaStatus = loaStatus; return this; } /** * <p>The name of the Express Connect circuit.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The payer for the shared Express Connect circuit. Valid values:</p> * <ul> * <li><strong>PayByPhysicalConnectionOwner</strong>: the owner of the shared Express Connect circuit</li> * <li><strong>PayByVirtualPhysicalConnectionOwner</strong>: the owner of the hosted connection</li> * </ul> * * <strong>example:</strong> * <p>PayByPhysicalConnectionOwner</p> */ public Builder orderMode(String orderMode) { this.orderMode = orderMode; return this; } /** * <p>The ID of the Alibaba Cloud account to which the Express Connect circuit belongs.</p> * * <strong>example:</strong> * <p>283117732402483989</p> */ public Builder parentPhysicalConnectionAliUid(String parentPhysicalConnectionAliUid) { this.parentPhysicalConnectionAliUid = parentPhysicalConnectionAliUid; return this; } /** * <p>The ID of the Express Connect circuit.</p> * * <strong>example:</strong> * <p>pc-bp1ciz7ekd2grn1as****</p> */ public Builder parentPhysicalConnectionId(String parentPhysicalConnectionId) { this.parentPhysicalConnectionId = parentPhysicalConnectionId; return this; } /** * <p>The geographical location of the data center.</p> * * <strong>example:</strong> * <p>XX Number, XX Road, XX Town, XX District, Hangzhou City, Zhejiang Province.</p> */ public Builder peerLocation(String peerLocation) { this.peerLocation = peerLocation; return this; } /** * <p>The ID of the hosted connection.</p> * * <strong>example:</strong> * <p>pc-bp1mrgfbtmc9brre7****</p> */ public Builder physicalConnectionId(String physicalConnectionId) { this.physicalConnectionId = physicalConnectionId; return this; } /** * <p>The ID of the port on the access device.</p> * * <strong>example:</strong> * <p>80</p> */ public Builder portNumber(String portNumber) { this.portNumber = portNumber; return this; } /** * <p>The port type. Valid values:</p> * <ul> * <li><strong>100Base-T</strong>: 100 Mbit/s copper Ethernet port</li> * <li><strong>1000Base-T</strong>: 1,000 Mbit/s copper Ethernet port</li> * <li><strong>1000Base-LX</strong>: 1,000 Mbit/s single-mode optical port (10 km)</li> * <li><strong>10GBase-T</strong>: 10,000 Mbit/s copper Ethernet port</li> * <li><strong>10GBase-LR</strong>: 10,000 Mbit/s single-mode optical port (10 km)</li> * <li><strong>40GBase-LR</strong>: 40,000 Mbit/s single-mode optical port</li> * <li><strong>100GBase-LR</strong>: 100,000 Mbit/s single-mode optical port</li> * </ul> * * <strong>example:</strong> * <p>10GBase-LR</p> */ public Builder portType(String portType) { this.portType = portType; return this; } /** * <p>The type of the Express Connect circuit. Valid values:</p> * <ul> * <li><strong>VirtualPhysicalConnection</strong>: shared Express Connect circuit</li> * <li><strong>PhysicalConnection</strong>: dedicated Express Connect circuit</li> * </ul> * * <strong>example:</strong> * <p>VirtualPhysicalConnection</p> */ public Builder productType(String productType) { this.productType = productType; return this; } /** * <p>The ID of the redundant Express Connect circuit.</p> * * <strong>example:</strong> * <p>pc-119mfjzm****</p> */ public Builder redundantPhysicalConnectionId(String redundantPhysicalConnectionId) { this.redundantPhysicalConnectionId = redundantPhysicalConnectionId; return this; } /** * <p>The ID of the resource group to which the hosted connection belongs.</p> * * <strong>example:</strong> * <p>rg-acfm3wmsyuimpma</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The bandwidth value of the hosted connection.</p> * <p><strong>M</strong> indicates Mbit/s and <strong>G</strong> indicates Gbit/s.</p> * * <strong>example:</strong> * <p>50M</p> */ public Builder spec(String spec) { this.spec = spec; 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 pending for user confirmation.</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 status(String status) { this.status = status; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The type of Express Connect circuit. Default value: <strong>VPC</strong>.</p> * * <strong>example:</strong> * <p>VPC</p> */ public Builder type(String type) { this.type = type; return this; } /** * <p>The status of the hosted connection. Valid values:</p> * <ul> * <li><strong>Confirmed</strong></li> * <li><strong>UnConfirmed</strong></li> * <li><strong>Deleted</strong></li> * </ul> * * <strong>example:</strong> * <p>Confirmed</p> */ public Builder virtualPhysicalConnectionStatus(String virtualPhysicalConnectionStatus) { this.virtualPhysicalConnectionStatus = virtualPhysicalConnectionStatus; return this; } /** * <p>The VLAN ID of the hosted connection.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder vlanId(String vlanId) { this.vlanId = vlanId; return this; } public VirtualPhysicalConnections build() { return new VirtualPhysicalConnections(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcEndpointServicesByEndUserRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcEndpointServicesByEndUserRequest} extends {@link RequestModel} * * <p>ListVpcEndpointServicesByEndUserRequest</p> */ public class ListVpcEndpointServicesByEndUserRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long 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("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; private ListVpcEndpointServicesByEndUserRequest(Builder builder) { super(builder); this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.serviceName = builder.serviceName; } public static Builder builder() { return new Builder(); } public static ListVpcEndpointServicesByEndUserRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long 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 resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } public static final class Builder extends Request.Builder<ListVpcEndpointServicesByEndUserRequest, Builder> { private Long maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serviceName; private Builder() { super(); } private Builder(ListVpcEndpointServicesByEndUserRequest request) { super(request); this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.serviceName = request.serviceName; } /** * <p>The number of entries to return 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 maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If this is your first query and no next queries are to be sent, ignore this parameter.</li> * <li>If a next query is to be performed, set the value to the NextToken value returned in the last call to the ListListenerCertificates operation.</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 gateway endpoint.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The name of the endpoint service that you want to query.</p> * * <strong>example:</strong> * <p>com.aliyun.cn-hangzhou.oss</p> */ public Builder serviceName(String serviceName) { this.putQueryParameter("ServiceName", serviceName); this.serviceName = serviceName; return this; } @Override public ListVpcEndpointServicesByEndUserRequest build() { return new ListVpcEndpointServicesByEndUserRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcEndpointServicesByEndUserResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcEndpointServicesByEndUserResponse} extends {@link TeaModel} * * <p>ListVpcEndpointServicesByEndUserResponse</p> */ public class ListVpcEndpointServicesByEndUserResponse 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 ListVpcEndpointServicesByEndUserResponseBody body; private ListVpcEndpointServicesByEndUserResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListVpcEndpointServicesByEndUserResponse 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 ListVpcEndpointServicesByEndUserResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListVpcEndpointServicesByEndUserResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListVpcEndpointServicesByEndUserResponseBody body); @Override ListVpcEndpointServicesByEndUserResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListVpcEndpointServicesByEndUserResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListVpcEndpointServicesByEndUserResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListVpcEndpointServicesByEndUserResponse 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(ListVpcEndpointServicesByEndUserResponseBody body) { this.body = body; return this; } @Override public ListVpcEndpointServicesByEndUserResponse build() { return new ListVpcEndpointServicesByEndUserResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcEndpointServicesByEndUserResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcEndpointServicesByEndUserResponseBody} extends {@link TeaModel} * * <p>ListVpcEndpointServicesByEndUserResponseBody</p> */ public class ListVpcEndpointServicesByEndUserResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Services") private java.util.List<Services> services; @com.aliyun.core.annotation.NameInMap("TotalCount") private String totalCount; private ListVpcEndpointServicesByEndUserResponseBody(Builder builder) { this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.services = builder.services; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListVpcEndpointServicesByEndUserResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return services */ public java.util.List<Services> getServices() { return this.services; } /** * @return totalCount */ public String getTotalCount() { return this.totalCount; } public static final class Builder { private Long maxResults; private String nextToken; private String requestId; private java.util.List<Services> services; private String totalCount; private Builder() { } private Builder(ListVpcEndpointServicesByEndUserResponseBody model) { this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.services = model.services; this.totalCount = model.totalCount; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>The token that is used for the next query. Valid values:</p> * <ul> * <li>If no value is returned for <strong>NextToken</strong>, no next queries are sent.</li> * <li>If <strong>NextToken</strong> is returned, the value is the token that is used for the next 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>0AB1129F-32C1-5E4D-9E22-E4A859CA46EB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The list of entries returned.</p> */ public Builder services(java.util.List<Services> services) { this.services = services; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder totalCount(String totalCount) { this.totalCount = totalCount; return this; } public ListVpcEndpointServicesByEndUserResponseBody build() { return new ListVpcEndpointServicesByEndUserResponseBody(this); } } /** * * {@link ListVpcEndpointServicesByEndUserResponseBody} extends {@link TeaModel} * * <p>ListVpcEndpointServicesByEndUserResponseBody</p> */ public static class Services extends TeaModel { @com.aliyun.core.annotation.NameInMap("DefaultPolicyDocument") private String defaultPolicyDocument; @com.aliyun.core.annotation.NameInMap("ServiceDomain") private String serviceDomain; @com.aliyun.core.annotation.NameInMap("ServiceId") private String serviceId; @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; @com.aliyun.core.annotation.NameInMap("SupportPolicy") private Boolean supportPolicy; private Services(Builder builder) { this.defaultPolicyDocument = builder.defaultPolicyDocument; this.serviceDomain = builder.serviceDomain; this.serviceId = builder.serviceId; this.serviceName = builder.serviceName; this.supportPolicy = builder.supportPolicy; } public static Builder builder() { return new Builder(); } public static Services create() { return builder().build(); } /** * @return defaultPolicyDocument */ public String getDefaultPolicyDocument() { return this.defaultPolicyDocument; } /** * @return serviceDomain */ public String getServiceDomain() { return this.serviceDomain; } /** * @return serviceId */ public String getServiceId() { return this.serviceId; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } /** * @return supportPolicy */ public Boolean getSupportPolicy() { return this.supportPolicy; } public static final class Builder { private String defaultPolicyDocument; private String serviceDomain; private String serviceId; private String serviceName; private Boolean supportPolicy; private Builder() { } private Builder(Services model) { this.defaultPolicyDocument = model.defaultPolicyDocument; this.serviceDomain = model.serviceDomain; this.serviceId = model.serviceId; this.serviceName = model.serviceName; this.supportPolicy = model.supportPolicy; } /** * <p>The default access policy.</p> * * <strong>example:</strong> * <p>{ &quot;Version&quot; : &quot;1&quot;, &quot;Statement&quot; : [ { &quot;Effect&quot; : &quot;Allow&quot;, &quot;Action&quot; : &quot;<em>&quot;, &quot;Principal&quot; : &quot;</em>&quot;, &quot;Resource&quot; : &quot;*&quot; } ] }</p> */ public Builder defaultPolicyDocument(String defaultPolicyDocument) { this.defaultPolicyDocument = defaultPolicyDocument; return this; } /** * <p>The domain name of the cloud service to which the endpoint service belongs.</p> * * <strong>example:</strong> * <p>oss-admin.aliyuncs.com</p> */ public Builder serviceDomain(String serviceDomain) { this.serviceDomain = serviceDomain; return this; } /** * <p>The ID of the endpoint service.</p> * * <strong>example:</strong> * <p>vpces-m5enwdmilo210aibo9****</p> */ public Builder serviceId(String serviceId) { this.serviceId = serviceId; return this; } /** * <p>The name of the endpoint service.</p> * * <strong>example:</strong> * <p>com.aliyun.cn-hangzhou.oss</p> */ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } /** * <p>Indicate whether the endpoint service supports the access policy. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder supportPolicy(Boolean supportPolicy) { this.supportPolicy = supportPolicy; return this; } public Services build() { return new Services(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcGatewayEndpointsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcGatewayEndpointsRequest} extends {@link RequestModel} * * <p>ListVpcGatewayEndpointsRequest</p> */ public class ListVpcGatewayEndpointsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndpointId") private String endpointId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EndpointName") private String endpointName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Long 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("ServiceName") private String serviceName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private ListVpcGatewayEndpointsRequest(Builder builder) { super(builder); this.endpointId = builder.endpointId; this.endpointName = builder.endpointName; 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.serviceName = builder.serviceName; this.tags = builder.tags; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static ListVpcGatewayEndpointsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return endpointId */ public String getEndpointId() { return this.endpointId; } /** * @return endpointName */ public String getEndpointName() { return this.endpointName; } /** * @return maxResults */ public Long 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 serviceName */ public String getServiceName() { return this.serviceName; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder extends Request.Builder<ListVpcGatewayEndpointsRequest, Builder> { private String endpointId; private String endpointName; private Long maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String serviceName; private java.util.List<Tags> tags; private String vpcId; private Builder() { super(); } private Builder(ListVpcGatewayEndpointsRequest request) { super(request); this.endpointId = request.endpointId; this.endpointName = request.endpointName; 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.serviceName = request.serviceName; this.tags = request.tags; this.vpcId = request.vpcId; } /** * <p>The ID of the gateway endpoint.</p> * * <strong>example:</strong> * <p>vpce-bp1i1212ss2whuwyw****</p> */ public Builder endpointId(String endpointId) { this.putQueryParameter("EndpointId", endpointId); this.endpointId = endpointId; return this; } /** * <p>The name of the gateway endpoint.</p> * <p>The name must be 1 to 128 characters in length.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder endpointName(String endpointName) { this.putQueryParameter("EndpointName", endpointName); this.endpointName = endpointName; return this; } /** * <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 maxResults(Long maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>You do not need to specify this parameter for the first request.</li> * <li>If a value is returned for NextToken, specify the value 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.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 gateway endpoint.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The ID of the resource group to which the gateway endpoint belongs.</p> * * <strong>example:</strong> * <p>rg-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 name of the endpoint service.</p> * * <strong>example:</strong> * <p>com.aliyun.cn-hangzhou.oss</p> */ public Builder serviceName(String serviceName) { this.putQueryParameter("ServiceName", serviceName); this.serviceName = serviceName; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.putQueryParameter("Tags", tags); this.tags = tags; return this; } /** * VpcId. */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public ListVpcGatewayEndpointsRequest build() { return new ListVpcGatewayEndpointsRequest(this); } } /** * * {@link ListVpcGatewayEndpointsRequest} extends {@link TeaModel} * * <p>ListVpcGatewayEndpointsRequest</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 tag N added to the resource. You can specify at most 20 tag keys. It 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 tag N added to the resource. 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 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 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/ListVpcGatewayEndpointsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcGatewayEndpointsResponse} extends {@link TeaModel} * * <p>ListVpcGatewayEndpointsResponse</p> */ public class ListVpcGatewayEndpointsResponse 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 ListVpcGatewayEndpointsResponseBody body; private ListVpcGatewayEndpointsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListVpcGatewayEndpointsResponse 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 ListVpcGatewayEndpointsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListVpcGatewayEndpointsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListVpcGatewayEndpointsResponseBody body); @Override ListVpcGatewayEndpointsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListVpcGatewayEndpointsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListVpcGatewayEndpointsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListVpcGatewayEndpointsResponse 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(ListVpcGatewayEndpointsResponseBody body) { this.body = body; return this; } @Override public ListVpcGatewayEndpointsResponse build() { return new ListVpcGatewayEndpointsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcGatewayEndpointsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcGatewayEndpointsResponseBody} extends {@link TeaModel} * * <p>ListVpcGatewayEndpointsResponseBody</p> */ public class ListVpcGatewayEndpointsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Endpoints") private java.util.List<Endpoints> endpoints; @com.aliyun.core.annotation.NameInMap("MaxResults") private Long maxResults; @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 Long totalCount; private ListVpcGatewayEndpointsResponseBody(Builder builder) { this.endpoints = builder.endpoints; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static ListVpcGatewayEndpointsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return endpoints */ public java.util.List<Endpoints> getEndpoints() { return this.endpoints; } /** * @return maxResults */ public Long getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List<Endpoints> endpoints; private Long maxResults; private String nextToken; private String requestId; private Long totalCount; private Builder() { } private Builder(ListVpcGatewayEndpointsResponseBody model) { this.endpoints = model.endpoints; this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; } /** * <p>The list of gateway endpoints.</p> */ public Builder endpoints(java.util.List<Endpoints> endpoints) { this.endpoints = endpoints; return this; } /** * <p>The number of entries per page.</p> * * <strong>example:</strong> * <p>20</p> */ public Builder maxResults(Long maxResults) { this.maxResults = maxResults; return this; } /** * <p>A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If no value is returned for <strong>NextToken</strong>, no next queries are sent.</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>0AB1129F-32C1-5E4D-9E22-E4A859CA46EB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The number of entries returned.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public ListVpcGatewayEndpointsResponseBody build() { return new ListVpcGatewayEndpointsResponseBody(this); } } /** * * {@link ListVpcGatewayEndpointsResponseBody} extends {@link TeaModel} * * <p>ListVpcGatewayEndpointsResponseBody</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 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 Tags build() { return new Tags(this); } } } /** * * {@link ListVpcGatewayEndpointsResponseBody} extends {@link TeaModel} * * <p>ListVpcGatewayEndpointsResponseBody</p> */ public static class Endpoints extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociatedRouteTables") private java.util.List<String> associatedRouteTables; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("EndpointDescription") private String endpointDescription; @com.aliyun.core.annotation.NameInMap("EndpointId") private String endpointId; @com.aliyun.core.annotation.NameInMap("EndpointName") private String endpointName; @com.aliyun.core.annotation.NameInMap("EndpointStatus") private String endpointStatus; @com.aliyun.core.annotation.NameInMap("PolicyDocument") private String policyDocument; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("ServiceName") private String serviceName; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List<Tags> tags; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private Endpoints(Builder builder) { this.associatedRouteTables = builder.associatedRouteTables; this.creationTime = builder.creationTime; this.endpointDescription = builder.endpointDescription; this.endpointId = builder.endpointId; this.endpointName = builder.endpointName; this.endpointStatus = builder.endpointStatus; this.policyDocument = builder.policyDocument; this.resourceGroupId = builder.resourceGroupId; this.serviceName = builder.serviceName; this.tags = builder.tags; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static Endpoints create() { return builder().build(); } /** * @return associatedRouteTables */ public java.util.List<String> getAssociatedRouteTables() { return this.associatedRouteTables; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return endpointDescription */ public String getEndpointDescription() { return this.endpointDescription; } /** * @return endpointId */ public String getEndpointId() { return this.endpointId; } /** * @return endpointName */ public String getEndpointName() { return this.endpointName; } /** * @return endpointStatus */ public String getEndpointStatus() { return this.endpointStatus; } /** * @return policyDocument */ public String getPolicyDocument() { return this.policyDocument; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return serviceName */ public String getServiceName() { return this.serviceName; } /** * @return tags */ public java.util.List<Tags> getTags() { return this.tags; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private java.util.List<String> associatedRouteTables; private String creationTime; private String endpointDescription; private String endpointId; private String endpointName; private String endpointStatus; private String policyDocument; private String resourceGroupId; private String serviceName; private java.util.List<Tags> tags; private String vpcId; private Builder() { } private Builder(Endpoints model) { this.associatedRouteTables = model.associatedRouteTables; this.creationTime = model.creationTime; this.endpointDescription = model.endpointDescription; this.endpointId = model.endpointId; this.endpointName = model.endpointName; this.endpointStatus = model.endpointStatus; this.policyDocument = model.policyDocument; this.resourceGroupId = model.resourceGroupId; this.serviceName = model.serviceName; this.tags = model.tags; this.vpcId = model.vpcId; } /** * <p>The ID of the route table associated with the gateway endpoint.</p> */ public Builder associatedRouteTables(java.util.List<String> associatedRouteTables) { this.associatedRouteTables = associatedRouteTables; return this; } /** * <p>The time when the endpoint was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2021-09-08T08:43:04Z</p> */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * <p>The description of the gateway endpoint.</p> * * <strong>example:</strong> * <p>test_description</p> */ public Builder endpointDescription(String endpointDescription) { this.endpointDescription = endpointDescription; return this; } /** * <p>The ID of the gateway endpoint.</p> * * <strong>example:</strong> * <p>vpce-bp1i1212ss2whuwyw****</p> */ public Builder endpointId(String endpointId) { this.endpointId = endpointId; return this; } /** * <p>The name of the gateway endpoint.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder endpointName(String endpointName) { this.endpointName = endpointName; return this; } /** * <p>The status of the gateway endpoint. Valid values:</p> * <ul> * <li><strong>Creating</strong></li> * <li><strong>Created</strong></li> * <li><strong>Modifying</strong></li> * <li><strong>Associating</strong></li> * <li><strong>Dissociating</strong></li> * <li><strong>Deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>Created</p> */ public Builder endpointStatus(String endpointStatus) { this.endpointStatus = endpointStatus; return this; } /** * <p>The access policy for the cloud service.</p> * <p>For more information about the syntax and structure of the access policy, see <a href="https://help.aliyun.com/document_detail/93739.html">Policy syntax and structure</a>.</p> * * <strong>example:</strong> * <p>{\n &quot;Version&quot;: &quot;1&quot;,\n &quot;Statement&quot;: [\n {\n &quot;Effect&quot;: &quot;Allow&quot;,\n &quot;Action&quot;: &quot;<em>&quot;,\n &quot;Principal&quot;: &quot;</em>&quot;,\n &quot;Resource&quot;: &quot;*&quot;\n }\n ]\n}</p> */ public Builder policyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** * <p>The ID of the resource group to which the gateway endpoint belongs.</p> * * <strong>example:</strong> * <p>rg-acfmxvfvazb4p****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The name of the endpoint service.</p> * * <strong>example:</strong> * <p>com.aliyun.cn-hangzhou.oss</p> */ public Builder serviceName(String serviceName) { this.serviceName = serviceName; return this; } /** * <p>The tag list.</p> */ public Builder tags(java.util.List<Tags> tags) { this.tags = tags; return this; } /** * <p>The ID of the virtual private cloud (VPC) to which the gateway endpoint belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1gsk7h12ew7oegk****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public Endpoints build() { return new Endpoints(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcPublishedRouteEntriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcPublishedRouteEntriesRequest} extends {@link RequestModel} * * <p>ListVpcPublishedRouteEntriesRequest</p> */ public class ListVpcPublishedRouteEntriesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") private String destinationCidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") @com.aliyun.core.annotation.Validation(maximum = 500) 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") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteTableId") @com.aliyun.core.annotation.Validation(required = true) private String routeTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetInstanceId") private String targetInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetType") @com.aliyun.core.annotation.Validation(required = true) private String targetType; private ListVpcPublishedRouteEntriesRequest(Builder builder) { super(builder); this.destinationCidrBlock = builder.destinationCidrBlock; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeTableId = builder.routeTableId; this.targetInstanceId = builder.targetInstanceId; this.targetType = builder.targetType; } public static Builder builder() { return new Builder(); } public static ListVpcPublishedRouteEntriesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @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 resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } /** * @return targetInstanceId */ public String getTargetInstanceId() { return this.targetInstanceId; } /** * @return targetType */ public String getTargetType() { return this.targetType; } public static final class Builder extends Request.Builder<ListVpcPublishedRouteEntriesRequest, Builder> { private String destinationCidrBlock; private Integer maxResults; private String nextToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeTableId; private String targetInstanceId; private String targetType; private Builder() { super(); } private Builder(ListVpcPublishedRouteEntriesRequest request) { super(request); this.destinationCidrBlock = request.destinationCidrBlock; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeTableId = request.routeTableId; this.targetInstanceId = request.targetInstanceId; this.targetType = request.targetType; } /** * <p>The destination CIDR block of the route entry, supporting both IPv4 and IPv6 segments.</p> * * <strong>example:</strong> * <p>47.100.XX.XX/16</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.putQueryParameter("DestinationCidrBlock", destinationCidrBlock); this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>The number of entries to display per batch query. Range: <strong>1</strong>~<strong>500</strong>, default value is <strong>50</strong>.</p> * * <strong>example:</strong> * <p>50</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>Indicates whether there is a token for the next query. Values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, it means there is no next query.</li> * <li>If <strong>NextToken</strong> has a return value, this value indicates the token for the start of the next query.</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 where the instance is located.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the route table.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vtb-bp145q7glnuzd****</p> */ public Builder routeTableId(String routeTableId) { this.putQueryParameter("RouteTableId", routeTableId); this.routeTableId = routeTableId; return this; } /** * <p>The ID of the route publishing target instance.</p> * * <strong>example:</strong> * <p>ecr-dhw2xsds5****</p> */ public Builder targetInstanceId(String targetInstanceId) { this.putQueryParameter("TargetInstanceId", targetInstanceId); this.targetInstanceId = targetInstanceId; return this; } /** * <p>The type of the route publishing target.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ECR</p> */ public Builder targetType(String targetType) { this.putQueryParameter("TargetType", targetType); this.targetType = targetType; return this; } @Override public ListVpcPublishedRouteEntriesRequest build() { return new ListVpcPublishedRouteEntriesRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcPublishedRouteEntriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcPublishedRouteEntriesResponse} extends {@link TeaModel} * * <p>ListVpcPublishedRouteEntriesResponse</p> */ public class ListVpcPublishedRouteEntriesResponse 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 ListVpcPublishedRouteEntriesResponseBody body; private ListVpcPublishedRouteEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListVpcPublishedRouteEntriesResponse 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 ListVpcPublishedRouteEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListVpcPublishedRouteEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListVpcPublishedRouteEntriesResponseBody body); @Override ListVpcPublishedRouteEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListVpcPublishedRouteEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListVpcPublishedRouteEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListVpcPublishedRouteEntriesResponse 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(ListVpcPublishedRouteEntriesResponseBody body) { this.body = body; return this; } @Override public ListVpcPublishedRouteEntriesResponse build() { return new ListVpcPublishedRouteEntriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpcPublishedRouteEntriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpcPublishedRouteEntriesResponseBody} extends {@link TeaModel} * * <p>ListVpcPublishedRouteEntriesResponseBody</p> */ public class ListVpcPublishedRouteEntriesResponseBody 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("RouteEntries") private java.util.List<RouteEntries> routeEntries; private ListVpcPublishedRouteEntriesResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.routeEntries = builder.routeEntries; } public static Builder builder() { return new Builder(); } public static ListVpcPublishedRouteEntriesResponseBody 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 routeEntries */ public java.util.List<RouteEntries> getRouteEntries() { return this.routeEntries; } public static final class Builder { private String nextToken; private String requestId; private java.util.List<RouteEntries> routeEntries; private Builder() { } private Builder(ListVpcPublishedRouteEntriesResponseBody model) { this.nextToken = model.nextToken; this.requestId = model.requestId; this.routeEntries = model.routeEntries; } /** * <p>Indicates whether there is a token for the next query. Values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, it means there is no next query.</li> * <li>If <strong>NextToken</strong> has a return value, this value indicates the token for the start of the next query.</li> * </ul> * * <strong>example:</strong> * <p>FFmyTO70tTpLG6I3FmYAXGKPd****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>Request ID.</p> * * <strong>example:</strong> * <p>1D0971B2-A35A-42C1-A44C-E91360C36C0B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>List of route entry publishing status information.</p> */ public Builder routeEntries(java.util.List<RouteEntries> routeEntries) { this.routeEntries = routeEntries; return this; } public ListVpcPublishedRouteEntriesResponseBody build() { return new ListVpcPublishedRouteEntriesResponseBody(this); } } /** * * {@link ListVpcPublishedRouteEntriesResponseBody} extends {@link TeaModel} * * <p>ListVpcPublishedRouteEntriesResponseBody</p> */ public static class RoutePublishTargets extends TeaModel { @com.aliyun.core.annotation.NameInMap("PublishStatus") private String publishStatus; @com.aliyun.core.annotation.NameInMap("PublishTargetInstanceId") private String publishTargetInstanceId; @com.aliyun.core.annotation.NameInMap("PublishTargetType") private String publishTargetType; private RoutePublishTargets(Builder builder) { this.publishStatus = builder.publishStatus; this.publishTargetInstanceId = builder.publishTargetInstanceId; this.publishTargetType = builder.publishTargetType; } public static Builder builder() { return new Builder(); } public static RoutePublishTargets create() { return builder().build(); } /** * @return publishStatus */ public String getPublishStatus() { return this.publishStatus; } /** * @return publishTargetInstanceId */ public String getPublishTargetInstanceId() { return this.publishTargetInstanceId; } /** * @return publishTargetType */ public String getPublishTargetType() { return this.publishTargetType; } public static final class Builder { private String publishStatus; private String publishTargetInstanceId; private String publishTargetType; private Builder() { } private Builder(RoutePublishTargets model) { this.publishStatus = model.publishStatus; this.publishTargetInstanceId = model.publishTargetInstanceId; this.publishTargetType = model.publishTargetType; } /** * <p>The publishing status of the route entry in the publishing target.</p> * * <strong>example:</strong> * <p>Published</p> */ public Builder publishStatus(String publishStatus) { this.publishStatus = publishStatus; return this; } /** * <p>The ID of the route publishing target instance.</p> * * <strong>example:</strong> * <p>ecr-xvuqdfma6x57ei****</p> */ public Builder publishTargetInstanceId(String publishTargetInstanceId) { this.publishTargetInstanceId = publishTargetInstanceId; return this; } /** * <p>The type of the route publishing target.</p> * * <strong>example:</strong> * <p>ECR</p> */ public Builder publishTargetType(String publishTargetType) { this.publishTargetType = publishTargetType; return this; } public RoutePublishTargets build() { return new RoutePublishTargets(this); } } } /** * * {@link ListVpcPublishedRouteEntriesResponseBody} extends {@link TeaModel} * * <p>ListVpcPublishedRouteEntriesResponseBody</p> */ public static class RouteEntries extends TeaModel { @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") private String destinationCidrBlock; @com.aliyun.core.annotation.NameInMap("RouteEntryId") private String routeEntryId; @com.aliyun.core.annotation.NameInMap("RoutePublishTargets") private java.util.List<RoutePublishTargets> routePublishTargets; @com.aliyun.core.annotation.NameInMap("RouteTableId") private String routeTableId; private RouteEntries(Builder builder) { this.destinationCidrBlock = builder.destinationCidrBlock; this.routeEntryId = builder.routeEntryId; this.routePublishTargets = builder.routePublishTargets; this.routeTableId = builder.routeTableId; } public static Builder builder() { return new Builder(); } public static RouteEntries create() { return builder().build(); } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @return routeEntryId */ public String getRouteEntryId() { return this.routeEntryId; } /** * @return routePublishTargets */ public java.util.List<RoutePublishTargets> getRoutePublishTargets() { return this.routePublishTargets; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } public static final class Builder { private String destinationCidrBlock; private String routeEntryId; private java.util.List<RoutePublishTargets> routePublishTargets; private String routeTableId; private Builder() { } private Builder(RouteEntries model) { this.destinationCidrBlock = model.destinationCidrBlock; this.routeEntryId = model.routeEntryId; this.routePublishTargets = model.routePublishTargets; this.routeTableId = model.routeTableId; } /** * <p>The destination CIDR block of the route entry.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>The ID of the route entry.</p> * * <strong>example:</strong> * <p>rte-bp1mnnr2al0naomnpv****</p> */ public Builder routeEntryId(String routeEntryId) { this.routeEntryId = routeEntryId; return this; } /** * <p>List of route entry publishing status information in the publishing targets.</p> */ public Builder routePublishTargets(java.util.List<RoutePublishTargets> routePublishTargets) { this.routePublishTargets = routePublishTargets; return this; } /** * <p>The ID of the route table.</p> * * <strong>example:</strong> * <p>vtb-2ze3jgygk9bmsj23s****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } public RouteEntries build() { return new RouteEntries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpnCertificateAssociationsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpnCertificateAssociationsRequest} extends {@link RequestModel} * * <p>ListVpnCertificateAssociationsRequest</p> */ public class ListVpnCertificateAssociationsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CertificateId") @com.aliyun.core.annotation.Validation(maxLength = 128) private java.util.List<String> certificateId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CertificateType") private String certificateType; @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("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(maxLength = 128) private java.util.List<String> vpnGatewayId; private ListVpnCertificateAssociationsRequest(Builder builder) { super(builder); this.certificateId = builder.certificateId; this.certificateType = builder.certificateType; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.regionId = builder.regionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ListVpnCertificateAssociationsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return certificateId */ public java.util.List<String> getCertificateId() { return this.certificateId; } /** * @return certificateType */ public String getCertificateType() { return this.certificateType; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return vpnGatewayId */ public java.util.List<String> getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<ListVpnCertificateAssociationsRequest, Builder> { private java.util.List<String> certificateId; private String certificateType; private Integer maxResults; private String nextToken; private String regionId; private java.util.List<String> vpnGatewayId; private Builder() { super(); } private Builder(ListVpnCertificateAssociationsRequest request) { super(request); this.certificateId = request.certificateId; this.certificateType = request.certificateType; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.regionId = request.regionId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The list of certificate IDs.</p> * <p>You can query the association between at most 20 SSL certificates and VPN gateways.</p> * * <strong>example:</strong> * <p>6bfe4218-ea1d****</p> */ public Builder certificateId(java.util.List<String> certificateId) { this.putQueryParameter("CertificateId", certificateId); this.certificateId = certificateId; return this; } /** * <p>The certificate type. Valid values:</p> * <ul> * <li><strong>Encryption</strong></li> * <li><strong>Signature</strong></li> * </ul> * * <strong>example:</strong> * <p>Signature</p> */ public Builder certificateType(String certificateType) { this.putQueryParameter("CertificateType", certificateType); this.certificateType = certificateType; return this; } /** * <p>The number of entries to return on each page. Valid values: <strong>1</strong> to <strong>20</strong>. Default value: <strong>1</strong>.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * <p>The pagination token that is used in the next request to retrieve a new page of results. Valid values:</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 <strong>NextToken</strong>.</li> * </ul> * * <strong>example:</strong> * <p>caeba0bbb2be0****</p> */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * <p>The region ID of the VPN gateway.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The list of VPN gateway IDs.</p> * <p>You can query the association between at most 20 VPN gateways and SSL certificates.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm****</p> */ public Builder vpnGatewayId(java.util.List<String> vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public ListVpnCertificateAssociationsRequest build() { return new ListVpnCertificateAssociationsRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpnCertificateAssociationsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpnCertificateAssociationsResponse} extends {@link TeaModel} * * <p>ListVpnCertificateAssociationsResponse</p> */ public class ListVpnCertificateAssociationsResponse 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 ListVpnCertificateAssociationsResponseBody body; private ListVpnCertificateAssociationsResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ListVpnCertificateAssociationsResponse 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 ListVpnCertificateAssociationsResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ListVpnCertificateAssociationsResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ListVpnCertificateAssociationsResponseBody body); @Override ListVpnCertificateAssociationsResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ListVpnCertificateAssociationsResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ListVpnCertificateAssociationsResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ListVpnCertificateAssociationsResponse 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(ListVpnCertificateAssociationsResponseBody body) { this.body = body; return this; } @Override public ListVpnCertificateAssociationsResponse build() { return new ListVpnCertificateAssociationsResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListVpnCertificateAssociationsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ListVpnCertificateAssociationsResponseBody} extends {@link TeaModel} * * <p>ListVpnCertificateAssociationsResponseBody</p> */ public class ListVpnCertificateAssociationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @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 Integer totalCount; @com.aliyun.core.annotation.NameInMap("VpnCertificateRelations") private java.util.List<VpnCertificateRelations> vpnCertificateRelations; private ListVpnCertificateAssociationsResponseBody(Builder builder) { this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.totalCount = builder.totalCount; this.vpnCertificateRelations = builder.vpnCertificateRelations; } public static Builder builder() { return new Builder(); } public static ListVpnCertificateAssociationsResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } /** * @return vpnCertificateRelations */ public java.util.List<VpnCertificateRelations> getVpnCertificateRelations() { return this.vpnCertificateRelations; } public static final class Builder { private Integer maxResults; private String nextToken; private String requestId; private Integer totalCount; private java.util.List<VpnCertificateRelations> vpnCertificateRelations; private Builder() { } private Builder(ListVpnCertificateAssociationsResponseBody model) { this.maxResults = model.maxResults; this.nextToken = model.nextToken; this.requestId = model.requestId; this.totalCount = model.totalCount; this.vpnCertificateRelations = model.vpnCertificateRelations; } /** * <p>The number of entries returned per page.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder maxResults(Integer maxResults) { this.maxResults = maxResults; return this; } /** * <p>The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. Valid values:</p> * <ul> * <li>If <strong>NextToken</strong> is empty, no next page exists.</li> * <li>If <strong>NextToken</strong> is not empty, the value indicates the token that is used for the next query.</li> * </ul> * * <strong>example:</strong> * <p>caeba0bbb2be****</p> */ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>197AF2BD-547F-470C-B29A-8400400233EB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The total number of entries returned.</p> * * <strong>example:</strong> * <p>4</p> */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } /** * <p>The association information.</p> */ public Builder vpnCertificateRelations(java.util.List<VpnCertificateRelations> vpnCertificateRelations) { this.vpnCertificateRelations = vpnCertificateRelations; return this; } public ListVpnCertificateAssociationsResponseBody build() { return new ListVpnCertificateAssociationsResponseBody(this); } } /** * * {@link ListVpnCertificateAssociationsResponseBody} extends {@link TeaModel} * * <p>ListVpnCertificateAssociationsResponseBody</p> */ public static class VpnCertificateRelations extends TeaModel { @com.aliyun.core.annotation.NameInMap("AssociationTime") private String associationTime; @com.aliyun.core.annotation.NameInMap("CertificateId") private String certificateId; @com.aliyun.core.annotation.NameInMap("CertificateType") private String certificateType; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private VpnCertificateRelations(Builder builder) { this.associationTime = builder.associationTime; this.certificateId = builder.certificateId; this.certificateType = builder.certificateType; this.regionId = builder.regionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static VpnCertificateRelations create() { return builder().build(); } /** * @return associationTime */ public String getAssociationTime() { return this.associationTime; } /** * @return certificateId */ public String getCertificateId() { return this.certificateId; } /** * @return certificateType */ public String getCertificateType() { return this.certificateType; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String associationTime; private String certificateId; private String certificateType; private String regionId; private String vpnGatewayId; private Builder() { } private Builder(VpnCertificateRelations model) { this.associationTime = model.associationTime; this.certificateId = model.certificateId; this.certificateType = model.certificateType; this.regionId = model.regionId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The time when the Anycast EIP was associated.</p> * <p>The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p> * * <strong>example:</strong> * <p>2020-12-29T09:30:29Z</p> */ public Builder associationTime(String associationTime) { this.associationTime = associationTime; return this; } /** * <p>The certificate ID.</p> * * <strong>example:</strong> * <p>6bfe4218-ea1d****</p> */ public Builder certificateId(String certificateId) { this.certificateId = certificateId; return this; } /** * <p>The type of the certificate.</p> * <ul> * <li><strong>Encryption</strong></li> * <li><strong>Signature</strong></li> * </ul> * * <strong>example:</strong> * <p>Signature</p> */ public Builder certificateType(String certificateType) { this.certificateType = certificateType; return this; } /** * <p>The ID of the region where the VPN gateway is created.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1usbiorilk51760****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public VpnCertificateRelations build() { return new VpnCertificateRelations(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyBgpGroupAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyBgpGroupAttributeRequest} extends {@link RequestModel} * * <p>ModifyBgpGroupAttributeRequest</p> */ public class ModifyBgpGroupAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AuthKey") private String authKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpGroupId") @com.aliyun.core.annotation.Validation(required = true) private String bgpGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClearAuthKey") private Boolean clearAuthKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IsFakeAsn") private Boolean isFakeAsn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteQuota") private Integer routeQuota; private ModifyBgpGroupAttributeRequest(Builder builder) { super(builder); this.authKey = builder.authKey; this.bgpGroupId = builder.bgpGroupId; this.clearAuthKey = builder.clearAuthKey; this.clientToken = builder.clientToken; this.description = builder.description; this.isFakeAsn = builder.isFakeAsn; this.localAsn = builder.localAsn; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerAsn = builder.peerAsn; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeQuota = builder.routeQuota; } public static Builder builder() { return new Builder(); } public static ModifyBgpGroupAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return authKey */ public String getAuthKey() { return this.authKey; } /** * @return bgpGroupId */ public String getBgpGroupId() { return this.bgpGroupId; } /** * @return clearAuthKey */ public Boolean getClearAuthKey() { return this.clearAuthKey; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return isFakeAsn */ public Boolean getIsFakeAsn() { return this.isFakeAsn; } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeQuota */ public Integer getRouteQuota() { return this.routeQuota; } public static final class Builder extends Request.Builder<ModifyBgpGroupAttributeRequest, Builder> { private String authKey; private String bgpGroupId; private Boolean clearAuthKey; private String clientToken; private String description; private Boolean isFakeAsn; private Long localAsn; private String name; private String ownerAccount; private Long ownerId; private Long peerAsn; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Integer routeQuota; private Builder() { super(); } private Builder(ModifyBgpGroupAttributeRequest request) { super(request); this.authKey = request.authKey; this.bgpGroupId = request.bgpGroupId; this.clearAuthKey = request.clearAuthKey; this.clientToken = request.clientToken; this.description = request.description; this.isFakeAsn = request.isFakeAsn; this.localAsn = request.localAsn; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerAsn = request.peerAsn; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeQuota = request.routeQuota; } /** * <p>The authentication key of the BGP group.</p> * * <strong>example:</strong> * <p>!PWZ2****</p> */ public Builder authKey(String authKey) { this.putQueryParameter("AuthKey", authKey); this.authKey = authKey; return this; } /** * <p>The BGP group ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bgpg-wz9f62v4fbg2g****</p> */ public Builder bgpGroupId(String bgpGroupId) { this.putQueryParameter("BgpGroupId", bgpGroupId); this.bgpGroupId = bgpGroupId; return this; } /** * <p>Specifies whether to clear the secret key. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder clearAuthKey(Boolean clearAuthKey) { this.putQueryParameter("ClearAuthKey", clearAuthKey); this.clearAuthKey = clearAuthKey; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The BGP group description.</p> * <p>The description must be 2 to 256 characters in length. It must start with a letter and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>BGP</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>Specifies whether to use a fake AS number. Valid values:</p> * <ul> * <li><strong>false</strong> (default)</li> * <li><strong>true</strong></li> * </ul> * <blockquote> * <p>A router that runs BGP typically belongs to only one AS. If you need to replace an AS with a new one, but you cannot immediately modify BGP configurations due to business requirements, you can specify a fake AS number to establish a connection with the local end. This ensures service continuity in scenarios such as AS migration or AS merging.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder isFakeAsn(Boolean isFakeAsn) { this.putQueryParameter("IsFakeAsn", isFakeAsn); this.isFakeAsn = isFakeAsn; return this; } /** * <p>The custom autonomous system number (ASN) of the BGP on the Alibaba Cloud side. Valid values:</p> * <ul> * <li><strong>45104</strong></li> * <li><strong>64512~65534</strong></li> * <li><strong>4200000000~4294967294</strong></li> * </ul> * <blockquote> * <p> <strong>65025</strong> is reserved by Alibaba Cloud. Alibaba Cloud uses <strong>45104</strong> as the <strong>local ASN</strong> by default. Custom <strong>local ASNs</strong> may cause loops in multi-line scenarios. Proceed with caution.</p> * </blockquote> * * <strong>example:</strong> * <p>45104</p> */ public Builder localAsn(Long localAsn) { this.putQueryParameter("LocalAsn", localAsn); this.localAsn = localAsn; return this; } /** * <p>The BGP group name.</p> * <p>The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ASN of the gateway device in the data center.</p> * * <strong>example:</strong> * <p>1****</p> */ public Builder peerAsn(Long peerAsn) { this.putQueryParameter("PeerAsn", peerAsn); this.peerAsn = peerAsn; return this; } /** * <p>The region ID of the BGP group.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The maximum number of routes supported by a BGP peer. Default value: <strong>110</strong>.</p> * * <strong>example:</strong> * <p>110</p> */ public Builder routeQuota(Integer routeQuota) { this.putQueryParameter("RouteQuota", routeQuota); this.routeQuota = routeQuota; return this; } @Override public ModifyBgpGroupAttributeRequest build() { return new ModifyBgpGroupAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyBgpGroupAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyBgpGroupAttributeResponse} extends {@link TeaModel} * * <p>ModifyBgpGroupAttributeResponse</p> */ public class ModifyBgpGroupAttributeResponse 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 ModifyBgpGroupAttributeResponseBody body; private ModifyBgpGroupAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyBgpGroupAttributeResponse 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 ModifyBgpGroupAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyBgpGroupAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyBgpGroupAttributeResponseBody body); @Override ModifyBgpGroupAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyBgpGroupAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyBgpGroupAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyBgpGroupAttributeResponse 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(ModifyBgpGroupAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyBgpGroupAttributeResponse build() { return new ModifyBgpGroupAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyBgpGroupAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyBgpGroupAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyBgpGroupAttributeResponseBody</p> */ public class ModifyBgpGroupAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyBgpGroupAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyBgpGroupAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyBgpGroupAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8C3C6D7C-A1CE-4FD8-BC57-DC493A55F76F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyBgpGroupAttributeResponseBody build() { return new ModifyBgpGroupAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyBgpPeerAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyBgpPeerAttributeRequest} extends {@link RequestModel} * * <p>ModifyBgpPeerAttributeRequest</p> */ public class ModifyBgpPeerAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BfdMultiHop") private Integer bfdMultiHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpGroupId") private String bgpGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpPeerId") @com.aliyun.core.annotation.Validation(required = true) private String bgpPeerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableBfd") private Boolean enableBfd; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerIpAddress") private String peerIpAddress; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyBgpPeerAttributeRequest(Builder builder) { super(builder); this.bfdMultiHop = builder.bfdMultiHop; this.bgpGroupId = builder.bgpGroupId; this.bgpPeerId = builder.bgpPeerId; this.clientToken = builder.clientToken; this.enableBfd = builder.enableBfd; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peerIpAddress = builder.peerIpAddress; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyBgpPeerAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bfdMultiHop */ public Integer getBfdMultiHop() { return this.bfdMultiHop; } /** * @return bgpGroupId */ public String getBgpGroupId() { return this.bgpGroupId; } /** * @return bgpPeerId */ public String getBgpPeerId() { return this.bgpPeerId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return enableBfd */ public Boolean getEnableBfd() { return this.enableBfd; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return peerIpAddress */ public String getPeerIpAddress() { return this.peerIpAddress; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyBgpPeerAttributeRequest, Builder> { private Integer bfdMultiHop; private String bgpGroupId; private String bgpPeerId; private String clientToken; private Boolean enableBfd; private String ownerAccount; private Long ownerId; private String peerIpAddress; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyBgpPeerAttributeRequest request) { super(request); this.bfdMultiHop = request.bfdMultiHop; this.bgpGroupId = request.bgpGroupId; this.bgpPeerId = request.bgpPeerId; this.clientToken = request.clientToken; this.enableBfd = request.enableBfd; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peerIpAddress = request.peerIpAddress; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The BFD hop count. Valid values: <strong>1</strong> to <strong>255</strong>.</p> * <p>This parameter is required only if you enable BFD. The parameter specifies the maximum number of network devices that a packet can traverse from the source to the destination. Set a value based on your network topology.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder bfdMultiHop(Integer bfdMultiHop) { this.putQueryParameter("BfdMultiHop", bfdMultiHop); this.bfdMultiHop = bfdMultiHop; return this; } /** * <p>The ID of the BGP group to which the BGP peer that you want to modify belongs.</p> * * <strong>example:</strong> * <p>bgpg-m5eo12jxuw2hc0uqq****</p> */ public Builder bgpGroupId(String bgpGroupId) { this.putQueryParameter("BgpGroupId", bgpGroupId); this.bgpGroupId = bgpGroupId; return this; } /** * <p>The ID of the BGP peer that you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>bgp-m5eoyp2mwegk8ce9v****</p> */ public Builder bgpPeerId(String bgpPeerId) { this.putQueryParameter("BgpPeerId", bgpPeerId); this.bgpPeerId = bgpPeerId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to enable the Bidirectional Forwarding Detection (BFD) feature. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> (default)</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder enableBfd(Boolean enableBfd) { this.putQueryParameter("EnableBfd", enableBfd); this.enableBfd = enableBfd; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The IP address of the BGP peer that you want to modify.</p> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder peerIpAddress(String peerIpAddress) { this.putQueryParameter("PeerIpAddress", peerIpAddress); this.peerIpAddress = peerIpAddress; return this; } /** * <p>The region ID of the BGP group to which the BGP peer that you want to modify belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>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 ModifyBgpPeerAttributeRequest build() { return new ModifyBgpPeerAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyBgpPeerAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyBgpPeerAttributeResponse} extends {@link TeaModel} * * <p>ModifyBgpPeerAttributeResponse</p> */ public class ModifyBgpPeerAttributeResponse 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 ModifyBgpPeerAttributeResponseBody body; private ModifyBgpPeerAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyBgpPeerAttributeResponse 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 ModifyBgpPeerAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyBgpPeerAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyBgpPeerAttributeResponseBody body); @Override ModifyBgpPeerAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyBgpPeerAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyBgpPeerAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyBgpPeerAttributeResponse 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(ModifyBgpPeerAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyBgpPeerAttributeResponse build() { return new ModifyBgpPeerAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyBgpPeerAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyBgpPeerAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyBgpPeerAttributeResponseBody</p> */ public class ModifyBgpPeerAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyBgpPeerAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyBgpPeerAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyBgpPeerAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>D4B7649A-61BB-4C64-A586-1DFF1EDA6A42</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyBgpPeerAttributeResponseBody build() { return new ModifyBgpPeerAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageAttributeRequest} extends {@link RequestModel} * * <p>ModifyCommonBandwidthPackageAttributeRequest</p> */ public class ModifyCommonBandwidthPackageAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") @com.aliyun.core.annotation.Validation(required = true) private String bandwidthPackageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyCommonBandwidthPackageAttributeRequest(Builder builder) { super(builder); this.bandwidthPackageId = builder.bandwidthPackageId; this.description = builder.description; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyCommonBandwidthPackageAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyCommonBandwidthPackageAttributeRequest, Builder> { private String bandwidthPackageId; private String description; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyCommonBandwidthPackageAttributeRequest request) { super(request); this.bandwidthPackageId = request.bandwidthPackageId; this.description = request.description; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the EIP bandwidth plan.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cbwp-2ze2ic1xd2qeqk145****</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.putQueryParameter("BandwidthPackageId", bandwidthPackageId); this.bandwidthPackageId = bandwidthPackageId; return this; } /** * <p>The description of the EIP bandwidth plan. 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>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the EIP bandwidth plan. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test123</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the EIP bandwidth plan 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; } @Override public ModifyCommonBandwidthPackageAttributeRequest build() { return new ModifyCommonBandwidthPackageAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageAttributeResponse} extends {@link TeaModel} * * <p>ModifyCommonBandwidthPackageAttributeResponse</p> */ public class ModifyCommonBandwidthPackageAttributeResponse 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 ModifyCommonBandwidthPackageAttributeResponseBody body; private ModifyCommonBandwidthPackageAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyCommonBandwidthPackageAttributeResponse 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 ModifyCommonBandwidthPackageAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyCommonBandwidthPackageAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyCommonBandwidthPackageAttributeResponseBody body); @Override ModifyCommonBandwidthPackageAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyCommonBandwidthPackageAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyCommonBandwidthPackageAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyCommonBandwidthPackageAttributeResponse 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(ModifyCommonBandwidthPackageAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyCommonBandwidthPackageAttributeResponse build() { return new ModifyCommonBandwidthPackageAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyCommonBandwidthPackageAttributeResponseBody</p> */ public class ModifyCommonBandwidthPackageAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyCommonBandwidthPackageAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyCommonBandwidthPackageAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyCommonBandwidthPackageAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>B450CAD8-50BC-4506-ADA7-35C6CE63E96B</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyCommonBandwidthPackageAttributeResponseBody build() { return new ModifyCommonBandwidthPackageAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageIpBandwidthRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageIpBandwidthRequest} extends {@link RequestModel} * * <p>ModifyCommonBandwidthPackageIpBandwidthRequest</p> */ public class ModifyCommonBandwidthPackageIpBandwidthRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(required = true) private String bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") @com.aliyun.core.annotation.Validation(required = true) private String bandwidthPackageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EipId") @com.aliyun.core.annotation.Validation(required = true) private String eipId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyCommonBandwidthPackageIpBandwidthRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.bandwidthPackageId = builder.bandwidthPackageId; this.eipId = builder.eipId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyCommonBandwidthPackageIpBandwidthRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return eipId */ public String getEipId() { return this.eipId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyCommonBandwidthPackageIpBandwidthRequest, Builder> { private String bandwidth; private String bandwidthPackageId; private String eipId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyCommonBandwidthPackageIpBandwidthRequest request) { super(request); this.bandwidth = request.bandwidth; this.bandwidthPackageId = request.bandwidthPackageId; this.eipId = request.eipId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The maximum bandwidth for the EIP. This value cannot be larger than the maximum bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>500</p> */ public Builder bandwidth(String bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The ID of the Internet Shared Bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cbwp-2zep6hw5d6y8exscd****</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.putQueryParameter("BandwidthPackageId", bandwidthPackageId); this.bandwidthPackageId = bandwidthPackageId; return this; } /** * <p>The ID of the EIP that is associated with the Internet Shared Bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-2zewysoansu0svfbg****</p> */ public Builder eipId(String eipId) { this.putQueryParameter("EipId", eipId); this.eipId = eipId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the Internet Shared Bandwidth instance. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyCommonBandwidthPackageIpBandwidthRequest build() { return new ModifyCommonBandwidthPackageIpBandwidthRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageIpBandwidthResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageIpBandwidthResponse} extends {@link TeaModel} * * <p>ModifyCommonBandwidthPackageIpBandwidthResponse</p> */ public class ModifyCommonBandwidthPackageIpBandwidthResponse 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 ModifyCommonBandwidthPackageIpBandwidthResponseBody body; private ModifyCommonBandwidthPackageIpBandwidthResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyCommonBandwidthPackageIpBandwidthResponse 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 ModifyCommonBandwidthPackageIpBandwidthResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyCommonBandwidthPackageIpBandwidthResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyCommonBandwidthPackageIpBandwidthResponseBody body); @Override ModifyCommonBandwidthPackageIpBandwidthResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyCommonBandwidthPackageIpBandwidthResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyCommonBandwidthPackageIpBandwidthResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyCommonBandwidthPackageIpBandwidthResponse 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(ModifyCommonBandwidthPackageIpBandwidthResponseBody body) { this.body = body; return this; } @Override public ModifyCommonBandwidthPackageIpBandwidthResponse build() { return new ModifyCommonBandwidthPackageIpBandwidthResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageIpBandwidthResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageIpBandwidthResponseBody} extends {@link TeaModel} * * <p>ModifyCommonBandwidthPackageIpBandwidthResponseBody</p> */ public class ModifyCommonBandwidthPackageIpBandwidthResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyCommonBandwidthPackageIpBandwidthResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyCommonBandwidthPackageIpBandwidthResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyCommonBandwidthPackageIpBandwidthResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>63D187BF-A30A-4DD6-B68D-FF182C96D8A2</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyCommonBandwidthPackageIpBandwidthResponseBody build() { return new ModifyCommonBandwidthPackageIpBandwidthResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageSpecRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageSpecRequest} extends {@link RequestModel} * * <p>ModifyCommonBandwidthPackageSpecRequest</p> */ public class ModifyCommonBandwidthPackageSpecRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(required = true) private String bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") @com.aliyun.core.annotation.Validation(required = true) private String bandwidthPackageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyCommonBandwidthPackageSpecRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.bandwidthPackageId = builder.bandwidthPackageId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyCommonBandwidthPackageSpecRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyCommonBandwidthPackageSpecRequest, Builder> { private String bandwidth; private String bandwidthPackageId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyCommonBandwidthPackageSpecRequest request) { super(request); this.bandwidth = request.bandwidth; this.bandwidthPackageId = request.bandwidthPackageId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The maximum bandwidth of the Internet Shared Bandwidth instance. Unit: Mbit/s.</p> * <p>Valid values: <strong>1</strong> to <strong>1000</strong>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1000</p> */ public Builder bandwidth(String bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The ID of the Internet Shared Bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cbwp-2ze2ic1xd2qeqk145****</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.putQueryParameter("BandwidthPackageId", bandwidthPackageId); this.bandwidthPackageId = bandwidthPackageId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the Internet Shared Bandwidth instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyCommonBandwidthPackageSpecRequest build() { return new ModifyCommonBandwidthPackageSpecRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageSpecResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageSpecResponse} extends {@link TeaModel} * * <p>ModifyCommonBandwidthPackageSpecResponse</p> */ public class ModifyCommonBandwidthPackageSpecResponse 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 ModifyCommonBandwidthPackageSpecResponseBody body; private ModifyCommonBandwidthPackageSpecResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyCommonBandwidthPackageSpecResponse 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 ModifyCommonBandwidthPackageSpecResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyCommonBandwidthPackageSpecResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyCommonBandwidthPackageSpecResponseBody body); @Override ModifyCommonBandwidthPackageSpecResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyCommonBandwidthPackageSpecResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyCommonBandwidthPackageSpecResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyCommonBandwidthPackageSpecResponse 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(ModifyCommonBandwidthPackageSpecResponseBody body) { this.body = body; return this; } @Override public ModifyCommonBandwidthPackageSpecResponse build() { return new ModifyCommonBandwidthPackageSpecResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCommonBandwidthPackageSpecResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCommonBandwidthPackageSpecResponseBody} extends {@link TeaModel} * * <p>ModifyCommonBandwidthPackageSpecResponseBody</p> */ public class ModifyCommonBandwidthPackageSpecResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyCommonBandwidthPackageSpecResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyCommonBandwidthPackageSpecResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyCommonBandwidthPackageSpecResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>7F129000-F929-4AF5-BE8D-BAE434C795306</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyCommonBandwidthPackageSpecResponseBody build() { return new ModifyCommonBandwidthPackageSpecResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCustomerGatewayAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCustomerGatewayAttributeRequest} extends {@link RequestModel} * * <p>ModifyCustomerGatewayAttributeRequest</p> */ public class ModifyCustomerGatewayAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AuthKey") private String authKey; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String customerGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyCustomerGatewayAttributeRequest(Builder builder) { super(builder); this.authKey = builder.authKey; this.clientToken = builder.clientToken; this.customerGatewayId = builder.customerGatewayId; this.description = builder.description; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyCustomerGatewayAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return authKey */ public String getAuthKey() { return this.authKey; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyCustomerGatewayAttributeRequest, Builder> { private String authKey; private String clientToken; private String customerGatewayId; private String description; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyCustomerGatewayAttributeRequest request) { super(request); this.authKey = request.authKey; this.clientToken = request.clientToken; this.customerGatewayId = request.customerGatewayId; this.description = request.description; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The authentication key of the BGP routing protocol for the gateway device in the data center.</p> * <p>The key must be 1 to 64 characters in length. It can contain only ASCII characters and cannot contain spaces or question marks (?).</p> * * <strong>example:</strong> * <p>AuthKey****</p> */ public Builder authKey(String authKey) { this.putQueryParameter("AuthKey", authKey); this.authKey = authKey; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the customer gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cgw-bp1pvpl9r9adju6l5****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.putQueryParameter("CustomerGatewayId", customerGatewayId); this.customerGatewayId = customerGatewayId; return this; } /** * <p>The description of the customer gateway.</p> * <p>The description must be 1 to 100 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>desctest</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The name of the customer gateway.</p> * <p>The name must be 1 to 100 characters in length, and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the customer gateway is deployed.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyCustomerGatewayAttributeRequest build() { return new ModifyCustomerGatewayAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCustomerGatewayAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCustomerGatewayAttributeResponse} extends {@link TeaModel} * * <p>ModifyCustomerGatewayAttributeResponse</p> */ public class ModifyCustomerGatewayAttributeResponse 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 ModifyCustomerGatewayAttributeResponseBody body; private ModifyCustomerGatewayAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyCustomerGatewayAttributeResponse 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 ModifyCustomerGatewayAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyCustomerGatewayAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyCustomerGatewayAttributeResponseBody body); @Override ModifyCustomerGatewayAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyCustomerGatewayAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyCustomerGatewayAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyCustomerGatewayAttributeResponse 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(ModifyCustomerGatewayAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyCustomerGatewayAttributeResponse build() { return new ModifyCustomerGatewayAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyCustomerGatewayAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyCustomerGatewayAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyCustomerGatewayAttributeResponseBody</p> */ public class ModifyCustomerGatewayAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("IpAddress") private String ipAddress; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private ModifyCustomerGatewayAttributeResponseBody(Builder builder) { this.createTime = builder.createTime; this.customerGatewayId = builder.customerGatewayId; this.description = builder.description; this.ipAddress = builder.ipAddress; this.name = builder.name; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static ModifyCustomerGatewayAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ipAddress */ public String getIpAddress() { return this.ipAddress; } /** * @return name */ public String getName() { return this.name; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder { private Long createTime; private String customerGatewayId; private String description; private String ipAddress; private String name; private String requestId; private String resourceGroupId; private Builder() { } private Builder(ModifyCustomerGatewayAttributeResponseBody model) { this.createTime = model.createTime; this.customerGatewayId = model.customerGatewayId; this.description = model.description; this.ipAddress = model.ipAddress; this.name = model.name; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; } /** * <p>The timestamp generated when the customer gateway was created.</p> * * <strong>example:</strong> * <p>1492747187000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The ID of the customer gateway.</p> * * <strong>example:</strong> * <p>cgw-bp1pvpl9r9adju6l5****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>The description of the customer gateway.</p> * * <strong>example:</strong> * <p>desctest</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The public IP address of the gateway device in the data center.</p> * * <strong>example:</strong> * <p>139.32.XX.XX</p> */ public Builder ipAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } /** * <p>The name of the customer gateway.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>8AA5CE21-2E6A-4530-BDF5-F055849476E6</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the customer gateway belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource groups.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } public ModifyCustomerGatewayAttributeResponseBody build() { return new ModifyCustomerGatewayAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyEipAddressAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyEipAddressAttributeRequest} extends {@link RequestModel} * * <p>ModifyEipAddressAttributeRequest</p> */ public class ModifyEipAddressAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationId") @com.aliyun.core.annotation.Validation(required = true) private String allocationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") private String bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") 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 ModifyEipAddressAttributeRequest(Builder builder) { super(builder); this.allocationId = builder.allocationId; this.bandwidth = builder.bandwidth; this.description = builder.description; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyEipAddressAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return allocationId */ public String getAllocationId() { return this.allocationId; } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyEipAddressAttributeRequest, Builder> { private String allocationId; private String bandwidth; private String description; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyEipAddressAttributeRequest request) { super(request); this.allocationId = request.allocationId; this.bandwidth = request.bandwidth; this.description = request.description; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the pay-as-you-go EIP.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-2zeerraiwb7uj6i0d****</p> */ public Builder allocationId(String allocationId) { this.putQueryParameter("AllocationId", allocationId); this.allocationId = allocationId; return this; } /** * <p>The new maximum bandwidth of the EIP. Valid values:</p> * <ul> * <li><strong>1</strong> to <strong>200</strong> if the metering method is pay-by-data-transfer. Unit: Mbit/s.</li> * <li><strong>1</strong> to <strong>500</strong> if the metering method is pay-by-bandwidth. Unit: Mbit/s.</li> * </ul> * * <strong>example:</strong> * <p>100</p> */ public Builder bandwidth(String bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The new description of the EIP.</p> * <p>The description must be 2 to 256 characters in length and start with a letter. The description cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>abc</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The new name of the EIP.</p> * <p>The name must be 1 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-).</p> * * <strong>example:</strong> * <p>Test123</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the EIP.</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; } @Override public ModifyEipAddressAttributeRequest build() { return new ModifyEipAddressAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyEipAddressAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyEipAddressAttributeResponse} extends {@link TeaModel} * * <p>ModifyEipAddressAttributeResponse</p> */ public class ModifyEipAddressAttributeResponse 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 ModifyEipAddressAttributeResponseBody body; private ModifyEipAddressAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyEipAddressAttributeResponse 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 ModifyEipAddressAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyEipAddressAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyEipAddressAttributeResponseBody body); @Override ModifyEipAddressAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyEipAddressAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyEipAddressAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyEipAddressAttributeResponse 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(ModifyEipAddressAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyEipAddressAttributeResponse build() { return new ModifyEipAddressAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyEipAddressAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyEipAddressAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyEipAddressAttributeResponseBody</p> */ public class ModifyEipAddressAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyEipAddressAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyEipAddressAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyEipAddressAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyEipAddressAttributeResponseBody build() { return new ModifyEipAddressAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyEipForwardModeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyEipForwardModeRequest} extends {@link RequestModel} * * <p>ModifyEipForwardModeRequest</p> */ public class ModifyEipForwardModeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Mode") @com.aliyun.core.annotation.Validation(required = true) private String mode; @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 ModifyEipForwardModeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.instanceId = builder.instanceId; this.mode = builder.mode; 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 ModifyEipForwardModeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return mode */ public String getMode() { return this.mode; } /** * @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<ModifyEipForwardModeRequest, Builder> { private String clientToken; private String instanceId; private String mode; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyEipForwardModeRequest request) { super(request); this.clientToken = request.clientToken; this.instanceId = request.instanceId; this.mode = request.mode; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>RequestId</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the EIP whose attributes you want to modify.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-j5ebhbw3br92fy****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The association mode. Valid values:</p> * <ul> * <li><strong>NAT</strong> (default): the standard NAT mode.</li> * <li><strong>MULTI_BINDED</strong>: the multi-EIP-to-ENI mode.</li> * <li><strong>BINDED</strong>: the cut-through mode.</li> * </ul> * <blockquote> * <p> This parameter is required only if <strong>InstanceType</strong> is set to <strong>NetworkInterface</strong>.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>BINDED</p> */ public Builder mode(String mode) { this.putQueryParameter("Mode", mode); this.mode = mode; 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 EIP belongs. You can call the DescribeRegions operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyEipForwardModeRequest build() { return new ModifyEipForwardModeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyEipForwardModeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyEipForwardModeResponse} extends {@link TeaModel} * * <p>ModifyEipForwardModeResponse</p> */ public class ModifyEipForwardModeResponse 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 ModifyEipForwardModeResponseBody body; private ModifyEipForwardModeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyEipForwardModeResponse 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 ModifyEipForwardModeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyEipForwardModeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyEipForwardModeResponseBody body); @Override ModifyEipForwardModeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyEipForwardModeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyEipForwardModeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyEipForwardModeResponse 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(ModifyEipForwardModeResponseBody body) { this.body = body; return this; } @Override public ModifyEipForwardModeResponse build() { return new ModifyEipForwardModeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyEipForwardModeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyEipForwardModeResponseBody} extends {@link TeaModel} * * <p>ModifyEipForwardModeResponseBody</p> */ public class ModifyEipForwardModeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyEipForwardModeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyEipForwardModeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyEipForwardModeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>62C6A6A5-1534-53D9-AB1E-C9307A147ED5</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyEipForwardModeResponseBody build() { return new ModifyEipForwardModeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressCloudConnectionAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressCloudConnectionAttributeRequest} extends {@link RequestModel} * * <p>ModifyExpressCloudConnectionAttributeRequest</p> */ public class ModifyExpressCloudConnectionAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpAs") private String bgpAs; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CeIp") private String ceIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EccId") @com.aliyun.core.annotation.Validation(required = true) private String eccId; @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("PeIp") private String peIp; @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 ModifyExpressCloudConnectionAttributeRequest(Builder builder) { super(builder); this.bgpAs = builder.bgpAs; this.ceIp = builder.ceIp; this.description = builder.description; this.eccId = builder.eccId; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.peIp = builder.peIp; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyExpressCloudConnectionAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bgpAs */ public String getBgpAs() { return this.bgpAs; } /** * @return ceIp */ public String getCeIp() { return this.ceIp; } /** * @return description */ public String getDescription() { return this.description; } /** * @return eccId */ public String getEccId() { return this.eccId; } /** * @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 peIp */ public String getPeIp() { return this.peIp; } /** * @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<ModifyExpressCloudConnectionAttributeRequest, Builder> { private String bgpAs; private String ceIp; private String description; private String eccId; private String name; private String ownerAccount; private Long ownerId; private String peIp; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyExpressCloudConnectionAttributeRequest request) { super(request); this.bgpAs = request.bgpAs; this.ceIp = request.ceIp; this.description = request.description; this.eccId = request.eccId; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.peIp = request.peIp; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The BGP autonomous system number (ASN) to be configured for the Smart Access Gateway (SAG) device.</p> * * <strong>example:</strong> * <p>sag-ejfge***</p> */ public Builder bgpAs(String bgpAs) { this.putQueryParameter("BgpAs", bgpAs); this.bgpAs = bgpAs; return this; } /** * <p>The peer IP address when the SAG device is connected to the cloud.</p> * * <strong>example:</strong> * <p><code>172.16.**.**</code></p> */ public Builder ceIp(String ceIp) { this.putQueryParameter("CeIp", ceIp); this.ceIp = ceIp; return this; } /** * <p>Descriptions of ECC.</p> * * <strong>example:</strong> * <p>ECC</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The ID of the ECC instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ecc-bp1t9osmuln*******</p> */ public Builder eccId(String eccId) { this.putQueryParameter("EccId", eccId); this.eccId = eccId; return this; } /** * <p>The name of the ECC instance.</p> * * <strong>example:</strong> * <p>doctest</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The on-premises IP address when the SAG device is connected to the cloud.</p> * * <strong>example:</strong> * <p><code>10.10.**.**</code></p> */ public Builder peIp(String peIp) { this.putQueryParameter("PeIp", peIp); this.peIp = peIp; return this; } /** * <p>The region ID of the ECC instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyExpressCloudConnectionAttributeRequest build() { return new ModifyExpressCloudConnectionAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressCloudConnectionAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressCloudConnectionAttributeResponse} extends {@link TeaModel} * * <p>ModifyExpressCloudConnectionAttributeResponse</p> */ public class ModifyExpressCloudConnectionAttributeResponse 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 ModifyExpressCloudConnectionAttributeResponseBody body; private ModifyExpressCloudConnectionAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyExpressCloudConnectionAttributeResponse 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 ModifyExpressCloudConnectionAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyExpressCloudConnectionAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyExpressCloudConnectionAttributeResponseBody body); @Override ModifyExpressCloudConnectionAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyExpressCloudConnectionAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyExpressCloudConnectionAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyExpressCloudConnectionAttributeResponse 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(ModifyExpressCloudConnectionAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyExpressCloudConnectionAttributeResponse build() { return new ModifyExpressCloudConnectionAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressCloudConnectionAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressCloudConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyExpressCloudConnectionAttributeResponseBody</p> */ public class ModifyExpressCloudConnectionAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyExpressCloudConnectionAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyExpressCloudConnectionAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyExpressCloudConnectionAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>E6385514-B0CC-48E3-B9F9-F7BFF64460A2</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyExpressCloudConnectionAttributeResponseBody build() { return new ModifyExpressCloudConnectionAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressCloudConnectionBandwidthRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressCloudConnectionBandwidthRequest} extends {@link RequestModel} * * <p>ModifyExpressCloudConnectionBandwidthRequest</p> */ public class ModifyExpressCloudConnectionBandwidthRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") private String bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EccId") @com.aliyun.core.annotation.Validation(required = true) private String eccId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyExpressCloudConnectionBandwidthRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.eccId = builder.eccId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyExpressCloudConnectionBandwidthRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public String getBandwidth() { return this.bandwidth; } /** * @return eccId */ public String getEccId() { return this.eccId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyExpressCloudConnectionBandwidthRequest, Builder> { private String bandwidth; private String eccId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyExpressCloudConnectionBandwidthRequest request) { super(request); this.bandwidth = request.bandwidth; this.eccId = request.eccId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The bandwidth of the ECC instance.</p> * * <strong>example:</strong> * <p>2</p> */ public Builder bandwidth(String bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The ID of the ECC instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ecc-xxxxxxxxx</p> */ public Builder eccId(String eccId) { this.putQueryParameter("EccId", eccId); this.eccId = eccId; 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; } @Override public ModifyExpressCloudConnectionBandwidthRequest build() { return new ModifyExpressCloudConnectionBandwidthRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressCloudConnectionBandwidthResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressCloudConnectionBandwidthResponse} extends {@link TeaModel} * * <p>ModifyExpressCloudConnectionBandwidthResponse</p> */ public class ModifyExpressCloudConnectionBandwidthResponse 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 ModifyExpressCloudConnectionBandwidthResponseBody body; private ModifyExpressCloudConnectionBandwidthResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyExpressCloudConnectionBandwidthResponse 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 ModifyExpressCloudConnectionBandwidthResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyExpressCloudConnectionBandwidthResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyExpressCloudConnectionBandwidthResponseBody body); @Override ModifyExpressCloudConnectionBandwidthResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyExpressCloudConnectionBandwidthResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyExpressCloudConnectionBandwidthResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyExpressCloudConnectionBandwidthResponse 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(ModifyExpressCloudConnectionBandwidthResponseBody body) { this.body = body; return this; } @Override public ModifyExpressCloudConnectionBandwidthResponse build() { return new ModifyExpressCloudConnectionBandwidthResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressCloudConnectionBandwidthResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressCloudConnectionBandwidthResponseBody} extends {@link TeaModel} * * <p>ModifyExpressCloudConnectionBandwidthResponseBody</p> */ public class ModifyExpressCloudConnectionBandwidthResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyExpressCloudConnectionBandwidthResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyExpressCloudConnectionBandwidthResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyExpressCloudConnectionBandwidthResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>E6385514-B0CC-48E3-B9F9-F7BFF64460A2</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyExpressCloudConnectionBandwidthResponseBody build() { return new ModifyExpressCloudConnectionBandwidthResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosQueueRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosQueueRequest} extends {@link RequestModel} * * <p>ModifyExpressConnectTrafficQosQueueRequest</p> */ public class ModifyExpressConnectTrafficQosQueueRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPercent") private String bandwidthPercent; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosId") @com.aliyun.core.annotation.Validation(required = true) private String qosId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueDescription") private String queueDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueId") @com.aliyun.core.annotation.Validation(required = true) private String queueId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueName") private String queueName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; private ModifyExpressConnectTrafficQosQueueRequest(Builder builder) { super(builder); this.bandwidthPercent = builder.bandwidthPercent; this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.qosId = builder.qosId; this.queueDescription = builder.queueDescription; this.queueId = builder.queueId; this.queueName = builder.queueName; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static ModifyExpressConnectTrafficQosQueueRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPercent */ public String getBandwidthPercent() { return this.bandwidthPercent; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return queueDescription */ public String getQueueDescription() { return this.queueDescription; } /** * @return queueId */ public String getQueueId() { return this.queueId; } /** * @return queueName */ public String getQueueName() { return this.queueName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder<ModifyExpressConnectTrafficQosQueueRequest, Builder> { private String bandwidthPercent; private String clientToken; private String ownerAccount; private Long ownerId; private String qosId; private String queueDescription; private String queueId; private String queueName; private String regionId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(ModifyExpressConnectTrafficQosQueueRequest request) { super(request); this.bandwidthPercent = request.bandwidthPercent; this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.qosId = request.qosId; this.queueDescription = request.queueDescription; this.queueId = request.queueId; this.queueName = request.queueName; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The percentage of bandwidth allocated to the QoS queue.</p> * <ul> * <li>If QueueType is set to <strong>Medium</strong>, this parameter is required. Valid values: 1 to 100.</li> * <li>If QueueType is set to <strong>Default</strong>, a value of - is returned.</li> * </ul> * * <strong>example:</strong> * <p>100</p> */ public Builder bandwidthPercent(String bandwidthPercent) { this.putQueryParameter("BandwidthPercent", bandwidthPercent); this.bandwidthPercent = bandwidthPercent; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must ensure that the value is unique among all requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> might be different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the QoS policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.putQueryParameter("QosId", qosId); this.qosId = qosId; return this; } /** * <p>The description of the QoS queue.</p> * <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>qos-queue-test</p> */ public Builder queueDescription(String queueDescription) { this.putQueryParameter("QueueDescription", queueDescription); this.queueDescription = queueDescription; return this; } /** * <p>The ID of the QoS queue.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-queue-9nyx2u7n71s2rcy4n5</p> */ public Builder queueId(String queueId) { this.putQueryParameter("QueueId", queueId); this.queueId = queueId; return this; } /** * <p>The name of the QoS queue.</p> * <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>qos-queue-test</p> */ public Builder queueName(String queueName) { this.putQueryParameter("QueueName", queueName); this.queueName = queueName; return this; } /** * <p>The region ID of the QoS policy.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } @Override public ModifyExpressConnectTrafficQosQueueRequest build() { return new ModifyExpressConnectTrafficQosQueueRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosQueueResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosQueueResponse} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosQueueResponse</p> */ public class ModifyExpressConnectTrafficQosQueueResponse 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 ModifyExpressConnectTrafficQosQueueResponseBody body; private ModifyExpressConnectTrafficQosQueueResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyExpressConnectTrafficQosQueueResponse 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 ModifyExpressConnectTrafficQosQueueResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyExpressConnectTrafficQosQueueResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyExpressConnectTrafficQosQueueResponseBody body); @Override ModifyExpressConnectTrafficQosQueueResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyExpressConnectTrafficQosQueueResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyExpressConnectTrafficQosQueueResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyExpressConnectTrafficQosQueueResponse 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(ModifyExpressConnectTrafficQosQueueResponseBody body) { this.body = body; return this; } @Override public ModifyExpressConnectTrafficQosQueueResponse build() { return new ModifyExpressConnectTrafficQosQueueResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosQueueResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosQueueResponseBody} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosQueueResponseBody</p> */ public class ModifyExpressConnectTrafficQosQueueResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyExpressConnectTrafficQosQueueResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyExpressConnectTrafficQosQueueResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyExpressConnectTrafficQosQueueResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>079874CD-AEC1-43E6-AC03-ADD96B6E4907</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyExpressConnectTrafficQosQueueResponseBody build() { return new ModifyExpressConnectTrafficQosQueueResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosRequest} extends {@link RequestModel} * * <p>ModifyExpressConnectTrafficQosRequest</p> */ public class ModifyExpressConnectTrafficQosRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AddInstanceList") private java.util.List<AddInstanceList> addInstanceList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosDescription") private String qosDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosId") @com.aliyun.core.annotation.Validation(required = true) private String qosId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosName") private String qosName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoveInstanceList") private java.util.List<RemoveInstanceList> removeInstanceList; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; private ModifyExpressConnectTrafficQosRequest(Builder builder) { super(builder); this.addInstanceList = builder.addInstanceList; this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.qosDescription = builder.qosDescription; this.qosId = builder.qosId; this.qosName = builder.qosName; this.regionId = builder.regionId; this.removeInstanceList = builder.removeInstanceList; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static ModifyExpressConnectTrafficQosRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return addInstanceList */ public java.util.List<AddInstanceList> getAddInstanceList() { return this.addInstanceList; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return qosDescription */ public String getQosDescription() { return this.qosDescription; } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return qosName */ public String getQosName() { return this.qosName; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return removeInstanceList */ public java.util.List<RemoveInstanceList> getRemoveInstanceList() { return this.removeInstanceList; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public static final class Builder extends Request.Builder<ModifyExpressConnectTrafficQosRequest, Builder> { private java.util.List<AddInstanceList> addInstanceList; private String clientToken; private String ownerAccount; private Long ownerId; private String qosDescription; private String qosId; private String qosName; private String regionId; private java.util.List<RemoveInstanceList> removeInstanceList; private String resourceOwnerAccount; private Builder() { super(); } private Builder(ModifyExpressConnectTrafficQosRequest request) { super(request); this.addInstanceList = request.addInstanceList; this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.qosDescription = request.qosDescription; this.qosId = request.qosId; this.qosName = request.qosName; this.regionId = request.regionId; this.removeInstanceList = request.removeInstanceList; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The instances to be added. Ignore this parameter if no instances are to be added.</p> */ public Builder addInstanceList(java.util.List<AddInstanceList> addInstanceList) { this.putQueryParameter("AddInstanceList", addInstanceList); this.addInstanceList = addInstanceList; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The description of the QoS policy.</p> * * <strong>example:</strong> * <p>qos-test</p> */ public Builder qosDescription(String qosDescription) { this.putQueryParameter("QosDescription", qosDescription); this.qosDescription = qosDescription; return this; } /** * <p>The ID of the QoS policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.putQueryParameter("QosId", qosId); this.qosId = qosId; return this; } /** * <p>The name of the QoS policy.</p> * * <strong>example:</strong> * <p>qos-test</p> */ public Builder qosName(String qosName) { this.putQueryParameter("QosName", qosName); this.qosName = qosName; return this; } /** * <p>The region ID of the 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-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The instances to be removed. Ignore this parameter if no instances are to be removed.</p> */ public Builder removeInstanceList(java.util.List<RemoveInstanceList> removeInstanceList) { this.putQueryParameter("RemoveInstanceList", removeInstanceList); this.removeInstanceList = removeInstanceList; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } @Override public ModifyExpressConnectTrafficQosRequest build() { return new ModifyExpressConnectTrafficQosRequest(this); } } /** * * {@link ModifyExpressConnectTrafficQosRequest} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosRequest</p> */ public static class AddInstanceList extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; private AddInstanceList(Builder builder) { this.instanceId = builder.instanceId; this.instanceType = builder.instanceType; } public static Builder builder() { return new Builder(); } public static AddInstanceList create() { return builder().build(); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } public static final class Builder { private String instanceId; private String instanceType; private Builder() { } private Builder(AddInstanceList model) { this.instanceId = model.instanceId; this.instanceType = model.instanceType; } /** * <p>The ID of the instance to be associated.</p> * * <strong>example:</strong> * <p>pc-bp159zj8zujwy3p07****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The type of instance to be associated. Set the value to <strong>PHYSICALCONNECTION</strong>.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } public AddInstanceList build() { return new AddInstanceList(this); } } } /** * * {@link ModifyExpressConnectTrafficQosRequest} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosRequest</p> */ public static class RemoveInstanceList extends TeaModel { @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; private RemoveInstanceList(Builder builder) { this.instanceId = builder.instanceId; this.instanceType = builder.instanceType; } public static Builder builder() { return new Builder(); } public static RemoveInstanceList create() { return builder().build(); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } public static final class Builder { private String instanceId; private String instanceType; private Builder() { } private Builder(RemoveInstanceList model) { this.instanceId = model.instanceId; this.instanceType = model.instanceType; } /** * <p>The ID of the associated instance.</p> * * <strong>example:</strong> * <p>pc-bp1j37am632492qzw****</p> */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * <p>The type of the associated instance. Set the value to <strong>PHYSICALCONNECTION</strong>.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } public RemoveInstanceList build() { return new RemoveInstanceList(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosResponse} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosResponse</p> */ public class ModifyExpressConnectTrafficQosResponse 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 ModifyExpressConnectTrafficQosResponseBody body; private ModifyExpressConnectTrafficQosResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyExpressConnectTrafficQosResponse 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 ModifyExpressConnectTrafficQosResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyExpressConnectTrafficQosResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyExpressConnectTrafficQosResponseBody body); @Override ModifyExpressConnectTrafficQosResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyExpressConnectTrafficQosResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyExpressConnectTrafficQosResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyExpressConnectTrafficQosResponse 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(ModifyExpressConnectTrafficQosResponseBody body) { this.body = body; return this; } @Override public ModifyExpressConnectTrafficQosResponse build() { return new ModifyExpressConnectTrafficQosResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosResponseBody} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosResponseBody</p> */ public class ModifyExpressConnectTrafficQosResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyExpressConnectTrafficQosResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyExpressConnectTrafficQosResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyExpressConnectTrafficQosResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>54B48E3D-DF70-471B-AA93-08E683A1B457</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyExpressConnectTrafficQosResponseBody build() { return new ModifyExpressConnectTrafficQosResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosRuleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosRuleRequest} extends {@link RequestModel} * * <p>ModifyExpressConnectTrafficQosRuleRequest</p> */ public class ModifyExpressConnectTrafficQosRuleRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DstCidr") private String dstCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DstIPv6Cidr") private String dstIPv6Cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DstPortRange") private String dstPortRange; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MatchDscp") private Integer matchDscp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Protocol") private String protocol; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QosId") @com.aliyun.core.annotation.Validation(required = true) private String qosId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("QueueId") @com.aliyun.core.annotation.Validation(required = true) private String queueId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemarkingDscp") private Integer remarkingDscp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleDescription") private String ruleDescription; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleId") @com.aliyun.core.annotation.Validation(required = true) private String ruleId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleName") private String ruleName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SrcCidr") private String srcCidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SrcIPv6Cidr") private String srcIPv6Cidr; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SrcPortRange") private String srcPortRange; private ModifyExpressConnectTrafficQosRuleRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dstCidr = builder.dstCidr; this.dstIPv6Cidr = builder.dstIPv6Cidr; this.dstPortRange = builder.dstPortRange; this.matchDscp = builder.matchDscp; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.priority = builder.priority; this.protocol = builder.protocol; this.qosId = builder.qosId; this.queueId = builder.queueId; this.regionId = builder.regionId; this.remarkingDscp = builder.remarkingDscp; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.ruleDescription = builder.ruleDescription; this.ruleId = builder.ruleId; this.ruleName = builder.ruleName; this.srcCidr = builder.srcCidr; this.srcIPv6Cidr = builder.srcIPv6Cidr; this.srcPortRange = builder.srcPortRange; } public static Builder builder() { return new Builder(); } public static ModifyExpressConnectTrafficQosRuleRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dstCidr */ public String getDstCidr() { return this.dstCidr; } /** * @return dstIPv6Cidr */ public String getDstIPv6Cidr() { return this.dstIPv6Cidr; } /** * @return dstPortRange */ public String getDstPortRange() { return this.dstPortRange; } /** * @return matchDscp */ public Integer getMatchDscp() { return this.matchDscp; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return protocol */ public String getProtocol() { return this.protocol; } /** * @return qosId */ public String getQosId() { return this.qosId; } /** * @return queueId */ public String getQueueId() { return this.queueId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remarkingDscp */ public Integer getRemarkingDscp() { return this.remarkingDscp; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return ruleDescription */ public String getRuleDescription() { return this.ruleDescription; } /** * @return ruleId */ public String getRuleId() { return this.ruleId; } /** * @return ruleName */ public String getRuleName() { return this.ruleName; } /** * @return srcCidr */ public String getSrcCidr() { return this.srcCidr; } /** * @return srcIPv6Cidr */ public String getSrcIPv6Cidr() { return this.srcIPv6Cidr; } /** * @return srcPortRange */ public String getSrcPortRange() { return this.srcPortRange; } public static final class Builder extends Request.Builder<ModifyExpressConnectTrafficQosRuleRequest, Builder> { private String clientToken; private String dstCidr; private String dstIPv6Cidr; private String dstPortRange; private Integer matchDscp; private String ownerAccount; private Long ownerId; private Integer priority; private String protocol; private String qosId; private String queueId; private String regionId; private Integer remarkingDscp; private String resourceOwnerAccount; private String ruleDescription; private String ruleId; private String ruleName; private String srcCidr; private String srcIPv6Cidr; private String srcPortRange; private Builder() { super(); } private Builder(ModifyExpressConnectTrafficQosRuleRequest request) { super(request); this.clientToken = request.clientToken; this.dstCidr = request.dstCidr; this.dstIPv6Cidr = request.dstIPv6Cidr; this.dstPortRange = request.dstPortRange; this.matchDscp = request.matchDscp; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.priority = request.priority; this.protocol = request.protocol; this.qosId = request.qosId; this.queueId = request.queueId; this.regionId = request.regionId; this.remarkingDscp = request.remarkingDscp; this.resourceOwnerAccount = request.resourceOwnerAccount; this.ruleDescription = request.ruleDescription; this.ruleId = request.ruleId; this.ruleName = request.ruleName; this.srcCidr = request.srcCidr; this.srcIPv6Cidr = request.srcIPv6Cidr; this.srcPortRange = request.srcPortRange; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * * <strong>example:</strong> * <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The destination IPv4 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1.1.1.0/24</p> */ public Builder dstCidr(String dstCidr) { this.putQueryParameter("DstCidr", dstCidr); this.dstCidr = dstCidr; return this; } /** * <p>The destination IPv6 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>2001:0db8:1234:5678::/64</p> */ public Builder dstIPv6Cidr(String dstIPv6Cidr) { this.putQueryParameter("DstIPv6Cidr", dstIPv6Cidr); this.dstIPv6Cidr = dstIPv6Cidr; return this; } /** * <p>The range of destination ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number. Different protocols correspond to different ports. Valid values:</p> * <ul> * <li><strong>ALL</strong> (uneditable): -1/-1.</li> * <li><strong>ICMP(IPv4)</strong> (uneditable): -1/-1.</li> * <li><strong>ICMPv6(IPv6)</strong> (uneditable): -1/-1.</li> * <li><strong>TCP</strong> (editable): -1/-1.</li> * <li><strong>UDP</strong> (editable): -1/-1.</li> * <li><strong>GRE</strong> (uneditable): -1/-1.</li> * <li><strong>SSH</strong> (uneditable): 22/22.</li> * <li><strong>Telnet</strong> (uneditable): 23/23.</li> * <li><strong>HTTP</strong> (uneditable): 80/80.</li> * <li><strong>HTTPS</strong> (uneditable): 443/443.</li> * <li><strong>MS SQL</strong> (uneditable): 1443/1443.</li> * <li><strong>Oracle</strong> (uneditable): 1521/1521.</li> * <li><strong>MySql</strong> (uneditable): 3306/3306.</li> * <li><strong>RDP</strong> (uneditable): 3389/3389.</li> * <li><strong>PostgreSQL</strong> (uneditable): 5432/5432.</li> * <li><strong>Redis</strong> (uneditable): 6379/6379.</li> * </ul> * * <strong>example:</strong> * <p>-1/-1</p> */ public Builder dstPortRange(String dstPortRange) { this.putQueryParameter("DstPortRange", dstPortRange); this.dstPortRange = dstPortRange; return this; } /** * <p>The DSCP value that matches the QoS rule traffic. Valid values: <strong>0</strong> to <strong>63</strong>. If no value is matched, the value is -1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder matchDscp(Integer matchDscp) { this.putQueryParameter("MatchDscp", matchDscp); this.matchDscp = matchDscp; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The priority of the QoS rule. Valid values: <strong>1</strong> to <strong>9000</strong>. A larger value indicates a higher priority. The priority of each QoS rule must be unique in the same QoS policy.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder priority(Integer priority) { this.putQueryParameter("Priority", priority); this.priority = priority; return this; } /** * <p>The protocol of the QoS rule. Valid values:</p> * <ul> * <li><strong>ALL</strong></li> * <li><strong>ICMP(IPv4)</strong></li> * <li><strong>ICMPv6(IPv6)</strong></li> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * <li><strong>GRE</strong></li> * <li><strong>SSH</strong></li> * <li><strong>Telnet</strong></li> * <li><strong>HTTP</strong></li> * <li><strong>HTTPS</strong></li> * <li><strong>MS SQL</strong></li> * <li><strong>Oracle</strong></li> * <li><strong>MySql</strong></li> * <li><strong>RDP</strong></li> * <li><strong>PostgreSQL</strong></li> * <li><strong>Redis</strong></li> * </ul> * * <strong>example:</strong> * <p>ALL</p> */ public Builder protocol(String protocol) { this.putQueryParameter("Protocol", protocol); this.protocol = protocol; return this; } /** * <p>The ID of the QoS policy.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-2giu0a6vd5x0mv4700</p> */ public Builder qosId(String qosId) { this.putQueryParameter("QosId", qosId); this.qosId = qosId; return this; } /** * <p>The ID of the QoS queue.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-queue-9nyx2u7n71s2rcy4n5</p> */ public Builder queueId(String queueId) { this.putQueryParameter("QueueId", queueId); this.queueId = queueId; return this; } /** * <p>The region ID of the QoS policy.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-shanghai</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The new DSCP value. Valid values: <strong>0</strong> to <strong>63</strong>. If you do not change the value, set the value to -1.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder remarkingDscp(Integer remarkingDscp) { this.putQueryParameter("RemarkingDscp", remarkingDscp); this.remarkingDscp = remarkingDscp; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * <p>The description of the QoS rule.</p> * <p>The description must be 0 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>qos-rule-test</p> */ public Builder ruleDescription(String ruleDescription) { this.putQueryParameter("RuleDescription", ruleDescription); this.ruleDescription = ruleDescription; return this; } /** * <p>The ID of the QoS rule.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>qos-rule-iugg0l9x27f2nocouj</p> */ public Builder ruleId(String ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } /** * <p>The name of the QoS rule.</p> * <p>The name must be 0 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>qos-rule-test</p> */ public Builder ruleName(String ruleName) { this.putQueryParameter("RuleName", ruleName); this.ruleName = ruleName; return this; } /** * <p>The source IPv4 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcIPv6Cidr</strong> or <strong>DstIPv6Cidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>1.1.1.0/24</p> */ public Builder srcCidr(String srcCidr) { this.putQueryParameter("SrcCidr", srcCidr); this.srcCidr = srcCidr; return this; } /** * <p>The source IPv6 CIDR block that matches the QoS rule traffic.</p> * <blockquote> * <p>When this parameter is unavailable, specify <strong>SrcCidr</strong> or <strong>DstCidr</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>2001:0db8:1234:5678::/64</p> */ public Builder srcIPv6Cidr(String srcIPv6Cidr) { this.putQueryParameter("SrcIPv6Cidr", srcIPv6Cidr); this.srcIPv6Cidr = srcIPv6Cidr; return this; } /** * <p>The range of source ports that match the QoS rule traffic. Valid values: <strong>0</strong> to <strong>65535</strong>. If the traffic does not match, the value is -1. You can specify only one port. The start port number must be the same as the end port number.</p> * * <strong>example:</strong> * <p>-1/-1</p> */ public Builder srcPortRange(String srcPortRange) { this.putQueryParameter("SrcPortRange", srcPortRange); this.srcPortRange = srcPortRange; return this; } @Override public ModifyExpressConnectTrafficQosRuleRequest build() { return new ModifyExpressConnectTrafficQosRuleRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosRuleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosRuleResponse} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosRuleResponse</p> */ public class ModifyExpressConnectTrafficQosRuleResponse 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 ModifyExpressConnectTrafficQosRuleResponseBody body; private ModifyExpressConnectTrafficQosRuleResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyExpressConnectTrafficQosRuleResponse 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 ModifyExpressConnectTrafficQosRuleResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyExpressConnectTrafficQosRuleResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyExpressConnectTrafficQosRuleResponseBody body); @Override ModifyExpressConnectTrafficQosRuleResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyExpressConnectTrafficQosRuleResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyExpressConnectTrafficQosRuleResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyExpressConnectTrafficQosRuleResponse 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(ModifyExpressConnectTrafficQosRuleResponseBody body) { this.body = body; return this; } @Override public ModifyExpressConnectTrafficQosRuleResponse build() { return new ModifyExpressConnectTrafficQosRuleResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyExpressConnectTrafficQosRuleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyExpressConnectTrafficQosRuleResponseBody} extends {@link TeaModel} * * <p>ModifyExpressConnectTrafficQosRuleResponseBody</p> */ public class ModifyExpressConnectTrafficQosRuleResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyExpressConnectTrafficQosRuleResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyExpressConnectTrafficQosRuleResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String requestId; private Builder() { } private Builder(ModifyExpressConnectTrafficQosRuleResponseBody model) { this.requestId = model.requestId; } /** * <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; } public ModifyExpressConnectTrafficQosRuleResponseBody build() { return new ModifyExpressConnectTrafficQosRuleResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyFlowLogAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyFlowLogAttributeRequest} extends {@link RequestModel} * * <p>ModifyFlowLogAttributeRequest</p> */ public class ModifyFlowLogAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AggregationInterval") private Integer aggregationInterval; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FlowLogId") @com.aliyun.core.annotation.Validation(required = true) private String flowLogId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FlowLogName") private String flowLogName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpVersion") private String ipVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyFlowLogAttributeRequest(Builder builder) { super(builder); this.aggregationInterval = builder.aggregationInterval; this.description = builder.description; this.flowLogId = builder.flowLogId; this.flowLogName = builder.flowLogName; this.ipVersion = builder.ipVersion; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyFlowLogAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aggregationInterval */ public Integer getAggregationInterval() { return this.aggregationInterval; } /** * @return description */ public String getDescription() { return this.description; } /** * @return flowLogId */ public String getFlowLogId() { return this.flowLogId; } /** * @return flowLogName */ public String getFlowLogName() { return this.flowLogName; } /** * @return ipVersion */ public String getIpVersion() { return this.ipVersion; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyFlowLogAttributeRequest, Builder> { private Integer aggregationInterval; private String description; private String flowLogId; private String flowLogName; private String ipVersion; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyFlowLogAttributeRequest request) { super(request); this.aggregationInterval = request.aggregationInterval; this.description = request.description; this.flowLogId = request.flowLogId; this.flowLogName = request.flowLogName; this.ipVersion = request.ipVersion; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The new sampling interval of the flow log. Unit: minutes. Valid values: <strong>1</strong>, <strong>5</strong>, and <strong>10</strong>.</p> * * <strong>example:</strong> * <p>1</p> */ public Builder aggregationInterval(Integer aggregationInterval) { this.putQueryParameter("AggregationInterval", aggregationInterval); this.aggregationInterval = aggregationInterval; return this; } /** * <p>The new description of the flow log.</p> * <p>The description must be 1 to 256 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>This is my Flowlog.</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The ID of the flow log.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>fl-m5e8vhz2t21sel1nq****</p> */ public Builder flowLogId(String flowLogId) { this.putQueryParameter("FlowLogId", flowLogId); this.flowLogId = flowLogId; return this; } /** * <p>The new name of the flow log.</p> * <p>The name must be 1 to 128 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>myFlowlog</p> */ public Builder flowLogName(String flowLogName) { this.putQueryParameter("FlowLogName", flowLogName); this.flowLogName = flowLogName; return this; } /** * IpVersion. */ public Builder ipVersion(String ipVersion) { this.putQueryParameter("IpVersion", ipVersion); this.ipVersion = ipVersion; return this; } /** * 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 flow log 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-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 ModifyFlowLogAttributeRequest build() { return new ModifyFlowLogAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyFlowLogAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyFlowLogAttributeResponse} extends {@link TeaModel} * * <p>ModifyFlowLogAttributeResponse</p> */ public class ModifyFlowLogAttributeResponse 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 ModifyFlowLogAttributeResponseBody body; private ModifyFlowLogAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyFlowLogAttributeResponse 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 ModifyFlowLogAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyFlowLogAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyFlowLogAttributeResponseBody body); @Override ModifyFlowLogAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyFlowLogAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyFlowLogAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyFlowLogAttributeResponse 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(ModifyFlowLogAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyFlowLogAttributeResponse build() { return new ModifyFlowLogAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyFlowLogAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyFlowLogAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyFlowLogAttributeResponseBody</p> */ public class ModifyFlowLogAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private String success; private ModifyFlowLogAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static ModifyFlowLogAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public String getSuccess() { return this.success; } public static final class Builder { private String requestId; private String success; private Builder() { } private Builder(ModifyFlowLogAttributeResponseBody model) { this.requestId = model.requestId; this.success = model.success; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the call is successful. Valid values:</p> * <ul> * <li><strong>true</strong>: yes</li> * <li><strong>false</strong>: no</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } public ModifyFlowLogAttributeResponseBody build() { return new ModifyFlowLogAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyForwardEntryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyForwardEntryRequest} extends {@link RequestModel} * * <p>ModifyForwardEntryRequest</p> */ public class ModifyForwardEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExternalIp") private String externalIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ExternalPort") private String externalPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ForwardEntryId") @com.aliyun.core.annotation.Validation(required = true) private String forwardEntryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ForwardEntryName") private String forwardEntryName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ForwardTableId") @com.aliyun.core.annotation.Validation(required = true) private String forwardTableId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternalIp") private String internalIp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternalPort") private String internalPort; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpProtocol") private String ipProtocol; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PortBreak") private Boolean portBreak; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyForwardEntryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.externalIp = builder.externalIp; this.externalPort = builder.externalPort; this.forwardEntryId = builder.forwardEntryId; this.forwardEntryName = builder.forwardEntryName; this.forwardTableId = builder.forwardTableId; this.internalIp = builder.internalIp; this.internalPort = builder.internalPort; this.ipProtocol = builder.ipProtocol; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.portBreak = builder.portBreak; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyForwardEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return externalIp */ public String getExternalIp() { return this.externalIp; } /** * @return externalPort */ public String getExternalPort() { return this.externalPort; } /** * @return forwardEntryId */ public String getForwardEntryId() { return this.forwardEntryId; } /** * @return forwardEntryName */ public String getForwardEntryName() { return this.forwardEntryName; } /** * @return forwardTableId */ public String getForwardTableId() { return this.forwardTableId; } /** * @return internalIp */ public String getInternalIp() { return this.internalIp; } /** * @return internalPort */ public String getInternalPort() { return this.internalPort; } /** * @return ipProtocol */ public String getIpProtocol() { return this.ipProtocol; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return portBreak */ public Boolean getPortBreak() { return this.portBreak; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder<ModifyForwardEntryRequest, Builder> { private String clientToken; private Boolean dryRun; private String externalIp; private String externalPort; private String forwardEntryId; private String forwardEntryName; private String forwardTableId; private String internalIp; private String internalPort; private String ipProtocol; private String ownerAccount; private Long ownerId; private Boolean portBreak; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyForwardEntryRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.externalIp = request.externalIp; this.externalPort = request.externalPort; this.forwardEntryId = request.forwardEntryId; this.forwardEntryName = request.forwardEntryName; this.forwardTableId = request.forwardTableId; this.internalIp = request.internalIp; this.internalPort = request.internalPort; this.ipProtocol = request.ipProtocol; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.portBreak = request.portBreak; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * DryRun. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <ul> * <li>When you modify DNAT entries of Internet NAT gateways, this parameter specifies the elastic IP addresses (EIPs) that are used to access the Internet.</li> * <li>When you modify DNAT entries of Virtual Private Cloud (VPC) NAT gateways, this parameter specifies the NAT IP addresses that are accessed by external networks.</li> * </ul> * * <strong>example:</strong> * <p>116.85.XX.XX</p> */ public Builder externalIp(String externalIp) { this.putQueryParameter("ExternalIp", externalIp); this.externalIp = externalIp; return this; } /** * <ul> * <li><p>The external port that is used to forward traffic when you modify DNAT entries of Internet NAT gateways.</p> * <ul> * <li>Valid values: <strong>1</strong> to <strong>65535</strong>.</li> * <li>If you want to modify the port range, separate port numbers with a forward slash (/), such as <code>10/20</code>.</li> * <li>If you need to modify <strong>ExternalPort</strong> and <strong>InternalPort</strong> at the same time, and <strong>ExternalPort</strong> specifies a port range, make sure that <strong>InternalPort</strong> also specifies a port range, and both ranges specify the same number of ports. For example, you can set <strong>ExternalPort</strong> to <code>10/20</code> and <strong>InternalPort</strong> to <code>80/90</code>.</li> * </ul> * </li> * <li><p>The port that is accessed by external networks when you modify DNAT entries of VPC NAT gateways. Valid values: <strong>1</strong> to <strong>65535</strong>.</p> * </li> * </ul> * * <strong>example:</strong> * <p>80</p> */ public Builder externalPort(String externalPort) { this.putQueryParameter("ExternalPort", externalPort); this.externalPort = externalPort; return this; } /** * <p>The ID of the DNAT entry.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>fwd-8vbn3bc8roygjp0gy****</p> */ public Builder forwardEntryId(String forwardEntryId) { this.putQueryParameter("ForwardEntryId", forwardEntryId); this.forwardEntryId = forwardEntryId; return this; } /** * <p>The new name of the DNAT entry.</p> * <p>The name must be 2 to 128 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder forwardEntryName(String forwardEntryName) { this.putQueryParameter("ForwardEntryName", forwardEntryName); this.forwardEntryName = forwardEntryName; return this; } /** * <p>The ID of the DNAT table to which the DNAT entry belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ftb-8vbx8xu2lqj9qb334****</p> */ public Builder forwardTableId(String forwardTableId) { this.putQueryParameter("ForwardTableId", forwardTableId); this.forwardTableId = forwardTableId; return this; } /** * <ul> * <li>The private IP address of the ECS instance that uses DNAT entries to communicate with the Internet when you modify DNAT entries of Internet NAT gateways.</li> * <li>The private IP address that uses DNAT entries to communicate when you modify DNAT entries of VPC NAT gateways.</li> * </ul> * * <strong>example:</strong> * <p>10.0.0.78</p> */ public Builder internalIp(String internalIp) { this.putQueryParameter("InternalIp", internalIp); this.internalIp = internalIp; return this; } /** * <ul> * <li>The internal port or port range that is used to forward traffic when you modify DNAT entries of Internet NAT gateways. Valid values: <strong>1</strong> to <strong>65535</strong>.</li> * <li>The port of the destination ECS instance to be mapped when you modify DNAT entries of VPC NAT gateways. Valid values: <strong>1</strong> to <strong>65535</strong>.</li> * </ul> * * <strong>example:</strong> * <p>80</p> */ public Builder internalPort(String internalPort) { this.putQueryParameter("InternalPort", internalPort); this.internalPort = internalPort; return this; } /** * <p>The protocol. Valid values:</p> * <ul> * <li><strong>TCP</strong></li> * <li><strong>UDP</strong></li> * <li><strong>Any</strong></li> * </ul> * * <strong>example:</strong> * <p>TCP</p> */ public Builder ipProtocol(String ipProtocol) { this.putQueryParameter("IpProtocol", ipProtocol); this.ipProtocol = ipProtocol; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>Specifies whether to remove limits on the port range. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong> If an SNAT entry and a DNAT entry use the same public IP address, and you want to specify a port number greater than <code>1024</code>, set <code>PortBreak</code> to <code>true</code>.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder portBreak(Boolean portBreak) { this.putQueryParameter("PortBreak", portBreak); this.portBreak = portBreak; return this; } /** * <p>The region ID of the NAT gateway.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyForwardEntryRequest build() { return new ModifyForwardEntryRequest(this); } } }