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/DescribeZonesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public class DescribeZonesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Zones")
private Zones zones;
private DescribeZonesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.zones = builder.zones;
}
public static Builder builder() {
return new Builder();
}
public static DescribeZonesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return zones
*/
public Zones getZones() {
return this.zones;
}
public static final class Builder {
private String requestId;
private Zones zones;
private Builder() {
}
private Builder(DescribeZonesResponseBody model) {
this.requestId = model.requestId;
this.zones = model.zones;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>6FEA0CF3-D3B9-43E5-A304-D217037876A8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The zone list.</p>
*/
public Builder zones(Zones zones) {
this.zones = zones;
return this;
}
public DescribeZonesResponseBody build() {
return new DescribeZonesResponseBody(this);
}
}
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public static class Zone extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.NameInMap("ZoneType")
private String zoneType;
private Zone(Builder builder) {
this.localName = builder.localName;
this.zoneId = builder.zoneId;
this.zoneType = builder.zoneType;
}
public static Builder builder() {
return new Builder();
}
public static Zone create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return zoneType
*/
public String getZoneType() {
return this.zoneType;
}
public static final class Builder {
private String localName;
private String zoneId;
private String zoneType;
private Builder() {
}
private Builder(Zone model) {
this.localName = model.localName;
this.zoneId = model.zoneId;
this.zoneType = model.zoneType;
}
/**
* <p>The zone name.</p>
*
* <strong>example:</strong>
* <p>Hangzhou Zone B</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The zone ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-b</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* <p>The zone type. Default value: <strong>AvailabilityZone</strong>.</p>
*
* <strong>example:</strong>
* <p>AvailabilityZone</p>
*/
public Builder zoneType(String zoneType) {
this.zoneType = zoneType;
return this;
}
public Zone build() {
return new Zone(this);
}
}
}
/**
*
* {@link DescribeZonesResponseBody} extends {@link TeaModel}
*
* <p>DescribeZonesResponseBody</p>
*/
public static class Zones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Zone")
private java.util.List<Zone> zone;
private Zones(Builder builder) {
this.zone = builder.zone;
}
public static Builder builder() {
return new Builder();
}
public static Zones create() {
return builder().build();
}
/**
* @return zone
*/
public java.util.List<Zone> getZone() {
return this.zone;
}
public static final class Builder {
private java.util.List<Zone> zone;
private Builder() {
}
private Builder(Zones model) {
this.zone = model.zone;
}
/**
* Zone.
*/
public Builder zone(java.util.List<Zone> zone) {
this.zone = zone;
return this;
}
public Zones build() {
return new Zones(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DetachDhcpOptionsSetFromVpcRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachDhcpOptionsSetFromVpcRequest} extends {@link RequestModel}
*
* <p>DetachDhcpOptionsSetFromVpcRequest</p>
*/
public class DetachDhcpOptionsSetFromVpcRequest 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("DhcpOptionsSetId")
@com.aliyun.core.annotation.Validation(required = true)
private String dhcpOptionsSetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private DetachDhcpOptionsSetFromVpcRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dhcpOptionsSetId = builder.dhcpOptionsSetId;
this.dryRun = builder.dryRun;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DetachDhcpOptionsSetFromVpcRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dhcpOptionsSetId
*/
public String getDhcpOptionsSetId() {
return this.dhcpOptionsSetId;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DetachDhcpOptionsSetFromVpcRequest, Builder> {
private String clientToken;
private String dhcpOptionsSetId;
private Boolean dryRun;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpcId;
private Builder() {
super();
}
private Builder(DetachDhcpOptionsSetFromVpcRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dhcpOptionsSetId = request.dhcpOptionsSetId;
this.dryRun = request.dryRun;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the DHCP options set to be disassociated from a VPC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dopt-o6w0df4epg9zo8isy****</p>
*/
public Builder dhcpOptionsSetId(String dhcpOptionsSetId) {
this.putQueryParameter("DhcpOptionsSetId", dhcpOptionsSetId);
this.dhcpOptionsSetId = dhcpOptionsSetId;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <p><strong>true</strong>: performs only a dry run. The system checks your AccessKey pair, the Resource Access Management (RAM) user permissions, and the required parameters. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</p>
* <p><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.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region to which the DHCP options set 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.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the VPC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-dfdgrgthhy****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DetachDhcpOptionsSetFromVpcRequest build() {
return new DetachDhcpOptionsSetFromVpcRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DetachDhcpOptionsSetFromVpcResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachDhcpOptionsSetFromVpcResponse} extends {@link TeaModel}
*
* <p>DetachDhcpOptionsSetFromVpcResponse</p>
*/
public class DetachDhcpOptionsSetFromVpcResponse 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 DetachDhcpOptionsSetFromVpcResponseBody body;
private DetachDhcpOptionsSetFromVpcResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DetachDhcpOptionsSetFromVpcResponse 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 DetachDhcpOptionsSetFromVpcResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DetachDhcpOptionsSetFromVpcResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DetachDhcpOptionsSetFromVpcResponseBody body);
@Override
DetachDhcpOptionsSetFromVpcResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DetachDhcpOptionsSetFromVpcResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DetachDhcpOptionsSetFromVpcResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DetachDhcpOptionsSetFromVpcResponse 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(DetachDhcpOptionsSetFromVpcResponseBody body) {
this.body = body;
return this;
}
@Override
public DetachDhcpOptionsSetFromVpcResponse build() {
return new DetachDhcpOptionsSetFromVpcResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DetachDhcpOptionsSetFromVpcResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachDhcpOptionsSetFromVpcResponseBody} extends {@link TeaModel}
*
* <p>DetachDhcpOptionsSetFromVpcResponseBody</p>
*/
public class DetachDhcpOptionsSetFromVpcResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DetachDhcpOptionsSetFromVpcResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DetachDhcpOptionsSetFromVpcResponseBody 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(DetachDhcpOptionsSetFromVpcResponseBody 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 DetachDhcpOptionsSetFromVpcResponseBody build() {
return new DetachDhcpOptionsSetFromVpcResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DiagnoseVpnConnectionsRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DiagnoseVpnConnectionsRequest} extends {@link RequestModel}
*
* <p>DiagnoseVpnConnectionsRequest</p>
*/
public class DiagnoseVpnConnectionsRequest extends Request {
@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("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TunnelIds")
private java.util.List<String> tunnelIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnConnectionIds")
private java.util.List<String> vpnConnectionIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
private String vpnGatewayId;
private DiagnoseVpnConnectionsRequest(Builder builder) {
super(builder);
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceOwnerId = builder.resourceOwnerId;
this.tunnelIds = builder.tunnelIds;
this.vpnConnectionIds = builder.vpnConnectionIds;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static DiagnoseVpnConnectionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tunnelIds
*/
public java.util.List<String> getTunnelIds() {
return this.tunnelIds;
}
/**
* @return vpnConnectionIds
*/
public java.util.List<String> getVpnConnectionIds() {
return this.vpnConnectionIds;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<DiagnoseVpnConnectionsRequest, Builder> {
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private Long resourceOwnerId;
private java.util.List<String> tunnelIds;
private java.util.List<String> vpnConnectionIds;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(DiagnoseVpnConnectionsRequest request) {
super(request);
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceOwnerId = request.resourceOwnerId;
this.tunnelIds = request.tunnelIds;
this.vpnConnectionIds = request.vpnConnectionIds;
this.vpnGatewayId = request.vpnGatewayId;
}
/**
* <p>The page number. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Default value: <strong>10</strong>.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the IPsec-VPN connection.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The list of tunnel IDs.</p>
*/
public Builder tunnelIds(java.util.List<String> tunnelIds) {
this.putQueryParameter("TunnelIds", tunnelIds);
this.tunnelIds = tunnelIds;
return this;
}
/**
* <p>The IDs of IPsec-VPN connections.</p>
*/
public Builder vpnConnectionIds(java.util.List<String> vpnConnectionIds) {
this.putQueryParameter("VpnConnectionIds", vpnConnectionIds);
this.vpnConnectionIds = vpnConnectionIds;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>vpn-bp10hz6b0mbp39flt****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public DiagnoseVpnConnectionsRequest build() {
return new DiagnoseVpnConnectionsRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DiagnoseVpnConnectionsResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DiagnoseVpnConnectionsResponse} extends {@link TeaModel}
*
* <p>DiagnoseVpnConnectionsResponse</p>
*/
public class DiagnoseVpnConnectionsResponse 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 DiagnoseVpnConnectionsResponseBody body;
private DiagnoseVpnConnectionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DiagnoseVpnConnectionsResponse 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 DiagnoseVpnConnectionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DiagnoseVpnConnectionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DiagnoseVpnConnectionsResponseBody body);
@Override
DiagnoseVpnConnectionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DiagnoseVpnConnectionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DiagnoseVpnConnectionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DiagnoseVpnConnectionsResponse 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(DiagnoseVpnConnectionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DiagnoseVpnConnectionsResponse build() {
return new DiagnoseVpnConnectionsResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DiagnoseVpnConnectionsResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DiagnoseVpnConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DiagnoseVpnConnectionsResponseBody</p>
*/
public class DiagnoseVpnConnectionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("VpnConnections")
private java.util.List<VpnConnections> vpnConnections;
private DiagnoseVpnConnectionsResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
this.vpnConnections = builder.vpnConnections;
}
public static Builder builder() {
return new Builder();
}
public static DiagnoseVpnConnectionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return vpnConnections
*/
public java.util.List<VpnConnections> getVpnConnections() {
return this.vpnConnections;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private java.util.List<VpnConnections> vpnConnections;
private Builder() {
}
private Builder(DiagnoseVpnConnectionsResponseBody model) {
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
this.vpnConnections = model.vpnConnections;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>B8094E1E-935B-1397-96A8-4F87A5D1BF29</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The diagnostic information.</p>
*/
public Builder vpnConnections(java.util.List<VpnConnections> vpnConnections) {
this.vpnConnections = vpnConnections;
return this;
}
public DiagnoseVpnConnectionsResponseBody build() {
return new DiagnoseVpnConnectionsResponseBody(this);
}
}
/**
*
* {@link DiagnoseVpnConnectionsResponseBody} extends {@link TeaModel}
*
* <p>DiagnoseVpnConnectionsResponseBody</p>
*/
public static class VpnConnections extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FailedReason")
private String failedReason;
@com.aliyun.core.annotation.NameInMap("FailedReasonCode")
private String failedReasonCode;
@com.aliyun.core.annotation.NameInMap("FailedTime")
private Long failedTime;
@com.aliyun.core.annotation.NameInMap("MismatchLocalParam")
private String mismatchLocalParam;
@com.aliyun.core.annotation.NameInMap("MismatchRemoteParam")
private String mismatchRemoteParam;
@com.aliyun.core.annotation.NameInMap("Severity")
private String severity;
@com.aliyun.core.annotation.NameInMap("SourceLog")
private String sourceLog;
@com.aliyun.core.annotation.NameInMap("TunnelId")
private String tunnelId;
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
private String vpnConnectionId;
private VpnConnections(Builder builder) {
this.failedReason = builder.failedReason;
this.failedReasonCode = builder.failedReasonCode;
this.failedTime = builder.failedTime;
this.mismatchLocalParam = builder.mismatchLocalParam;
this.mismatchRemoteParam = builder.mismatchRemoteParam;
this.severity = builder.severity;
this.sourceLog = builder.sourceLog;
this.tunnelId = builder.tunnelId;
this.vpnConnectionId = builder.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static VpnConnections create() {
return builder().build();
}
/**
* @return failedReason
*/
public String getFailedReason() {
return this.failedReason;
}
/**
* @return failedReasonCode
*/
public String getFailedReasonCode() {
return this.failedReasonCode;
}
/**
* @return failedTime
*/
public Long getFailedTime() {
return this.failedTime;
}
/**
* @return mismatchLocalParam
*/
public String getMismatchLocalParam() {
return this.mismatchLocalParam;
}
/**
* @return mismatchRemoteParam
*/
public String getMismatchRemoteParam() {
return this.mismatchRemoteParam;
}
/**
* @return severity
*/
public String getSeverity() {
return this.severity;
}
/**
* @return sourceLog
*/
public String getSourceLog() {
return this.sourceLog;
}
/**
* @return tunnelId
*/
public String getTunnelId() {
return this.tunnelId;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
public static final class Builder {
private String failedReason;
private String failedReasonCode;
private Long failedTime;
private String mismatchLocalParam;
private String mismatchRemoteParam;
private String severity;
private String sourceLog;
private String tunnelId;
private String vpnConnectionId;
private Builder() {
}
private Builder(VpnConnections model) {
this.failedReason = model.failedReason;
this.failedReasonCode = model.failedReasonCode;
this.failedTime = model.failedTime;
this.mismatchLocalParam = model.mismatchLocalParam;
this.mismatchRemoteParam = model.mismatchRemoteParam;
this.severity = model.severity;
this.sourceLog = model.sourceLog;
this.tunnelId = model.tunnelId;
this.vpnConnectionId = model.vpnConnectionId;
}
/**
* <p>The cause of the error.</p>
*
* <strong>example:</strong>
* <p>Phase1 negotiation timeout</p>
*/
public Builder failedReason(String failedReason) {
this.failedReason = failedReason;
return this;
}
/**
* <p>The error code.</p>
*
* <strong>example:</strong>
* <p>Phase1NegotiationTimeout</p>
*/
public Builder failedReasonCode(String failedReasonCode) {
this.failedReasonCode = failedReasonCode;
return this;
}
/**
* <p>The timestamp when the current error occurred on the IPsec-VPN connection. Unit: millisecond.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p>
*
* <strong>example:</strong>
* <p>1673581161000</p>
*/
public Builder failedTime(Long failedTime) {
this.failedTime = failedTime;
return this;
}
/**
* <p>If the values of the parameters configured for the IPsec-VPN connection and the peer gateway device do not match, this parameter indicates the value of the parameters configured for the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>SHA256</p>
*/
public Builder mismatchLocalParam(String mismatchLocalParam) {
this.mismatchLocalParam = mismatchLocalParam;
return this;
}
/**
* <p>If the parameter values configured for the IPsec-VPN connection and the peer gateway device do not match, this parameter indicates the value of the parameter configured for the peer gateway device.</p>
*
* <strong>example:</strong>
* <p>SHA</p>
*/
public Builder mismatchRemoteParam(String mismatchRemoteParam) {
this.mismatchRemoteParam = mismatchRemoteParam;
return this;
}
/**
* <p>The error level. Valid values:</p>
* <ul>
* <li><strong>Critical</strong></li>
* <li><strong>Warn</strong></li>
* <li><strong>Normal</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Warn</p>
*/
public Builder severity(String severity) {
this.severity = severity;
return this;
}
/**
* <p>The log information about the error.</p>
*
* <strong>example:</strong>
* <p>2023-01-13 11:39:21 vco-bp1spxu8hlcvpd7ry**** [PROTO_ERR]: ikev1.c:1433:isakmp_ph1resend(): phase1 negotiation failed due to time up. [{remote id:4}{ph1: 172.16.0.88[500] <=> 192.168.0.206[500], 172.16.0.88 <=> 192.168.0.206}]</p>
*/
public Builder sourceLog(String sourceLog) {
this.sourceLog = sourceLog;
return this;
}
/**
* <p>The tunnel ID.</p>
*
* <strong>example:</strong>
* <p>tun-64n1sr9dig64k6****</p>
*/
public Builder tunnelId(String tunnelId) {
this.tunnelId = tunnelId;
return this;
}
/**
* <p>The ID of the IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>vco-bp1spxu8hlcvpd7ry****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.vpnConnectionId = vpnConnectionId;
return this;
}
public VpnConnections build() {
return new VpnConnections(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DiagnoseVpnGatewayRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DiagnoseVpnGatewayRequest} extends {@link RequestModel}
*
* <p>DiagnoseVpnGatewayRequest</p>
*/
public class DiagnoseVpnGatewayRequest 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("IPsecExtendInfo")
private String iPsecExtendInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
private DiagnoseVpnGatewayRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.iPsecExtendInfo = builder.iPsecExtendInfo;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static DiagnoseVpnGatewayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return iPsecExtendInfo
*/
public String getIPsecExtendInfo() {
return this.iPsecExtendInfo;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<DiagnoseVpnGatewayRequest, Builder> {
private String clientToken;
private String iPsecExtendInfo;
private String regionId;
private String resourceId;
private String resourceType;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(DiagnoseVpnGatewayRequest request) {
super(request);
this.clientToken = request.clientToken;
this.iPsecExtendInfo = request.iPsecExtendInfo;
this.regionId = request.regionId;
this.resourceId = request.resourceId;
this.resourceType = request.resourceType;
this.vpnGatewayId = request.vpnGatewayId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-001****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Check the connectivity of the destination address. Valid values:</p>
* <ul>
* <li><strong>PrivateSourceIp</strong>: the source IP address. The source IP address must be on the VPC side.</li>
* <li><strong>PrivateDestinationIp</strong>: the destination IP address. The destination IP address must be on the data center side.</li>
* </ul>
*
* <strong>example:</strong>
* <p>{"PrivateSourceIp":"192.168.1.1","PrivateDestinationIp":"192.168.0.1"}</p>
*/
public Builder iPsecExtendInfo(String iPsecExtendInfo) {
this.putQueryParameter("IPsecExtendInfo", iPsecExtendInfo);
this.iPsecExtendInfo = iPsecExtendInfo;
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-qingdao</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource to be diagnosed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-uf66xniofskqtuoz1****</p>
*/
public Builder resourceId(String resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the resource.</p>
* <p>Set the value to <strong>Ipsec</strong>, which specifies an IPsec-VPN connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>IPsec</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-m5efhj0k1p47ctuhl****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public DiagnoseVpnGatewayRequest build() {
return new DiagnoseVpnGatewayRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DiagnoseVpnGatewayResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DiagnoseVpnGatewayResponse} extends {@link TeaModel}
*
* <p>DiagnoseVpnGatewayResponse</p>
*/
public class DiagnoseVpnGatewayResponse 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 DiagnoseVpnGatewayResponseBody body;
private DiagnoseVpnGatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DiagnoseVpnGatewayResponse 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 DiagnoseVpnGatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DiagnoseVpnGatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DiagnoseVpnGatewayResponseBody body);
@Override
DiagnoseVpnGatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DiagnoseVpnGatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DiagnoseVpnGatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DiagnoseVpnGatewayResponse 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(DiagnoseVpnGatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public DiagnoseVpnGatewayResponse build() {
return new DiagnoseVpnGatewayResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DiagnoseVpnGatewayResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DiagnoseVpnGatewayResponseBody} extends {@link TeaModel}
*
* <p>DiagnoseVpnGatewayResponseBody</p>
*/
public class DiagnoseVpnGatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiagnoseId")
private String diagnoseId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DiagnoseVpnGatewayResponseBody(Builder builder) {
this.diagnoseId = builder.diagnoseId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DiagnoseVpnGatewayResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return diagnoseId
*/
public String getDiagnoseId() {
return this.diagnoseId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String diagnoseId;
private String requestId;
private Builder() {
}
private Builder(DiagnoseVpnGatewayResponseBody model) {
this.diagnoseId = model.diagnoseId;
this.requestId = model.requestId;
}
/**
* <p>The diagnostic ID.</p>
* <p>After a diagnostic ID is returned, you can call <a href="https://help.aliyun.com/document_detail/2521963.html">GetVpnGatewayDiagnoseResult</a> to query the diagnostic report.</p>
*
* <strong>example:</strong>
* <p>vpndgn-uf6kuxbe3iv028k3s****</p>
*/
public Builder diagnoseId(String diagnoseId) {
this.diagnoseId = diagnoseId;
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 DiagnoseVpnGatewayResponseBody build() {
return new DiagnoseVpnGatewayResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DisableNatGatewayEcsMetricRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisableNatGatewayEcsMetricRequest} extends {@link RequestModel}
*
* <p>DisableNatGatewayEcsMetricRequest</p>
*/
public class DisableNatGatewayEcsMetricRequest 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("NatGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
private DisableNatGatewayEcsMetricRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.natGatewayId = builder.natGatewayId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static DisableNatGatewayEcsMetricRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<DisableNatGatewayEcsMetricRequest, Builder> {
private Boolean dryRun;
private String natGatewayId;
private String regionId;
private Builder() {
super();
}
private Builder(DisableNatGatewayEcsMetricRequest request) {
super(request);
this.dryRun = request.dryRun;
this.natGatewayId = request.natGatewayId;
this.regionId = request.regionId;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <p><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</p>
* <p><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the NAT gateway for which you want to disable ECS traffic monitoring.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ngw-2vc53wynunp35lw1y****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The region ID of the NAT gateway. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-chengdu</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public DisableNatGatewayEcsMetricRequest build() {
return new DisableNatGatewayEcsMetricRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DisableNatGatewayEcsMetricResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisableNatGatewayEcsMetricResponse} extends {@link TeaModel}
*
* <p>DisableNatGatewayEcsMetricResponse</p>
*/
public class DisableNatGatewayEcsMetricResponse 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 DisableNatGatewayEcsMetricResponseBody body;
private DisableNatGatewayEcsMetricResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DisableNatGatewayEcsMetricResponse 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 DisableNatGatewayEcsMetricResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DisableNatGatewayEcsMetricResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DisableNatGatewayEcsMetricResponseBody body);
@Override
DisableNatGatewayEcsMetricResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DisableNatGatewayEcsMetricResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DisableNatGatewayEcsMetricResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DisableNatGatewayEcsMetricResponse 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(DisableNatGatewayEcsMetricResponseBody body) {
this.body = body;
return this;
}
@Override
public DisableNatGatewayEcsMetricResponse build() {
return new DisableNatGatewayEcsMetricResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DisableNatGatewayEcsMetricResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisableNatGatewayEcsMetricResponseBody} extends {@link TeaModel}
*
* <p>DisableNatGatewayEcsMetricResponseBody</p>
*/
public class DisableNatGatewayEcsMetricResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DisableNatGatewayEcsMetricResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DisableNatGatewayEcsMetricResponseBody 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(DisableNatGatewayEcsMetricResponseBody 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 DisableNatGatewayEcsMetricResponseBody build() {
return new DisableNatGatewayEcsMetricResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DisableVpcClassicLinkRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisableVpcClassicLinkRequest} extends {@link RequestModel}
*
* <p>DisableVpcClassicLinkRequest</p>
*/
public class DisableVpcClassicLinkRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private DisableVpcClassicLinkRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DisableVpcClassicLinkRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DisableVpcClassicLinkRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpcId;
private Builder() {
super();
}
private Builder(DisableVpcClassicLinkRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the VPC for which you want to disable ClassicLink.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the VPC for which you want to disable ClassicLink.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1m7v25emi1h5mtc****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DisableVpcClassicLinkRequest build() {
return new DisableVpcClassicLinkRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DisableVpcClassicLinkResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisableVpcClassicLinkResponse} extends {@link TeaModel}
*
* <p>DisableVpcClassicLinkResponse</p>
*/
public class DisableVpcClassicLinkResponse 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 DisableVpcClassicLinkResponseBody body;
private DisableVpcClassicLinkResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DisableVpcClassicLinkResponse 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 DisableVpcClassicLinkResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DisableVpcClassicLinkResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DisableVpcClassicLinkResponseBody body);
@Override
DisableVpcClassicLinkResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DisableVpcClassicLinkResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DisableVpcClassicLinkResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DisableVpcClassicLinkResponse 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(DisableVpcClassicLinkResponseBody body) {
this.body = body;
return this;
}
@Override
public DisableVpcClassicLinkResponse build() {
return new DisableVpcClassicLinkResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DisableVpcClassicLinkResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DisableVpcClassicLinkResponseBody} extends {@link TeaModel}
*
* <p>DisableVpcClassicLinkResponseBody</p>
*/
public class DisableVpcClassicLinkResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DisableVpcClassicLinkResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DisableVpcClassicLinkResponseBody 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(DisableVpcClassicLinkResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DisableVpcClassicLinkResponseBody build() {
return new DisableVpcClassicLinkResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateRouteTableFromGatewayRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateRouteTableFromGatewayRequest} extends {@link RequestModel}
*
* <p>DissociateRouteTableFromGatewayRequest</p>
*/
public class DissociateRouteTableFromGatewayRequest 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("GatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String gatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GatewayType")
private String gatewayType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String routeTableId;
private DissociateRouteTableFromGatewayRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.gatewayId = builder.gatewayId;
this.gatewayType = builder.gatewayType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static DissociateRouteTableFromGatewayRequest 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 gatewayId
*/
public String getGatewayId() {
return this.gatewayId;
}
/**
* @return gatewayType
*/
public String getGatewayType() {
return this.gatewayType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder extends Request.Builder<DissociateRouteTableFromGatewayRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String gatewayId;
private String gatewayType;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeTableId;
private Builder() {
super();
}
private Builder(DissociateRouteTableFromGatewayRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.gatewayId = request.gatewayId;
this.gatewayType = request.gatewayType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableId = request.routeTableId;
}
/**
* <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>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to only precheck the request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: prechecks the request without performing the operation. The system prechecks the required parameters, request syntax, and limits. If the request fails to pass the precheck, an error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): sends the request. After 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 ID of the IPv4 gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv4gw-5tsnc6s4ogsedtp3k****</p>
*/
public Builder gatewayId(String gatewayId) {
this.putQueryParameter("GatewayId", gatewayId);
this.gatewayId = gatewayId;
return this;
}
/**
* <p>The type of a gateway to be disassociated from a route table.</p>
*
* <strong>example:</strong>
* <p>Ipv4Gateway</p>
*/
public Builder gatewayType(String gatewayType) {
this.putQueryParameter("GatewayType", gatewayType);
this.gatewayType = gatewayType;
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 IPv4 gateway from which you want to disassociate the gateway route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ap-southeast-6</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 gateway route table.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-5ts0ohchwkp3dydt2****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
@Override
public DissociateRouteTableFromGatewayRequest build() {
return new DissociateRouteTableFromGatewayRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateRouteTableFromGatewayResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateRouteTableFromGatewayResponse} extends {@link TeaModel}
*
* <p>DissociateRouteTableFromGatewayResponse</p>
*/
public class DissociateRouteTableFromGatewayResponse 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 DissociateRouteTableFromGatewayResponseBody body;
private DissociateRouteTableFromGatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DissociateRouteTableFromGatewayResponse 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 DissociateRouteTableFromGatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DissociateRouteTableFromGatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DissociateRouteTableFromGatewayResponseBody body);
@Override
DissociateRouteTableFromGatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DissociateRouteTableFromGatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DissociateRouteTableFromGatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DissociateRouteTableFromGatewayResponse 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(DissociateRouteTableFromGatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public DissociateRouteTableFromGatewayResponse build() {
return new DissociateRouteTableFromGatewayResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateRouteTableFromGatewayResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateRouteTableFromGatewayResponseBody} extends {@link TeaModel}
*
* <p>DissociateRouteTableFromGatewayResponseBody</p>
*/
public class DissociateRouteTableFromGatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DissociateRouteTableFromGatewayResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DissociateRouteTableFromGatewayResponseBody 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(DissociateRouteTableFromGatewayResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C5644C9A-7480-13B6-AECB-30FF142E3724</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DissociateRouteTableFromGatewayResponseBody build() {
return new DissociateRouteTableFromGatewayResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateRouteTablesFromVpcGatewayEndpointRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateRouteTablesFromVpcGatewayEndpointRequest} extends {@link RequestModel}
*
* <p>DissociateRouteTablesFromVpcGatewayEndpointRequest</p>
*/
public class DissociateRouteTablesFromVpcGatewayEndpointRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DryRun")
private Boolean dryRun;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointId")
@com.aliyun.core.annotation.Validation(required = true)
private String endpointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableIds")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List<String> routeTableIds;
private DissociateRouteTablesFromVpcGatewayEndpointRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.endpointId = builder.endpointId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableIds = builder.routeTableIds;
}
public static Builder builder() {
return new Builder();
}
public static DissociateRouteTablesFromVpcGatewayEndpointRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return endpointId
*/
public String getEndpointId() {
return this.endpointId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeTableIds
*/
public java.util.List<String> getRouteTableIds() {
return this.routeTableIds;
}
public static final class Builder extends Request.Builder<DissociateRouteTablesFromVpcGatewayEndpointRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String endpointId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<String> routeTableIds;
private Builder() {
super();
}
private Builder(DissociateRouteTablesFromVpcGatewayEndpointRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.endpointId = request.endpointId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableIds = request.routeTableIds;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The <strong>token</strong> can contain only ASCII characters and cannot exceed 64 characters in length.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the gateway endpoint to be disassociated from the route table.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpce-m5e371h5clm3uadih****</p>
*/
public Builder endpointId(String endpointId) {
this.putQueryParameter("EndpointId", endpointId);
this.endpointId = endpointId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the gateway endpoint.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the route table. Valid values of <strong>N</strong> are <strong>1</strong> to <strong>20</strong>, which specifies that you can disassociate a gateway endpoint from at most 20 route tables at a time.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-m5elgtm3aj586iitr****</p>
*/
public Builder routeTableIds(java.util.List<String> routeTableIds) {
this.putQueryParameter("RouteTableIds", routeTableIds);
this.routeTableIds = routeTableIds;
return this;
}
@Override
public DissociateRouteTablesFromVpcGatewayEndpointRequest build() {
return new DissociateRouteTablesFromVpcGatewayEndpointRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateRouteTablesFromVpcGatewayEndpointResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateRouteTablesFromVpcGatewayEndpointResponse} extends {@link TeaModel}
*
* <p>DissociateRouteTablesFromVpcGatewayEndpointResponse</p>
*/
public class DissociateRouteTablesFromVpcGatewayEndpointResponse 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 DissociateRouteTablesFromVpcGatewayEndpointResponseBody body;
private DissociateRouteTablesFromVpcGatewayEndpointResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DissociateRouteTablesFromVpcGatewayEndpointResponse 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 DissociateRouteTablesFromVpcGatewayEndpointResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DissociateRouteTablesFromVpcGatewayEndpointResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DissociateRouteTablesFromVpcGatewayEndpointResponseBody body);
@Override
DissociateRouteTablesFromVpcGatewayEndpointResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DissociateRouteTablesFromVpcGatewayEndpointResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DissociateRouteTablesFromVpcGatewayEndpointResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DissociateRouteTablesFromVpcGatewayEndpointResponse 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(DissociateRouteTablesFromVpcGatewayEndpointResponseBody body) {
this.body = body;
return this;
}
@Override
public DissociateRouteTablesFromVpcGatewayEndpointResponse build() {
return new DissociateRouteTablesFromVpcGatewayEndpointResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateRouteTablesFromVpcGatewayEndpointResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateRouteTablesFromVpcGatewayEndpointResponseBody} extends {@link TeaModel}
*
* <p>DissociateRouteTablesFromVpcGatewayEndpointResponseBody</p>
*/
public class DissociateRouteTablesFromVpcGatewayEndpointResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DissociateRouteTablesFromVpcGatewayEndpointResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DissociateRouteTablesFromVpcGatewayEndpointResponseBody 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(DissociateRouteTablesFromVpcGatewayEndpointResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>59BDDA2D-FB52-59F9-9DC5-5EA7D6808B8E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DissociateRouteTablesFromVpcGatewayEndpointResponseBody build() {
return new DissociateRouteTablesFromVpcGatewayEndpointResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateVpnGatewayWithCertificateRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateVpnGatewayWithCertificateRequest} extends {@link RequestModel}
*
* <p>DissociateVpnGatewayWithCertificateRequest</p>
*/
public class DissociateVpnGatewayWithCertificateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertificateId")
@com.aliyun.core.annotation.Validation(required = true)
private String certificateId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertificateType")
@com.aliyun.core.annotation.Validation(required = true)
private String certificateType;
@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("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnGatewayId;
private DissociateVpnGatewayWithCertificateRequest(Builder builder) {
super(builder);
this.certificateId = builder.certificateId;
this.certificateType = builder.certificateType;
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.regionId = builder.regionId;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static DissociateVpnGatewayWithCertificateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return certificateId
*/
public String getCertificateId() {
return this.certificateId;
}
/**
* @return certificateType
*/
public String getCertificateType() {
return this.certificateType;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<DissociateVpnGatewayWithCertificateRequest, Builder> {
private String certificateId;
private String certificateType;
private String clientToken;
private Boolean dryRun;
private String regionId;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(DissociateVpnGatewayWithCertificateRequest request) {
super(request);
this.certificateId = request.certificateId;
this.certificateType = request.certificateType;
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.regionId = request.regionId;
this.vpnGatewayId = request.vpnGatewayId;
}
/**
* <p>The ID of the certificate.</p>
* <blockquote>
* <p> The certificate ID refers to the ID generated after the SSL certificate is associated with the VPN gateway. It is not the ID of the SSL certificate.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>6bfe4218-ea1d****</p>
*/
public Builder certificateId(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>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Encryption</p>
*/
public Builder certificateType(String certificateType) {
this.putQueryParameter("CertificateType", certificateType);
this.certificateType = certificateType;
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*******</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>Specifies whether to perform a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned. Otherwise, an error message 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 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 ID of the VPN gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpn-bp1q8bgx4xnkm2ogj****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public DissociateVpnGatewayWithCertificateRequest build() {
return new DissociateVpnGatewayWithCertificateRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateVpnGatewayWithCertificateResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateVpnGatewayWithCertificateResponse} extends {@link TeaModel}
*
* <p>DissociateVpnGatewayWithCertificateResponse</p>
*/
public class DissociateVpnGatewayWithCertificateResponse 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 DissociateVpnGatewayWithCertificateResponseBody body;
private DissociateVpnGatewayWithCertificateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DissociateVpnGatewayWithCertificateResponse 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 DissociateVpnGatewayWithCertificateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DissociateVpnGatewayWithCertificateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DissociateVpnGatewayWithCertificateResponseBody body);
@Override
DissociateVpnGatewayWithCertificateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DissociateVpnGatewayWithCertificateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DissociateVpnGatewayWithCertificateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DissociateVpnGatewayWithCertificateResponse 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(DissociateVpnGatewayWithCertificateResponseBody body) {
this.body = body;
return this;
}
@Override
public DissociateVpnGatewayWithCertificateResponse build() {
return new DissociateVpnGatewayWithCertificateResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DissociateVpnGatewayWithCertificateResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DissociateVpnGatewayWithCertificateResponseBody} extends {@link TeaModel}
*
* <p>DissociateVpnGatewayWithCertificateResponseBody</p>
*/
public class DissociateVpnGatewayWithCertificateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DissociateVpnGatewayWithCertificateResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DissociateVpnGatewayWithCertificateResponseBody 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(DissociateVpnGatewayWithCertificateResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DissociateVpnGatewayWithCertificateResponseBody build() {
return new DissociateVpnGatewayWithCertificateResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DownloadVpnConnectionConfigRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DownloadVpnConnectionConfigRequest} extends {@link RequestModel}
*
* <p>DownloadVpnConnectionConfigRequest</p>
*/
public class DownloadVpnConnectionConfigRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpnConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpnConnectionId;
private DownloadVpnConnectionConfigRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpnConnectionId = builder.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static DownloadVpnConnectionConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpnConnectionId
*/
public String getVpnConnectionId() {
return this.vpnConnectionId;
}
public static final class Builder extends Request.Builder<DownloadVpnConnectionConfigRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpnConnectionId;
private Builder() {
super();
}
private Builder(DownloadVpnConnectionConfigRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpnConnectionId = request.vpnConnectionId;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region where the IPsec-VPN connection is created.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-shanghai</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the IPsec-VPN connection.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vco-bp1bbi27hojx80nck****</p>
*/
public Builder vpnConnectionId(String vpnConnectionId) {
this.putQueryParameter("VpnConnectionId", vpnConnectionId);
this.vpnConnectionId = vpnConnectionId;
return this;
}
@Override
public DownloadVpnConnectionConfigRequest build() {
return new DownloadVpnConnectionConfigRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DownloadVpnConnectionConfigResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DownloadVpnConnectionConfigResponse} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponse</p>
*/
public class DownloadVpnConnectionConfigResponse 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 DownloadVpnConnectionConfigResponseBody body;
private DownloadVpnConnectionConfigResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DownloadVpnConnectionConfigResponse 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 DownloadVpnConnectionConfigResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DownloadVpnConnectionConfigResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DownloadVpnConnectionConfigResponseBody body);
@Override
DownloadVpnConnectionConfigResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DownloadVpnConnectionConfigResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DownloadVpnConnectionConfigResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DownloadVpnConnectionConfigResponse 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(DownloadVpnConnectionConfigResponseBody body) {
this.body = body;
return this;
}
@Override
public DownloadVpnConnectionConfigResponse build() {
return new DownloadVpnConnectionConfigResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/DownloadVpnConnectionConfigResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public class DownloadVpnConnectionConfigResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("VpnConnectionConfig")
private VpnConnectionConfig vpnConnectionConfig;
private DownloadVpnConnectionConfigResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.vpnConnectionConfig = builder.vpnConnectionConfig;
}
public static Builder builder() {
return new Builder();
}
public static DownloadVpnConnectionConfigResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return vpnConnectionConfig
*/
public VpnConnectionConfig getVpnConnectionConfig() {
return this.vpnConnectionConfig;
}
public static final class Builder {
private String requestId;
private VpnConnectionConfig vpnConnectionConfig;
private Builder() {
}
private Builder(DownloadVpnConnectionConfigResponseBody model) {
this.requestId = model.requestId;
this.vpnConnectionConfig = model.vpnConnectionConfig;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0C68048B-0F70-40DA-B8AE-1B79B5CF62E3</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The configurations of the peer gateway device.</p>
*/
public Builder vpnConnectionConfig(VpnConnectionConfig vpnConnectionConfig) {
this.vpnConnectionConfig = vpnConnectionConfig;
return this;
}
public DownloadVpnConnectionConfigResponseBody build() {
return new DownloadVpnConnectionConfigResponseBody(this);
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class BgpConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalAsn")
private String localAsn;
@com.aliyun.core.annotation.NameInMap("LocalBgpIp")
private String localBgpIp;
@com.aliyun.core.annotation.NameInMap("PeerAsn")
private String peerAsn;
@com.aliyun.core.annotation.NameInMap("PeerBgpIp")
private String peerBgpIp;
@com.aliyun.core.annotation.NameInMap("TunnelCidr")
private String tunnelCidr;
@com.aliyun.core.annotation.NameInMap("TunnelId")
private String tunnelId;
private BgpConfig(Builder builder) {
this.localAsn = builder.localAsn;
this.localBgpIp = builder.localBgpIp;
this.peerAsn = builder.peerAsn;
this.peerBgpIp = builder.peerBgpIp;
this.tunnelCidr = builder.tunnelCidr;
this.tunnelId = builder.tunnelId;
}
public static Builder builder() {
return new Builder();
}
public static BgpConfig create() {
return builder().build();
}
/**
* @return localAsn
*/
public String getLocalAsn() {
return this.localAsn;
}
/**
* @return localBgpIp
*/
public String getLocalBgpIp() {
return this.localBgpIp;
}
/**
* @return peerAsn
*/
public String getPeerAsn() {
return this.peerAsn;
}
/**
* @return peerBgpIp
*/
public String getPeerBgpIp() {
return this.peerBgpIp;
}
/**
* @return tunnelCidr
*/
public String getTunnelCidr() {
return this.tunnelCidr;
}
/**
* @return tunnelId
*/
public String getTunnelId() {
return this.tunnelId;
}
public static final class Builder {
private String localAsn;
private String localBgpIp;
private String peerAsn;
private String peerBgpIp;
private String tunnelCidr;
private String tunnelId;
private Builder() {
}
private Builder(BgpConfig model) {
this.localAsn = model.localAsn;
this.localBgpIp = model.localBgpIp;
this.peerAsn = model.peerAsn;
this.peerBgpIp = model.peerBgpIp;
this.tunnelCidr = model.tunnelCidr;
this.tunnelId = model.tunnelId;
}
/**
* LocalAsn.
*/
public Builder localAsn(String localAsn) {
this.localAsn = localAsn;
return this;
}
/**
* LocalBgpIp.
*/
public Builder localBgpIp(String localBgpIp) {
this.localBgpIp = localBgpIp;
return this;
}
/**
* PeerAsn.
*/
public Builder peerAsn(String peerAsn) {
this.peerAsn = peerAsn;
return this;
}
/**
* PeerBgpIp.
*/
public Builder peerBgpIp(String peerBgpIp) {
this.peerBgpIp = peerBgpIp;
return this;
}
/**
* TunnelCidr.
*/
public Builder tunnelCidr(String tunnelCidr) {
this.tunnelCidr = tunnelCidr;
return this;
}
/**
* TunnelId.
*/
public Builder tunnelId(String tunnelId) {
this.tunnelId = tunnelId;
return this;
}
public BgpConfig build() {
return new BgpConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class BgpConfigs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpConfig")
private java.util.List<BgpConfig> bgpConfig;
private BgpConfigs(Builder builder) {
this.bgpConfig = builder.bgpConfig;
}
public static Builder builder() {
return new Builder();
}
public static BgpConfigs create() {
return builder().build();
}
/**
* @return bgpConfig
*/
public java.util.List<BgpConfig> getBgpConfig() {
return this.bgpConfig;
}
public static final class Builder {
private java.util.List<BgpConfig> bgpConfig;
private Builder() {
}
private Builder(BgpConfigs model) {
this.bgpConfig = model.bgpConfig;
}
/**
* BgpConfig.
*/
public Builder bgpConfig(java.util.List<BgpConfig> bgpConfig) {
this.bgpConfig = bgpConfig;
return this;
}
public BgpConfigs build() {
return new BgpConfigs(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class IkeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IkeAuthAlg")
private String ikeAuthAlg;
@com.aliyun.core.annotation.NameInMap("IkeEncAlg")
private String ikeEncAlg;
@com.aliyun.core.annotation.NameInMap("IkeLifetime")
private Long ikeLifetime;
@com.aliyun.core.annotation.NameInMap("IkeMode")
private String ikeMode;
@com.aliyun.core.annotation.NameInMap("IkePfs")
private String ikePfs;
@com.aliyun.core.annotation.NameInMap("IkeVersion")
private String ikeVersion;
@com.aliyun.core.annotation.NameInMap("LocalId")
private String localId;
@com.aliyun.core.annotation.NameInMap("Psk")
private String psk;
@com.aliyun.core.annotation.NameInMap("RemoteId")
private String remoteId;
private IkeConfig(Builder builder) {
this.ikeAuthAlg = builder.ikeAuthAlg;
this.ikeEncAlg = builder.ikeEncAlg;
this.ikeLifetime = builder.ikeLifetime;
this.ikeMode = builder.ikeMode;
this.ikePfs = builder.ikePfs;
this.ikeVersion = builder.ikeVersion;
this.localId = builder.localId;
this.psk = builder.psk;
this.remoteId = builder.remoteId;
}
public static Builder builder() {
return new Builder();
}
public static IkeConfig create() {
return builder().build();
}
/**
* @return ikeAuthAlg
*/
public String getIkeAuthAlg() {
return this.ikeAuthAlg;
}
/**
* @return ikeEncAlg
*/
public String getIkeEncAlg() {
return this.ikeEncAlg;
}
/**
* @return ikeLifetime
*/
public Long getIkeLifetime() {
return this.ikeLifetime;
}
/**
* @return ikeMode
*/
public String getIkeMode() {
return this.ikeMode;
}
/**
* @return ikePfs
*/
public String getIkePfs() {
return this.ikePfs;
}
/**
* @return ikeVersion
*/
public String getIkeVersion() {
return this.ikeVersion;
}
/**
* @return localId
*/
public String getLocalId() {
return this.localId;
}
/**
* @return psk
*/
public String getPsk() {
return this.psk;
}
/**
* @return remoteId
*/
public String getRemoteId() {
return this.remoteId;
}
public static final class Builder {
private String ikeAuthAlg;
private String ikeEncAlg;
private Long ikeLifetime;
private String ikeMode;
private String ikePfs;
private String ikeVersion;
private String localId;
private String psk;
private String remoteId;
private Builder() {
}
private Builder(IkeConfig model) {
this.ikeAuthAlg = model.ikeAuthAlg;
this.ikeEncAlg = model.ikeEncAlg;
this.ikeLifetime = model.ikeLifetime;
this.ikeMode = model.ikeMode;
this.ikePfs = model.ikePfs;
this.ikeVersion = model.ikeVersion;
this.localId = model.localId;
this.psk = model.psk;
this.remoteId = model.remoteId;
}
/**
* <p>The authentication algorithm in the IKE phase.</p>
*
* <strong>example:</strong>
* <p>sha1</p>
*/
public Builder ikeAuthAlg(String ikeAuthAlg) {
this.ikeAuthAlg = ikeAuthAlg;
return this;
}
/**
* <p>The encryption algorithm in the IKE phase.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ikeEncAlg(String ikeEncAlg) {
this.ikeEncAlg = ikeEncAlg;
return this;
}
/**
* <p>The lifetime in the IKE phase. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ikeLifetime(Long ikeLifetime) {
this.ikeLifetime = ikeLifetime;
return this;
}
/**
* <p>The IKE negotiation mode. Valid values:</p>
* <ul>
* <li><strong>main</strong>: This mode offers higher security during negotiations.</li>
* <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>main</p>
*/
public Builder ikeMode(String ikeMode) {
this.ikeMode = ikeMode;
return this;
}
/**
* <p>The DH group in the IKE phase.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ikePfs(String ikePfs) {
this.ikePfs = ikePfs;
return this;
}
/**
* <p>The IKE version.</p>
*
* <strong>example:</strong>
* <p>ikev1</p>
*/
public Builder ikeVersion(String ikeVersion) {
this.ikeVersion = ikeVersion;
return this;
}
/**
* <p>The identifier of the customer gateway. FQDN and IP formats are supported. The default value is the IP address of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>116.62.XX.XX</p>
*/
public Builder localId(String localId) {
this.localId = localId;
return this;
}
/**
* <p>The pre-shared key.</p>
*
* <strong>example:</strong>
* <p>pgw6dy7d1i8i****</p>
*/
public Builder psk(String psk) {
this.psk = psk;
return this;
}
/**
* <p>The identifier of the VPN gateway. FQDN and IP formats are supported. The default value is the IP address of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>139.196.XX.XX</p>
*/
public Builder remoteId(String remoteId) {
this.remoteId = remoteId;
return this;
}
public IkeConfig build() {
return new IkeConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class IpsecConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpsecAuthAlg")
private String ipsecAuthAlg;
@com.aliyun.core.annotation.NameInMap("IpsecEncAlg")
private String ipsecEncAlg;
@com.aliyun.core.annotation.NameInMap("IpsecLifetime")
private Long ipsecLifetime;
@com.aliyun.core.annotation.NameInMap("IpsecPfs")
private String ipsecPfs;
private IpsecConfig(Builder builder) {
this.ipsecAuthAlg = builder.ipsecAuthAlg;
this.ipsecEncAlg = builder.ipsecEncAlg;
this.ipsecLifetime = builder.ipsecLifetime;
this.ipsecPfs = builder.ipsecPfs;
}
public static Builder builder() {
return new Builder();
}
public static IpsecConfig create() {
return builder().build();
}
/**
* @return ipsecAuthAlg
*/
public String getIpsecAuthAlg() {
return this.ipsecAuthAlg;
}
/**
* @return ipsecEncAlg
*/
public String getIpsecEncAlg() {
return this.ipsecEncAlg;
}
/**
* @return ipsecLifetime
*/
public Long getIpsecLifetime() {
return this.ipsecLifetime;
}
/**
* @return ipsecPfs
*/
public String getIpsecPfs() {
return this.ipsecPfs;
}
public static final class Builder {
private String ipsecAuthAlg;
private String ipsecEncAlg;
private Long ipsecLifetime;
private String ipsecPfs;
private Builder() {
}
private Builder(IpsecConfig model) {
this.ipsecAuthAlg = model.ipsecAuthAlg;
this.ipsecEncAlg = model.ipsecEncAlg;
this.ipsecLifetime = model.ipsecLifetime;
this.ipsecPfs = model.ipsecPfs;
}
/**
* <p>The authentication algorithm in the IPsec phase.</p>
*
* <strong>example:</strong>
* <p>sha1</p>
*/
public Builder ipsecAuthAlg(String ipsecAuthAlg) {
this.ipsecAuthAlg = ipsecAuthAlg;
return this;
}
/**
* <p>The encryption algorithm in the IPsec phase.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ipsecEncAlg(String ipsecEncAlg) {
this.ipsecEncAlg = ipsecEncAlg;
return this;
}
/**
* <p>The lifetime in the IPsec phase. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ipsecLifetime(Long ipsecLifetime) {
this.ipsecLifetime = ipsecLifetime;
return this;
}
/**
* <p>The DH group in the IPsec phase.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ipsecPfs(String ipsecPfs) {
this.ipsecPfs = ipsecPfs;
return this;
}
public IpsecConfig build() {
return new IpsecConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class TunnelConfigIkeConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IkeAuthAlg")
private String ikeAuthAlg;
@com.aliyun.core.annotation.NameInMap("IkeEncAlg")
private String ikeEncAlg;
@com.aliyun.core.annotation.NameInMap("IkeLifetime")
private Long ikeLifetime;
@com.aliyun.core.annotation.NameInMap("IkeMode")
private String ikeMode;
@com.aliyun.core.annotation.NameInMap("IkePfs")
private String ikePfs;
@com.aliyun.core.annotation.NameInMap("IkeVersion")
private String ikeVersion;
@com.aliyun.core.annotation.NameInMap("LocalId")
private String localId;
@com.aliyun.core.annotation.NameInMap("Psk")
private String psk;
@com.aliyun.core.annotation.NameInMap("RemoteId")
private String remoteId;
private TunnelConfigIkeConfig(Builder builder) {
this.ikeAuthAlg = builder.ikeAuthAlg;
this.ikeEncAlg = builder.ikeEncAlg;
this.ikeLifetime = builder.ikeLifetime;
this.ikeMode = builder.ikeMode;
this.ikePfs = builder.ikePfs;
this.ikeVersion = builder.ikeVersion;
this.localId = builder.localId;
this.psk = builder.psk;
this.remoteId = builder.remoteId;
}
public static Builder builder() {
return new Builder();
}
public static TunnelConfigIkeConfig create() {
return builder().build();
}
/**
* @return ikeAuthAlg
*/
public String getIkeAuthAlg() {
return this.ikeAuthAlg;
}
/**
* @return ikeEncAlg
*/
public String getIkeEncAlg() {
return this.ikeEncAlg;
}
/**
* @return ikeLifetime
*/
public Long getIkeLifetime() {
return this.ikeLifetime;
}
/**
* @return ikeMode
*/
public String getIkeMode() {
return this.ikeMode;
}
/**
* @return ikePfs
*/
public String getIkePfs() {
return this.ikePfs;
}
/**
* @return ikeVersion
*/
public String getIkeVersion() {
return this.ikeVersion;
}
/**
* @return localId
*/
public String getLocalId() {
return this.localId;
}
/**
* @return psk
*/
public String getPsk() {
return this.psk;
}
/**
* @return remoteId
*/
public String getRemoteId() {
return this.remoteId;
}
public static final class Builder {
private String ikeAuthAlg;
private String ikeEncAlg;
private Long ikeLifetime;
private String ikeMode;
private String ikePfs;
private String ikeVersion;
private String localId;
private String psk;
private String remoteId;
private Builder() {
}
private Builder(TunnelConfigIkeConfig model) {
this.ikeAuthAlg = model.ikeAuthAlg;
this.ikeEncAlg = model.ikeEncAlg;
this.ikeLifetime = model.ikeLifetime;
this.ikeMode = model.ikeMode;
this.ikePfs = model.ikePfs;
this.ikeVersion = model.ikeVersion;
this.localId = model.localId;
this.psk = model.psk;
this.remoteId = model.remoteId;
}
/**
* <p>The authentication algorithm in the IKE phase.</p>
*
* <strong>example:</strong>
* <p>sha1</p>
*/
public Builder ikeAuthAlg(String ikeAuthAlg) {
this.ikeAuthAlg = ikeAuthAlg;
return this;
}
/**
* <p>The encryption algorithm in the IKE phase.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ikeEncAlg(String ikeEncAlg) {
this.ikeEncAlg = ikeEncAlg;
return this;
}
/**
* <p>The lifetime in the IKE phase. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ikeLifetime(Long ikeLifetime) {
this.ikeLifetime = ikeLifetime;
return this;
}
/**
* <p>The IKE negotiation mode. Valid values:</p>
* <ul>
* <li><strong>main</strong>: This mode offers higher security during negotiations.</li>
* <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li>
* </ul>
*
* <strong>example:</strong>
* <p>main</p>
*/
public Builder ikeMode(String ikeMode) {
this.ikeMode = ikeMode;
return this;
}
/**
* <p>The DH group in the IKE phase.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ikePfs(String ikePfs) {
this.ikePfs = ikePfs;
return this;
}
/**
* <p>The IKE version.</p>
*
* <strong>example:</strong>
* <p>ikev1</p>
*/
public Builder ikeVersion(String ikeVersion) {
this.ikeVersion = ikeVersion;
return this;
}
/**
* <p>The identifier of the tunnel on the data center side.</p>
*
* <strong>example:</strong>
* <p>47.21.XX.XX</p>
*/
public Builder localId(String localId) {
this.localId = localId;
return this;
}
/**
* <p>The pre-shared key.</p>
*
* <strong>example:</strong>
* <p>pgw6dy7d1i8i****</p>
*/
public Builder psk(String psk) {
this.psk = psk;
return this;
}
/**
* <p>The identifier of the tunnel on the Alibaba Cloud side.</p>
*
* <strong>example:</strong>
* <p>47.24.XX.XX</p>
*/
public Builder remoteId(String remoteId) {
this.remoteId = remoteId;
return this;
}
public TunnelConfigIkeConfig build() {
return new TunnelConfigIkeConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class TunnelConfigIpsecConfig 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 TunnelConfigIpsecConfig(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 TunnelConfigIpsecConfig 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(TunnelConfigIpsecConfig model) {
this.ipsecAuthAlg = model.ipsecAuthAlg;
this.ipsecEncAlg = model.ipsecEncAlg;
this.ipsecLifetime = model.ipsecLifetime;
this.ipsecPfs = model.ipsecPfs;
}
/**
* <p>The authentication algorithm in the IPsec phase.</p>
*
* <strong>example:</strong>
* <p>sha1</p>
*/
public Builder ipsecAuthAlg(String ipsecAuthAlg) {
this.ipsecAuthAlg = ipsecAuthAlg;
return this;
}
/**
* <p>The encryption algorithm in the IPsec phase.</p>
*
* <strong>example:</strong>
* <p>aes</p>
*/
public Builder ipsecEncAlg(String ipsecEncAlg) {
this.ipsecEncAlg = ipsecEncAlg;
return this;
}
/**
* <p>The lifetime in the IPsec phase. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>86400</p>
*/
public Builder ipsecLifetime(Long ipsecLifetime) {
this.ipsecLifetime = ipsecLifetime;
return this;
}
/**
* <p>The DH group in the IPsec phase.</p>
*
* <strong>example:</strong>
* <p>group2</p>
*/
public Builder ipsecPfs(String ipsecPfs) {
this.ipsecPfs = ipsecPfs;
return this;
}
public TunnelConfigIpsecConfig build() {
return new TunnelConfigIpsecConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class TunnelConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IkeConfig")
private TunnelConfigIkeConfig ikeConfig;
@com.aliyun.core.annotation.NameInMap("IpsecConfig")
private TunnelConfigIpsecConfig ipsecConfig;
@com.aliyun.core.annotation.NameInMap("Local")
private String local;
@com.aliyun.core.annotation.NameInMap("Remote")
private String remote;
@com.aliyun.core.annotation.NameInMap("TunnelId")
private String tunnelId;
private TunnelConfig(Builder builder) {
this.ikeConfig = builder.ikeConfig;
this.ipsecConfig = builder.ipsecConfig;
this.local = builder.local;
this.remote = builder.remote;
this.tunnelId = builder.tunnelId;
}
public static Builder builder() {
return new Builder();
}
public static TunnelConfig create() {
return builder().build();
}
/**
* @return ikeConfig
*/
public TunnelConfigIkeConfig getIkeConfig() {
return this.ikeConfig;
}
/**
* @return ipsecConfig
*/
public TunnelConfigIpsecConfig getIpsecConfig() {
return this.ipsecConfig;
}
/**
* @return local
*/
public String getLocal() {
return this.local;
}
/**
* @return remote
*/
public String getRemote() {
return this.remote;
}
/**
* @return tunnelId
*/
public String getTunnelId() {
return this.tunnelId;
}
public static final class Builder {
private TunnelConfigIkeConfig ikeConfig;
private TunnelConfigIpsecConfig ipsecConfig;
private String local;
private String remote;
private String tunnelId;
private Builder() {
}
private Builder(TunnelConfig model) {
this.ikeConfig = model.ikeConfig;
this.ipsecConfig = model.ipsecConfig;
this.local = model.local;
this.remote = model.remote;
this.tunnelId = model.tunnelId;
}
/**
* <p>The configurations of Phase 1 negotiations.</p>
*/
public Builder ikeConfig(TunnelConfigIkeConfig ikeConfig) {
this.ikeConfig = ikeConfig;
return this;
}
/**
* <p>The configurations of Phase 2 negotiations.</p>
*/
public Builder ipsecConfig(TunnelConfigIpsecConfig ipsecConfig) {
this.ipsecConfig = ipsecConfig;
return this;
}
/**
* <p>The identifier of the tunnel on the data center side.</p>
*
* <strong>example:</strong>
* <p>47.21.XX.XX</p>
*/
public Builder local(String local) {
this.local = local;
return this;
}
/**
* <p>The identifier of the tunnel on the Alibaba Cloud side.</p>
*
* <strong>example:</strong>
* <p>47.24.XX.XX</p>
*/
public Builder remote(String remote) {
this.remote = remote;
return this;
}
/**
* <p>The tunnel ID.</p>
*
* <strong>example:</strong>
* <p>tun-opsqc4d97wni27****</p>
*/
public Builder tunnelId(String tunnelId) {
this.tunnelId = tunnelId;
return this;
}
public TunnelConfig build() {
return new TunnelConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class TunnelsConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TunnelConfig")
private java.util.List<TunnelConfig> tunnelConfig;
private TunnelsConfig(Builder builder) {
this.tunnelConfig = builder.tunnelConfig;
}
public static Builder builder() {
return new Builder();
}
public static TunnelsConfig create() {
return builder().build();
}
/**
* @return tunnelConfig
*/
public java.util.List<TunnelConfig> getTunnelConfig() {
return this.tunnelConfig;
}
public static final class Builder {
private java.util.List<TunnelConfig> tunnelConfig;
private Builder() {
}
private Builder(TunnelsConfig model) {
this.tunnelConfig = model.tunnelConfig;
}
/**
* TunnelConfig.
*/
public Builder tunnelConfig(java.util.List<TunnelConfig> tunnelConfig) {
this.tunnelConfig = tunnelConfig;
return this;
}
public TunnelsConfig build() {
return new TunnelsConfig(this);
}
}
}
/**
*
* {@link DownloadVpnConnectionConfigResponseBody} extends {@link TeaModel}
*
* <p>DownloadVpnConnectionConfigResponseBody</p>
*/
public static class VpnConnectionConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BgpConfigs")
private BgpConfigs bgpConfigs;
@com.aliyun.core.annotation.NameInMap("IkeConfig")
private IkeConfig ikeConfig;
@com.aliyun.core.annotation.NameInMap("IpsecConfig")
private IpsecConfig ipsecConfig;
@com.aliyun.core.annotation.NameInMap("Local")
private String local;
@com.aliyun.core.annotation.NameInMap("LocalSubnet")
private String localSubnet;
@com.aliyun.core.annotation.NameInMap("Remote")
private String remote;
@com.aliyun.core.annotation.NameInMap("RemoteSubnet")
private String remoteSubnet;
@com.aliyun.core.annotation.NameInMap("TunnelsConfig")
private TunnelsConfig tunnelsConfig;
private VpnConnectionConfig(Builder builder) {
this.bgpConfigs = builder.bgpConfigs;
this.ikeConfig = builder.ikeConfig;
this.ipsecConfig = builder.ipsecConfig;
this.local = builder.local;
this.localSubnet = builder.localSubnet;
this.remote = builder.remote;
this.remoteSubnet = builder.remoteSubnet;
this.tunnelsConfig = builder.tunnelsConfig;
}
public static Builder builder() {
return new Builder();
}
public static VpnConnectionConfig create() {
return builder().build();
}
/**
* @return bgpConfigs
*/
public BgpConfigs getBgpConfigs() {
return this.bgpConfigs;
}
/**
* @return ikeConfig
*/
public IkeConfig getIkeConfig() {
return this.ikeConfig;
}
/**
* @return ipsecConfig
*/
public IpsecConfig getIpsecConfig() {
return this.ipsecConfig;
}
/**
* @return local
*/
public String getLocal() {
return this.local;
}
/**
* @return localSubnet
*/
public String getLocalSubnet() {
return this.localSubnet;
}
/**
* @return remote
*/
public String getRemote() {
return this.remote;
}
/**
* @return remoteSubnet
*/
public String getRemoteSubnet() {
return this.remoteSubnet;
}
/**
* @return tunnelsConfig
*/
public TunnelsConfig getTunnelsConfig() {
return this.tunnelsConfig;
}
public static final class Builder {
private BgpConfigs bgpConfigs;
private IkeConfig ikeConfig;
private IpsecConfig ipsecConfig;
private String local;
private String localSubnet;
private String remote;
private String remoteSubnet;
private TunnelsConfig tunnelsConfig;
private Builder() {
}
private Builder(VpnConnectionConfig model) {
this.bgpConfigs = model.bgpConfigs;
this.ikeConfig = model.ikeConfig;
this.ipsecConfig = model.ipsecConfig;
this.local = model.local;
this.localSubnet = model.localSubnet;
this.remote = model.remote;
this.remoteSubnet = model.remoteSubnet;
this.tunnelsConfig = model.tunnelsConfig;
}
/**
* BgpConfigs.
*/
public Builder bgpConfigs(BgpConfigs bgpConfigs) {
this.bgpConfigs = bgpConfigs;
return this;
}
/**
* <p>The configurations of Phase 1 negotiations.</p>
*/
public Builder ikeConfig(IkeConfig ikeConfig) {
this.ikeConfig = ikeConfig;
return this;
}
/**
* <p>The configurations of Phase 2 negotiations.</p>
*/
public Builder ipsecConfig(IpsecConfig ipsecConfig) {
this.ipsecConfig = ipsecConfig;
return this;
}
/**
* <p>The identifier of the customer gateway.</p>
*
* <strong>example:</strong>
* <p>139.196.XX.XX</p>
*/
public Builder local(String local) {
this.local = local;
return this;
}
/**
* <p>The CIDR block on the data center side.</p>
*
* <strong>example:</strong>
* <p>10.0.0.0/8</p>
*/
public Builder localSubnet(String localSubnet) {
this.localSubnet = localSubnet;
return this;
}
/**
* <p>The identifier of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>116.62.XX.XX</p>
*/
public Builder remote(String remote) {
this.remote = remote;
return this;
}
/**
* <p>The CIDR block on the virtual private cloud (VPC) side.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/16</p>
*/
public Builder remoteSubnet(String remoteSubnet) {
this.remoteSubnet = remoteSubnet;
return this;
}
/**
* <p>The tunnel configurations of the peer gateway device.</p>
* <p>The parameters in <strong>TunnelsConfig</strong> are returned only when the IPsec-VPN connection supports the dual-tunnel mode.</p>
*/
public Builder tunnelsConfig(TunnelsConfig tunnelsConfig) {
this.tunnelsConfig = tunnelsConfig;
return this;
}
public VpnConnectionConfig build() {
return new VpnConnectionConfig(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableNatGatewayEcsMetricRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableNatGatewayEcsMetricRequest} extends {@link RequestModel}
*
* <p>EnableNatGatewayEcsMetricRequest</p>
*/
public class EnableNatGatewayEcsMetricRequest 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("NatGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
private EnableNatGatewayEcsMetricRequest(Builder builder) {
super(builder);
this.dryRun = builder.dryRun;
this.natGatewayId = builder.natGatewayId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static EnableNatGatewayEcsMetricRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dryRun
*/
public Boolean getDryRun() {
return this.dryRun;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<EnableNatGatewayEcsMetricRequest, Builder> {
private Boolean dryRun;
private String natGatewayId;
private String regionId;
private Builder() {
super();
}
private Builder(EnableNatGatewayEcsMetricRequest request) {
super(request);
this.dryRun = request.dryRun;
this.natGatewayId = request.natGatewayId;
this.regionId = request.regionId;
}
/**
* <p>Specifies whether to perform only a dry run, without performing the actual request. Valid values:</p>
* <p><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</p>
* <p><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the NAT gateway for which you want to enable ECS traffic monitoring.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ngw-2vc53wynunp35lw1y****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The region ID of the NAT gateway. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-chengdu</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public EnableNatGatewayEcsMetricRequest build() {
return new EnableNatGatewayEcsMetricRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableNatGatewayEcsMetricResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableNatGatewayEcsMetricResponse} extends {@link TeaModel}
*
* <p>EnableNatGatewayEcsMetricResponse</p>
*/
public class EnableNatGatewayEcsMetricResponse 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 EnableNatGatewayEcsMetricResponseBody body;
private EnableNatGatewayEcsMetricResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EnableNatGatewayEcsMetricResponse 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 EnableNatGatewayEcsMetricResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EnableNatGatewayEcsMetricResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EnableNatGatewayEcsMetricResponseBody body);
@Override
EnableNatGatewayEcsMetricResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EnableNatGatewayEcsMetricResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EnableNatGatewayEcsMetricResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EnableNatGatewayEcsMetricResponse 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(EnableNatGatewayEcsMetricResponseBody body) {
this.body = body;
return this;
}
@Override
public EnableNatGatewayEcsMetricResponse build() {
return new EnableNatGatewayEcsMetricResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableNatGatewayEcsMetricResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableNatGatewayEcsMetricResponseBody} extends {@link TeaModel}
*
* <p>EnableNatGatewayEcsMetricResponseBody</p>
*/
public class EnableNatGatewayEcsMetricResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private EnableNatGatewayEcsMetricResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static EnableNatGatewayEcsMetricResponseBody 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(EnableNatGatewayEcsMetricResponseBody 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 EnableNatGatewayEcsMetricResponseBody build() {
return new EnableNatGatewayEcsMetricResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnablePhysicalConnectionRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnablePhysicalConnectionRequest} extends {@link RequestModel}
*
* <p>EnablePhysicalConnectionRequest</p>
*/
public class EnablePhysicalConnectionRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ByPassSp")
private Boolean byPassSp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PhysicalConnectionId")
@com.aliyun.core.annotation.Validation(required = true)
private String physicalConnectionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private EnablePhysicalConnectionRequest(Builder builder) {
super(builder);
this.byPassSp = builder.byPassSp;
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.physicalConnectionId = builder.physicalConnectionId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static EnablePhysicalConnectionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return byPassSp
*/
public Boolean getByPassSp() {
return this.byPassSp;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return physicalConnectionId
*/
public String getPhysicalConnectionId() {
return this.physicalConnectionId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<EnablePhysicalConnectionRequest, Builder> {
private Boolean byPassSp;
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String physicalConnectionId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(EnablePhysicalConnectionRequest request) {
super(request);
this.byPassSp = request.byPassSp;
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.physicalConnectionId = request.physicalConnectionId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>Specifies whether to skip the order lifecycle. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> (default)</li>
* </ul>
* <blockquote>
* <p> To use this feature, you must contact your account manager.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder byPassSp(Boolean byPassSp) {
this.putQueryParameter("ByPassSp", byPassSp);
this.byPassSp = byPassSp;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-0016e04115b</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the Express Connect circuit.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pc-119mfjz****</p>
*/
public Builder physicalConnectionId(String physicalConnectionId) {
this.putQueryParameter("PhysicalConnectionId", physicalConnectionId);
this.physicalConnectionId = physicalConnectionId;
return this;
}
/**
* <p>The region where the Express Connect circuit is deployed.</p>
* <p>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-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 EnablePhysicalConnectionRequest build() {
return new EnablePhysicalConnectionRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnablePhysicalConnectionResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnablePhysicalConnectionResponse} extends {@link TeaModel}
*
* <p>EnablePhysicalConnectionResponse</p>
*/
public class EnablePhysicalConnectionResponse 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 EnablePhysicalConnectionResponseBody body;
private EnablePhysicalConnectionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EnablePhysicalConnectionResponse 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 EnablePhysicalConnectionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EnablePhysicalConnectionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EnablePhysicalConnectionResponseBody body);
@Override
EnablePhysicalConnectionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EnablePhysicalConnectionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EnablePhysicalConnectionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EnablePhysicalConnectionResponse 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(EnablePhysicalConnectionResponseBody body) {
this.body = body;
return this;
}
@Override
public EnablePhysicalConnectionResponse build() {
return new EnablePhysicalConnectionResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnablePhysicalConnectionResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnablePhysicalConnectionResponseBody} extends {@link TeaModel}
*
* <p>EnablePhysicalConnectionResponseBody</p>
*/
public class EnablePhysicalConnectionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private EnablePhysicalConnectionResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static EnablePhysicalConnectionResponseBody 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(EnablePhysicalConnectionResponseBody 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 EnablePhysicalConnectionResponseBody build() {
return new EnablePhysicalConnectionResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableVpcClassicLinkRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableVpcClassicLinkRequest} extends {@link RequestModel}
*
* <p>EnableVpcClassicLinkRequest</p>
*/
public class EnableVpcClassicLinkRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private EnableVpcClassicLinkRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static EnableVpcClassicLinkRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<EnableVpcClassicLinkRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vpcId;
private Builder() {
super();
}
private Builder(EnableVpcClassicLinkRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.vpcId = request.vpcId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the VPC for which you want to enable ClassicLink.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the VPC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1m7v25emi1h5mtc****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public EnableVpcClassicLinkRequest build() {
return new EnableVpcClassicLinkRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableVpcClassicLinkResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableVpcClassicLinkResponse} extends {@link TeaModel}
*
* <p>EnableVpcClassicLinkResponse</p>
*/
public class EnableVpcClassicLinkResponse 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 EnableVpcClassicLinkResponseBody body;
private EnableVpcClassicLinkResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EnableVpcClassicLinkResponse 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 EnableVpcClassicLinkResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EnableVpcClassicLinkResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EnableVpcClassicLinkResponseBody body);
@Override
EnableVpcClassicLinkResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EnableVpcClassicLinkResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EnableVpcClassicLinkResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EnableVpcClassicLinkResponse 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(EnableVpcClassicLinkResponseBody body) {
this.body = body;
return this;
}
@Override
public EnableVpcClassicLinkResponse build() {
return new EnableVpcClassicLinkResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableVpcClassicLinkResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableVpcClassicLinkResponseBody} extends {@link TeaModel}
*
* <p>EnableVpcClassicLinkResponseBody</p>
*/
public class EnableVpcClassicLinkResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private EnableVpcClassicLinkResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static EnableVpcClassicLinkResponseBody 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(EnableVpcClassicLinkResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public EnableVpcClassicLinkResponseBody build() {
return new EnableVpcClassicLinkResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableVpcIpv4GatewayRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableVpcIpv4GatewayRequest} extends {@link RequestModel}
*
* <p>EnableVpcIpv4GatewayRequest</p>
*/
public class EnableVpcIpv4GatewayRequest 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("Ipv4GatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String ipv4GatewayId;
@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("RouteTableList")
private java.util.List<String> routeTableList;
private EnableVpcIpv4GatewayRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.dryRun = builder.dryRun;
this.ipv4GatewayId = builder.ipv4GatewayId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeTableList = builder.routeTableList;
}
public static Builder builder() {
return new Builder();
}
public static EnableVpcIpv4GatewayRequest 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 ipv4GatewayId
*/
public String getIpv4GatewayId() {
return this.ipv4GatewayId;
}
/**
* @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 routeTableList
*/
public java.util.List<String> getRouteTableList() {
return this.routeTableList;
}
public static final class Builder extends Request.Builder<EnableVpcIpv4GatewayRequest, Builder> {
private String clientToken;
private Boolean dryRun;
private String ipv4GatewayId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<String> routeTableList;
private Builder() {
super();
}
private Builder(EnableVpcIpv4GatewayRequest request) {
super(request);
this.clientToken = request.clientToken;
this.dryRun = request.dryRun;
this.ipv4GatewayId = request.ipv4GatewayId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeTableList = request.routeTableList;
}
/**
* <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>Specifies whether to perform a dry run, without performing the actual request. Valid values:</p>
* <ul>
* <li><strong>true</strong>: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the <code>DryRunOperation</code> error code is returned.</li>
* <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder dryRun(Boolean dryRun) {
this.putQueryParameter("DryRun", dryRun);
this.dryRun = dryRun;
return this;
}
/**
* <p>The ID of the IPv4 gateway that you want to activate.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv4gw-5tsp9lumsxoqizvq2****</p>
*/
public Builder ipv4GatewayId(String ipv4GatewayId) {
this.putQueryParameter("Ipv4GatewayId", ipv4GatewayId);
this.ipv4GatewayId = ipv4GatewayId;
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 IPv4 gateway.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent list of regions.</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;
}
/**
* 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>A list of route tables. The system adds a 0.0.0.0/0 route that points to the IPv4 gateway to the route tables.</p>
*/
public Builder routeTableList(java.util.List<String> routeTableList) {
this.putQueryParameter("RouteTableList", routeTableList);
this.routeTableList = routeTableList;
return this;
}
@Override
public EnableVpcIpv4GatewayRequest build() {
return new EnableVpcIpv4GatewayRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableVpcIpv4GatewayResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableVpcIpv4GatewayResponse} extends {@link TeaModel}
*
* <p>EnableVpcIpv4GatewayResponse</p>
*/
public class EnableVpcIpv4GatewayResponse 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 EnableVpcIpv4GatewayResponseBody body;
private EnableVpcIpv4GatewayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EnableVpcIpv4GatewayResponse 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 EnableVpcIpv4GatewayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EnableVpcIpv4GatewayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EnableVpcIpv4GatewayResponseBody body);
@Override
EnableVpcIpv4GatewayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EnableVpcIpv4GatewayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EnableVpcIpv4GatewayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EnableVpcIpv4GatewayResponse 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(EnableVpcIpv4GatewayResponseBody body) {
this.body = body;
return this;
}
@Override
public EnableVpcIpv4GatewayResponse build() {
return new EnableVpcIpv4GatewayResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/EnableVpcIpv4GatewayResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EnableVpcIpv4GatewayResponseBody} extends {@link TeaModel}
*
* <p>EnableVpcIpv4GatewayResponseBody</p>
*/
public class EnableVpcIpv4GatewayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private EnableVpcIpv4GatewayResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static EnableVpcIpv4GatewayResponseBody 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(EnableVpcIpv4GatewayResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public EnableVpcIpv4GatewayResponseBody build() {
return new EnableVpcIpv4GatewayResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetDhcpOptionsSetRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDhcpOptionsSetRequest} extends {@link RequestModel}
*
* <p>GetDhcpOptionsSetRequest</p>
*/
public class GetDhcpOptionsSetRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId")
@com.aliyun.core.annotation.Validation(required = true)
private String dhcpOptionsSetId;
@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 GetDhcpOptionsSetRequest(Builder builder) {
super(builder);
this.dhcpOptionsSetId = builder.dhcpOptionsSetId;
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 GetDhcpOptionsSetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dhcpOptionsSetId
*/
public String getDhcpOptionsSetId() {
return this.dhcpOptionsSetId;
}
/**
* @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<GetDhcpOptionsSetRequest, Builder> {
private String dhcpOptionsSetId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetDhcpOptionsSetRequest request) {
super(request);
this.dhcpOptionsSetId = request.dhcpOptionsSetId;
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 DHCP options set.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dopt-o6w0df4epg9zo8isy****</p>
*/
public Builder dhcpOptionsSetId(String dhcpOptionsSetId) {
this.putQueryParameter("DhcpOptionsSetId", dhcpOptionsSetId);
this.dhcpOptionsSetId = dhcpOptionsSetId;
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 DHCP options set that you want to query.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public GetDhcpOptionsSetRequest build() {
return new GetDhcpOptionsSetRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetDhcpOptionsSetResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDhcpOptionsSetResponse} extends {@link TeaModel}
*
* <p>GetDhcpOptionsSetResponse</p>
*/
public class GetDhcpOptionsSetResponse 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 GetDhcpOptionsSetResponseBody body;
private GetDhcpOptionsSetResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDhcpOptionsSetResponse 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 GetDhcpOptionsSetResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDhcpOptionsSetResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDhcpOptionsSetResponseBody body);
@Override
GetDhcpOptionsSetResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDhcpOptionsSetResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDhcpOptionsSetResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDhcpOptionsSetResponse 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(GetDhcpOptionsSetResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDhcpOptionsSetResponse build() {
return new GetDhcpOptionsSetResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetDhcpOptionsSetResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDhcpOptionsSetResponseBody} extends {@link TeaModel}
*
* <p>GetDhcpOptionsSetResponseBody</p>
*/
public class GetDhcpOptionsSetResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateVpcs")
private java.util.List<AssociateVpcs> associateVpcs;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DhcpOptions")
private DhcpOptions dhcpOptions;
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetDescription")
private String dhcpOptionsSetDescription;
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId")
private String dhcpOptionsSetId;
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetName")
private String dhcpOptionsSetName;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private GetDhcpOptionsSetResponseBody(Builder builder) {
this.associateVpcs = builder.associateVpcs;
this.creationTime = builder.creationTime;
this.dhcpOptions = builder.dhcpOptions;
this.dhcpOptionsSetDescription = builder.dhcpOptionsSetDescription;
this.dhcpOptionsSetId = builder.dhcpOptionsSetId;
this.dhcpOptionsSetName = builder.dhcpOptionsSetName;
this.ownerId = builder.ownerId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static GetDhcpOptionsSetResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return associateVpcs
*/
public java.util.List<AssociateVpcs> getAssociateVpcs() {
return this.associateVpcs;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return dhcpOptions
*/
public DhcpOptions getDhcpOptions() {
return this.dhcpOptions;
}
/**
* @return dhcpOptionsSetDescription
*/
public String getDhcpOptionsSetDescription() {
return this.dhcpOptionsSetDescription;
}
/**
* @return dhcpOptionsSetId
*/
public String getDhcpOptionsSetId() {
return this.dhcpOptionsSetId;
}
/**
* @return dhcpOptionsSetName
*/
public String getDhcpOptionsSetName() {
return this.dhcpOptionsSetName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return 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<AssociateVpcs> associateVpcs;
private String creationTime;
private DhcpOptions dhcpOptions;
private String dhcpOptionsSetDescription;
private String dhcpOptionsSetId;
private String dhcpOptionsSetName;
private Long ownerId;
private String requestId;
private String resourceGroupId;
private String status;
private java.util.List<Tags> tags;
private Builder() {
}
private Builder(GetDhcpOptionsSetResponseBody model) {
this.associateVpcs = model.associateVpcs;
this.creationTime = model.creationTime;
this.dhcpOptions = model.dhcpOptions;
this.dhcpOptionsSetDescription = model.dhcpOptionsSetDescription;
this.dhcpOptionsSetId = model.dhcpOptionsSetId;
this.dhcpOptionsSetName = model.dhcpOptionsSetName;
this.ownerId = model.ownerId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
}
/**
* <p>The information about the virtual private cloud (VPC) that is associated with the DHCP options set.</p>
*/
public Builder associateVpcs(java.util.List<AssociateVpcs> associateVpcs) {
this.associateVpcs = associateVpcs;
return this;
}
/**
* CreationTime.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The configuration information about the DHCP options set.</p>
*/
public Builder dhcpOptions(DhcpOptions dhcpOptions) {
this.dhcpOptions = dhcpOptions;
return this;
}
/**
* <p>The description of the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder dhcpOptionsSetDescription(String dhcpOptionsSetDescription) {
this.dhcpOptionsSetDescription = dhcpOptionsSetDescription;
return this;
}
/**
* <p>The ID of the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>dopt-o6w0df4epg9zo8isy****</p>
*/
public Builder dhcpOptionsSetId(String dhcpOptionsSetId) {
this.dhcpOptionsSetId = dhcpOptionsSetId;
return this;
}
/**
* <p>The name of the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder dhcpOptionsSetName(String dhcpOptionsSetName) {
this.dhcpOptionsSetName = dhcpOptionsSetName;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the DHCP options set belongs.</p>
*
* <strong>example:</strong>
* <p>283117732402483989</p>
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The status of the DHCP options set. Valid values:</p>
* <ul>
* <li><strong>Available</strong>: available</li>
* <li><strong>InUse</strong>: in use</li>
* <li><strong>Deleted</strong>: deleted</li>
* <li><strong>Pending</strong>: being configured</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</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;
}
public GetDhcpOptionsSetResponseBody build() {
return new GetDhcpOptionsSetResponseBody(this);
}
}
/**
*
* {@link GetDhcpOptionsSetResponseBody} extends {@link TeaModel}
*
* <p>GetDhcpOptionsSetResponseBody</p>
*/
public static class AssociateVpcs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateStatus")
private String associateStatus;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private AssociateVpcs(Builder builder) {
this.associateStatus = builder.associateStatus;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static AssociateVpcs create() {
return builder().build();
}
/**
* @return associateStatus
*/
public String getAssociateStatus() {
return this.associateStatus;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String associateStatus;
private String vpcId;
private Builder() {
}
private Builder(AssociateVpcs model) {
this.associateStatus = model.associateStatus;
this.vpcId = model.vpcId;
}
/**
* <p>The status of the VPC that is associated with the DHCP options set. Valid values:</p>
* <ul>
* <li><strong>InUse</strong>: in use</li>
* <li><strong>Pending</strong>: being configured</li>
* </ul>
*
* <strong>example:</strong>
* <p>InUse</p>
*/
public Builder associateStatus(String associateStatus) {
this.associateStatus = associateStatus;
return this;
}
/**
* <p>The ID of the VPC that is associated with the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>vpc-eb3b54r6otues4tjj****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public AssociateVpcs build() {
return new AssociateVpcs(this);
}
}
}
/**
*
* {@link GetDhcpOptionsSetResponseBody} extends {@link TeaModel}
*
* <p>GetDhcpOptionsSetResponseBody</p>
*/
public static class DhcpOptions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DomainName")
private String domainName;
@com.aliyun.core.annotation.NameInMap("DomainNameServers")
private String domainNameServers;
@com.aliyun.core.annotation.NameInMap("Ipv6LeaseTime")
private String ipv6LeaseTime;
@com.aliyun.core.annotation.NameInMap("LeaseTime")
private String leaseTime;
private DhcpOptions(Builder builder) {
this.domainName = builder.domainName;
this.domainNameServers = builder.domainNameServers;
this.ipv6LeaseTime = builder.ipv6LeaseTime;
this.leaseTime = builder.leaseTime;
}
public static Builder builder() {
return new Builder();
}
public static DhcpOptions create() {
return builder().build();
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return domainNameServers
*/
public String getDomainNameServers() {
return this.domainNameServers;
}
/**
* @return ipv6LeaseTime
*/
public String getIpv6LeaseTime() {
return this.ipv6LeaseTime;
}
/**
* @return leaseTime
*/
public String getLeaseTime() {
return this.leaseTime;
}
public static final class Builder {
private String domainName;
private String domainNameServers;
private String ipv6LeaseTime;
private String leaseTime;
private Builder() {
}
private Builder(DhcpOptions model) {
this.domainName = model.domainName;
this.domainNameServers = model.domainNameServers;
this.ipv6LeaseTime = model.ipv6LeaseTime;
this.leaseTime = model.leaseTime;
}
/**
* <p>The suffix of the hostname.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* <p>The IP address of the DNS server.</p>
*
* <strong>example:</strong>
* <p>192.XX.XX.123</p>
*/
public Builder domainNameServers(String domainNameServers) {
this.domainNameServers = domainNameServers;
return this;
}
/**
* <p>The lease time of the IPv6 addresses for the DHCP options set.</p>
* <ul>
* <li>If you use hours as the unit, Valid values are <strong>24h to 1176h</strong> and <strong>87600h to 175200h</strong>. Default value: <strong>87600h</strong>.</li>
* <li>If you use days as the unit, Valid values are <strong>1d to 49d</strong> and <strong>3650d to 7300d</strong>. Default value: <strong>3650d</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3650d</p>
*/
public Builder ipv6LeaseTime(String ipv6LeaseTime) {
this.ipv6LeaseTime = ipv6LeaseTime;
return this;
}
/**
* <p>The lease time of the IPv4 addresses for the DHCP options set.</p>
* <ul>
* <li>If you use hours as the unit, valid values are <strong>24h to 1176h</strong> and <strong>87600h to 175200h</strong>. Default value: <strong>87600h</strong>.</li>
* <li>If you use days as the unit, valid values are <strong>1d to 49d</strong> and <strong>3650d to 7300d</strong>. Default value: <strong>3650d</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3650d</p>
*/
public Builder leaseTime(String leaseTime) {
this.leaseTime = leaseTime;
return this;
}
public DhcpOptions build() {
return new DhcpOptions(this);
}
}
}
/**
*
* {@link GetDhcpOptionsSetResponseBody} extends {@link TeaModel}
*
* <p>GetDhcpOptionsSetResponseBody</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);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetFlowLogServiceStatusRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFlowLogServiceStatusRequest} extends {@link RequestModel}
*
* <p>GetFlowLogServiceStatusRequest</p>
*/
public class GetFlowLogServiceStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetFlowLogServiceStatusRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetFlowLogServiceStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetFlowLogServiceStatusRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetFlowLogServiceStatusRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not set this parameter, the system automatically uses <strong>RequestId</strong> as <strong>ClientToken</strong>. The value of <strong>RequestId</strong> in each API request may be different.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the flow log.</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 GetFlowLogServiceStatusRequest build() {
return new GetFlowLogServiceStatusRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetFlowLogServiceStatusResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFlowLogServiceStatusResponse} extends {@link TeaModel}
*
* <p>GetFlowLogServiceStatusResponse</p>
*/
public class GetFlowLogServiceStatusResponse 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 GetFlowLogServiceStatusResponseBody body;
private GetFlowLogServiceStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetFlowLogServiceStatusResponse 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 GetFlowLogServiceStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetFlowLogServiceStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetFlowLogServiceStatusResponseBody body);
@Override
GetFlowLogServiceStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetFlowLogServiceStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetFlowLogServiceStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetFlowLogServiceStatusResponse 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(GetFlowLogServiceStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetFlowLogServiceStatusResponse build() {
return new GetFlowLogServiceStatusResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetFlowLogServiceStatusResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetFlowLogServiceStatusResponseBody} extends {@link TeaModel}
*
* <p>GetFlowLogServiceStatusResponseBody</p>
*/
public class GetFlowLogServiceStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetFlowLogServiceStatusResponseBody(Builder builder) {
this.enabled = builder.enabled;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetFlowLogServiceStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean enabled;
private String requestId;
private Builder() {
}
private Builder(GetFlowLogServiceStatusResponseBody model) {
this.enabled = model.enabled;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the flow log feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong>: yes</li>
* <li><strong>false</strong>: no You can call the <a href="https://help.aliyun.com/document_detail/449637.html">OpenFlowLogService</a> operation to enable the flow log feature.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-06F83A1B457</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetFlowLogServiceStatusResponseBody build() {
return new GetFlowLogServiceStatusResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetIpv4GatewayAttributeRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetIpv4GatewayAttributeRequest} extends {@link RequestModel}
*
* <p>GetIpv4GatewayAttributeRequest</p>
*/
public class GetIpv4GatewayAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ipv4GatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String ipv4GatewayId;
@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 GetIpv4GatewayAttributeRequest(Builder builder) {
super(builder);
this.ipv4GatewayId = builder.ipv4GatewayId;
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 GetIpv4GatewayAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ipv4GatewayId
*/
public String getIpv4GatewayId() {
return this.ipv4GatewayId;
}
/**
* @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<GetIpv4GatewayAttributeRequest, Builder> {
private String ipv4GatewayId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetIpv4GatewayAttributeRequest request) {
super(request);
this.ipv4GatewayId = request.ipv4GatewayId;
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 IPv4 gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ipv4gw-5tsnc6s4ogsedtp3k****</p>
*/
public Builder ipv4GatewayId(String ipv4GatewayId) {
this.putQueryParameter("Ipv4GatewayId", ipv4GatewayId);
this.ipv4GatewayId = ipv4GatewayId;
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 IPv4 gateway.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ap-southeast-6</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* 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 GetIpv4GatewayAttributeRequest build() {
return new GetIpv4GatewayAttributeRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetIpv4GatewayAttributeResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetIpv4GatewayAttributeResponse} extends {@link TeaModel}
*
* <p>GetIpv4GatewayAttributeResponse</p>
*/
public class GetIpv4GatewayAttributeResponse 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 GetIpv4GatewayAttributeResponseBody body;
private GetIpv4GatewayAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetIpv4GatewayAttributeResponse 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 GetIpv4GatewayAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetIpv4GatewayAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetIpv4GatewayAttributeResponseBody body);
@Override
GetIpv4GatewayAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetIpv4GatewayAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetIpv4GatewayAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetIpv4GatewayAttributeResponse 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(GetIpv4GatewayAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetIpv4GatewayAttributeResponse build() {
return new GetIpv4GatewayAttributeResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetIpv4GatewayAttributeResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetIpv4GatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetIpv4GatewayAttributeResponseBody</p>
*/
public class GetIpv4GatewayAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@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("RequestId")
private String requestId;
@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 GetIpv4GatewayAttributeResponseBody(Builder builder) {
this.createTime = builder.createTime;
this.enabled = builder.enabled;
this.ipv4GatewayDescription = builder.ipv4GatewayDescription;
this.ipv4GatewayId = builder.ipv4GatewayId;
this.ipv4GatewayName = builder.ipv4GatewayName;
this.ipv4GatewayRouteTableId = builder.ipv4GatewayRouteTableId;
this.requestId = builder.requestId;
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 GetIpv4GatewayAttributeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @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 requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @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 String createTime;
private Boolean enabled;
private String ipv4GatewayDescription;
private String ipv4GatewayId;
private String ipv4GatewayName;
private String ipv4GatewayRouteTableId;
private String requestId;
private String resourceGroupId;
private String status;
private java.util.List<Tags> tags;
private String vpcId;
private Builder() {
}
private Builder(GetIpv4GatewayAttributeResponseBody model) {
this.createTime = model.createTime;
this.enabled = model.enabled;
this.ipv4GatewayDescription = model.ipv4GatewayDescription;
this.ipv4GatewayId = model.ipv4GatewayId;
this.ipv4GatewayName = model.ipv4GatewayName;
this.ipv4GatewayRouteTableId = model.ipv4GatewayRouteTableId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* <p>The time when the IPv4 gateway was created.</p>
*
* <strong>example:</strong>
* <p>2022-02-24T09:02:36Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>Indicates whether the IPv4 gateway is activated. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* <p>The description of the IPv4 gateway.</p>
*
* <strong>example:</strong>
* <p>new</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 request ID.</p>
*
* <strong>example:</strong>
* <p>7F79A919-6FE9-50C4-967B-45705E1F9C38</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
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>
* <li><strong>Activating</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 ID of the VPC with which the IPv4 gateway is associated.</p>
*
* <strong>example:</strong>
* <p>vpc-5tsrxlw7dv074gci4****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public GetIpv4GatewayAttributeResponseBody build() {
return new GetIpv4GatewayAttributeResponseBody(this);
}
}
/**
*
* {@link GetIpv4GatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetIpv4GatewayAttributeResponseBody</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);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetNatGatewayAttributeRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetNatGatewayAttributeRequest} extends {@link RequestModel}
*
* <p>GetNatGatewayAttributeRequest</p>
*/
public class GetNatGatewayAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
@com.aliyun.core.annotation.Validation(required = true)
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetNatGatewayAttributeRequest(Builder builder) {
super(builder);
this.natGatewayId = builder.natGatewayId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetNatGatewayAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetNatGatewayAttributeRequest, Builder> {
private String natGatewayId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetNatGatewayAttributeRequest request) {
super(request);
this.natGatewayId = request.natGatewayId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the NAT gateway.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1b0lic8uz4r6vf2****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region where the NAT gateway is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-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 GetNatGatewayAttributeRequest build() {
return new GetNatGatewayAttributeRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetNatGatewayAttributeResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetNatGatewayAttributeResponse} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponse</p>
*/
public class GetNatGatewayAttributeResponse 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 GetNatGatewayAttributeResponseBody body;
private GetNatGatewayAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetNatGatewayAttributeResponse 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 GetNatGatewayAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetNatGatewayAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetNatGatewayAttributeResponseBody body);
@Override
GetNatGatewayAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetNatGatewayAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetNatGatewayAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetNatGatewayAttributeResponse 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(GetNatGatewayAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetNatGatewayAttributeResponse build() {
return new GetNatGatewayAttributeResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetNatGatewayAttributeResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public class GetNatGatewayAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessMode")
private AccessMode accessMode;
@com.aliyun.core.annotation.NameInMap("BillingConfig")
private BillingConfig billingConfig;
@com.aliyun.core.annotation.NameInMap("BusinessStatus")
private String businessStatus;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DeletionProtectionInfo")
private DeletionProtectionInfo deletionProtectionInfo;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("EcsMetricEnabled")
private Boolean ecsMetricEnabled;
@com.aliyun.core.annotation.NameInMap("EnableSessionLog")
private Boolean enableSessionLog;
@com.aliyun.core.annotation.NameInMap("ExpiredTime")
private String expiredTime;
@com.aliyun.core.annotation.NameInMap("ForwardTable")
private ForwardTable forwardTable;
@com.aliyun.core.annotation.NameInMap("FullNatTable")
private FullNatTable fullNatTable;
@com.aliyun.core.annotation.NameInMap("IpList")
private java.util.List<IpList> ipList;
@com.aliyun.core.annotation.NameInMap("LogDelivery")
private LogDelivery logDelivery;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.NameInMap("NatType")
private String natType;
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("PrivateInfo")
private PrivateInfo privateInfo;
@com.aliyun.core.annotation.NameInMap("PrivateLinkEnabled")
private Boolean privateLinkEnabled;
@com.aliyun.core.annotation.NameInMap("PrivateLinkMode")
private String privateLinkMode;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SnatTable")
private SnatTable snatTable;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private GetNatGatewayAttributeResponseBody(Builder builder) {
this.accessMode = builder.accessMode;
this.billingConfig = builder.billingConfig;
this.businessStatus = builder.businessStatus;
this.creationTime = builder.creationTime;
this.deletionProtectionInfo = builder.deletionProtectionInfo;
this.description = builder.description;
this.ecsMetricEnabled = builder.ecsMetricEnabled;
this.enableSessionLog = builder.enableSessionLog;
this.expiredTime = builder.expiredTime;
this.forwardTable = builder.forwardTable;
this.fullNatTable = builder.fullNatTable;
this.ipList = builder.ipList;
this.logDelivery = builder.logDelivery;
this.name = builder.name;
this.natGatewayId = builder.natGatewayId;
this.natType = builder.natType;
this.networkType = builder.networkType;
this.privateInfo = builder.privateInfo;
this.privateLinkEnabled = builder.privateLinkEnabled;
this.privateLinkMode = builder.privateLinkMode;
this.regionId = builder.regionId;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.snatTable = builder.snatTable;
this.status = builder.status;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static GetNatGatewayAttributeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accessMode
*/
public AccessMode getAccessMode() {
return this.accessMode;
}
/**
* @return billingConfig
*/
public BillingConfig getBillingConfig() {
return this.billingConfig;
}
/**
* @return businessStatus
*/
public String getBusinessStatus() {
return this.businessStatus;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return deletionProtectionInfo
*/
public DeletionProtectionInfo getDeletionProtectionInfo() {
return this.deletionProtectionInfo;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ecsMetricEnabled
*/
public Boolean getEcsMetricEnabled() {
return this.ecsMetricEnabled;
}
/**
* @return enableSessionLog
*/
public Boolean getEnableSessionLog() {
return this.enableSessionLog;
}
/**
* @return expiredTime
*/
public String getExpiredTime() {
return this.expiredTime;
}
/**
* @return forwardTable
*/
public ForwardTable getForwardTable() {
return this.forwardTable;
}
/**
* @return fullNatTable
*/
public FullNatTable getFullNatTable() {
return this.fullNatTable;
}
/**
* @return ipList
*/
public java.util.List<IpList> getIpList() {
return this.ipList;
}
/**
* @return logDelivery
*/
public LogDelivery getLogDelivery() {
return this.logDelivery;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return natType
*/
public String getNatType() {
return this.natType;
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return privateInfo
*/
public PrivateInfo getPrivateInfo() {
return this.privateInfo;
}
/**
* @return privateLinkEnabled
*/
public Boolean getPrivateLinkEnabled() {
return this.privateLinkEnabled;
}
/**
* @return privateLinkMode
*/
public String getPrivateLinkMode() {
return this.privateLinkMode;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return snatTable
*/
public SnatTable getSnatTable() {
return this.snatTable;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private AccessMode accessMode;
private BillingConfig billingConfig;
private String businessStatus;
private String creationTime;
private DeletionProtectionInfo deletionProtectionInfo;
private String description;
private Boolean ecsMetricEnabled;
private Boolean enableSessionLog;
private String expiredTime;
private ForwardTable forwardTable;
private FullNatTable fullNatTable;
private java.util.List<IpList> ipList;
private LogDelivery logDelivery;
private String name;
private String natGatewayId;
private String natType;
private String networkType;
private PrivateInfo privateInfo;
private Boolean privateLinkEnabled;
private String privateLinkMode;
private String regionId;
private String requestId;
private String resourceGroupId;
private SnatTable snatTable;
private String status;
private String vpcId;
private Builder() {
}
private Builder(GetNatGatewayAttributeResponseBody model) {
this.accessMode = model.accessMode;
this.billingConfig = model.billingConfig;
this.businessStatus = model.businessStatus;
this.creationTime = model.creationTime;
this.deletionProtectionInfo = model.deletionProtectionInfo;
this.description = model.description;
this.ecsMetricEnabled = model.ecsMetricEnabled;
this.enableSessionLog = model.enableSessionLog;
this.expiredTime = model.expiredTime;
this.forwardTable = model.forwardTable;
this.fullNatTable = model.fullNatTable;
this.ipList = model.ipList;
this.logDelivery = model.logDelivery;
this.name = model.name;
this.natGatewayId = model.natGatewayId;
this.natType = model.natType;
this.networkType = model.networkType;
this.privateInfo = model.privateInfo;
this.privateLinkEnabled = model.privateLinkEnabled;
this.privateLinkMode = model.privateLinkMode;
this.regionId = model.regionId;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.snatTable = model.snatTable;
this.status = model.status;
this.vpcId = model.vpcId;
}
/**
* AccessMode.
*/
public Builder accessMode(AccessMode accessMode) {
this.accessMode = accessMode;
return this;
}
/**
* <p>The billing information.</p>
*/
public Builder billingConfig(BillingConfig billingConfig) {
this.billingConfig = billingConfig;
return this;
}
/**
* <p>The service status of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>Normal</strong>: normal</li>
* <li><strong>FinancialLocked</strong>: locked due to overdue payments</li>
* </ul>
*
* <strong>example:</strong>
* <p>Normal</p>
*/
public Builder businessStatus(String businessStatus) {
this.businessStatus = businessStatus;
return this;
}
/**
* <p>The time when the NAT gateway was created. Format: YYYY-MM-DDThh:mm:ssZ.</p>
*
* <strong>example:</strong>
* <p>2021-12-08T12:20:20Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The information about the deletion protection feature.</p>
*/
public Builder deletionProtectionInfo(DeletionProtectionInfo deletionProtectionInfo) {
this.deletionProtectionInfo = deletionProtectionInfo;
return this;
}
/**
* <p>The description of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>NAT</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the traffic monitoring feature is enabled. 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 ecsMetricEnabled(Boolean ecsMetricEnabled) {
this.ecsMetricEnabled = ecsMetricEnabled;
return this;
}
/**
* EnableSessionLog.
*/
public Builder enableSessionLog(Boolean enableSessionLog) {
this.enableSessionLog = enableSessionLog;
return this;
}
/**
* <p>The time when the NAT gateway expires.</p>
*
* <strong>example:</strong>
* <p>2021-12-26T12:20:20Z</p>
*/
public Builder expiredTime(String expiredTime) {
this.expiredTime = expiredTime;
return this;
}
/**
* <p>The information about the DNAT table.</p>
*/
public Builder forwardTable(ForwardTable forwardTable) {
this.forwardTable = forwardTable;
return this;
}
/**
* <p>The information about the FULLNAT table.</p>
*/
public Builder fullNatTable(FullNatTable fullNatTable) {
this.fullNatTable = fullNatTable;
return this;
}
/**
* <p>The elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.</p>
*/
public Builder ipList(java.util.List<IpList> ipList) {
this.ipList = ipList;
return this;
}
/**
* LogDelivery.
*/
public Builder logDelivery(LogDelivery logDelivery) {
this.logDelivery = logDelivery;
return this;
}
/**
* <p>The name of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the NAT gateway.</p>
*
* <strong>example:</strong>
* <p>ngw-bp1047e2d4z7kf2ki****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The type of the Internet NAT gateway. Only <strong>Enhanced</strong> is returned, which indicates an enhanced Internet NAT gateway.</p>
*
* <strong>example:</strong>
* <p>Enhanced</p>
*/
public Builder natType(String natType) {
this.natType = natType;
return this;
}
/**
* <p>The type of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>internet</strong>: an Internet NAT gateway</li>
* <li><strong>intranet</strong>: a VPC NAT gateway</li>
* </ul>
*
* <strong>example:</strong>
* <p>internet</p>
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* <p>The private network information about the NAT gateway.</p>
*/
public Builder privateInfo(PrivateInfo privateInfo) {
this.privateInfo = privateInfo;
return this;
}
/**
* <p>Indicates whether the NAT gateway supports PrivateLink. 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 privateLinkEnabled(Boolean privateLinkEnabled) {
this.privateLinkEnabled = privateLinkEnabled;
return this;
}
/**
* <p>The mode that is used by PrivateLink. Valid values:</p>
* <ul>
* <li><strong>FullNat</strong>: the FULLNAT mode</li>
* <li><strong>Geneve</strong>: the GENEVE mode</li>
* </ul>
*
* <strong>example:</strong>
* <p>FullNat</p>
*/
public Builder privateLinkMode(String privateLinkMode) {
this.privateLinkMode = privateLinkMode;
return this;
}
/**
* <p>The ID of the region where the NAT gateway is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
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 ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The information about the SNAT table.</p>
*/
public Builder snatTable(SnatTable snatTable) {
this.snatTable = snatTable;
return this;
}
/**
* <p>The status of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>Creating</strong>: being created. The operation to create a NAT gateway is asynchronous. The NAT gateway remains in the <strong>Creating</strong> state until it is created.</li>
* <li><strong>Available</strong>: available. After a NAT gateway is created, it remains in a stable state.</li>
* <li><strong>Modifying</strong>: being modified. The operation to upgrade or downgrade a NAT gateway is asynchronous. The NAT gateway remains in the <strong>Modifying</strong> state until it is upgraded or downgraded.</li>
* <li><strong>Deleting</strong>: being deleted. The operation to delete a NAT gateway is asynchronous. The NAT gateway remains in the <strong>Deleting</strong> state until it is deleted.</li>
* <li><strong>Converting</strong>: being converted. The operation to convert a standard NAT gateway to an enhanced NAT gateway is asynchronous. The NAT gateway remains in the <strong>Converting</strong> state until it is converted.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The ID of the VPC to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72z****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public GetNatGatewayAttributeResponseBody build() {
return new GetNatGatewayAttributeResponseBody(this);
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class AccessMode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ModeValue")
private String modeValue;
@com.aliyun.core.annotation.NameInMap("TunnelType")
private String tunnelType;
private AccessMode(Builder builder) {
this.modeValue = builder.modeValue;
this.tunnelType = builder.tunnelType;
}
public static Builder builder() {
return new Builder();
}
public static AccessMode create() {
return builder().build();
}
/**
* @return modeValue
*/
public String getModeValue() {
return this.modeValue;
}
/**
* @return tunnelType
*/
public String getTunnelType() {
return this.tunnelType;
}
public static final class Builder {
private String modeValue;
private String tunnelType;
private Builder() {
}
private Builder(AccessMode model) {
this.modeValue = model.modeValue;
this.tunnelType = model.tunnelType;
}
/**
* ModeValue.
*/
public Builder modeValue(String modeValue) {
this.modeValue = modeValue;
return this;
}
/**
* TunnelType.
*/
public Builder tunnelType(String tunnelType) {
this.tunnelType = tunnelType;
return this;
}
public AccessMode build() {
return new AccessMode(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class BillingConfig extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AutoPay")
private String autoPay;
@com.aliyun.core.annotation.NameInMap("InstanceChargeType")
private String instanceChargeType;
@com.aliyun.core.annotation.NameInMap("InternetChargeType")
private String internetChargeType;
@com.aliyun.core.annotation.NameInMap("Spec")
private String spec;
private BillingConfig(Builder builder) {
this.autoPay = builder.autoPay;
this.instanceChargeType = builder.instanceChargeType;
this.internetChargeType = builder.internetChargeType;
this.spec = builder.spec;
}
public static Builder builder() {
return new Builder();
}
public static BillingConfig create() {
return builder().build();
}
/**
* @return autoPay
*/
public String getAutoPay() {
return this.autoPay;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return internetChargeType
*/
public String getInternetChargeType() {
return this.internetChargeType;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
public static final class Builder {
private String autoPay;
private String instanceChargeType;
private String internetChargeType;
private String spec;
private Builder() {
}
private Builder(BillingConfig model) {
this.autoPay = model.autoPay;
this.instanceChargeType = model.instanceChargeType;
this.internetChargeType = model.internetChargeType;
this.spec = model.spec;
}
/**
* <p>Indicates whether automatic payment is enabled. If the <strong>InstanceChargeType</strong> parameter is set to <strong>PrePaid</strong>, one of the following values is returned:</p>
* <ul>
* <li><strong>false</strong>: disabled. After an order is generated, you must go to the Order Center to complete the payment.</li>
* <li><strong>true</strong>: enabled. Payments are automatically completed.</li>
* </ul>
* <p>The return value of this parameter is empty if <strong>InstanceChargeType</strong> is set to <strong>PostPaid</strong>.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder autoPay(String autoPay) {
this.autoPay = autoPay;
return this;
}
/**
* <p>The billing method of the NAT gateway. The value is set to <strong>PostPaid</strong>, which indicates the pay-as-you-go billing method.</p>
*
* <strong>example:</strong>
* <p>PostPaid</p>
*/
public Builder instanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
return this;
}
/**
* <p>The metering method of the NAT gateway. Valid values:</p>
* <ul>
* <li><strong>PayBySpec</strong>: pay-by-specification</li>
* <li><strong>PayByLcu</strong>: pay-by-CU</li>
* </ul>
*
* <strong>example:</strong>
* <p>PayBySpec</p>
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* <p>The specification of the Internet NAT gateway. If the <strong>InternetChargeType</strong> parameter is set to <strong>PayBySpec</strong>, one of the following values is returned:</p>
* <ul>
* <li><p><strong>Small</strong>: small</p>
* </li>
* <li><p><strong>Middle</strong>: medium</p>
* </li>
* <li><p><strong>Large</strong>: large</p>
* <p>The return value of this parameter is empty if <strong>InternetChargeType</strong> is set to <strong>PayByLcu</strong>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>Small</p>
*/
public Builder spec(String spec) {
this.spec = spec;
return this;
}
public BillingConfig build() {
return new BillingConfig(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class DeletionProtectionInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
private DeletionProtectionInfo(Builder builder) {
this.enabled = builder.enabled;
}
public static Builder builder() {
return new Builder();
}
public static DeletionProtectionInfo create() {
return builder().build();
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
public static final class Builder {
private Boolean enabled;
private Builder() {
}
private Builder(DeletionProtectionInfo model) {
this.enabled = model.enabled;
}
/**
* <p>Indicates whether deletion protection is enabled.</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;
}
public DeletionProtectionInfo build() {
return new DeletionProtectionInfo(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class ForwardTable extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ForwardEntryCount")
private Integer forwardEntryCount;
@com.aliyun.core.annotation.NameInMap("ForwardTableId")
private String forwardTableId;
private ForwardTable(Builder builder) {
this.forwardEntryCount = builder.forwardEntryCount;
this.forwardTableId = builder.forwardTableId;
}
public static Builder builder() {
return new Builder();
}
public static ForwardTable create() {
return builder().build();
}
/**
* @return forwardEntryCount
*/
public Integer getForwardEntryCount() {
return this.forwardEntryCount;
}
/**
* @return forwardTableId
*/
public String getForwardTableId() {
return this.forwardTableId;
}
public static final class Builder {
private Integer forwardEntryCount;
private String forwardTableId;
private Builder() {
}
private Builder(ForwardTable model) {
this.forwardEntryCount = model.forwardEntryCount;
this.forwardTableId = model.forwardTableId;
}
/**
* <p>The number of DNAT entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder forwardEntryCount(Integer forwardEntryCount) {
this.forwardEntryCount = forwardEntryCount;
return this;
}
/**
* <p>The ID of the DNAT table.</p>
*
* <strong>example:</strong>
* <p>ftb-uf6gj3mhsg94qsqst****</p>
*/
public Builder forwardTableId(String forwardTableId) {
this.forwardTableId = forwardTableId;
return this;
}
public ForwardTable build() {
return new ForwardTable(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class FullNatTable extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FullNatEntryCount")
private Long fullNatEntryCount;
@com.aliyun.core.annotation.NameInMap("FullNatTableId")
private String fullNatTableId;
private FullNatTable(Builder builder) {
this.fullNatEntryCount = builder.fullNatEntryCount;
this.fullNatTableId = builder.fullNatTableId;
}
public static Builder builder() {
return new Builder();
}
public static FullNatTable create() {
return builder().build();
}
/**
* @return fullNatEntryCount
*/
public Long getFullNatEntryCount() {
return this.fullNatEntryCount;
}
/**
* @return fullNatTableId
*/
public String getFullNatTableId() {
return this.fullNatTableId;
}
public static final class Builder {
private Long fullNatEntryCount;
private String fullNatTableId;
private Builder() {
}
private Builder(FullNatTable model) {
this.fullNatEntryCount = model.fullNatEntryCount;
this.fullNatTableId = model.fullNatTableId;
}
/**
* <p>The number of FULLNAT entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder fullNatEntryCount(Long fullNatEntryCount) {
this.fullNatEntryCount = fullNatEntryCount;
return this;
}
/**
* <p>The ID of the FULLNAT table.</p>
*
* <strong>example:</strong>
* <p>fulltb-gw88z7hhlv43rmb26****</p>
*/
public Builder fullNatTableId(String fullNatTableId) {
this.fullNatTableId = fullNatTableId;
return this;
}
public FullNatTable build() {
return new FullNatTable(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class IpList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AllocationId")
private String allocationId;
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.NameInMap("UsingStatus")
private String usingStatus;
private IpList(Builder builder) {
this.allocationId = builder.allocationId;
this.ipAddress = builder.ipAddress;
this.usingStatus = builder.usingStatus;
}
public static Builder builder() {
return new Builder();
}
public static IpList create() {
return builder().build();
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return usingStatus
*/
public String getUsingStatus() {
return this.usingStatus;
}
public static final class Builder {
private String allocationId;
private String ipAddress;
private String usingStatus;
private Builder() {
}
private Builder(IpList model) {
this.allocationId = model.allocationId;
this.ipAddress = model.ipAddress;
this.usingStatus = model.usingStatus;
}
/**
* <p>The ID of the EIP.</p>
*
* <strong>example:</strong>
* <p>eip-bp13e9i2qst4g6jzi****</p>
*/
public Builder allocationId(String allocationId) {
this.allocationId = allocationId;
return this;
}
/**
* <p>The IP address of the EIP.</p>
*
* <strong>example:</strong>
* <p>116.33.XX.XX</p>
*/
public Builder ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* <p>The association status of the EIP.</p>
* <ul>
* <li><strong>idle</strong>: The EIP is not specified in an SNAT entry or a DNAT entry.</li>
* <li><strong>UsedBySnatTable</strong>: The EIP is specified in an SNAT entry.</li>
* <li><strong>UsedByForwardTable</strong>: The EIP is specified in a DNAT entry.</li>
* </ul>
*
* <strong>example:</strong>
* <p>idle</p>
*/
public Builder usingStatus(String usingStatus) {
this.usingStatus = usingStatus;
return this;
}
public IpList build() {
return new IpList(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class LogDelivery extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DeliverLogsErrorMessage")
private String deliverLogsErrorMessage;
@com.aliyun.core.annotation.NameInMap("DeliveryStatus")
private String deliveryStatus;
@com.aliyun.core.annotation.NameInMap("LogDeliveryType")
private String logDeliveryType;
@com.aliyun.core.annotation.NameInMap("LogDestination")
private String logDestination;
private LogDelivery(Builder builder) {
this.deliverLogsErrorMessage = builder.deliverLogsErrorMessage;
this.deliveryStatus = builder.deliveryStatus;
this.logDeliveryType = builder.logDeliveryType;
this.logDestination = builder.logDestination;
}
public static Builder builder() {
return new Builder();
}
public static LogDelivery create() {
return builder().build();
}
/**
* @return deliverLogsErrorMessage
*/
public String getDeliverLogsErrorMessage() {
return this.deliverLogsErrorMessage;
}
/**
* @return deliveryStatus
*/
public String getDeliveryStatus() {
return this.deliveryStatus;
}
/**
* @return logDeliveryType
*/
public String getLogDeliveryType() {
return this.logDeliveryType;
}
/**
* @return logDestination
*/
public String getLogDestination() {
return this.logDestination;
}
public static final class Builder {
private String deliverLogsErrorMessage;
private String deliveryStatus;
private String logDeliveryType;
private String logDestination;
private Builder() {
}
private Builder(LogDelivery model) {
this.deliverLogsErrorMessage = model.deliverLogsErrorMessage;
this.deliveryStatus = model.deliveryStatus;
this.logDeliveryType = model.logDeliveryType;
this.logDestination = model.logDestination;
}
/**
* DeliverLogsErrorMessage.
*/
public Builder deliverLogsErrorMessage(String deliverLogsErrorMessage) {
this.deliverLogsErrorMessage = deliverLogsErrorMessage;
return this;
}
/**
* DeliveryStatus.
*/
public Builder deliveryStatus(String deliveryStatus) {
this.deliveryStatus = deliveryStatus;
return this;
}
/**
* LogDeliveryType.
*/
public Builder logDeliveryType(String logDeliveryType) {
this.logDeliveryType = logDeliveryType;
return this;
}
/**
* LogDestination.
*/
public Builder logDestination(String logDestination) {
this.logDestination = logDestination;
return this;
}
public LogDelivery build() {
return new LogDelivery(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class PrivateInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EniInstanceId")
private String eniInstanceId;
@com.aliyun.core.annotation.NameInMap("IzNo")
private String izNo;
@com.aliyun.core.annotation.NameInMap("MaxBandwidth")
private Integer maxBandwidth;
@com.aliyun.core.annotation.NameInMap("PrivateIpAddress")
private String privateIpAddress;
@com.aliyun.core.annotation.NameInMap("VswitchId")
private String vswitchId;
private PrivateInfo(Builder builder) {
this.eniInstanceId = builder.eniInstanceId;
this.izNo = builder.izNo;
this.maxBandwidth = builder.maxBandwidth;
this.privateIpAddress = builder.privateIpAddress;
this.vswitchId = builder.vswitchId;
}
public static Builder builder() {
return new Builder();
}
public static PrivateInfo create() {
return builder().build();
}
/**
* @return eniInstanceId
*/
public String getEniInstanceId() {
return this.eniInstanceId;
}
/**
* @return izNo
*/
public String getIzNo() {
return this.izNo;
}
/**
* @return maxBandwidth
*/
public Integer getMaxBandwidth() {
return this.maxBandwidth;
}
/**
* @return privateIpAddress
*/
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
/**
* @return vswitchId
*/
public String getVswitchId() {
return this.vswitchId;
}
public static final class Builder {
private String eniInstanceId;
private String izNo;
private Integer maxBandwidth;
private String privateIpAddress;
private String vswitchId;
private Builder() {
}
private Builder(PrivateInfo model) {
this.eniInstanceId = model.eniInstanceId;
this.izNo = model.izNo;
this.maxBandwidth = model.maxBandwidth;
this.privateIpAddress = model.privateIpAddress;
this.vswitchId = model.vswitchId;
}
/**
* <p>The ID of the elastic network interface (ENI).</p>
*
* <strong>example:</strong>
* <p>eni-bp1cmgtoaka8vfyg****</p>
*/
public Builder eniInstanceId(String eniInstanceId) {
this.eniInstanceId = eniInstanceId;
return this;
}
/**
* <p>The zone where the NAT gateway is deployed.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao-b</p>
*/
public Builder izNo(String izNo) {
this.izNo = izNo;
return this;
}
/**
* <p>The maximum bandwidth. Unit: Mbit/s.</p>
*
* <strong>example:</strong>
* <p>5120</p>
*/
public Builder maxBandwidth(Integer maxBandwidth) {
this.maxBandwidth = maxBandwidth;
return this;
}
/**
* <p>The private IP address.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder privateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
/**
* <p>The ID of the vSwitch to which the NAT gateway belongs.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1s2laxhdf9ayjbo***</p>
*/
public Builder vswitchId(String vswitchId) {
this.vswitchId = vswitchId;
return this;
}
public PrivateInfo build() {
return new PrivateInfo(this);
}
}
}
/**
*
* {@link GetNatGatewayAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetNatGatewayAttributeResponseBody</p>
*/
public static class SnatTable extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SnatEntryCount")
private Integer snatEntryCount;
@com.aliyun.core.annotation.NameInMap("SnatTableId")
private String snatTableId;
private SnatTable(Builder builder) {
this.snatEntryCount = builder.snatEntryCount;
this.snatTableId = builder.snatTableId;
}
public static Builder builder() {
return new Builder();
}
public static SnatTable create() {
return builder().build();
}
/**
* @return snatEntryCount
*/
public Integer getSnatEntryCount() {
return this.snatEntryCount;
}
/**
* @return snatTableId
*/
public String getSnatTableId() {
return this.snatTableId;
}
public static final class Builder {
private Integer snatEntryCount;
private String snatTableId;
private Builder() {
}
private Builder(SnatTable model) {
this.snatEntryCount = model.snatEntryCount;
this.snatTableId = model.snatTableId;
}
/**
* <p>The number of SNAT entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder snatEntryCount(Integer snatEntryCount) {
this.snatEntryCount = snatEntryCount;
return this;
}
/**
* <p>The ID of the SNAT table.</p>
*
* <strong>example:</strong>
* <p>stb-SnatTableIds****</p>
*/
public Builder snatTableId(String snatTableId) {
this.snatTableId = snatTableId;
return this;
}
public SnatTable build() {
return new SnatTable(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetPhysicalConnectionServiceStatusRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPhysicalConnectionServiceStatusRequest} extends {@link RequestModel}
*
* <p>GetPhysicalConnectionServiceStatusRequest</p>
*/
public class GetPhysicalConnectionServiceStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetPhysicalConnectionServiceStatusRequest(Builder builder) {
super(builder);
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 GetPhysicalConnectionServiceStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetPhysicalConnectionServiceStatusRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetPhysicalConnectionServiceStatusRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* 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 for which you want to query the status of outbound data transfer billing.</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 GetPhysicalConnectionServiceStatusRequest build() {
return new GetPhysicalConnectionServiceStatusRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetPhysicalConnectionServiceStatusResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPhysicalConnectionServiceStatusResponse} extends {@link TeaModel}
*
* <p>GetPhysicalConnectionServiceStatusResponse</p>
*/
public class GetPhysicalConnectionServiceStatusResponse 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 GetPhysicalConnectionServiceStatusResponseBody body;
private GetPhysicalConnectionServiceStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPhysicalConnectionServiceStatusResponse 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 GetPhysicalConnectionServiceStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPhysicalConnectionServiceStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPhysicalConnectionServiceStatusResponseBody body);
@Override
GetPhysicalConnectionServiceStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPhysicalConnectionServiceStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPhysicalConnectionServiceStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPhysicalConnectionServiceStatusResponse 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(GetPhysicalConnectionServiceStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPhysicalConnectionServiceStatusResponse build() {
return new GetPhysicalConnectionServiceStatusResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetPhysicalConnectionServiceStatusResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPhysicalConnectionServiceStatusResponseBody} extends {@link TeaModel}
*
* <p>GetPhysicalConnectionServiceStatusResponseBody</p>
*/
public class GetPhysicalConnectionServiceStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetPhysicalConnectionServiceStatusResponseBody(Builder builder) {
this.enabled = builder.enabled;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetPhysicalConnectionServiceStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean enabled;
private String requestId;
private Builder() {
}
private Builder(GetPhysicalConnectionServiceStatusResponseBody model) {
this.enabled = model.enabled;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether billing for outbound data transfer is enabled. 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 ID of the request.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-08E683A1B45</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetPhysicalConnectionServiceStatusResponseBody build() {
return new GetPhysicalConnectionServiceStatusResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetPublicIpAddressPoolServiceStatusRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPublicIpAddressPoolServiceStatusRequest} extends {@link RequestModel}
*
* <p>GetPublicIpAddressPoolServiceStatusRequest</p>
*/
public class GetPublicIpAddressPoolServiceStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetPublicIpAddressPoolServiceStatusRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetPublicIpAddressPoolServiceStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetPublicIpAddressPoolServiceStatusRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetPublicIpAddressPoolServiceStatusRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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-426655442455</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the IP address pool.</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 GetPublicIpAddressPoolServiceStatusRequest build() {
return new GetPublicIpAddressPoolServiceStatusRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetPublicIpAddressPoolServiceStatusResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPublicIpAddressPoolServiceStatusResponse} extends {@link TeaModel}
*
* <p>GetPublicIpAddressPoolServiceStatusResponse</p>
*/
public class GetPublicIpAddressPoolServiceStatusResponse 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 GetPublicIpAddressPoolServiceStatusResponseBody body;
private GetPublicIpAddressPoolServiceStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetPublicIpAddressPoolServiceStatusResponse 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 GetPublicIpAddressPoolServiceStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetPublicIpAddressPoolServiceStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetPublicIpAddressPoolServiceStatusResponseBody body);
@Override
GetPublicIpAddressPoolServiceStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetPublicIpAddressPoolServiceStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetPublicIpAddressPoolServiceStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetPublicIpAddressPoolServiceStatusResponse 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(GetPublicIpAddressPoolServiceStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetPublicIpAddressPoolServiceStatusResponse build() {
return new GetPublicIpAddressPoolServiceStatusResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetPublicIpAddressPoolServiceStatusResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetPublicIpAddressPoolServiceStatusResponseBody} extends {@link TeaModel}
*
* <p>GetPublicIpAddressPoolServiceStatusResponseBody</p>
*/
public class GetPublicIpAddressPoolServiceStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetPublicIpAddressPoolServiceStatusResponseBody(Builder builder) {
this.enabled = builder.enabled;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetPublicIpAddressPoolServiceStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean enabled;
private String requestId;
private Builder() {
}
private Builder(GetPublicIpAddressPoolServiceStatusResponseBody model) {
this.enabled = model.enabled;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the IP address pool feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong> You can call OpenPublicIpAddressPoolService to enable the IP address pool feature.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>54B48E3D-DF70-471B-AA93-06F82A1B457</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetPublicIpAddressPoolServiceStatusResponseBody build() {
return new GetPublicIpAddressPoolServiceStatusResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetTrafficMirrorServiceStatusRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetTrafficMirrorServiceStatusRequest} extends {@link RequestModel}
*
* <p>GetTrafficMirrorServiceStatusRequest</p>
*/
public class GetTrafficMirrorServiceStatusRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetTrafficMirrorServiceStatusRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetTrafficMirrorServiceStatusRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetTrafficMirrorServiceStatusRequest, Builder> {
private String clientToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetTrafficMirrorServiceStatusRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <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 <strong>client token</strong> can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>123e4567-e89b-12d3-a456-426655440000</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the region 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.</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 GetTrafficMirrorServiceStatusRequest build() {
return new GetTrafficMirrorServiceStatusRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetTrafficMirrorServiceStatusResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetTrafficMirrorServiceStatusResponse} extends {@link TeaModel}
*
* <p>GetTrafficMirrorServiceStatusResponse</p>
*/
public class GetTrafficMirrorServiceStatusResponse 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 GetTrafficMirrorServiceStatusResponseBody body;
private GetTrafficMirrorServiceStatusResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetTrafficMirrorServiceStatusResponse 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 GetTrafficMirrorServiceStatusResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetTrafficMirrorServiceStatusResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetTrafficMirrorServiceStatusResponseBody body);
@Override
GetTrafficMirrorServiceStatusResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetTrafficMirrorServiceStatusResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetTrafficMirrorServiceStatusResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetTrafficMirrorServiceStatusResponse 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(GetTrafficMirrorServiceStatusResponseBody body) {
this.body = body;
return this;
}
@Override
public GetTrafficMirrorServiceStatusResponse build() {
return new GetTrafficMirrorServiceStatusResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetTrafficMirrorServiceStatusResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetTrafficMirrorServiceStatusResponseBody} extends {@link TeaModel}
*
* <p>GetTrafficMirrorServiceStatusResponseBody</p>
*/
public class GetTrafficMirrorServiceStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private Boolean enabled;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetTrafficMirrorServiceStatusResponseBody(Builder builder) {
this.enabled = builder.enabled;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetTrafficMirrorServiceStatusResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return enabled
*/
public Boolean getEnabled() {
return this.enabled;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Boolean enabled;
private String requestId;
private Builder() {
}
private Builder(GetTrafficMirrorServiceStatusResponseBody model) {
this.enabled = model.enabled;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the traffic mirror feature is enabled. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>37626066-2C6C-4B62-ADD3-498920C409C5</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetTrafficMirrorServiceStatusResponseBody build() {
return new GetTrafficMirrorServiceStatusResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVSwitchCidrReservationUsageRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVSwitchCidrReservationUsageRequest} extends {@link RequestModel}
*
* <p>GetVSwitchCidrReservationUsageRequest</p>
*/
public class GetVSwitchCidrReservationUsageRequest 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("VSwitchCidrReservationId")
@com.aliyun.core.annotation.Validation(required = true)
private String vSwitchCidrReservationId;
private GetVSwitchCidrReservationUsageRequest(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.vSwitchCidrReservationId = builder.vSwitchCidrReservationId;
}
public static Builder builder() {
return new Builder();
}
public static GetVSwitchCidrReservationUsageRequest 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 vSwitchCidrReservationId
*/
public String getVSwitchCidrReservationId() {
return this.vSwitchCidrReservationId;
}
public static final class Builder extends Request.Builder<GetVSwitchCidrReservationUsageRequest, Builder> {
private Long maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String vSwitchCidrReservationId;
private Builder() {
super();
}
private Builder(GetVSwitchCidrReservationUsageRequest 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.vSwitchCidrReservationId = request.vSwitchCidrReservationId;
}
/**
* <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>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 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 ID of the reserved CIDR block.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vcr-bp1m12saqteraw3rp****</p>
*/
public Builder vSwitchCidrReservationId(String vSwitchCidrReservationId) {
this.putQueryParameter("VSwitchCidrReservationId", vSwitchCidrReservationId);
this.vSwitchCidrReservationId = vSwitchCidrReservationId;
return this;
}
@Override
public GetVSwitchCidrReservationUsageRequest build() {
return new GetVSwitchCidrReservationUsageRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVSwitchCidrReservationUsageResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVSwitchCidrReservationUsageResponse} extends {@link TeaModel}
*
* <p>GetVSwitchCidrReservationUsageResponse</p>
*/
public class GetVSwitchCidrReservationUsageResponse 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 GetVSwitchCidrReservationUsageResponseBody body;
private GetVSwitchCidrReservationUsageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVSwitchCidrReservationUsageResponse 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 GetVSwitchCidrReservationUsageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVSwitchCidrReservationUsageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVSwitchCidrReservationUsageResponseBody body);
@Override
GetVSwitchCidrReservationUsageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVSwitchCidrReservationUsageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVSwitchCidrReservationUsageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVSwitchCidrReservationUsageResponse 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(GetVSwitchCidrReservationUsageResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVSwitchCidrReservationUsageResponse build() {
return new GetVSwitchCidrReservationUsageResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVSwitchCidrReservationUsageResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVSwitchCidrReservationUsageResponseBody} extends {@link TeaModel}
*
* <p>GetVSwitchCidrReservationUsageResponseBody</p>
*/
public class GetVSwitchCidrReservationUsageResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CidrReservationUsages")
private java.util.List<CidrReservationUsages> cidrReservationUsages;
@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 GetVSwitchCidrReservationUsageResponseBody(Builder builder) {
this.cidrReservationUsages = builder.cidrReservationUsages;
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 GetVSwitchCidrReservationUsageResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cidrReservationUsages
*/
public java.util.List<CidrReservationUsages> getCidrReservationUsages() {
return this.cidrReservationUsages;
}
/**
* @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<CidrReservationUsages> cidrReservationUsages;
private Long maxResults;
private String nextToken;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(GetVSwitchCidrReservationUsageResponseBody model) {
this.cidrReservationUsages = model.cidrReservationUsages;
this.maxResults = model.maxResults;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>A list of reserved CIDR blocks that are in use.</p>
*/
public Builder cidrReservationUsages(java.util.List<CidrReservationUsages> cidrReservationUsages) {
this.cidrReservationUsages = cidrReservationUsages;
return this;
}
/**
* <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;
}
public GetVSwitchCidrReservationUsageResponseBody build() {
return new GetVSwitchCidrReservationUsageResponseBody(this);
}
}
/**
*
* {@link GetVSwitchCidrReservationUsageResponseBody} extends {@link TeaModel}
*
* <p>GetVSwitchCidrReservationUsageResponseBody</p>
*/
public static class CidrReservationUsages extends TeaModel {
@com.aliyun.core.annotation.NameInMap("IpPrefixCidr")
private String ipPrefixCidr;
@com.aliyun.core.annotation.NameInMap("IpPrefixId")
private String ipPrefixId;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("VSwitchCidrReservationId")
private String vSwitchCidrReservationId;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
private CidrReservationUsages(Builder builder) {
this.ipPrefixCidr = builder.ipPrefixCidr;
this.ipPrefixId = builder.ipPrefixId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.vSwitchCidrReservationId = builder.vSwitchCidrReservationId;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static CidrReservationUsages create() {
return builder().build();
}
/**
* @return ipPrefixCidr
*/
public String getIpPrefixCidr() {
return this.ipPrefixCidr;
}
/**
* @return ipPrefixId
*/
public String getIpPrefixId() {
return this.ipPrefixId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return vSwitchCidrReservationId
*/
public String getVSwitchCidrReservationId() {
return this.vSwitchCidrReservationId;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private String ipPrefixCidr;
private String ipPrefixId;
private String resourceId;
private String resourceType;
private String vSwitchCidrReservationId;
private String vSwitchId;
private Builder() {
}
private Builder(CidrReservationUsages model) {
this.ipPrefixCidr = model.ipPrefixCidr;
this.ipPrefixId = model.ipPrefixId;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.vSwitchCidrReservationId = model.vSwitchCidrReservationId;
this.vSwitchId = model.vSwitchId;
}
/**
* <p>The CIDR block allocated to the ENI from the reserved CIDR block.</p>
*
* <strong>example:</strong>
* <p>192.168.1.64/28</p>
*/
public Builder ipPrefixCidr(String ipPrefixCidr) {
this.ipPrefixCidr = ipPrefixCidr;
return this;
}
/**
* <p>The ID of the reserved CIDR block.</p>
*
* <strong>example:</strong>
* <p>vcr-bp1m12saqteraw3rp****</p>
*/
public Builder ipPrefixId(String ipPrefixId) {
this.ipPrefixId = ipPrefixId;
return this;
}
/**
* <p>The ID of the elastic network interface (ENI) whose CIDR block is allocated from the reserved CIDR block.</p>
*
* <strong>example:</strong>
* <p>eni-bp14v2sdd3v8htln****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the resource to which a CIDR block is allocated from the reserved CIDR block. Only <strong>NetworkInterface</strong> may be returned, which indicates an ENI.</p>
*
* <strong>example:</strong>
* <p>NetworkInterface</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
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 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;
}
public CidrReservationUsages build() {
return new CidrReservationUsages(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcGatewayEndpointAttributeRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcGatewayEndpointAttributeRequest} extends {@link RequestModel}
*
* <p>GetVpcGatewayEndpointAttributeRequest</p>
*/
public class GetVpcGatewayEndpointAttributeRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndpointId")
@com.aliyun.core.annotation.Validation(required = true)
private String endpointId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetVpcGatewayEndpointAttributeRequest(Builder builder) {
super(builder);
this.endpointId = builder.endpointId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcGatewayEndpointAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endpointId
*/
public String getEndpointId() {
return this.endpointId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetVpcGatewayEndpointAttributeRequest, Builder> {
private String endpointId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetVpcGatewayEndpointAttributeRequest request) {
super(request);
this.endpointId = request.endpointId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The ID of the gateway endpoint.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpce-bp1w1dmdqjpwul0v3****</p>
*/
public Builder endpointId(String endpointId) {
this.putQueryParameter("EndpointId", endpointId);
this.endpointId = endpointId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the gateway endpoint.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public GetVpcGatewayEndpointAttributeRequest build() {
return new GetVpcGatewayEndpointAttributeRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcGatewayEndpointAttributeResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcGatewayEndpointAttributeResponse} extends {@link TeaModel}
*
* <p>GetVpcGatewayEndpointAttributeResponse</p>
*/
public class GetVpcGatewayEndpointAttributeResponse 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 GetVpcGatewayEndpointAttributeResponseBody body;
private GetVpcGatewayEndpointAttributeResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVpcGatewayEndpointAttributeResponse 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 GetVpcGatewayEndpointAttributeResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVpcGatewayEndpointAttributeResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVpcGatewayEndpointAttributeResponseBody body);
@Override
GetVpcGatewayEndpointAttributeResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVpcGatewayEndpointAttributeResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVpcGatewayEndpointAttributeResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVpcGatewayEndpointAttributeResponse 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(GetVpcGatewayEndpointAttributeResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVpcGatewayEndpointAttributeResponse build() {
return new GetVpcGatewayEndpointAttributeResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcGatewayEndpointAttributeResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcGatewayEndpointAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetVpcGatewayEndpointAttributeResponseBody</p>
*/
public class GetVpcGatewayEndpointAttributeResponseBody extends TeaModel {
@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("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("RouteTables")
private java.util.List<String> routeTables;
@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 GetVpcGatewayEndpointAttributeResponseBody(Builder builder) {
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.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.routeTables = builder.routeTables;
this.serviceName = builder.serviceName;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcGatewayEndpointAttributeResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return routeTables
*/
public java.util.List<String> getRouteTables() {
return this.routeTables;
}
/**
* @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 String creationTime;
private String endpointDescription;
private String endpointId;
private String endpointName;
private String endpointStatus;
private String policyDocument;
private String requestId;
private String resourceGroupId;
private java.util.List<String> routeTables;
private String serviceName;
private java.util.List<Tags> tags;
private String vpcId;
private Builder() {
}
private Builder(GetVpcGatewayEndpointAttributeResponseBody model) {
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.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.routeTables = model.routeTables;
this.serviceName = model.serviceName;
this.tags = model.tags;
this.vpcId = model.vpcId;
}
/**
* <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-08-27T01:58:37Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the gateway endpoint.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder endpointDescription(String endpointDescription) {
this.endpointDescription = endpointDescription;
return this;
}
/**
* <p>The ID of the gateway endpoint.</p>
*
* <strong>example:</strong>
* <p>vpce-bp1w1dmdqjpwul0v3****</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>
*
* <strong>example:</strong>
* <p>{"Version" : "1", "Statement" : [ { "Effect" : "Allow", "Resource" : [ "<em>" ], "Action" : [ "</em>" ], "Principal" : [ "*" ] } ] }</p>
*/
public Builder policyDocument(String policyDocument) {
this.policyDocument = policyDocument;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A1122D0F-7B3B-5445-BB19-17F27F97FE1C</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <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 ID of the route table associated with the gateway endpoint.</p>
*/
public Builder routeTables(java.util.List<String> routeTables) {
this.routeTables = routeTables;
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-bp1nh86rugg01zol0****</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public GetVpcGatewayEndpointAttributeResponseBody build() {
return new GetVpcGatewayEndpointAttributeResponseBody(this);
}
}
/**
*
* {@link GetVpcGatewayEndpointAttributeResponseBody} extends {@link TeaModel}
*
* <p>GetVpcGatewayEndpointAttributeResponseBody</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);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcPrefixListAssociationsRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcPrefixListAssociationsRequest} extends {@link RequestModel}
*
* <p>GetVpcPrefixListAssociationsRequest</p>
*/
public class GetVpcPrefixListAssociationsRequest 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("PrefixListId")
@com.aliyun.core.annotation.Validation(required = true)
private String prefixListId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetVpcPrefixListAssociationsRequest(Builder builder) {
super(builder);
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.prefixListId = builder.prefixListId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcPrefixListAssociationsRequest 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 prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetVpcPrefixListAssociationsRequest, Builder> {
private Long maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String prefixListId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetVpcPrefixListAssociationsRequest request) {
super(request);
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.prefixListId = request.prefixListId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The number of entries to return in each call. 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 ID of the prefix list that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pl-0b7hwu67****</p>
*/
public Builder prefixListId(String prefixListId) {
this.putQueryParameter("PrefixListId", prefixListId);
this.prefixListId = prefixListId;
return this;
}
/**
* <p>The region ID of the prefix list.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public GetVpcPrefixListAssociationsRequest build() {
return new GetVpcPrefixListAssociationsRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcPrefixListAssociationsResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcPrefixListAssociationsResponse} extends {@link TeaModel}
*
* <p>GetVpcPrefixListAssociationsResponse</p>
*/
public class GetVpcPrefixListAssociationsResponse 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 GetVpcPrefixListAssociationsResponseBody body;
private GetVpcPrefixListAssociationsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVpcPrefixListAssociationsResponse 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 GetVpcPrefixListAssociationsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVpcPrefixListAssociationsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVpcPrefixListAssociationsResponseBody body);
@Override
GetVpcPrefixListAssociationsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVpcPrefixListAssociationsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVpcPrefixListAssociationsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVpcPrefixListAssociationsResponse 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(GetVpcPrefixListAssociationsResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVpcPrefixListAssociationsResponse build() {
return new GetVpcPrefixListAssociationsResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcPrefixListAssociationsResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcPrefixListAssociationsResponseBody} extends {@link TeaModel}
*
* <p>GetVpcPrefixListAssociationsResponseBody</p>
*/
public class GetVpcPrefixListAssociationsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Long count;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("PrefixListAssociation")
private java.util.List<PrefixListAssociation> prefixListAssociation;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private GetVpcPrefixListAssociationsResponseBody(Builder builder) {
this.count = builder.count;
this.nextToken = builder.nextToken;
this.prefixListAssociation = builder.prefixListAssociation;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcPrefixListAssociationsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Long getCount() {
return this.count;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return prefixListAssociation
*/
public java.util.List<PrefixListAssociation> getPrefixListAssociation() {
return this.prefixListAssociation;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Long getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Long count;
private String nextToken;
private java.util.List<PrefixListAssociation> prefixListAssociation;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(GetVpcPrefixListAssociationsResponseBody model) {
this.count = model.count;
this.nextToken = model.nextToken;
this.prefixListAssociation = model.prefixListAssociation;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Long 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 <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 information about the network instances that are associated with the prefix list.</p>
*/
public Builder prefixListAssociation(java.util.List<PrefixListAssociation> prefixListAssociation) {
this.prefixListAssociation = prefixListAssociation;
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 number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public GetVpcPrefixListAssociationsResponseBody build() {
return new GetVpcPrefixListAssociationsResponseBody(this);
}
}
/**
*
* {@link GetVpcPrefixListAssociationsResponseBody} extends {@link TeaModel}
*
* <p>GetVpcPrefixListAssociationsResponseBody</p>
*/
public static class PrefixListAssociation extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CidrList")
private String cidrList;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private String ownerId;
@com.aliyun.core.annotation.NameInMap("PrefixListId")
private String prefixListId;
@com.aliyun.core.annotation.NameInMap("Reason")
private String reason;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ResourceId")
private String resourceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("ResourceUid")
private String resourceUid;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private PrefixListAssociation(Builder builder) {
this.cidrList = builder.cidrList;
this.ownerId = builder.ownerId;
this.prefixListId = builder.prefixListId;
this.reason = builder.reason;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
this.resourceType = builder.resourceType;
this.resourceUid = builder.resourceUid;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static PrefixListAssociation create() {
return builder().build();
}
/**
* @return cidrList
*/
public String getCidrList() {
return this.cidrList;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @return prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @return reason
*/
public String getReason() {
return this.reason;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public String getResourceId() {
return this.resourceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return resourceUid
*/
public String getResourceUid() {
return this.resourceUid;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String cidrList;
private String ownerId;
private String prefixListId;
private String reason;
private String regionId;
private String resourceId;
private String resourceType;
private String resourceUid;
private String status;
private Builder() {
}
private Builder(PrefixListAssociation model) {
this.cidrList = model.cidrList;
this.ownerId = model.ownerId;
this.prefixListId = model.prefixListId;
this.reason = model.reason;
this.regionId = model.regionId;
this.resourceId = model.resourceId;
this.resourceType = model.resourceType;
this.resourceUid = model.resourceUid;
this.status = model.status;
}
/**
* <p>List of CIDR addresses where the prefix list is effective in the currently associated resources.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/16</p>
*/
public Builder cidrList(String cidrList) {
this.cidrList = cidrList;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the prefix list belongs.</p>
*
* <strong>example:</strong>
* <p>153460731706****</p>
*/
public Builder ownerId(String ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The prefix list ID.</p>
*
* <strong>example:</strong>
* <p>pl-0b7hwu67****</p>
*/
public Builder prefixListId(String prefixListId) {
this.prefixListId = prefixListId;
return this;
}
/**
* <p>The reason why the association failed.</p>
*
* <strong>example:</strong>
* <p>failed</p>
*/
public Builder reason(String reason) {
this.reason = reason;
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 associated resource.</p>
*
* <strong>example:</strong>
* <p>vtb-bp1drpcfz9srr393h****</p>
*/
public Builder resourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* <p>The type of the associated resource. Valid values:</p>
* <ul>
* <li><strong>vpcRouteTable</strong>: virtual private cloud (VPC) route table.</li>
* <li><strong>trRouteTable</strong>: route table of a transit router.</li>
* </ul>
*
* <strong>example:</strong>
* <p>vpcRouteTable</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the resource associated with the prefix list belongs.</p>
*
* <strong>example:</strong>
* <p>132193271328****</p>
*/
public Builder resourceUid(String resourceUid) {
this.resourceUid = resourceUid;
return this;
}
/**
* <p>The status of the prefix list. Valid values:</p>
* <ul>
* <li><strong>Created</strong></li>
* <li><strong>ModifyFailed</strong></li>
* <li><strong>Creating</strong></li>
* <li><strong>Modifying</strong></li>
* <li><strong>Deleting</strong></li>
* <li><strong>Deleted</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public PrefixListAssociation build() {
return new PrefixListAssociation(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcPrefixListEntriesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcPrefixListEntriesRequest} extends {@link RequestModel}
*
* <p>GetVpcPrefixListEntriesRequest</p>
*/
public class GetVpcPrefixListEntriesRequest 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("PrefixListId")
@com.aliyun.core.annotation.Validation(required = true)
private String prefixListId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetVpcPrefixListEntriesRequest(Builder builder) {
super(builder);
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.prefixListId = builder.prefixListId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcPrefixListEntriesRequest 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 prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetVpcPrefixListEntriesRequest, Builder> {
private Long maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String prefixListId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetVpcPrefixListEntriesRequest request) {
super(request);
this.maxResults = request.maxResults;
this.nextToken = request.nextToken;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.prefixListId = request.prefixListId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The 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 ID of the prefix list that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pl-0b7hwu67****</p>
*/
public Builder prefixListId(String prefixListId) {
this.putQueryParameter("PrefixListId", prefixListId);
this.prefixListId = prefixListId;
return this;
}
/**
* <p>The region ID of the prefix list.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public GetVpcPrefixListEntriesRequest build() {
return new GetVpcPrefixListEntriesRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcPrefixListEntriesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcPrefixListEntriesResponse} extends {@link TeaModel}
*
* <p>GetVpcPrefixListEntriesResponse</p>
*/
public class GetVpcPrefixListEntriesResponse 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 GetVpcPrefixListEntriesResponseBody body;
private GetVpcPrefixListEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVpcPrefixListEntriesResponse 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 GetVpcPrefixListEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVpcPrefixListEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVpcPrefixListEntriesResponseBody body);
@Override
GetVpcPrefixListEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVpcPrefixListEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVpcPrefixListEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVpcPrefixListEntriesResponse 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(GetVpcPrefixListEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVpcPrefixListEntriesResponse build() {
return new GetVpcPrefixListEntriesResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcPrefixListEntriesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcPrefixListEntriesResponseBody} extends {@link TeaModel}
*
* <p>GetVpcPrefixListEntriesResponseBody</p>
*/
public class GetVpcPrefixListEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Long count;
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.NameInMap("PrefixListEntry")
private java.util.List<PrefixListEntry> prefixListEntry;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private GetVpcPrefixListEntriesResponseBody(Builder builder) {
this.count = builder.count;
this.nextToken = builder.nextToken;
this.prefixListEntry = builder.prefixListEntry;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcPrefixListEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return count
*/
public Long getCount() {
return this.count;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return prefixListEntry
*/
public java.util.List<PrefixListEntry> getPrefixListEntry() {
return this.prefixListEntry;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Long getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private Long count;
private String nextToken;
private java.util.List<PrefixListEntry> prefixListEntry;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(GetVpcPrefixListEntriesResponseBody model) {
this.count = model.count;
this.nextToken = model.nextToken;
this.prefixListEntry = model.prefixListEntry;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The number of entries.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder count(Long 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 <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 list.</p>
*/
public Builder prefixListEntry(java.util.List<PrefixListEntry> prefixListEntry) {
this.prefixListEntry = prefixListEntry;
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(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public GetVpcPrefixListEntriesResponseBody build() {
return new GetVpcPrefixListEntriesResponseBody(this);
}
}
/**
*
* {@link GetVpcPrefixListEntriesResponseBody} extends {@link TeaModel}
*
* <p>GetVpcPrefixListEntriesResponseBody</p>
*/
public static class PrefixListEntry extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Cidr")
private String cidr;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("PrefixListId")
private String prefixListId;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private PrefixListEntry(Builder builder) {
this.cidr = builder.cidr;
this.description = builder.description;
this.prefixListId = builder.prefixListId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static PrefixListEntry create() {
return builder().build();
}
/**
* @return cidr
*/
public String getCidr() {
return this.cidr;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String cidr;
private String description;
private String prefixListId;
private String regionId;
private Builder() {
}
private Builder(PrefixListEntry model) {
this.cidr = model.cidr;
this.description = model.description;
this.prefixListId = model.prefixListId;
this.regionId = model.regionId;
}
/**
* <p>The CIDR blocks specified in the prefix list.</p>
*
* <strong>example:</strong>
* <p>192.168.0.0/16</p>
*/
public Builder cidr(String cidr) {
this.cidr = cidr;
return this;
}
/**
* <p>The description of the prefix list.</p>
*
* <strong>example:</strong>
* <p>description</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The ID of the prefix list.</p>
*
* <strong>example:</strong>
* <p>pl-0b7hwu67****</p>
*/
public Builder prefixListId(String prefixListId) {
this.prefixListId = prefixListId;
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;
}
public PrefixListEntry build() {
return new PrefixListEntry(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcRouteEntrySummaryRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcRouteEntrySummaryRequest} extends {@link RequestModel}
*
* <p>GetVpcRouteEntrySummaryRequest</p>
*/
public class GetVpcRouteEntrySummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteEntryType")
@com.aliyun.core.annotation.Validation(required = true)
private String routeEntryType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
@com.aliyun.core.annotation.Validation(required = true)
private String vpcId;
private GetVpcRouteEntrySummaryRequest(Builder builder) {
super(builder);
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.routeEntryType = builder.routeEntryType;
this.routeTableId = builder.routeTableId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcRouteEntrySummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return routeEntryType
*/
public String getRouteEntryType() {
return this.routeEntryType;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<GetVpcRouteEntrySummaryRequest, Builder> {
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String routeEntryType;
private String routeTableId;
private String vpcId;
private Builder() {
super();
}
private Builder(GetVpcRouteEntrySummaryRequest request) {
super(request);
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.routeEntryType = request.routeEntryType;
this.routeTableId = request.routeTableId;
this.vpcId = request.vpcId;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID of the route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The type of the route. Valid values:</p>
* <ul>
* <li><strong>All</strong>: all route types</li>
* <li><strong>Custom</strong>: a custom route</li>
* <li><strong>System</strong>: a system route</li>
* <li><strong>BGP</strong>: a BGP route</li>
* <li><strong>CEN</strong>: a Cloud Enterprise Network (CEN) route</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Custom</p>
*/
public Builder routeEntryType(String routeEntryType) {
this.putQueryParameter("RouteEntryType", routeEntryType);
this.routeEntryType = routeEntryType;
return this;
}
/**
* <p>The ID of the route table that you want to query.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzdvzu2****</p>
*/
public Builder routeTableId(String routeTableId) {
this.putQueryParameter("RouteTableId", routeTableId);
this.routeTableId = routeTableId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC) to which the route table belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp15zckdt37pq72****</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public GetVpcRouteEntrySummaryRequest build() {
return new GetVpcRouteEntrySummaryRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcRouteEntrySummaryResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcRouteEntrySummaryResponse} extends {@link TeaModel}
*
* <p>GetVpcRouteEntrySummaryResponse</p>
*/
public class GetVpcRouteEntrySummaryResponse 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 GetVpcRouteEntrySummaryResponseBody body;
private GetVpcRouteEntrySummaryResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVpcRouteEntrySummaryResponse 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 GetVpcRouteEntrySummaryResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVpcRouteEntrySummaryResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVpcRouteEntrySummaryResponseBody body);
@Override
GetVpcRouteEntrySummaryResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVpcRouteEntrySummaryResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVpcRouteEntrySummaryResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVpcRouteEntrySummaryResponse 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(GetVpcRouteEntrySummaryResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVpcRouteEntrySummaryResponse build() {
return new GetVpcRouteEntrySummaryResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpcRouteEntrySummaryResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpcRouteEntrySummaryResponseBody} extends {@link TeaModel}
*
* <p>GetVpcRouteEntrySummaryResponseBody</p>
*/
public class GetVpcRouteEntrySummaryResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("RouteEntrySummarys")
private java.util.List<RouteEntrySummarys> routeEntrySummarys;
private GetVpcRouteEntrySummaryResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.routeEntrySummarys = builder.routeEntrySummarys;
}
public static Builder builder() {
return new Builder();
}
public static GetVpcRouteEntrySummaryResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return routeEntrySummarys
*/
public java.util.List<RouteEntrySummarys> getRouteEntrySummarys() {
return this.routeEntrySummarys;
}
public static final class Builder {
private String requestId;
private java.util.List<RouteEntrySummarys> routeEntrySummarys;
private Builder() {
}
private Builder(GetVpcRouteEntrySummaryResponseBody model) {
this.requestId = model.requestId;
this.routeEntrySummarys = model.routeEntrySummarys;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>DC668356-BCB4-42FD-9BC3-FA2B2E04B634</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the routes in the route tables.</p>
*/
public Builder routeEntrySummarys(java.util.List<RouteEntrySummarys> routeEntrySummarys) {
this.routeEntrySummarys = routeEntrySummarys;
return this;
}
public GetVpcRouteEntrySummaryResponseBody build() {
return new GetVpcRouteEntrySummaryResponseBody(this);
}
}
/**
*
* {@link GetVpcRouteEntrySummaryResponseBody} extends {@link TeaModel}
*
* <p>GetVpcRouteEntrySummaryResponseBody</p>
*/
public static class EntrySummarys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Count")
private Integer count;
@com.aliyun.core.annotation.NameInMap("RouteEntryType")
private String routeEntryType;
private EntrySummarys(Builder builder) {
this.count = builder.count;
this.routeEntryType = builder.routeEntryType;
}
public static Builder builder() {
return new Builder();
}
public static EntrySummarys create() {
return builder().build();
}
/**
* @return count
*/
public Integer getCount() {
return this.count;
}
/**
* @return routeEntryType
*/
public String getRouteEntryType() {
return this.routeEntryType;
}
public static final class Builder {
private Integer count;
private String routeEntryType;
private Builder() {
}
private Builder(EntrySummarys model) {
this.count = model.count;
this.routeEntryType = model.routeEntryType;
}
/**
* <p>The number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder count(Integer count) {
this.count = count;
return this;
}
/**
* <p>The type of the route. Valid values:</p>
* <ul>
* <li><strong>All</strong>: all route types</li>
* <li><strong>Custom</strong>: a custom route</li>
* <li><strong>System</strong>: a system route</li>
* <li><strong>BGP</strong>: a BGP route</li>
* <li><strong>CEN</strong>: a CEN route</li>
* </ul>
*
* <strong>example:</strong>
* <p>Custom</p>
*/
public Builder routeEntryType(String routeEntryType) {
this.routeEntryType = routeEntryType;
return this;
}
public EntrySummarys build() {
return new EntrySummarys(this);
}
}
}
/**
*
* {@link GetVpcRouteEntrySummaryResponseBody} extends {@link TeaModel}
*
* <p>GetVpcRouteEntrySummaryResponseBody</p>
*/
public static class RouteEntrySummarys extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EntrySummarys")
private java.util.List<EntrySummarys> entrySummarys;
@com.aliyun.core.annotation.NameInMap("RouteTableId")
private String routeTableId;
private RouteEntrySummarys(Builder builder) {
this.entrySummarys = builder.entrySummarys;
this.routeTableId = builder.routeTableId;
}
public static Builder builder() {
return new Builder();
}
public static RouteEntrySummarys create() {
return builder().build();
}
/**
* @return entrySummarys
*/
public java.util.List<EntrySummarys> getEntrySummarys() {
return this.entrySummarys;
}
/**
* @return routeTableId
*/
public String getRouteTableId() {
return this.routeTableId;
}
public static final class Builder {
private java.util.List<EntrySummarys> entrySummarys;
private String routeTableId;
private Builder() {
}
private Builder(RouteEntrySummarys model) {
this.entrySummarys = model.entrySummarys;
this.routeTableId = model.routeTableId;
}
/**
* <p>The information about the routes of different types in one route table.</p>
*/
public Builder entrySummarys(java.util.List<EntrySummarys> entrySummarys) {
this.entrySummarys = entrySummarys;
return this;
}
/**
* <p>The ID of the route table.</p>
*
* <strong>example:</strong>
* <p>vtb-bp145q7glnuzdvzu2****</p>
*/
public Builder routeTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
public RouteEntrySummarys build() {
return new RouteEntrySummarys(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpnGatewayDiagnoseResultRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpnGatewayDiagnoseResultRequest} extends {@link RequestModel}
*
* <p>GetVpnGatewayDiagnoseResultRequest</p>
*/
public class GetVpnGatewayDiagnoseResultRequest 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("DiagnoseId")
private String diagnoseId;
@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")
private String vpnGatewayId;
private GetVpnGatewayDiagnoseResultRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.diagnoseId = builder.diagnoseId;
this.regionId = builder.regionId;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpnGatewayDiagnoseResultRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return diagnoseId
*/
public String getDiagnoseId() {
return this.diagnoseId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder extends Request.Builder<GetVpnGatewayDiagnoseResultRequest, Builder> {
private String clientToken;
private String diagnoseId;
private String regionId;
private String vpnGatewayId;
private Builder() {
super();
}
private Builder(GetVpnGatewayDiagnoseResultRequest request) {
super(request);
this.clientToken = request.clientToken;
this.diagnoseId = request.diagnoseId;
this.regionId = request.regionId;
this.vpnGatewayId = request.vpnGatewayId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <p>**</p>
* <p><strong>Description</strong> If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p>
*
* <strong>example:</strong>
* <p>02fb3da4-130e-11e9-8e44-001****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the diagnostic operation.</p>
* <p>When you call the <a href="https://help.aliyun.com/document_detail/469751.html">DiagnoseVpnGateway</a> operation, the system returns a corresponding ID.</p>
*
* <strong>example:</strong>
* <p>vpndgn-uf6kuxbe3iv028k3s****</p>
*/
public Builder diagnoseId(String diagnoseId) {
this.putQueryParameter("DiagnoseId", diagnoseId);
this.diagnoseId = diagnoseId;
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-qingdao</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>vpn-uf6fzwp0ck3frwtbk****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.putQueryParameter("VpnGatewayId", vpnGatewayId);
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public GetVpnGatewayDiagnoseResultRequest build() {
return new GetVpnGatewayDiagnoseResultRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpnGatewayDiagnoseResultResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpnGatewayDiagnoseResultResponse} extends {@link TeaModel}
*
* <p>GetVpnGatewayDiagnoseResultResponse</p>
*/
public class GetVpnGatewayDiagnoseResultResponse 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 GetVpnGatewayDiagnoseResultResponseBody body;
private GetVpnGatewayDiagnoseResultResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetVpnGatewayDiagnoseResultResponse 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 GetVpnGatewayDiagnoseResultResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetVpnGatewayDiagnoseResultResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetVpnGatewayDiagnoseResultResponseBody body);
@Override
GetVpnGatewayDiagnoseResultResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetVpnGatewayDiagnoseResultResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetVpnGatewayDiagnoseResultResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetVpnGatewayDiagnoseResultResponse 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(GetVpnGatewayDiagnoseResultResponseBody body) {
this.body = body;
return this;
}
@Override
public GetVpnGatewayDiagnoseResultResponse build() {
return new GetVpnGatewayDiagnoseResultResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GetVpnGatewayDiagnoseResultResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetVpnGatewayDiagnoseResultResponseBody} extends {@link TeaModel}
*
* <p>GetVpnGatewayDiagnoseResultResponseBody</p>
*/
public class GetVpnGatewayDiagnoseResultResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BeginTime")
private String beginTime;
@com.aliyun.core.annotation.NameInMap("DiagnoseId")
private String diagnoseId;
@com.aliyun.core.annotation.NameInMap("DiagnoseResult")
private java.util.List<DiagnoseResult> diagnoseResult;
@com.aliyun.core.annotation.NameInMap("FinishTime")
private String finishTime;
@com.aliyun.core.annotation.NameInMap("FinishedCount")
private Integer finishedCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceInstanceId")
private String resourceInstanceId;
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("VpnGatewayId")
private String vpnGatewayId;
private GetVpnGatewayDiagnoseResultResponseBody(Builder builder) {
this.beginTime = builder.beginTime;
this.diagnoseId = builder.diagnoseId;
this.diagnoseResult = builder.diagnoseResult;
this.finishTime = builder.finishTime;
this.finishedCount = builder.finishedCount;
this.requestId = builder.requestId;
this.resourceInstanceId = builder.resourceInstanceId;
this.resourceType = builder.resourceType;
this.totalCount = builder.totalCount;
this.vpnGatewayId = builder.vpnGatewayId;
}
public static Builder builder() {
return new Builder();
}
public static GetVpnGatewayDiagnoseResultResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return beginTime
*/
public String getBeginTime() {
return this.beginTime;
}
/**
* @return diagnoseId
*/
public String getDiagnoseId() {
return this.diagnoseId;
}
/**
* @return diagnoseResult
*/
public java.util.List<DiagnoseResult> getDiagnoseResult() {
return this.diagnoseResult;
}
/**
* @return finishTime
*/
public String getFinishTime() {
return this.finishTime;
}
/**
* @return finishedCount
*/
public Integer getFinishedCount() {
return this.finishedCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceInstanceId
*/
public String getResourceInstanceId() {
return this.resourceInstanceId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return vpnGatewayId
*/
public String getVpnGatewayId() {
return this.vpnGatewayId;
}
public static final class Builder {
private String beginTime;
private String diagnoseId;
private java.util.List<DiagnoseResult> diagnoseResult;
private String finishTime;
private Integer finishedCount;
private String requestId;
private String resourceInstanceId;
private String resourceType;
private Integer totalCount;
private String vpnGatewayId;
private Builder() {
}
private Builder(GetVpnGatewayDiagnoseResultResponseBody model) {
this.beginTime = model.beginTime;
this.diagnoseId = model.diagnoseId;
this.diagnoseResult = model.diagnoseResult;
this.finishTime = model.finishTime;
this.finishedCount = model.finishedCount;
this.requestId = model.requestId;
this.resourceInstanceId = model.resourceInstanceId;
this.resourceType = model.resourceType;
this.totalCount = model.totalCount;
this.vpnGatewayId = model.vpnGatewayId;
}
/**
* <p>The time when the diagnostic started.</p>
* <p>The time follows the ISO8601 standard in the <code>yyyy-MM-ddTHH:mm:ssZ</code> format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-12-15T05:28:57Z</p>
*/
public Builder beginTime(String beginTime) {
this.beginTime = beginTime;
return this;
}
/**
* <p>The ID of the diagnostic.</p>
*
* <strong>example:</strong>
* <p>vpndgn-uf6sgneym02lxyuv4****</p>
*/
public Builder diagnoseId(String diagnoseId) {
this.diagnoseId = diagnoseId;
return this;
}
/**
* <p>The information about the diagnostic items.</p>
*/
public Builder diagnoseResult(java.util.List<DiagnoseResult> diagnoseResult) {
this.diagnoseResult = diagnoseResult;
return this;
}
/**
* <p>The timestamp when the system finishes diagnosing the item.</p>
* <p>The time follows the ISO8601 standard in the <code>yyyy-MM-ddTHH:mm:ssZ</code> format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-12-15T05:29:08Z</p>
*/
public Builder finishTime(String finishTime) {
this.finishTime = finishTime;
return this;
}
/**
* <p>The number of diagnostic items that have been diagnosed.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder finishedCount(Integer finishedCount) {
this.finishedCount = finishedCount;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>312C4D5A-6563-5FC6-8C6E-A43A5A316FEB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The ID of the resource that is diagnosed.</p>
*
* <strong>example:</strong>
* <p>vco-uf6huqsu63azl7mdp****</p>
*/
public Builder resourceInstanceId(String resourceInstanceId) {
this.resourceInstanceId = resourceInstanceId;
return this;
}
/**
* <p>The type of the resource.</p>
* <p>The value is set to <strong>IPsec</strong>, which indicates an IPsec-VPN connection.</p>
*
* <strong>example:</strong>
* <p>IPsec</p>
*/
public Builder resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* <p>The total number of diagnostic items.</p>
*
* <strong>example:</strong>
* <p>7</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>The ID of the VPN gateway.</p>
*
* <strong>example:</strong>
* <p>vpn-uf6fzwp0ck3frwtbk****</p>
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.vpnGatewayId = vpnGatewayId;
return this;
}
public GetVpnGatewayDiagnoseResultResponseBody build() {
return new GetVpnGatewayDiagnoseResultResponseBody(this);
}
}
/**
*
* {@link GetVpnGatewayDiagnoseResultResponseBody} extends {@link TeaModel}
*
* <p>GetVpnGatewayDiagnoseResultResponseBody</p>
*/
public static class DiagnoseResult extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DiagnoseName")
private String diagnoseName;
@com.aliyun.core.annotation.NameInMap("DiagnoseResultDescription")
private String diagnoseResultDescription;
@com.aliyun.core.annotation.NameInMap("DiagnoseResultLevel")
private String diagnoseResultLevel;
private DiagnoseResult(Builder builder) {
this.diagnoseName = builder.diagnoseName;
this.diagnoseResultDescription = builder.diagnoseResultDescription;
this.diagnoseResultLevel = builder.diagnoseResultLevel;
}
public static Builder builder() {
return new Builder();
}
public static DiagnoseResult create() {
return builder().build();
}
/**
* @return diagnoseName
*/
public String getDiagnoseName() {
return this.diagnoseName;
}
/**
* @return diagnoseResultDescription
*/
public String getDiagnoseResultDescription() {
return this.diagnoseResultDescription;
}
/**
* @return diagnoseResultLevel
*/
public String getDiagnoseResultLevel() {
return this.diagnoseResultLevel;
}
public static final class Builder {
private String diagnoseName;
private String diagnoseResultDescription;
private String diagnoseResultLevel;
private Builder() {
}
private Builder(DiagnoseResult model) {
this.diagnoseName = model.diagnoseName;
this.diagnoseResultDescription = model.diagnoseResultDescription;
this.diagnoseResultLevel = model.diagnoseResultLevel;
}
/**
* <p>The diagnostic item.</p>
* <ul>
* <li><strong>RouteEntryConflict</strong>: route conflicts.</li>
* <li><strong>VpnRouteQuota</strong>: the quota of destination-based routes for the VPN gateway.</li>
* <li><strong>VpnIPsecQuota</strong>: the quota of IPsec-VPN connections for the VPN gateway.</li>
* <li><strong>VpnPbrRouteQuota</strong>: the quota of policy-based routes for the VPN gateway.</li>
* <li><strong>VcoConfigConsistency</strong>: the consistency of the IPsec-VPN connection.</li>
* <li><strong>VcoUserInternetIpConnectivity</strong>: Internet connectivity of the customer gateway.</li>
* <li><strong>VcoPrivateConnectivity</strong>: private network connectivity.</li>
* </ul>
* <p>For more information about the diagnostic items, see <a href="https://help.aliyun.com/document_detail/190330.html">Background information about quick diagnostics</a>.</p>
*
* <strong>example:</strong>
* <p>RouteEntryConflict</p>
*/
public Builder diagnoseName(String diagnoseName) {
this.diagnoseName = diagnoseName;
return this;
}
/**
* <p>The diagnostic result.</p>
* <p>The system returns different results for each diagnostic item.</p>
* <ul>
* <li><p><strong>RouteEntryConflict</strong>: information about route conflicts.</p>
* </li>
* <li><p><strong>VpnRouteQuota</strong>:</p>
* <ul>
* <li><strong>quotaName</strong>: the quota ID of destination-based routes.</li>
* <li><strong>quantity</strong>: the quota of destination-based routes for the VPN gateway.</li>
* <li><strong>used</strong>: the number of destination-based routes created for the VPN gateway.</li>
* </ul>
* </li>
* <li><p><strong>VpnIPsecQuota</strong>:</p>
* <ul>
* <li><strong>quotaName</strong>: the quota ID of IPsec-VPN connections.</li>
* <li><strong>quantity</strong>: the quota of IPsec-VPN connections for the VPN gateway.</li>
* <li><strong>used</strong>: the number of IPsec-VPN connections created for the VPN gateway.</li>
* </ul>
* </li>
* <li><p><strong>VpnPbrRouteQuota</strong>:</p>
* <ul>
* <li><strong>quotaName</strong>: the quota ID of policy-based routes.</li>
* <li><strong>quantity</strong>: the quota of policy-based routes for the VPN gateway.</li>
* <li><strong>used</strong>: the number of policy-based routes created for the VPN gateway.</li>
* </ul>
* </li>
* <li><p><strong>VcoConfigConsistency</strong>:</p>
* <ul>
* <li><strong>vcoLackConf</strong>: The system cannot obtain the configuration of the peer of the IPsec-VPN connection.</li>
* <li><strong>vcoRunningConf</strong>: the configurations that have been added to the peer of the IPsec-VPN connection.</li>
* <li><strong>vcoDiffConf</strong>: the configurations that are inconsistent between the local end and the peer.</li>
* <li><strong>vcoConf</strong>: the configurations that have been added to the local end.</li>
* </ul>
* </li>
* <li><p><strong>VcoUserInternetIpConnectivity</strong>:</p>
* <ul>
* <li><strong>targetIp</strong>: the public IP address of the customer gateway.</li>
* <li><strong>rtt</strong>: the latency when the system accesses the public IP address of the customer gateway. Unit: milliseconds.</li>
* <li><strong>lossRate</strong>: the packet loss when the system accesses the public IP address of the customer gateway.</li>
* </ul>
* </li>
* <li><p><strong>VcoPrivateConnectivity</strong>:</p>
* <ul>
* <li><strong>targetIp</strong>: the source IP address.</li>
* <li><strong>srcIp</strong>: the destination IP address.</li>
* <li><strong>rtt</strong>: the latency when the source IP address accesses the destination IP address. Unit: milliseconds.</li>
* <li><strong>lossRate</strong>: the packet loss when the source IP address accesses the destination IP address.</li>
* </ul>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"targetIp":"192.168.0.1","srcIp":"192.168.1.1","rtt":-1.0,"lossRate":100.0}</p>
*/
public Builder diagnoseResultDescription(String diagnoseResultDescription) {
this.diagnoseResultDescription = diagnoseResultDescription;
return this;
}
/**
* <p>The diagnostic result level.</p>
* <ul>
* <li><strong>normal</strong></li>
* <li><strong>warning</strong></li>
* <li><strong>error</strong></li>
* </ul>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/190330.html">Background information about quick diagnostics</a>.</p>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder diagnoseResultLevel(String diagnoseResultLevel) {
this.diagnoseResultLevel = diagnoseResultLevel;
return this;
}
public DiagnoseResult build() {
return new DiagnoseResult(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GrantInstanceToCenRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GrantInstanceToCenRequest} extends {@link RequestModel}
*
* <p>GrantInstanceToCenRequest</p>
*/
public class GrantInstanceToCenRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CenId")
@com.aliyun.core.annotation.Validation(required = true)
private String cenId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CenOwnerId")
@com.aliyun.core.annotation.Validation(required = true)
private Long cenOwnerId;
@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("InstanceType")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceType;
@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 GrantInstanceToCenRequest(Builder builder) {
super(builder);
this.cenId = builder.cenId;
this.cenOwnerId = builder.cenOwnerId;
this.clientToken = builder.clientToken;
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
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 GrantInstanceToCenRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return cenId
*/
public String getCenId() {
return this.cenId;
}
/**
* @return cenOwnerId
*/
public Long getCenOwnerId() {
return this.cenOwnerId;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @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<GrantInstanceToCenRequest, Builder> {
private String cenId;
private Long cenOwnerId;
private String clientToken;
private String instanceId;
private String instanceType;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GrantInstanceToCenRequest request) {
super(request);
this.cenId = request.cenId;
this.cenOwnerId = request.cenOwnerId;
this.clientToken = request.clientToken;
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
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 CEN instance to which you want to grant permissions.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cen-7qthudw0ll6jmc****</p>
*/
public Builder cenId(String cenId) {
this.putQueryParameter("CenId", cenId);
this.cenId = cenId;
return this;
}
/**
* <p>The user ID (UID) of the Apsara Stack tenant account to which the CEN instance belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>123456789</p>
*/
public Builder cenOwnerId(Long cenOwnerId) {
this.putQueryParameter("CenOwnerId", cenOwnerId);
this.cenOwnerId = cenOwnerId;
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;
}
/**
* <p>The ID of the network instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-uf6o8d1dj8sjwxi6o****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The type of the network instance. Valid values:</p>
* <ul>
* <li><strong>VPC</strong></li>
* <li><strong>VBR</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
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 network instance is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public GrantInstanceToCenRequest build() {
return new GrantInstanceToCenRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GrantInstanceToCenResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GrantInstanceToCenResponse} extends {@link TeaModel}
*
* <p>GrantInstanceToCenResponse</p>
*/
public class GrantInstanceToCenResponse 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 GrantInstanceToCenResponseBody body;
private GrantInstanceToCenResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GrantInstanceToCenResponse 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 GrantInstanceToCenResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GrantInstanceToCenResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GrantInstanceToCenResponseBody body);
@Override
GrantInstanceToCenResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GrantInstanceToCenResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GrantInstanceToCenResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GrantInstanceToCenResponse 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(GrantInstanceToCenResponseBody body) {
this.body = body;
return this;
}
@Override
public GrantInstanceToCenResponse build() {
return new GrantInstanceToCenResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GrantInstanceToCenResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GrantInstanceToCenResponseBody} extends {@link TeaModel}
*
* <p>GrantInstanceToCenResponseBody</p>
*/
public class GrantInstanceToCenResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GrantInstanceToCenResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GrantInstanceToCenResponseBody 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(GrantInstanceToCenResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GrantInstanceToCenResponseBody build() {
return new GrantInstanceToCenResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GrantInstanceToVbrRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GrantInstanceToVbrRequest} extends {@link RequestModel}
*
* <p>GrantInstanceToVbrRequest</p>
*/
public class GrantInstanceToVbrRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GrantType")
@com.aliyun.core.annotation.Validation(required = true)
private String grantType;
@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("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VbrInstanceIds")
private java.util.List<String> vbrInstanceIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VbrOwnerUid")
@com.aliyun.core.annotation.Validation(required = true)
private Long vbrOwnerUid;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VbrRegionNo")
@com.aliyun.core.annotation.Validation(required = true)
private String vbrRegionNo;
private GrantInstanceToVbrRequest(Builder builder) {
super(builder);
this.grantType = builder.grantType;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.vbrInstanceIds = builder.vbrInstanceIds;
this.vbrOwnerUid = builder.vbrOwnerUid;
this.vbrRegionNo = builder.vbrRegionNo;
}
public static Builder builder() {
return new Builder();
}
public static GrantInstanceToVbrRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return grantType
*/
public String getGrantType() {
return this.grantType;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return vbrInstanceIds
*/
public java.util.List<String> getVbrInstanceIds() {
return this.vbrInstanceIds;
}
/**
* @return vbrOwnerUid
*/
public Long getVbrOwnerUid() {
return this.vbrOwnerUid;
}
/**
* @return vbrRegionNo
*/
public String getVbrRegionNo() {
return this.vbrRegionNo;
}
public static final class Builder extends Request.Builder<GrantInstanceToVbrRequest, Builder> {
private String grantType;
private String instanceId;
private String regionId;
private java.util.List<String> vbrInstanceIds;
private Long vbrOwnerUid;
private String vbrRegionNo;
private Builder() {
super();
}
private Builder(GrantInstanceToVbrRequest request) {
super(request);
this.grantType = request.grantType;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.vbrInstanceIds = request.vbrInstanceIds;
this.vbrOwnerUid = request.vbrOwnerUid;
this.vbrRegionNo = request.vbrRegionNo;
}
/**
* <p>The VBRs that need to acquire permissions on the VPC. Valid values:</p>
* <ul>
* <li><strong>All</strong>: Permissions on the VPC are granted to all VBRs that belong to the specified region and Alibaba Cloud account. In this case, you can leave <strong>VbrInstanceIds</strong> empty.</li>
* <li><strong>Specify</strong>: Permissions on the VPC are granted to the specified VBRs. <strong>VbrInstanceIds</strong> must be assigned a value.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>All</p>
*/
public Builder grantType(String grantType) {
this.putQueryParameter("GrantType", grantType);
this.grantType = grantType;
return this;
}
/**
* <p>The ID of the VPC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1lqhq93q8evjpky****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The ID of the region where the VPC is deployed.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The information about the VBRs.</p>
*/
public Builder vbrInstanceIds(java.util.List<String> vbrInstanceIds) {
String vbrInstanceIdsShrink = shrink(vbrInstanceIds, "VbrInstanceIds", "simple");
this.putQueryParameter("VbrInstanceIds", vbrInstanceIdsShrink);
this.vbrInstanceIds = vbrInstanceIds;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the VBR belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1210123456123456</p>
*/
public Builder vbrOwnerUid(Long vbrOwnerUid) {
this.putQueryParameter("VbrOwnerUid", vbrOwnerUid);
this.vbrOwnerUid = vbrOwnerUid;
return this;
}
/**
* <p>The ID of the region where the VBR is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder vbrRegionNo(String vbrRegionNo) {
this.putQueryParameter("VbrRegionNo", vbrRegionNo);
this.vbrRegionNo = vbrRegionNo;
return this;
}
@Override
public GrantInstanceToVbrRequest build() {
return new GrantInstanceToVbrRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GrantInstanceToVbrResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GrantInstanceToVbrResponse} extends {@link TeaModel}
*
* <p>GrantInstanceToVbrResponse</p>
*/
public class GrantInstanceToVbrResponse 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 GrantInstanceToVbrResponseBody body;
private GrantInstanceToVbrResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GrantInstanceToVbrResponse 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 GrantInstanceToVbrResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GrantInstanceToVbrResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GrantInstanceToVbrResponseBody body);
@Override
GrantInstanceToVbrResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GrantInstanceToVbrResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GrantInstanceToVbrResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GrantInstanceToVbrResponse 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(GrantInstanceToVbrResponseBody body) {
this.body = body;
return this;
}
@Override
public GrantInstanceToVbrResponse build() {
return new GrantInstanceToVbrResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/GrantInstanceToVbrResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GrantInstanceToVbrResponseBody} extends {@link TeaModel}
*
* <p>GrantInstanceToVbrResponseBody</p>
*/
public class GrantInstanceToVbrResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GrantInstanceToVbrResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GrantInstanceToVbrResponseBody 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(GrantInstanceToVbrResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F99F13AE-D733-5856-AB97-80CC88B1D5A8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GrantInstanceToVbrResponseBody build() {
return new GrantInstanceToVbrResponseBody(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListBusinessAccessPointsRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListBusinessAccessPointsRequest} extends {@link RequestModel}
*
* <p>ListBusinessAccessPointsRequest</p>
*/
public class ListBusinessAccessPointsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private ListBusinessAccessPointsRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static ListBusinessAccessPointsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<ListBusinessAccessPointsRequest, Builder> {
private String regionId;
private Builder() {
super();
}
private Builder(ListBusinessAccessPointsRequest request) {
super(request);
this.regionId = request.regionId;
}
/**
* <p>The region ID of the Express Connect circuit.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public ListBusinessAccessPointsRequest build() {
return new ListBusinessAccessPointsRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListBusinessAccessPointsResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListBusinessAccessPointsResponse} extends {@link TeaModel}
*
* <p>ListBusinessAccessPointsResponse</p>
*/
public class ListBusinessAccessPointsResponse 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 ListBusinessAccessPointsResponseBody body;
private ListBusinessAccessPointsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListBusinessAccessPointsResponse 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 ListBusinessAccessPointsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListBusinessAccessPointsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListBusinessAccessPointsResponseBody body);
@Override
ListBusinessAccessPointsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListBusinessAccessPointsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListBusinessAccessPointsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListBusinessAccessPointsResponse 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(ListBusinessAccessPointsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListBusinessAccessPointsResponse build() {
return new ListBusinessAccessPointsResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListBusinessAccessPointsResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListBusinessAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>ListBusinessAccessPointsResponseBody</p>
*/
public class ListBusinessAccessPointsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BusinessAccessPoints")
private java.util.List<BusinessAccessPoints> businessAccessPoints;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListBusinessAccessPointsResponseBody(Builder builder) {
this.businessAccessPoints = builder.businessAccessPoints;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListBusinessAccessPointsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return businessAccessPoints
*/
public java.util.List<BusinessAccessPoints> getBusinessAccessPoints() {
return this.businessAccessPoints;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private java.util.List<BusinessAccessPoints> businessAccessPoints;
private String requestId;
private Builder() {
}
private Builder(ListBusinessAccessPointsResponseBody model) {
this.businessAccessPoints = model.businessAccessPoints;
this.requestId = model.requestId;
}
/**
* <p>The list of access points.</p>
*/
public Builder businessAccessPoints(java.util.List<BusinessAccessPoints> businessAccessPoints) {
this.businessAccessPoints = businessAccessPoints;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListBusinessAccessPointsResponseBody build() {
return new ListBusinessAccessPointsResponseBody(this);
}
}
/**
*
* {@link ListBusinessAccessPointsResponseBody} extends {@link TeaModel}
*
* <p>ListBusinessAccessPointsResponseBody</p>
*/
public static class BusinessAccessPoints extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessPointId")
private String accessPointId;
@com.aliyun.core.annotation.NameInMap("AccessPointName")
private String accessPointName;
@com.aliyun.core.annotation.NameInMap("CloudBoxInstanceIds")
private String cloudBoxInstanceIds;
@com.aliyun.core.annotation.NameInMap("Latitude")
private Double latitude;
@com.aliyun.core.annotation.NameInMap("Longitude")
private Double longitude;
@com.aliyun.core.annotation.NameInMap("SupportLineOperator")
private String supportLineOperator;
@com.aliyun.core.annotation.NameInMap("SupportPortTypes")
private String supportPortTypes;
private BusinessAccessPoints(Builder builder) {
this.accessPointId = builder.accessPointId;
this.accessPointName = builder.accessPointName;
this.cloudBoxInstanceIds = builder.cloudBoxInstanceIds;
this.latitude = builder.latitude;
this.longitude = builder.longitude;
this.supportLineOperator = builder.supportLineOperator;
this.supportPortTypes = builder.supportPortTypes;
}
public static Builder builder() {
return new Builder();
}
public static BusinessAccessPoints create() {
return builder().build();
}
/**
* @return accessPointId
*/
public String getAccessPointId() {
return this.accessPointId;
}
/**
* @return accessPointName
*/
public String getAccessPointName() {
return this.accessPointName;
}
/**
* @return cloudBoxInstanceIds
*/
public String getCloudBoxInstanceIds() {
return this.cloudBoxInstanceIds;
}
/**
* @return latitude
*/
public Double getLatitude() {
return this.latitude;
}
/**
* @return longitude
*/
public Double getLongitude() {
return this.longitude;
}
/**
* @return supportLineOperator
*/
public String getSupportLineOperator() {
return this.supportLineOperator;
}
/**
* @return supportPortTypes
*/
public String getSupportPortTypes() {
return this.supportPortTypes;
}
public static final class Builder {
private String accessPointId;
private String accessPointName;
private String cloudBoxInstanceIds;
private Double latitude;
private Double longitude;
private String supportLineOperator;
private String supportPortTypes;
private Builder() {
}
private Builder(BusinessAccessPoints model) {
this.accessPointId = model.accessPointId;
this.accessPointName = model.accessPointName;
this.cloudBoxInstanceIds = model.cloudBoxInstanceIds;
this.latitude = model.latitude;
this.longitude = model.longitude;
this.supportLineOperator = model.supportLineOperator;
this.supportPortTypes = model.supportPortTypes;
}
/**
* <p>The ID of the access point.</p>
*
* <strong>example:</strong>
* <p>ap-cn-hangzhou-xs-B</p>
*/
public Builder accessPointId(String accessPointId) {
this.accessPointId = accessPointId;
return this;
}
/**
* <p>The name of the access point.</p>
*
* <strong>example:</strong>
* <p>hangzhou-xs-B</p>
*/
public Builder accessPointName(String accessPointName) {
this.accessPointName = accessPointName;
return this;
}
/**
* <p>The ID of the cloud box.</p>
* <blockquote>
* <p> You can query this parameter if the Express Connect circuits and access points are of the cloud box type.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cb-****</p>
*/
public Builder cloudBoxInstanceIds(String cloudBoxInstanceIds) {
this.cloudBoxInstanceIds = cloudBoxInstanceIds;
return this;
}
/**
* <p>The latitude of the access point.</p>
*
* <strong>example:</strong>
* <p>30.198416</p>
*/
public Builder latitude(Double latitude) {
this.latitude = latitude;
return this;
}
/**
* <p>The longitude of the access point.</p>
*
* <strong>example:</strong>
* <p>120.247514</p>
*/
public Builder longitude(Double longitude) {
this.longitude = longitude;
return this;
}
/**
* <p>The connectivity provider of the Express Connect circuit. Valid values:</p>
* <ul>
* <li><strong>CT</strong>: China Telecom.</li>
* <li><strong>CU</strong>: China Unicom.</li>
* <li><strong>CM</strong>: China Mobile.</li>
* <li><strong>CO</strong>: other connectivity providers in the Chinese mainland.</li>
* <li><strong>Equinix</strong>: Equinix.</li>
* <li><strong>Other</strong>: other connectivity providers outside the Chinese mainland.</li>
* </ul>
*
* <strong>example:</strong>
* <p>CT</p>
*/
public Builder supportLineOperator(String supportLineOperator) {
this.supportLineOperator = supportLineOperator;
return this;
}
/**
* <p>The port type supported by the access point. Valid values:</p>
* <ul>
* <li><strong>100Base-T</strong>: 100 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-T</strong>: 1,000 Mbit/s copper Ethernet port</li>
* <li><strong>1000Base-LX</strong>: 1,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>10GBase-T</strong>: 10,000 Mbit/s copper Ethernet port</li>
* <li><strong>10GBase-LR</strong>: 10,000 Mbit/s single-mode optical port (10 km)</li>
* <li><strong>40GBase-LR</strong>: 40,000 Mbit/s single-mode optical port</li>
* <li><strong>100GBase-LR</strong>: 100,000 Mbit/s single-mode optical port</li>
* </ul>
* <blockquote>
* <p> To use ports 40GBase-LR and 100GBase-LR, you must first contact your account manager.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1000Base-T</p>
*/
public Builder supportPortTypes(String supportPortTypes) {
this.supportPortTypes = supportPortTypes;
return this;
}
public BusinessAccessPoints build() {
return new BusinessAccessPoints(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListDhcpOptionsSetsRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListDhcpOptionsSetsRequest} extends {@link RequestModel}
*
* <p>ListDhcpOptionsSetsRequest</p>
*/
public class ListDhcpOptionsSetsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId")
private java.util.List<String> dhcpOptionsSetId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetName")
private String dhcpOptionsSetName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainName")
private String domainName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1)
private Integer maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NextToken")
private String nextToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private java.util.List<Tags> tags;
private ListDhcpOptionsSetsRequest(Builder builder) {
super(builder);
this.dhcpOptionsSetId = builder.dhcpOptionsSetId;
this.dhcpOptionsSetName = builder.dhcpOptionsSetName;
this.domainName = builder.domainName;
this.maxResults = builder.maxResults;
this.nextToken = builder.nextToken;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static ListDhcpOptionsSetsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dhcpOptionsSetId
*/
public java.util.List<String> getDhcpOptionsSetId() {
return this.dhcpOptionsSetId;
}
/**
* @return dhcpOptionsSetName
*/
public String getDhcpOptionsSetName() {
return this.dhcpOptionsSetName;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return maxResults
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return tags
*/
public java.util.List<Tags> getTags() {
return this.tags;
}
public static final class Builder extends Request.Builder<ListDhcpOptionsSetsRequest, Builder> {
private java.util.List<String> dhcpOptionsSetId;
private String dhcpOptionsSetName;
private String domainName;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private java.util.List<Tags> tags;
private Builder() {
super();
}
private Builder(ListDhcpOptionsSetsRequest request) {
super(request);
this.dhcpOptionsSetId = request.dhcpOptionsSetId;
this.dhcpOptionsSetName = request.dhcpOptionsSetName;
this.domainName = request.domainName;
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;
}
/**
* <p>The ID of the DHCP options set. You can specify at most 20 IDs.</p>
*
* <strong>example:</strong>
* <p>dopt-o6w0df4epg9zo8isy****</p>
*/
public Builder dhcpOptionsSetId(java.util.List<String> dhcpOptionsSetId) {
this.putQueryParameter("DhcpOptionsSetId", dhcpOptionsSetId);
this.dhcpOptionsSetId = dhcpOptionsSetId;
return this;
}
/**
* <p>The name of the DHCP options set.</p>
* <p>The name must be 1 to 128 characters in length and can contain digits, underscores (_), and hyphens (-). It must start with a letter.</p>
* <p>Valid values:</p>
* <ul>
* <li><p>tf-testAccVpcDhcpOptionsSets-1585169790614573448</p>
* <!-- -->
*
* <p>:</p>
* <!-- -->
*
* <p>tf-testAccVpcDhcpOptionsSets-1585169790614573448</p>
* <!-- -->
*
* <p>.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder dhcpOptionsSetName(String dhcpOptionsSetName) {
this.putQueryParameter("DhcpOptionsSetName", dhcpOptionsSetName);
this.dhcpOptionsSetName = dhcpOptionsSetName;
return this;
}
/**
* <p>The root domain. For example, you can set the value to example.com.</p>
* <p>After a DHCP options set is associated with a virtual private cloud (VPC), the root domain in the DHCP options set is automatically synchronized with the ECS instances in the VPC.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.putQueryParameter("DomainName", domainName);
this.domainName = domainName;
return this;
}
/**
* <p>The number of entries per 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 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 the <strong>NextToken</strong> parameter.</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 DHCP options sets that you want to query.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the DHCP options set belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The tag list.</p>
*/
public Builder tags(java.util.List<Tags> tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
@Override
public ListDhcpOptionsSetsRequest build() {
return new ListDhcpOptionsSetsRequest(this);
}
}
/**
*
* {@link ListDhcpOptionsSetsRequest} extends {@link TeaModel}
*
* <p>ListDhcpOptionsSetsRequest</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 tag key can be up to 64 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag 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 can be up to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). The tag value must start with a letter but cannot start with <code>aliyun</code> or <code>acs:</code>. The tag value 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/ListDhcpOptionsSetsResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListDhcpOptionsSetsResponse} extends {@link TeaModel}
*
* <p>ListDhcpOptionsSetsResponse</p>
*/
public class ListDhcpOptionsSetsResponse 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 ListDhcpOptionsSetsResponseBody body;
private ListDhcpOptionsSetsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListDhcpOptionsSetsResponse 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 ListDhcpOptionsSetsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListDhcpOptionsSetsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListDhcpOptionsSetsResponseBody body);
@Override
ListDhcpOptionsSetsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListDhcpOptionsSetsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListDhcpOptionsSetsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListDhcpOptionsSetsResponse 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(ListDhcpOptionsSetsResponseBody body) {
this.body = body;
return this;
}
@Override
public ListDhcpOptionsSetsResponse build() {
return new ListDhcpOptionsSetsResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListDhcpOptionsSetsResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListDhcpOptionsSetsResponseBody} extends {@link TeaModel}
*
* <p>ListDhcpOptionsSetsResponseBody</p>
*/
public class ListDhcpOptionsSetsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSets")
private java.util.List<DhcpOptionsSets> dhcpOptionsSets;
@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 ListDhcpOptionsSetsResponseBody(Builder builder) {
this.dhcpOptionsSets = builder.dhcpOptionsSets;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListDhcpOptionsSetsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dhcpOptionsSets
*/
public java.util.List<DhcpOptionsSets> getDhcpOptionsSets() {
return this.dhcpOptionsSets;
}
/**
* @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<DhcpOptionsSets> dhcpOptionsSets;
private String nextToken;
private String requestId;
private String totalCount;
private Builder() {
}
private Builder(ListDhcpOptionsSetsResponseBody model) {
this.dhcpOptionsSets = model.dhcpOptionsSets;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The list of the DHCP options sets.</p>
*/
public Builder dhcpOptionsSets(java.util.List<DhcpOptionsSets> dhcpOptionsSets) {
this.dhcpOptionsSets = dhcpOptionsSets;
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 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>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of entries.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalCount(String totalCount) {
this.totalCount = totalCount;
return this;
}
public ListDhcpOptionsSetsResponseBody build() {
return new ListDhcpOptionsSetsResponseBody(this);
}
}
/**
*
* {@link ListDhcpOptionsSetsResponseBody} extends {@link TeaModel}
*
* <p>ListDhcpOptionsSetsResponseBody</p>
*/
public static class DhcpOptions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DomainName")
private String domainName;
@com.aliyun.core.annotation.NameInMap("DomainNameServers")
private String domainNameServers;
@com.aliyun.core.annotation.NameInMap("Ipv6LeaseTime")
private String ipv6LeaseTime;
@com.aliyun.core.annotation.NameInMap("LeaseTime")
private String leaseTime;
private DhcpOptions(Builder builder) {
this.domainName = builder.domainName;
this.domainNameServers = builder.domainNameServers;
this.ipv6LeaseTime = builder.ipv6LeaseTime;
this.leaseTime = builder.leaseTime;
}
public static Builder builder() {
return new Builder();
}
public static DhcpOptions create() {
return builder().build();
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return domainNameServers
*/
public String getDomainNameServers() {
return this.domainNameServers;
}
/**
* @return ipv6LeaseTime
*/
public String getIpv6LeaseTime() {
return this.ipv6LeaseTime;
}
/**
* @return leaseTime
*/
public String getLeaseTime() {
return this.leaseTime;
}
public static final class Builder {
private String domainName;
private String domainNameServers;
private String ipv6LeaseTime;
private String leaseTime;
private Builder() {
}
private Builder(DhcpOptions model) {
this.domainName = model.domainName;
this.domainNameServers = model.domainNameServers;
this.ipv6LeaseTime = model.ipv6LeaseTime;
this.leaseTime = model.leaseTime;
}
/**
* <p>The suffix of the hostname.</p>
*
* <strong>example:</strong>
* <p>example.com</p>
*/
public Builder domainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* <p>The IP address of the DNS server.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder domainNameServers(String domainNameServers) {
this.domainNameServers = domainNameServers;
return this;
}
/**
* <p>The lease time of the IPv6 addresses for the DHCP options set.</p>
* <ul>
* <li>If you use hours as the unit, valid values are <strong>24h to 1176h</strong> and <strong>87600h to 175200h</strong>. Default value: <strong>87600h</strong>.</li>
* <li>If you use days as the unit, valid values are <strong>1d to 49d</strong> and <strong>3650d to 7300d</strong>. Default value: <strong>3650d</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3650d</p>
*/
public Builder ipv6LeaseTime(String ipv6LeaseTime) {
this.ipv6LeaseTime = ipv6LeaseTime;
return this;
}
/**
* <p>The lease time of the IPv4 addresses for the DHCP options set.</p>
* <ul>
* <li>If you use hours as the unit, valid values are <strong>24h to 1176h</strong> and <strong>87600h to 175200h</strong>. Default value: <strong>87600h</strong>.</li>
* <li>If you use days as the unit, valid values are <strong>1d to 49d</strong> and <strong>3650d to 7300d</strong>. Default value: <strong>3650d</strong>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>3650d</p>
*/
public Builder leaseTime(String leaseTime) {
this.leaseTime = leaseTime;
return this;
}
public DhcpOptions build() {
return new DhcpOptions(this);
}
}
}
/**
*
* {@link ListDhcpOptionsSetsResponseBody} extends {@link TeaModel}
*
* <p>ListDhcpOptionsSetsResponseBody</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 ListDhcpOptionsSetsResponseBody} extends {@link TeaModel}
*
* <p>ListDhcpOptionsSetsResponseBody</p>
*/
public static class DhcpOptionsSets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AssociateVpcCount")
private Integer associateVpcCount;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("DhcpOptions")
private DhcpOptions dhcpOptions;
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetDescription")
private String dhcpOptionsSetDescription;
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetId")
private String dhcpOptionsSetId;
@com.aliyun.core.annotation.NameInMap("DhcpOptionsSetName")
private String dhcpOptionsSetName;
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@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;
private DhcpOptionsSets(Builder builder) {
this.associateVpcCount = builder.associateVpcCount;
this.creationTime = builder.creationTime;
this.dhcpOptions = builder.dhcpOptions;
this.dhcpOptionsSetDescription = builder.dhcpOptionsSetDescription;
this.dhcpOptionsSetId = builder.dhcpOptionsSetId;
this.dhcpOptionsSetName = builder.dhcpOptionsSetName;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.status = builder.status;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static DhcpOptionsSets create() {
return builder().build();
}
/**
* @return associateVpcCount
*/
public Integer getAssociateVpcCount() {
return this.associateVpcCount;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return dhcpOptions
*/
public DhcpOptions getDhcpOptions() {
return this.dhcpOptions;
}
/**
* @return dhcpOptionsSetDescription
*/
public String getDhcpOptionsSetDescription() {
return this.dhcpOptionsSetDescription;
}
/**
* @return dhcpOptionsSetId
*/
public String getDhcpOptionsSetId() {
return this.dhcpOptionsSetId;
}
/**
* @return dhcpOptionsSetName
*/
public String getDhcpOptionsSetName() {
return this.dhcpOptionsSetName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @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;
}
public static final class Builder {
private Integer associateVpcCount;
private String creationTime;
private DhcpOptions dhcpOptions;
private String dhcpOptionsSetDescription;
private String dhcpOptionsSetId;
private String dhcpOptionsSetName;
private Long ownerId;
private String resourceGroupId;
private String status;
private java.util.List<Tags> tags;
private Builder() {
}
private Builder(DhcpOptionsSets model) {
this.associateVpcCount = model.associateVpcCount;
this.creationTime = model.creationTime;
this.dhcpOptions = model.dhcpOptions;
this.dhcpOptionsSetDescription = model.dhcpOptionsSetDescription;
this.dhcpOptionsSetId = model.dhcpOptionsSetId;
this.dhcpOptionsSetName = model.dhcpOptionsSetName;
this.ownerId = model.ownerId;
this.resourceGroupId = model.resourceGroupId;
this.status = model.status;
this.tags = model.tags;
}
/**
* <p>The number of VPCs with which the DHCP options set is associated.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder associateVpcCount(Integer associateVpcCount) {
this.associateVpcCount = associateVpcCount;
return this;
}
/**
* CreationTime.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The configuration information about the DHCP options set.</p>
*/
public Builder dhcpOptions(DhcpOptions dhcpOptions) {
this.dhcpOptions = dhcpOptions;
return this;
}
/**
* <p>The description of the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder dhcpOptionsSetDescription(String dhcpOptionsSetDescription) {
this.dhcpOptionsSetDescription = dhcpOptionsSetDescription;
return this;
}
/**
* <p>The ID of the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>dopt-o6w0df4epg9zo8isy****</p>
*/
public Builder dhcpOptionsSetId(String dhcpOptionsSetId) {
this.dhcpOptionsSetId = dhcpOptionsSetId;
return this;
}
/**
* <p>The name of the DHCP options set.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder dhcpOptionsSetName(String dhcpOptionsSetName) {
this.dhcpOptionsSetName = dhcpOptionsSetName;
return this;
}
/**
* <p>The ID of the Alibaba Cloud account to which the DHCP options set belongs.</p>
*
* <strong>example:</strong>
* <p>253460731706911258</p>
*/
public Builder ownerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* <p>The ID of the resource group to which the DHCP options set belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxazb4ph****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The status of the DHCP options set. Valid values:</p>
* <ul>
* <li><strong>Available</strong></li>
* <li><strong>InUse</strong></li>
* <li><strong>Pending</strong></li>
* <li><strong>Deleted</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</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;
}
public DhcpOptionsSets build() {
return new DhcpOptionsSets(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListEnhanhcedNatGatewayAvailableZonesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListEnhanhcedNatGatewayAvailableZonesRequest} extends {@link RequestModel}
*
* <p>ListEnhanhcedNatGatewayAvailableZonesRequest</p>
*/
public class ListEnhanhcedNatGatewayAvailableZonesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcceptLanguage")
private String acceptLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private java.util.List<Filter> filter;
@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 ListEnhanhcedNatGatewayAvailableZonesRequest(Builder builder) {
super(builder);
this.acceptLanguage = builder.acceptLanguage;
this.filter = builder.filter;
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 ListEnhanhcedNatGatewayAvailableZonesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return acceptLanguage
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
/**
* @return filter
*/
public java.util.List<Filter> getFilter() {
return this.filter;
}
/**
* @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<ListEnhanhcedNatGatewayAvailableZonesRequest, Builder> {
private String acceptLanguage;
private java.util.List<Filter> filter;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ListEnhanhcedNatGatewayAvailableZonesRequest request) {
super(request);
this.acceptLanguage = request.acceptLanguage;
this.filter = request.filter;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The language to display the results. Valid values:</p>
* <ul>
* <li><strong>zh-CN</strong> (default): Chinese</li>
* <li><strong>en-US</strong>: English</li>
* </ul>
*
* <strong>example:</strong>
* <p>zh-CN</p>
*/
public Builder acceptLanguage(String acceptLanguage) {
this.putQueryParameter("AcceptLanguage", acceptLanguage);
this.acceptLanguage = acceptLanguage;
return this;
}
/**
* <p>The filter information. You can specify a filter key and a filter value.</p>
*/
public Builder filter(java.util.List<Filter> filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
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 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>In this example, zones that support NAT gateways in the UAE (Dubai) region are queried.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>me-east-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 ListEnhanhcedNatGatewayAvailableZonesRequest build() {
return new ListEnhanhcedNatGatewayAvailableZonesRequest(this);
}
}
/**
*
* {@link ListEnhanhcedNatGatewayAvailableZonesRequest} extends {@link TeaModel}
*
* <p>ListEnhanhcedNatGatewayAvailableZonesRequest</p>
*/
public static class Filter extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Filter(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Filter create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
private Builder() {
}
private Builder(Filter model) {
this.key = model.key;
this.value = model.value;
}
/**
* <p>The filter key. Only <strong>PrivateLinkEnabled</strong> is supported.</p>
*
* <strong>example:</strong>
* <p>PrivateLinkEnabled</p>
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* <p>The value of the filter key.</p>
* <blockquote>
* <p> If the filter key is set to <strong>PrivateLinkEnabled</strong>, you must specify a filter value. Valid values: <strong>true</strong> and <strong>false</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Filter build() {
return new Filter(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListEnhanhcedNatGatewayAvailableZonesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListEnhanhcedNatGatewayAvailableZonesResponse} extends {@link TeaModel}
*
* <p>ListEnhanhcedNatGatewayAvailableZonesResponse</p>
*/
public class ListEnhanhcedNatGatewayAvailableZonesResponse 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 ListEnhanhcedNatGatewayAvailableZonesResponseBody body;
private ListEnhanhcedNatGatewayAvailableZonesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListEnhanhcedNatGatewayAvailableZonesResponse 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 ListEnhanhcedNatGatewayAvailableZonesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListEnhanhcedNatGatewayAvailableZonesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListEnhanhcedNatGatewayAvailableZonesResponseBody body);
@Override
ListEnhanhcedNatGatewayAvailableZonesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListEnhanhcedNatGatewayAvailableZonesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListEnhanhcedNatGatewayAvailableZonesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListEnhanhcedNatGatewayAvailableZonesResponse 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(ListEnhanhcedNatGatewayAvailableZonesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListEnhanhcedNatGatewayAvailableZonesResponse build() {
return new ListEnhanhcedNatGatewayAvailableZonesResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListEnhanhcedNatGatewayAvailableZonesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListEnhanhcedNatGatewayAvailableZonesResponseBody} extends {@link TeaModel}
*
* <p>ListEnhanhcedNatGatewayAvailableZonesResponseBody</p>
*/
public class ListEnhanhcedNatGatewayAvailableZonesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Zones")
private java.util.List<Zones> zones;
private ListEnhanhcedNatGatewayAvailableZonesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.zones = builder.zones;
}
public static Builder builder() {
return new Builder();
}
public static ListEnhanhcedNatGatewayAvailableZonesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return zones
*/
public java.util.List<Zones> getZones() {
return this.zones;
}
public static final class Builder {
private String requestId;
private java.util.List<Zones> zones;
private Builder() {
}
private Builder(ListEnhanhcedNatGatewayAvailableZonesResponseBody model) {
this.requestId = model.requestId;
this.zones = model.zones;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8AE6F367-52EA-535D-9A3D-EF23D70527C8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The list of zones.</p>
*/
public Builder zones(java.util.List<Zones> zones) {
this.zones = zones;
return this;
}
public ListEnhanhcedNatGatewayAvailableZonesResponseBody build() {
return new ListEnhanhcedNatGatewayAvailableZonesResponseBody(this);
}
}
/**
*
* {@link ListEnhanhcedNatGatewayAvailableZonesResponseBody} extends {@link TeaModel}
*
* <p>ListEnhanhcedNatGatewayAvailableZonesResponseBody</p>
*/
public static class Zones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private Zones(Builder builder) {
this.localName = builder.localName;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Zones create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String localName;
private String zoneId;
private Builder() {
}
private Builder(Zones model) {
this.localName = model.localName;
this.zoneId = model.zoneId;
}
/**
* <p>The name of the zone.</p>
*
* <strong>example:</strong>
* <p>Dubai Zone A</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The ID of the zone where the instance is deployed.</p>
*
* <strong>example:</strong>
* <p>me-east-1a</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public Zones build() {
return new Zones(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListFullNatEntriesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListFullNatEntriesRequest} extends {@link RequestModel}
*
* <p>ListFullNatEntriesRequest</p>
*/
public class ListFullNatEntriesRequest 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("FullNatEntryId")
private String fullNatEntryId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FullNatEntryNames")
private java.util.List<String> fullNatEntryNames;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FullNatTableId")
private String fullNatTableId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpProtocol")
private String ipProtocol;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Long maxResults;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIp")
private String natIp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NatIpPort")
private String natIpPort;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceIds")
private java.util.List<String> networkInterfaceIds;
@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 ListFullNatEntriesRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.fullNatEntryId = builder.fullNatEntryId;
this.fullNatEntryNames = builder.fullNatEntryNames;
this.fullNatTableId = builder.fullNatTableId;
this.ipProtocol = builder.ipProtocol;
this.maxResults = builder.maxResults;
this.natGatewayId = builder.natGatewayId;
this.natIp = builder.natIp;
this.natIpPort = builder.natIpPort;
this.networkInterfaceIds = builder.networkInterfaceIds;
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 ListFullNatEntriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return fullNatEntryId
*/
public String getFullNatEntryId() {
return this.fullNatEntryId;
}
/**
* @return fullNatEntryNames
*/
public java.util.List<String> getFullNatEntryNames() {
return this.fullNatEntryNames;
}
/**
* @return fullNatTableId
*/
public String getFullNatTableId() {
return this.fullNatTableId;
}
/**
* @return ipProtocol
*/
public String getIpProtocol() {
return this.ipProtocol;
}
/**
* @return maxResults
*/
public Long getMaxResults() {
return this.maxResults;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @return natIp
*/
public String getNatIp() {
return this.natIp;
}
/**
* @return natIpPort
*/
public String getNatIpPort() {
return this.natIpPort;
}
/**
* @return networkInterfaceIds
*/
public java.util.List<String> getNetworkInterfaceIds() {
return this.networkInterfaceIds;
}
/**
* @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<ListFullNatEntriesRequest, Builder> {
private String clientToken;
private String fullNatEntryId;
private java.util.List<String> fullNatEntryNames;
private String fullNatTableId;
private String ipProtocol;
private Long maxResults;
private String natGatewayId;
private String natIp;
private String natIpPort;
private java.util.List<String> networkInterfaceIds;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ListFullNatEntriesRequest request) {
super(request);
this.clientToken = request.clientToken;
this.fullNatEntryId = request.fullNatEntryId;
this.fullNatEntryNames = request.fullNatEntryNames;
this.fullNatTableId = request.fullNatTableId;
this.ipProtocol = request.ipProtocol;
this.maxResults = request.maxResults;
this.natGatewayId = request.natGatewayId;
this.natIp = request.natIp;
this.natIpPort = request.natIpPort;
this.networkInterfaceIds = request.networkInterfaceIds;
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 token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p>
* <blockquote>
* <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>5A2CFF0E-5718-45B5-9D4D-70B3FF3898</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the FULLNAT entry that you want to query.</p>
*
* <strong>example:</strong>
* <p>fullnat-gw8fz23jezpbblf1j****</p>
*/
public Builder fullNatEntryId(String fullNatEntryId) {
this.putQueryParameter("FullNatEntryId", fullNatEntryId);
this.fullNatEntryId = fullNatEntryId;
return this;
}
/**
* <p>The name of the FULLNAT entry that you want to query. You can specify at most 20 names.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
*/
public Builder fullNatEntryNames(java.util.List<String> fullNatEntryNames) {
this.putQueryParameter("FullNatEntryNames", fullNatEntryNames);
this.fullNatEntryNames = fullNatEntryNames;
return this;
}
/**
* <p>The ID of the FULLNAT table to which the FULLNAT entries to be queried belong.</p>
* <blockquote>
* <p> You must specify at least one of <strong>FullNatTableId</strong> and <strong>NatGatewayId</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>fulltb-gw88z7hhlv43rmb26****</p>
*/
public Builder fullNatTableId(String fullNatTableId) {
this.putQueryParameter("FullNatTableId", fullNatTableId);
this.fullNatTableId = fullNatTableId;
return this;
}
/**
* <p>The protocol of the packets that are forwarded by the port. Valid values:</p>
* <ul>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder ipProtocol(String ipProtocol) {
this.putQueryParameter("IpProtocol", ipProtocol);
this.ipProtocol = ipProtocol;
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 ID of the NAT gateway.</p>
* <blockquote>
* <p> You must specify at least one of <strong>FullNatTableId</strong> and <strong>NatGatewayId</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ngw-bp1uewa15k4iy5770****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.putQueryParameter("NatGatewayId", natGatewayId);
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>The NAT IP address that provides address translation in FULLNAT entries.</p>
*
* <strong>example:</strong>
* <p>10.0.XX.XX</p>
*/
public Builder natIp(String natIp) {
this.putQueryParameter("NatIp", natIp);
this.natIp = natIp;
return this;
}
/**
* <p>The frontend port to be modified in the mapping of FULLNAT port. Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
*
* <strong>example:</strong>
* <p>443</p>
*/
public Builder natIpPort(String natIpPort) {
this.putQueryParameter("NatIpPort", natIpPort);
this.natIpPort = natIpPort;
return this;
}
/**
* <p>The ID of the elastic network interface (ENI) that you want to query.</p>
*/
public Builder networkInterfaceIds(java.util.List<String> networkInterfaceIds) {
this.putQueryParameter("NetworkInterfaceIds", networkInterfaceIds);
this.networkInterfaceIds = networkInterfaceIds;
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 the <strong>NextToken</strong> parameter.</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 to which the FULLNAT entries to be queried belong.</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 ListFullNatEntriesRequest build() {
return new ListFullNatEntriesRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListFullNatEntriesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListFullNatEntriesResponse} extends {@link TeaModel}
*
* <p>ListFullNatEntriesResponse</p>
*/
public class ListFullNatEntriesResponse 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 ListFullNatEntriesResponseBody body;
private ListFullNatEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListFullNatEntriesResponse 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 ListFullNatEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListFullNatEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListFullNatEntriesResponseBody body);
@Override
ListFullNatEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListFullNatEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListFullNatEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListFullNatEntriesResponse 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(ListFullNatEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListFullNatEntriesResponse build() {
return new ListFullNatEntriesResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListFullNatEntriesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListFullNatEntriesResponseBody} extends {@link TeaModel}
*
* <p>ListFullNatEntriesResponseBody</p>
*/
public class ListFullNatEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FullNatEntries")
private java.util.List<FullNatEntries> fullNatEntries;
@com.aliyun.core.annotation.NameInMap("FullNatTableId")
private String fullNatTableId;
@com.aliyun.core.annotation.NameInMap("MaxResults")
private Long maxResults;
@com.aliyun.core.annotation.NameInMap("NatGatewayId")
private String natGatewayId;
@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 ListFullNatEntriesResponseBody(Builder builder) {
this.fullNatEntries = builder.fullNatEntries;
this.fullNatTableId = builder.fullNatTableId;
this.maxResults = builder.maxResults;
this.natGatewayId = builder.natGatewayId;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListFullNatEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return fullNatEntries
*/
public java.util.List<FullNatEntries> getFullNatEntries() {
return this.fullNatEntries;
}
/**
* @return fullNatTableId
*/
public String getFullNatTableId() {
return this.fullNatTableId;
}
/**
* @return maxResults
*/
public Long getMaxResults() {
return this.maxResults;
}
/**
* @return natGatewayId
*/
public String getNatGatewayId() {
return this.natGatewayId;
}
/**
* @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<FullNatEntries> fullNatEntries;
private String fullNatTableId;
private Long maxResults;
private String natGatewayId;
private String nextToken;
private String requestId;
private Long totalCount;
private Builder() {
}
private Builder(ListFullNatEntriesResponseBody model) {
this.fullNatEntries = model.fullNatEntries;
this.fullNatTableId = model.fullNatTableId;
this.maxResults = model.maxResults;
this.natGatewayId = model.natGatewayId;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The information about the FULLNAT entries that are queried.</p>
*/
public Builder fullNatEntries(java.util.List<FullNatEntries> fullNatEntries) {
this.fullNatEntries = fullNatEntries;
return this;
}
/**
* <p>The ID of the FULLNAT table to which the queried FULLNAT entries belong.</p>
*
* <strong>example:</strong>
* <p>fullnat-gw8fz23jezpbblf1j****</p>
*/
public Builder fullNatTableId(String fullNatTableId) {
this.fullNatTableId = fullNatTableId;
return this;
}
/**
* <p>The maximum number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder maxResults(Long maxResults) {
this.maxResults = maxResults;
return this;
}
/**
* <p>The ID of the VPC NAT gateway.</p>
*
* <strong>example:</strong>
* <p>ngw-gw8054kn57y3hq3bv****</p>
*/
public Builder natGatewayId(String natGatewayId) {
this.natGatewayId = natGatewayId;
return this;
}
/**
* <p>Indicates whether the token for the next query exists. Valid values:</p>
* <ul>
* <li>If the value of <strong>NextToken</strong> is empty, no next queries are 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 request ID.</p>
*
* <strong>example:</strong>
* <p>F03E41F6-1A74-311F-8D98-124EEE9F37B8</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The number of FULLNAT entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public ListFullNatEntriesResponseBody build() {
return new ListFullNatEntriesResponseBody(this);
}
}
/**
*
* {@link ListFullNatEntriesResponseBody} extends {@link TeaModel}
*
* <p>ListFullNatEntriesResponseBody</p>
*/
public static class FullNatEntries extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccessIp")
private String accessIp;
@com.aliyun.core.annotation.NameInMap("AccessPort")
private String accessPort;
@com.aliyun.core.annotation.NameInMap("CreationTime")
private String creationTime;
@com.aliyun.core.annotation.NameInMap("FullNatEntryDescription")
private String fullNatEntryDescription;
@com.aliyun.core.annotation.NameInMap("FullNatEntryId")
private String fullNatEntryId;
@com.aliyun.core.annotation.NameInMap("FullNatEntryName")
private String fullNatEntryName;
@com.aliyun.core.annotation.NameInMap("FullNatEntryStatus")
private String fullNatEntryStatus;
@com.aliyun.core.annotation.NameInMap("FullNatTableId")
private String fullNatTableId;
@com.aliyun.core.annotation.NameInMap("IpProtocol")
private String ipProtocol;
@com.aliyun.core.annotation.NameInMap("NatIp")
private String natIp;
@com.aliyun.core.annotation.NameInMap("NatIpPort")
private String natIpPort;
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceType")
private String networkInterfaceType;
private FullNatEntries(Builder builder) {
this.accessIp = builder.accessIp;
this.accessPort = builder.accessPort;
this.creationTime = builder.creationTime;
this.fullNatEntryDescription = builder.fullNatEntryDescription;
this.fullNatEntryId = builder.fullNatEntryId;
this.fullNatEntryName = builder.fullNatEntryName;
this.fullNatEntryStatus = builder.fullNatEntryStatus;
this.fullNatTableId = builder.fullNatTableId;
this.ipProtocol = builder.ipProtocol;
this.natIp = builder.natIp;
this.natIpPort = builder.natIpPort;
this.networkInterfaceId = builder.networkInterfaceId;
this.networkInterfaceType = builder.networkInterfaceType;
}
public static Builder builder() {
return new Builder();
}
public static FullNatEntries create() {
return builder().build();
}
/**
* @return accessIp
*/
public String getAccessIp() {
return this.accessIp;
}
/**
* @return accessPort
*/
public String getAccessPort() {
return this.accessPort;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return fullNatEntryDescription
*/
public String getFullNatEntryDescription() {
return this.fullNatEntryDescription;
}
/**
* @return fullNatEntryId
*/
public String getFullNatEntryId() {
return this.fullNatEntryId;
}
/**
* @return fullNatEntryName
*/
public String getFullNatEntryName() {
return this.fullNatEntryName;
}
/**
* @return fullNatEntryStatus
*/
public String getFullNatEntryStatus() {
return this.fullNatEntryStatus;
}
/**
* @return fullNatTableId
*/
public String getFullNatTableId() {
return this.fullNatTableId;
}
/**
* @return ipProtocol
*/
public String getIpProtocol() {
return this.ipProtocol;
}
/**
* @return natIp
*/
public String getNatIp() {
return this.natIp;
}
/**
* @return natIpPort
*/
public String getNatIpPort() {
return this.natIpPort;
}
/**
* @return networkInterfaceId
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @return networkInterfaceType
*/
public String getNetworkInterfaceType() {
return this.networkInterfaceType;
}
public static final class Builder {
private String accessIp;
private String accessPort;
private String creationTime;
private String fullNatEntryDescription;
private String fullNatEntryId;
private String fullNatEntryName;
private String fullNatEntryStatus;
private String fullNatTableId;
private String ipProtocol;
private String natIp;
private String natIpPort;
private String networkInterfaceId;
private String networkInterfaceType;
private Builder() {
}
private Builder(FullNatEntries model) {
this.accessIp = model.accessIp;
this.accessPort = model.accessPort;
this.creationTime = model.creationTime;
this.fullNatEntryDescription = model.fullNatEntryDescription;
this.fullNatEntryId = model.fullNatEntryId;
this.fullNatEntryName = model.fullNatEntryName;
this.fullNatEntryStatus = model.fullNatEntryStatus;
this.fullNatTableId = model.fullNatTableId;
this.ipProtocol = model.ipProtocol;
this.natIp = model.natIp;
this.natIpPort = model.natIpPort;
this.networkInterfaceId = model.networkInterfaceId;
this.networkInterfaceType = model.networkInterfaceType;
}
/**
* <p>The backend IP address that is used for FULLNAT address translation in FULLNAT entries.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder accessIp(String accessIp) {
this.accessIp = accessIp;
return this;
}
/**
* <p>The backend port that is used for port mapping in FULLNAT entries. Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder accessPort(String accessPort) {
this.accessPort = accessPort;
return this;
}
/**
* <p>The time when the FULLNAT entry was created.</p>
*
* <strong>example:</strong>
* <p>2021-10-27T02:44:40Z</p>
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* <p>The description of the FULLNAT entry.</p>
* <p>The name must be 2 to 128 characters in length. It must start with a letter but cannot start with <code>http://</code> or <code>https://</code>.</p>
*
* <strong>example:</strong>
* <p>abc</p>
*/
public Builder fullNatEntryDescription(String fullNatEntryDescription) {
this.fullNatEntryDescription = fullNatEntryDescription;
return this;
}
/**
* <p>The ID of the FULLNAT entry.</p>
*
* <strong>example:</strong>
* <p>fullnat-gw8fz23jezpbblf1j****</p>
*/
public Builder fullNatEntryId(String fullNatEntryId) {
this.fullNatEntryId = fullNatEntryId;
return this;
}
/**
* <p>The name of the FULLNAT entry.</p>
* <p>The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder fullNatEntryName(String fullNatEntryName) {
this.fullNatEntryName = fullNatEntryName;
return this;
}
/**
* <p>The status of the FULLNAT entry. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Deleting</strong></li>
* <li><strong>Deleted</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder fullNatEntryStatus(String fullNatEntryStatus) {
this.fullNatEntryStatus = fullNatEntryStatus;
return this;
}
/**
* <p>The ID of the FULLNAT table to which the FULLNAT entry belongs.</p>
*
* <strong>example:</strong>
* <p>fulltb-gw88z7hhlv43rmb26****</p>
*/
public Builder fullNatTableId(String fullNatTableId) {
this.fullNatTableId = fullNatTableId;
return this;
}
/**
* <p>The protocol of the packets that are forwarded. Valid values:</p>
* <ul>
* <li><strong>TCP</strong></li>
* <li><strong>UDP</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>TCP</p>
*/
public Builder ipProtocol(String ipProtocol) {
this.ipProtocol = ipProtocol;
return this;
}
/**
* <p>The NAT IP address that is used for address translation in FULLNAT entries.</p>
*
* <strong>example:</strong>
* <p>192.168.XX.XX</p>
*/
public Builder natIp(String natIp) {
this.natIp = natIp;
return this;
}
/**
* <p>The frontend port that is used for port mapping in FULLNAT entries. Valid values: <strong>1</strong> to <strong>65535</strong>.</p>
*
* <strong>example:</strong>
* <p>80</p>
*/
public Builder natIpPort(String natIpPort) {
this.natIpPort = natIpPort;
return this;
}
/**
* <p>The ID of the elastic network interface (ENI).</p>
*
* <strong>example:</strong>
* <p>eni-gw80wedm8pq0tpr2****</p>
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* <p>The type of the ENI. The value is set to <strong>Endpoint</strong>, which indicates a reverse endpoint.</p>
*
* <strong>example:</strong>
* <p>Endpoint</p>
*/
public Builder networkInterfaceType(String networkInterfaceType) {
this.networkInterfaceType = networkInterfaceType;
return this;
}
public FullNatEntries build() {
return new FullNatEntries(this);
}
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListGatewayRouteTableEntriesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListGatewayRouteTableEntriesRequest} extends {@link RequestModel}
*
* <p>ListGatewayRouteTableEntriesRequest</p>
*/
public class ListGatewayRouteTableEntriesRequest 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("GatewayRouteTableId")
@com.aliyun.core.annotation.Validation(required = true)
private String gatewayRouteTableId;
@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("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private ListGatewayRouteTableEntriesRequest(Builder builder) {
super(builder);
this.destinationCidrBlock = builder.destinationCidrBlock;
this.gatewayRouteTableId = builder.gatewayRouteTableId;
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;
}
public static Builder builder() {
return new Builder();
}
public static ListGatewayRouteTableEntriesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return gatewayRouteTableId
*/
public String getGatewayRouteTableId() {
return this.gatewayRouteTableId;
}
/**
* @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;
}
public static final class Builder extends Request.Builder<ListGatewayRouteTableEntriesRequest, Builder> {
private String destinationCidrBlock;
private String gatewayRouteTableId;
private Integer maxResults;
private String nextToken;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ListGatewayRouteTableEntriesRequest request) {
super(request);
this.destinationCidrBlock = request.destinationCidrBlock;
this.gatewayRouteTableId = request.gatewayRouteTableId;
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;
}
/**
* <p>The destination CIDR block of the route entry in the gateway route table.</p>
*
* <strong>example:</strong>
* <p>192.168.0.5</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.putQueryParameter("DestinationCidrBlock", destinationCidrBlock);
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The ID of the gateway route table that you want to query.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vtb-5ts0ohchwkp3dydt2****</p>
*/
public Builder gatewayRouteTableId(String gatewayRouteTableId) {
this.putQueryParameter("GatewayRouteTableId", gatewayRouteTableId);
this.gatewayRouteTableId = gatewayRouteTableId;
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 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 route table.</p>
* <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent list of regions.</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;
}
/**
* 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 ListGatewayRouteTableEntriesRequest build() {
return new ListGatewayRouteTableEntriesRequest(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListGatewayRouteTableEntriesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListGatewayRouteTableEntriesResponse} extends {@link TeaModel}
*
* <p>ListGatewayRouteTableEntriesResponse</p>
*/
public class ListGatewayRouteTableEntriesResponse 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 ListGatewayRouteTableEntriesResponseBody body;
private ListGatewayRouteTableEntriesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static ListGatewayRouteTableEntriesResponse 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 ListGatewayRouteTableEntriesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<ListGatewayRouteTableEntriesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(ListGatewayRouteTableEntriesResponseBody body);
@Override
ListGatewayRouteTableEntriesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<ListGatewayRouteTableEntriesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private ListGatewayRouteTableEntriesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(ListGatewayRouteTableEntriesResponse 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(ListGatewayRouteTableEntriesResponseBody body) {
this.body = body;
return this;
}
@Override
public ListGatewayRouteTableEntriesResponse build() {
return new ListGatewayRouteTableEntriesResponse(this);
}
}
}
|
0
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
|
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ListGatewayRouteTableEntriesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.vpc20160428.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListGatewayRouteTableEntriesResponseBody} extends {@link TeaModel}
*
* <p>ListGatewayRouteTableEntriesResponseBody</p>
*/
public class ListGatewayRouteTableEntriesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("GatewayRouteEntryModels")
private java.util.List<GatewayRouteEntryModels> gatewayRouteEntryModels;
@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 ListGatewayRouteTableEntriesResponseBody(Builder builder) {
this.gatewayRouteEntryModels = builder.gatewayRouteEntryModels;
this.nextToken = builder.nextToken;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static ListGatewayRouteTableEntriesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return gatewayRouteEntryModels
*/
public java.util.List<GatewayRouteEntryModels> getGatewayRouteEntryModels() {
return this.gatewayRouteEntryModels;
}
/**
* @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<GatewayRouteEntryModels> gatewayRouteEntryModels;
private String nextToken;
private String requestId;
private String totalCount;
private Builder() {
}
private Builder(ListGatewayRouteTableEntriesResponseBody model) {
this.gatewayRouteEntryModels = model.gatewayRouteEntryModels;
this.nextToken = model.nextToken;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
}
/**
* <p>The details of the routes in the gateway route table.</p>
*/
public Builder gatewayRouteEntryModels(java.util.List<GatewayRouteEntryModels> gatewayRouteEntryModels) {
this.gatewayRouteEntryModels = gatewayRouteEntryModels;
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 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>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</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 ListGatewayRouteTableEntriesResponseBody build() {
return new ListGatewayRouteTableEntriesResponseBody(this);
}
}
/**
*
* {@link ListGatewayRouteTableEntriesResponseBody} extends {@link TeaModel}
*
* <p>ListGatewayRouteTableEntriesResponseBody</p>
*/
public static class NextHops extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Enabled")
private String enabled;
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@com.aliyun.core.annotation.NameInMap("Weight")
private String weight;
private NextHops(Builder builder) {
this.enabled = builder.enabled;
this.nextHopId = builder.nextHopId;
this.nextHopType = builder.nextHopType;
this.weight = builder.weight;
}
public static Builder builder() {
return new Builder();
}
public static NextHops create() {
return builder().build();
}
/**
* @return enabled
*/
public String getEnabled() {
return this.enabled;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return weight
*/
public String getWeight() {
return this.weight;
}
public static final class Builder {
private String enabled;
private String nextHopId;
private String nextHopType;
private String weight;
private Builder() {
}
private Builder(NextHops model) {
this.enabled = model.enabled;
this.nextHopId = model.nextHopId;
this.nextHopType = model.nextHopType;
this.weight = model.weight;
}
/**
* <p>Indicates whether the route is available. Valid values:</p>
* <ul>
* <li><strong>0</strong>: unavailable</li>
* <li><strong>1</strong>: available</li>
* </ul>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder enabled(String enabled) {
this.enabled = enabled;
return this;
}
/**
* <p>The ID of the next hop.</p>
*
* <strong>example:</strong>
* <p>vpn-bp10zyaph5cc8b7c7****</p>
*/
public Builder nextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The type of the next hop. Valid values:</p>
* <ul>
* <li><strong>Instance</strong> (default): an ECS instance</li>
* <li><strong>HaVip</strong>: a high-availability virtual IP address (HaVip).</li>
* <li><strong>VpnGateway</strong>: a VPN gateway</li>
* <li><strong>NatGateway</strong>: a NAT gateway</li>
* <li><strong>NetworkInterface</strong>: a secondary ENI</li>
* <li><strong>RouterInterface</strong>: a router interface</li>
* <li><strong>IPv6Gateway</strong>: an IPv6 gateway</li>
* <li><strong>Attachment</strong>: a transit router</li>
* </ul>
*
* <strong>example:</strong>
* <p>Instance</p>
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
/**
* <p>The weight of the route.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder weight(String weight) {
this.weight = weight;
return this;
}
public NextHops build() {
return new NextHops(this);
}
}
}
/**
*
* {@link ListGatewayRouteTableEntriesResponseBody} extends {@link TeaModel}
*
* <p>ListGatewayRouteTableEntriesResponseBody</p>
*/
public static class GatewayRouteEntryModels extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DestinationCidrBlock")
private String destinationCidrBlock;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("NextHopId")
private String nextHopId;
@com.aliyun.core.annotation.NameInMap("NextHopType")
private String nextHopType;
@com.aliyun.core.annotation.NameInMap("NextHops")
private java.util.List<NextHops> nextHops;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private GatewayRouteEntryModels(Builder builder) {
this.description = builder.description;
this.destinationCidrBlock = builder.destinationCidrBlock;
this.name = builder.name;
this.nextHopId = builder.nextHopId;
this.nextHopType = builder.nextHopType;
this.nextHops = builder.nextHops;
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static GatewayRouteEntryModels create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return destinationCidrBlock
*/
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return nextHopId
*/
public String getNextHopId() {
return this.nextHopId;
}
/**
* @return nextHopType
*/
public String getNextHopType() {
return this.nextHopType;
}
/**
* @return nextHops
*/
public java.util.List<NextHops> getNextHops() {
return this.nextHops;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String description;
private String destinationCidrBlock;
private String name;
private String nextHopId;
private String nextHopType;
private java.util.List<NextHops> nextHops;
private String status;
private Builder() {
}
private Builder(GatewayRouteEntryModels model) {
this.description = model.description;
this.destinationCidrBlock = model.destinationCidrBlock;
this.name = model.name;
this.nextHopId = model.nextHopId;
this.nextHopType = model.nextHopType;
this.nextHops = model.nextHops;
this.status = model.status;
}
/**
* <p>The name of the route entry.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The destination CIDR block of the route.</p>
*
* <strong>example:</strong>
* <p>192.168.0.5</p>
*/
public Builder destinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
/**
* <p>The name of the route entry.</p>
* <p>The name must be 2 to 128 characters in length and can contain letter, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.</p>
*
* <strong>example:</strong>
* <p>name</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the next hop.</p>
*
* <strong>example:</strong>
* <p>i-bp11gcl0sm85t9bi****</p>
*/
public Builder nextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
/**
* <p>The type of the next hop. Valid values:</p>
* <ul>
* <li><strong>EcsInstance</strong>: Elastic Compute Service (ECS) instance</li>
* <li><strong>NetworkInterface</strong>: elastic network interfaces (ENIs).</li>
* <li><strong>Local</strong>: local next hop</li>
* </ul>
*
* <strong>example:</strong>
* <p>EcsInstance</p>
*/
public Builder nextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
/**
* <p>The information about the next hop.</p>
*/
public Builder nextHops(java.util.List<NextHops> nextHops) {
this.nextHops = nextHops;
return this;
}
/**
* <p>The status of the route entry. Valid values:</p>
* <ul>
* <li><strong>Pending</strong></li>
* <li><strong>Available</strong></li>
* <li><strong>Modifying</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public GatewayRouteEntryModels build() {
return new GatewayRouteEntryModels(this);
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.