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/ModifyVpcPrefixListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpcPrefixListResponseBody} extends {@link TeaModel} * * <p>ModifyVpcPrefixListResponseBody</p> */ public class ModifyVpcPrefixListResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PrefixListId") private String prefixListId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVpcPrefixListResponseBody(Builder builder) { this.prefixListId = builder.prefixListId; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVpcPrefixListResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return prefixListId */ public String getPrefixListId() { return this.prefixListId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String prefixListId; private String requestId; private Builder() { } private Builder(ModifyVpcPrefixListResponseBody model) { this.prefixListId = model.prefixListId; this.requestId = model.requestId; } /** * <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 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 ModifyVpcPrefixListResponseBody build() { return new ModifyVpcPrefixListResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnAttachmentAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnAttachmentAttributeRequest} extends {@link RequestModel} * * <p>ModifyVpnAttachmentAttributeRequest</p> */ public class ModifyVpnAttachmentAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoConfigRoute") private Boolean autoConfigRoute; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpConfig") private String bgpConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp") private Boolean enableTunnelsBgp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConfig") private String healthCheckConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IkeConfig") private String ikeConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpsecConfig") private String ipsecConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NetworkType") private String networkType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoteCaCert") private String remoteCaCert; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoteSubnet") private String remoteSubnet; @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.Body @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; private ModifyVpnAttachmentAttributeRequest(Builder builder) { super(builder); this.autoConfigRoute = builder.autoConfigRoute; this.bgpConfig = builder.bgpConfig; this.clientToken = builder.clientToken; this.customerGatewayId = builder.customerGatewayId; this.effectImmediately = builder.effectImmediately; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.enableTunnelsBgp = builder.enableTunnelsBgp; this.healthCheckConfig = builder.healthCheckConfig; this.ikeConfig = builder.ikeConfig; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.name = builder.name; this.networkType = builder.networkType; this.ownerAccount = builder.ownerAccount; this.regionId = builder.regionId; this.remoteCaCert = builder.remoteCaCert; this.remoteSubnet = builder.remoteSubnet; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static ModifyVpnAttachmentAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return autoConfigRoute */ public Boolean getAutoConfigRoute() { return this.autoConfigRoute; } /** * @return bgpConfig */ public String getBgpConfig() { return this.bgpConfig; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return enableTunnelsBgp */ public Boolean getEnableTunnelsBgp() { return this.enableTunnelsBgp; } /** * @return healthCheckConfig */ public String getHealthCheckConfig() { return this.healthCheckConfig; } /** * @return ikeConfig */ public String getIkeConfig() { return this.ikeConfig; } /** * @return ipsecConfig */ public String getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return networkType */ public String getNetworkType() { return this.networkType; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remoteCaCert */ public String getRemoteCaCert() { return this.remoteCaCert; } /** * @return remoteSubnet */ public String getRemoteSubnet() { return this.remoteSubnet; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tunnelOptionsSpecification */ public java.util.List<TunnelOptionsSpecification> getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<ModifyVpnAttachmentAttributeRequest, Builder> { private Boolean autoConfigRoute; private String bgpConfig; private String clientToken; private String customerGatewayId; private Boolean effectImmediately; private Boolean enableDpd; private Boolean enableNatTraversal; private Boolean enableTunnelsBgp; private String healthCheckConfig; private String ikeConfig; private String ipsecConfig; private String localSubnet; private String name; private String networkType; private String ownerAccount; private String regionId; private String remoteCaCert; private String remoteSubnet; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification; private String vpnConnectionId; private Builder() { super(); } private Builder(ModifyVpnAttachmentAttributeRequest request) { super(request); this.autoConfigRoute = request.autoConfigRoute; this.bgpConfig = request.bgpConfig; this.clientToken = request.clientToken; this.customerGatewayId = request.customerGatewayId; this.effectImmediately = request.effectImmediately; this.enableDpd = request.enableDpd; this.enableNatTraversal = request.enableNatTraversal; this.enableTunnelsBgp = request.enableTunnelsBgp; this.healthCheckConfig = request.healthCheckConfig; this.ikeConfig = request.ikeConfig; this.ipsecConfig = request.ipsecConfig; this.localSubnet = request.localSubnet; this.name = request.name; this.networkType = request.networkType; this.ownerAccount = request.ownerAccount; this.regionId = request.regionId; this.remoteCaCert = request.remoteCaCert; this.remoteSubnet = request.remoteSubnet; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tunnelOptionsSpecification = request.tunnelOptionsSpecification; this.vpnConnectionId = request.vpnConnectionId; } /** * <p>Specifies whether to automatically configure routes. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoConfigRoute(Boolean autoConfigRoute) { this.putQueryParameter("AutoConfigRoute", autoConfigRoute); this.autoConfigRoute = autoConfigRoute; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>BGP configuration:</p> * <ul> * <li><p><strong>BgpConfig.EnableBgp</strong>: specifies whether to enable BGP. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>BgpConfig.LocalAsn</strong>: the autonomous system number (ASN) on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>.</p> * <p>You can enter a value in two segments separated by a period (.). Each segment is 16 bits in length. Enter the number in each segment in decimal format.</p> * <p>For example, if you enter 123.456, the ASN is 8061384. The ASN is calculated by using the following formula: 123 × 65536 + 456 = 8061384.</p> * </li> * <li><p><strong>BgpConfig.TunnelCidr</strong>: The CIDR block of the IPsec tunnel. The CIDR block must fall into 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p> * </li> * <li><p><strong>LocalBgpIp</strong>: the BGP address on the Alibaba Cloud side. It must be an IP address that falls within the CIDR block of the IPsec tunnel.</p> * </li> * </ul> * <blockquote> * <ul> * <li>Before you add BGP configurations, we recommend that you learn about how BGP works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/445767.html">Configure BGP dynamic routing</a>.</li> * <li>We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. Refer to the relevant documentation for the private ASN range.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>{&quot;EnableBgp&quot;:&quot;true&quot;,&quot;LocalAsn&quot;:&quot;45104&quot;,&quot;TunnelCidr&quot;:&quot;169.254.11.0/30&quot;,&quot;LocalBgpIp&quot;:&quot;169.254.11.1&quot;}</p> */ public Builder bgpConfig(String bgpConfig) { this.putQueryParameter("BgpConfig", bgpConfig); this.bgpConfig = bgpConfig; 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 value of <strong>RequestId</strong> as the value of <strong>ClientToken</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-4266****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The customer gateways to be associated with the IPsec-VPN connections.</p> * <blockquote> * <p> Only single-tunnel IPsec-VPN connections support this parameter.</p> * </blockquote> * * <strong>example:</strong> * <p>cgw-p0w2jemrcj5u61un8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.putQueryParameter("CustomerGatewayId", customerGatewayId); this.customerGatewayId = customerGatewayId; return this; } /** * <p>Specifies whether to immediately start IPsec negotiations after the configuration takes effect. Valid values:</p> * <ul> * <li><strong>true</strong>: immediately starts IPsec negotiations after the configuration is complete.</li> * <li><strong>false</strong>: starts IPsec negotiations when inbound traffic is detected.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.putQueryParameter("EffectImmediately", effectImmediately); this.effectImmediately = effectImmediately; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>Specifies whether to enable dead peer detection (DPD). Valid values:</p> * <ul> * <li><strong>true</strong>: enables DPD. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within the specified period of time, the connection fails. In this case, ISAKMP SA and IPsec SA are deleted, along with the security tunnel.</li> * <li><strong>false</strong>: disables DPD. The initiator of the IPsec-VPN connection does not send DPD packets.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.putQueryParameter("EnableDpd", enableDpd); this.enableDpd = enableDpd; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>Specifies whether to enable NAT traversal. Valid values:</p> * <ul> * <li><strong>true</strong>: enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li> * <li><strong>false</strong>: disables NAT traversal.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.putQueryParameter("EnableNatTraversal", enableNatTraversal); this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>You can specify this parameter if you modify the configuration of a dual-tunnel IPsec-VPN connection.</p> * <p>Specifies whether to enable the BGP feature for the tunnel. Valid values: <strong>true</strong> and <strong>false</strong>.</p> * <blockquote> * <p> Before you add BGP configurations, we recommend that you learn about how BGP works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/445767.html">Configure BGP dynamic routing</a>.</p> * </blockquote> * * <strong>example:</strong> * <p>false</p> */ public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) { this.putQueryParameter("EnableTunnelsBgp", enableTunnelsBgp); this.enableTunnelsBgp = enableTunnelsBgp; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>The health check configurations:</p> * <ul> * <li><p><strong>HealthCheckConfig.enable</strong>: specifies whether to enable the health check feature. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * </li> * <li><p><strong>HealthCheckConfig.dip</strong>: the destination IP address configured for health checks. Specify the IP address of the data center with which the VPC can access through the IPsec-VPN connection.</p> * </li> * <li><p><strong>HealthCheckConfig.sip</strong>: the source IP address configured for health checks. The IP address of the VPC with which the data center can access through the IPsec-VPN connection.</p> * </li> * <li><p><strong>HealthCheckConfig.interval</strong>: the interval between two consecutive health checks. Unit: seconds.</p> * </li> * <li><p><strong>HealthCheckConfig.retry:</strong> the maximum number of health check retries.</p> * </li> * <li><p><strong>HealthCheckConfig.Policy</strong>: specifies whether to withdraw advertised routes when health checks fail. Valid values:</p> * <ul> * <li><strong>revoke_route</strong></li> * <li><strong>reserve_route</strong></li> * </ul> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;enable&quot;:&quot;true&quot;,&quot;dip&quot;:&quot;192.168.1.1&quot;,&quot;sip&quot;:&quot;10.1.1.1&quot;,&quot;interval&quot;:&quot;3&quot;,&quot;retry&quot;:&quot;3&quot;,&quot;Policy&quot;: &quot;revoke_route&quot;}</p> */ public Builder healthCheckConfig(String healthCheckConfig) { this.putQueryParameter("HealthCheckConfig", healthCheckConfig); this.healthCheckConfig = healthCheckConfig; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>The configuration of Phase 1 negotiations:</p> * <ul> * <li><p><strong>IkeConfig.Psk</strong>: The pre-shared key that is used for identity authentication between the Alibaba Cloud IPsec connection and the on-premises data center.</p> * <ul> * <li>The key must be 1 to 100 characters in length, and can contain digits, and letters. The key cannot contain spaces. <code>~!`@#$%^&amp;*()_-+={}[]|;:\&quot;,.&lt;&gt;/?</code></li> * <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/120374.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</li> * </ul> * <blockquote> * <p>The pre-shared key of the IPsec-VPN connection must be the same as the authentication key of the on-premises data center. Otherwise, connections between the on-premises data center and the VPN gateway cannot be established.</p> * </blockquote> * </li> * <li><p><strong>IkeConfig.IkeVersion</strong>: the version of the Internet Key Exchange (IKE) protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkeMode</strong>: the negotiation mode. Valid values: <strong>main</strong> and <strong>aggressive</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkeEncAlg:</strong> the encryption algorithm that is used in Phase 1 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkeAuthAlg</strong>: the authentication algorithm that is used in Phase 1 negotiations. Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkePfs</strong>: the Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkeLifetime</strong>: the SA lifetime as a result of Phase 1 negotiations. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>.</p> * </li> * <li><p><strong>IkeConfig.LocalId</strong>: the identifier on the Alibaba Cloud side. The identifier cannot exceed 100 characters in length and cannot contain spaces.</p> * </li> * <li><p><strong>IkeConfig.RemoteId</strong>: the identifier of the data center. It cannot exceed 100 characters in length and cannot contain spaces.</p> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;Psk&quot;:&quot;1234****&quot;,&quot;IkeVersion&quot;:&quot;ikev1&quot;,&quot;IkeMode&quot;:&quot;main&quot;,&quot;IkeEncAlg&quot;:&quot;aes&quot;,&quot;IkeAuthAlg&quot;:&quot;sha1&quot;,&quot;IkePfs&quot;:&quot;group2&quot;,&quot;IkeLifetime&quot;:86400,&quot;LocalId&quot;:&quot;47.XX.XX.1&quot;,&quot;RemoteId&quot;:&quot;47.XX.XX.2&quot;}</p> */ public Builder ikeConfig(String ikeConfig) { this.putQueryParameter("IkeConfig", ikeConfig); this.ikeConfig = ikeConfig; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>The configuration of Phase 2 negotiations:</p> * <ul> * <li><strong>IpsecConfig.IpsecEncAlg:</strong> the encryption algorithm that is used in Phase 2 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</li> * <li><strong>IpsecConfig. IpsecAuthAlg:</strong> the authentication algorithm that is used in Phase 2 negotiations. Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</li> * <li><strong>IpsecConfig. IpsecPfs:</strong> the Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiations. Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</li> * <li><strong>IkeConfig.IkeLifetime</strong>: the SA lifetime determined by Phase 2 negotiations. Unit: seconds. Valid values: <strong>0</strong> to <strong>86400</strong>.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;IpsecEncAlg&quot;:&quot;aes&quot;,&quot;IpsecAuthAlg&quot;:&quot;sha1&quot;,&quot;IpsecPfs&quot;:&quot;group2&quot;,&quot;IpsecLifetime&quot;:86400}</p> */ public Builder ipsecConfig(String ipsecConfig) { this.putQueryParameter("IpsecConfig", ipsecConfig); this.ipsecConfig = ipsecConfig; return this; } /** * <p>The CIDR block of the virtual private cloud (VPC) that communicates with the data center. The CIDR block is used in Phase 2 negotiations.</p> * <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.</p> * <p>The following routing modes are supported:</p> * <ul> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li> * </ul> * * <strong>example:</strong> * <p>10.1.1.0/24,10.1.2.0/24</p> */ public Builder localSubnet(String localSubnet) { this.putQueryParameter("LocalSubnet", localSubnet); this.localSubnet = localSubnet; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * <p>The name must be 1 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * <p>The network type of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>public</strong>: an encrypted connection over the Internet</li> * <li><strong>private</strong>: an encrypted connection over private networks</li> * </ul> * * <strong>example:</strong> * <p>public</p> */ public Builder networkType(String networkType) { this.putQueryParameter("NetworkType", networkType); this.networkType = networkType; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * <p>The ID of the region in which the IPsec-VPN connection is established.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The peer CA certificate when a ShangMi (SM) VPN gateway is used to create the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>c20ycDI1NnYxIENBIChURVNUIFN****</p> */ public Builder remoteCaCert(String remoteCaCert) { this.putQueryParameter("RemoteCaCert", remoteCaCert); this.remoteCaCert = remoteCaCert; return this; } /** * <p>The CIDR block of the data center that communicates with the VPC. This CIDR block is used in Phase 2 negotiations.</p> * <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.3.0/24,192.168.4.0/24.</p> * <p>The following routing modes are supported:</p> * <ul> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li> * </ul> * * <strong>example:</strong> * <p>10.1.3.0/24,10.1.4.0/24</p> */ public Builder remoteSubnet(String remoteSubnet) { this.putQueryParameter("RemoteSubnet", remoteSubnet); this.remoteSubnet = remoteSubnet; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tunnel configurations.</p> * <p>You can specify parameters in the <strong>TunnelOptionsSpecification</strong> array when you modify the configurations of an IPsec-VPN connection in dual-tunnel mode. You can modify the configurations of the two tunnels of the IPsec-VPN connection.</p> */ public Builder tunnelOptionsSpecification(java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification) { this.putBodyParameter("TunnelOptionsSpecification", tunnelOptionsSpecification); this.tunnelOptionsSpecification = tunnelOptionsSpecification; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-p0w5112fgnl2ihlmf****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.putQueryParameter("VpnConnectionId", vpnConnectionId); this.vpnConnectionId = vpnConnectionId; return this; } @Override public ModifyVpnAttachmentAttributeRequest build() { return new ModifyVpnAttachmentAttributeRequest(this); } } /** * * {@link ModifyVpnAttachmentAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeRequest</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private Long localAsn; private String localBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The autonomous system number (ASN) of the tunnel on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>. Default value: <strong>45104</strong>.</p> * <blockquote> * <p> We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. Refer to the relevant documentation for the private ASN range.</p> * </blockquote> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address of the tunnel on the Alibaba Cloud side. The address is an IP address that falls within the BGP CIDR block.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The BGP CIDR block of the tunnel. The CIDR block must fall within 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p> * <blockquote> * <p> The two tunnels of an IPsec connection must use different CIDR blocks.</p> * </blockquote> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeRequest</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm that is used in Phase 1 negotiations. Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm that is used in Phase 1 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The SA lifetime as a result of Phase 1 negotiations. Unit: seconds.</p> * <p>Valid values: <strong>0</strong> to <strong>86400</strong>.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The negotiation mode of IKE. Valid values: <strong>main</strong> and <strong>aggressive</strong>.</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster with a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>.</p> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and provides better support for scenarios with multiple CIDR blocks.</p> * * <strong>example:</strong> * <p>ikev2</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the tunnel on the Alibaba Cloud side, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain spaces.</p> * <p><strong>LocalId</strong> supports fully qualified domain names (FQDNs). If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p> * * <strong>example:</strong> * <p>47.XX.XX.1</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key that is used for identity authentication between the tunnel and the tunnel peer.</p> * <ul> * <li>The key must be 1 to 100 characters in length, and can contain digits, and letters. The key cannot contain spaces. <code>~!\`@#$%^&amp;*()_-+={}[]|;:\&quot;,.&lt;&gt;/?</code></li> * <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526939.html">DescribeVpnAttachments</a> operation to query the pre-shared key that is automatically generated by the system.</li> * </ul> * <blockquote> * <p> The tunnel and the tunnel peer must use the same pre-shared key. Otherwise, the tunnel cannot be established.</p> * </blockquote> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the tunnel peer, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain spaces.</p> * <p><strong>RemoteId</strong> supports FQDNs. If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p> * * <strong>example:</strong> * <p>47.XX.XX.2</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeRequest</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Integer ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Integer getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Integer ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm that is used in Phase 2 negotiations. Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The SA lifetime as a result of Phase 2 negotiations. Unit: seconds.</p> * <p>Valid values: <strong>0</strong> to <strong>86400</strong>.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Integer ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeRequest</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIndex") private Integer tunnelIndex; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; private TunnelOptionsSpecification(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIndex = builder.tunnelIndex; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIndex */ public Integer getTunnelIndex() { return this.tunnelIndex; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } public static final class Builder { private String customerGatewayId; private Boolean enableDpd; private Boolean enableNatTraversal; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private Integer tunnelIndex; private TunnelIpsecConfig tunnelIpsecConfig; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIndex = model.tunnelIndex; this.tunnelIpsecConfig = model.tunnelIpsecConfig; } /** * <p>The ID of the customer gateway that is associated with the tunnel.</p> * <blockquote> * <p> This parameter is only supported in dual-tunnel IPsec-VPN connections.</p> * </blockquote> * * <strong>example:</strong> * <p>cgw-p0w2jemrcj5u61un8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Specifies whether to enable the Dead Peer Detection (DPD) feature for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong>: enables DPD. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within the specified period of time, the connection fails. In this case, ISAKMP SA and IPsec SA are deleted along with the security tunnel.</li> * <li><strong>false</strong>: disables DPD. The initiator of the IPsec-VPN connection does not send DPD packets.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Specifies whether to enable NAT traversal for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong>: enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li> * <li><strong>false</strong>: disables NAT traversal.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>Add BGP configurations for the tunnel.</p> * <blockquote> * <p> If you enable BGP for an IPsec-VPN connection, you must set <strong>EnableTunnelsBgp</strong> parameter to <strong>true</strong>.</p> * </blockquote> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-0jod7plwf2a0o9lvu****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The order in which the tunnel was created.</p> * <ul> * <li><strong>1</strong>: Tunnel 1.</li> * <li><strong>2</strong>: Tunnel 2.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder tunnelIndex(Integer tunnelIndex) { this.tunnelIndex = tunnelIndex; return this; } /** * <p>The configuration of Phase 2 negotiations.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnAttachmentAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnAttachmentAttributeResponse} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponse</p> */ public class ModifyVpnAttachmentAttributeResponse 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 ModifyVpnAttachmentAttributeResponseBody body; private ModifyVpnAttachmentAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnAttachmentAttributeResponse 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 ModifyVpnAttachmentAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnAttachmentAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnAttachmentAttributeResponseBody body); @Override ModifyVpnAttachmentAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnAttachmentAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnAttachmentAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnAttachmentAttributeResponse 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(ModifyVpnAttachmentAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVpnAttachmentAttributeResponse build() { return new ModifyVpnAttachmentAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnAttachmentAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public class ModifyVpnAttachmentAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AttachInstanceId") private String attachInstanceId; @com.aliyun.core.annotation.NameInMap("AttachType") private String attachType; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp") private Boolean enableTunnelsBgp; @com.aliyun.core.annotation.NameInMap("IkeConfig") private IkeConfig ikeConfig; @com.aliyun.core.annotation.NameInMap("IpsecConfig") private IpsecConfig ipsecConfig; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("NetworkType") private String networkType; @com.aliyun.core.annotation.NameInMap("RemoteSubnet") private String remoteSubnet; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification; @com.aliyun.core.annotation.NameInMap("VcoHealthCheck") private VcoHealthCheck vcoHealthCheck; @com.aliyun.core.annotation.NameInMap("VpnBgpConfig") private VpnBgpConfig vpnBgpConfig; @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private ModifyVpnAttachmentAttributeResponseBody(Builder builder) { this.attachInstanceId = builder.attachInstanceId; this.attachType = builder.attachType; this.createTime = builder.createTime; this.customerGatewayId = builder.customerGatewayId; this.description = builder.description; this.effectImmediately = builder.effectImmediately; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.enableTunnelsBgp = builder.enableTunnelsBgp; this.ikeConfig = builder.ikeConfig; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.name = builder.name; this.networkType = builder.networkType; this.remoteSubnet = builder.remoteSubnet; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.status = builder.status; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vcoHealthCheck = builder.vcoHealthCheck; this.vpnBgpConfig = builder.vpnBgpConfig; this.vpnConnectionId = builder.vpnConnectionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ModifyVpnAttachmentAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return attachInstanceId */ public String getAttachInstanceId() { return this.attachInstanceId; } /** * @return attachType */ public String getAttachType() { return this.attachType; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return enableTunnelsBgp */ public Boolean getEnableTunnelsBgp() { return this.enableTunnelsBgp; } /** * @return ikeConfig */ public IkeConfig getIkeConfig() { return this.ikeConfig; } /** * @return ipsecConfig */ public IpsecConfig getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return networkType */ public String getNetworkType() { return this.networkType; } /** * @return remoteSubnet */ public String getRemoteSubnet() { return this.remoteSubnet; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelOptionsSpecification */ public java.util.List<TunnelOptionsSpecification> getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vcoHealthCheck */ public VcoHealthCheck getVcoHealthCheck() { return this.vcoHealthCheck; } /** * @return vpnBgpConfig */ public VpnBgpConfig getVpnBgpConfig() { return this.vpnBgpConfig; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private String attachInstanceId; private String attachType; private Long createTime; private String customerGatewayId; private String description; private Boolean effectImmediately; private Boolean enableDpd; private Boolean enableNatTraversal; private Boolean enableTunnelsBgp; private IkeConfig ikeConfig; private IpsecConfig ipsecConfig; private String localSubnet; private String name; private String networkType; private String remoteSubnet; private String requestId; private String resourceGroupId; private String spec; private String status; private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification; private VcoHealthCheck vcoHealthCheck; private VpnBgpConfig vpnBgpConfig; private String vpnConnectionId; private String vpnGatewayId; private Builder() { } private Builder(ModifyVpnAttachmentAttributeResponseBody model) { this.attachInstanceId = model.attachInstanceId; this.attachType = model.attachType; this.createTime = model.createTime; this.customerGatewayId = model.customerGatewayId; this.description = model.description; this.effectImmediately = model.effectImmediately; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.enableTunnelsBgp = model.enableTunnelsBgp; this.ikeConfig = model.ikeConfig; this.ipsecConfig = model.ipsecConfig; this.localSubnet = model.localSubnet; this.name = model.name; this.networkType = model.networkType; this.remoteSubnet = model.remoteSubnet; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.status = model.status; this.tunnelOptionsSpecification = model.tunnelOptionsSpecification; this.vcoHealthCheck = model.vcoHealthCheck; this.vpnBgpConfig = model.vpnBgpConfig; this.vpnConnectionId = model.vpnConnectionId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The ID of the Cloud Enterprise Network (CEN) instance to which the transit router associated with the IPsec-VPN connection belongs.</p> * * <strong>example:</strong> * <p>cen-c2r3m3zxkumoqz****</p> */ public Builder attachInstanceId(String attachInstanceId) { this.attachInstanceId = attachInstanceId; return this; } /** * <p>The type of the resource that is associated with the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>CEN</strong>: The IPsec-VPN connection is associated with a transit router.</li> * <li><strong>VPNGW</strong>: The IPsec-VPN connection is associated with a VPN gateway.</li> * <li><strong>NO_ASSOCIATED</strong>: The IPsec-VPN connection is not associated with any resource.</li> * </ul> * * <strong>example:</strong> * <p>CEN</p> */ public Builder attachType(String attachType) { this.attachType = attachType; return this; } /** * <p>The timestamp generated when the IPsec-VPN connection was established. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1658201810000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The ID of the customer gateway associated with the IPsec-VPN connection.</p> * <p>This parameter is returned only for single-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>cgw-p0w2jemrcj5u61un8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>The description of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>desctest</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether IPsec negotiations immediately start after the configuration takes effect. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.effectImmediately = effectImmediately; return this; } /** * <p>Indicates whether the DPD feature is enabled for the IPsec-VPN connection.</p> * <ul> * <li><strong>true</strong>: The feature is enabled.</li> * <li><strong>false</strong>: The feature is disabled.</li> * </ul> * <p>This parameter is returned only for single-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Specifies whether to enable NAT traversal for the IPsec-VPN connection.</p> * <ul> * <li><strong>true</strong>: The feature is enabled.</li> * <li><strong>false</strong>: The feature is disabled.</li> * </ul> * <p>This parameter is returned only for single-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>Specifies whether to enable Border Gateway Protocol (BGP) for tunnels.</p> * <ul> * <li><strong>true</strong>: The feature is enabled.</li> * <li><strong>false</strong>: The feature is disabled.</li> * </ul> * <p>This parameter is returned only by dual-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>false</p> */ public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) { this.enableTunnelsBgp = enableTunnelsBgp; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> * <p><strong>IkeConfig</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder ikeConfig(IkeConfig ikeConfig) { this.ikeConfig = ikeConfig; return this; } /** * <p>The configuration of Phase 2 negotiations.</p> * <p><strong>IpsecConfig</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder ipsecConfig(IpsecConfig ipsecConfig) { this.ipsecConfig = ipsecConfig; return this; } /** * <p>The CIDR block on the Alibaba Cloud side that communicates with the on-premises data center is required, such as CIDR blocks of VPCs.</p> * * <strong>example:</strong> * <p>10.1.1.0/24,10.1.2.0/24</p> */ public Builder localSubnet(String localSubnet) { this.localSubnet = localSubnet; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The network type of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>public</strong>: an encrypted connection over the Internet</li> * <li><strong>private</strong>: an encrypted connection over private networks</li> * </ul> * * <strong>example:</strong> * <p>public</p> */ public Builder networkType(String networkType) { this.networkType = networkType; return this; } /** * <p>The CIDR block of the on-premises data center that communicates with Alibaba Cloud is required.</p> * * <strong>example:</strong> * <p>10.1.3.0/24,10.1.4.0/24</p> */ public Builder remoteSubnet(String remoteSubnet) { this.remoteSubnet = remoteSubnet; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>35822A84-867F-3936-A2E6-A4C4E3ED11C0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the IPsec-VPN connection belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource groups.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The bandwidth specification of the IPsec-VPN connection.</p> * <p>A value of <strong>M</strong> in the response indicates <strong>Mbit/s</strong>.</p> * * <strong>example:</strong> * <p>1000M</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The state of the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>ike_sa_not_established</strong>: Phase 1 negotiations failed.</li> * <li><strong>ike_sa_established</strong>: Phase 1 negotiations succeeded.</li> * <li><strong>ipsec_sa_not_established</strong>: Phase 2 negotiations failed.</li> * <li><strong>ipsec_sa_established</strong>: Phase 2 negotiations succeeded.</li> * </ul> * * <strong>example:</strong> * <p>ike_sa_not_established</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The tunnel configurations of the IPsec-VPN connection.</p> * <p><strong>TunnelOptionsSpecification</strong> parameters are returned only for dual-tunnel IPsec-VPN connections.</p> */ public Builder tunnelOptionsSpecification(java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification) { this.tunnelOptionsSpecification = tunnelOptionsSpecification; return this; } /** * <p>The health check configurations of the IPsec-VPN connection.</p> * <p><strong>VcoHealthCheck</strong> parameters are returned only for single-tunnel IPsec-VPC connections.</p> */ public Builder vcoHealthCheck(VcoHealthCheck vcoHealthCheck) { this.vcoHealthCheck = vcoHealthCheck; return this; } /** * <p>The BGP configurations of the IPsec-VPN connection.</p> * <p><strong>VpnBgpConfig</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder vpnBgpConfig(VpnBgpConfig vpnBgpConfig) { this.vpnBgpConfig = vpnBgpConfig; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-p0w5112fgnl2ihlmf****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The ID of the VPN gateway that is associated with the IPsec-VPN connection.</p> * <p><strong>vpn-not-exist</strong>: The IPsec-VPN connection is not associated with a VPN Gateway.</p> * * <strong>example:</strong> * <p>vpn-p0wa1c1018pmeb6cu****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public ModifyVpnAttachmentAttributeResponseBody build() { return new ModifyVpnAttachmentAttributeResponseBody(this); } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</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 that is used in Phase 1 negotiations.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm that is used in Phase 1 negotiations.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The SA lifetime that is determined by Phase 1 negotiations. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster with 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 key exchange algorithm that is used in Phase 1 negotiations.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * <ul> * <li><strong>ikev1</strong></li> * <li><strong>ikev2</strong></li> * </ul> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and provides better support for scenarios with multiple CIDR blocks.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the IPsec-VPN connection on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.XX.XX.1</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>Enter a pre-shared key that is used for identity authentication between Alibaba Cloud and the data center.</p> * <blockquote> * <p> The pre-shared key of the IPsec-VPN connection must be the same as the authentication key of the on-premises data center. Otherwise, connections between the on-premises data center and Alibaba Cloud cannot be established.</p> * </blockquote> * * <strong>example:</strong> * <p>1234***</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the IPsec-VPN connection on the data center side.</p> * * <strong>example:</strong> * <p>47.XX.XX.2</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public IkeConfig build() { return new IkeConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</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 that is used in Phase 2 negotiations.</p> * * <strong>example:</strong> * <p>md5</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm that is used in Phase 2 negotiations.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The SA lifetime that is determined by Phase 2 negotiations. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Long ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The DH key exchange algorithm that is used in Phase 2 negotiations.</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 ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private Long localAsn; private String localBgpIp; private Long peerAsn; private String peerBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN of the tunnel peer.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder peerAsn(Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the tunnel peer.</p> * * <strong>example:</strong> * <p>169.254.10.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The BGP CIDR block of the tunnel.</p> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm 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 negotiation mode of IKE. Valid values:</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster with a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman (DH) group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * * <strong>example:</strong> * <p>ikev2</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.XX.XX.1</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The peer identifier.</p> * * <strong>example:</strong> * <p>47.XX.XX.2</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Long ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Long getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Long ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm 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 TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("Role") private String role; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIndex") private Integer tunnelIndex; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; private TunnelOptionsSpecification(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.internetIp = builder.internetIp; this.role = builder.role; this.state = builder.state; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIndex = builder.tunnelIndex; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return role */ public String getRole() { return this.role; } /** * @return state */ public String getState() { return this.state; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIndex */ public Integer getTunnelIndex() { return this.tunnelIndex; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } public static final class Builder { private String customerGatewayId; private Boolean enableDpd; private Boolean enableNatTraversal; private String internetIp; private String role; private String state; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private Integer tunnelIndex; private TunnelIpsecConfig tunnelIpsecConfig; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.internetIp = model.internetIp; this.role = model.role; this.state = model.state; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIndex = model.tunnelIndex; this.tunnelIpsecConfig = model.tunnelIpsecConfig; } /** * <p>The ID of the customer gateway that is associated with the tunnel.</p> * * <strong>example:</strong> * <p>cgw-p0w2jemrcj5u61un8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Whether the DPD feature is enabled for the tunnel.</p> * <ul> * <li><strong>true</strong>: The feature is enabled.</li> * <li><strong>false</strong>: The feature is disabled.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether traversal feature is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong>: The feature is enabled.</li> * <li><strong>false</strong>: The feature is disabled.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>The IP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.XX.XX.66</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The tunnel role. Valid values:</p> * <ul> * <li><strong>master</strong>: The tunnel is an active tunnel.</li> * <li><strong>slave</strong>: The tunnel is a standby tunnel.</li> * </ul> * * <strong>example:</strong> * <p>master</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The status of the tunnel. Valid values:</p> * <ul> * <li><strong>active</strong>: The tunnel is active.</li> * <li><strong>updating</strong>: The tunnel is being updated.</li> * <li><strong>deleting:</strong> The tunnel is being deleted.</li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>BGP configuration.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-0jod7plwf2a0o9lvu****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The configurations of Phase 1 negotiations.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The order in which the tunnel was created.</p> * <ul> * <li><strong>1</strong>: Tunnel 1.</li> * <li><strong>2</strong>: Tunnel 2.</li> * </ul> * * <strong>example:</strong> * <p>1</p> */ public Builder tunnelIndex(Integer tunnelIndex) { this.tunnelIndex = tunnelIndex; return this; } /** * <p>The configurations of Phase 2 negotiations.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public static class VcoHealthCheck extends TeaModel { @com.aliyun.core.annotation.NameInMap("Dip") private String dip; @com.aliyun.core.annotation.NameInMap("Enable") private String enable; @com.aliyun.core.annotation.NameInMap("Interval") private Integer interval; @com.aliyun.core.annotation.NameInMap("Policy") private String policy; @com.aliyun.core.annotation.NameInMap("Retry") private Integer retry; @com.aliyun.core.annotation.NameInMap("Sip") private String sip; private VcoHealthCheck(Builder builder) { this.dip = builder.dip; this.enable = builder.enable; this.interval = builder.interval; this.policy = builder.policy; this.retry = builder.retry; this.sip = builder.sip; } public static Builder builder() { return new Builder(); } public static VcoHealthCheck create() { return builder().build(); } /** * @return dip */ public String getDip() { return this.dip; } /** * @return enable */ public String getEnable() { return this.enable; } /** * @return interval */ public Integer getInterval() { return this.interval; } /** * @return policy */ public String getPolicy() { return this.policy; } /** * @return retry */ public Integer getRetry() { return this.retry; } /** * @return sip */ public String getSip() { return this.sip; } public static final class Builder { private String dip; private String enable; private Integer interval; private String policy; private Integer retry; private String sip; private Builder() { } private Builder(VcoHealthCheck model) { this.dip = model.dip; this.enable = model.enable; this.interval = model.interval; this.policy = model.policy; this.retry = model.retry; this.sip = model.sip; } /** * <p>The destination IP address that is used for health checks.</p> * * <strong>example:</strong> * <p>192.168.1.1</p> */ public Builder dip(String dip) { this.dip = dip; return this; } /** * <p>Indicates whether the health check feature is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enable(String enable) { this.enable = enable; return this; } /** * <p>The interval between two consecutive health check retries. Unit: seconds.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder interval(Integer interval) { this.interval = interval; return this; } /** * <p>Indicates whether advertised routes are withdrawn when the health check fails. Valid values:</p> * <ul> * <li><strong>revoke_route</strong>: Advertised routes are withdrawn.</li> * <li><strong>reserve_route</strong>: Advertised routes are not withdrawn.</li> * </ul> * * <strong>example:</strong> * <p>revoke_route</p> */ public Builder policy(String policy) { this.policy = policy; return this; } /** * <p>The maximum number of health check retries.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder retry(Integer retry) { this.retry = retry; return this; } /** * <p>The source IP address that is used for health checks.</p> * * <strong>example:</strong> * <p>10.1.1.1</p> */ public Builder sip(String sip) { this.sip = sip; return this; } public VcoHealthCheck build() { return new VcoHealthCheck(this); } } } /** * * {@link ModifyVpnAttachmentAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnAttachmentAttributeResponseBody</p> */ public static class VpnBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("EnableBgp") private String enableBgp; @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private VpnBgpConfig(Builder builder) { this.enableBgp = builder.enableBgp; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.status = builder.status; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static VpnBgpConfig create() { return builder().build(); } /** * @return enableBgp */ public String getEnableBgp() { return this.enableBgp; } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private String enableBgp; private Long localAsn; private String localBgpIp; private Long peerAsn; private String peerBgpIp; private String status; private String tunnelCidr; private Builder() { } private Builder(VpnBgpConfig model) { this.enableBgp = model.enableBgp; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.status = model.status; this.tunnelCidr = model.tunnelCidr; } /** * <p>Indicates whether BGP is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(String enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>45104</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.11.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN on the data center side.</p> * * <strong>example:</strong> * <p>65535</p> */ public Builder peerAsn(Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address on the data center side.</p> * * <strong>example:</strong> * <p>169.254.11.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The negotiation state of BGP. Valid values:</p> * <ul> * <li><strong>success</strong>: normal</li> * <li><strong>false</strong>: abnormal</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The CIDR block of the IPsec tunnel.</p> * * <strong>example:</strong> * <p>169.254.11.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public VpnBgpConfig build() { return new VpnBgpConfig(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnConnectionAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnConnectionAttributeRequest} extends {@link RequestModel} * * <p>ModifyVpnConnectionAttributeRequest</p> */ public class ModifyVpnConnectionAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoConfigRoute") private Boolean autoConfigRoute; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BgpConfig") private String bgpConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp") private Boolean enableTunnelsBgp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("HealthCheckConfig") private String healthCheckConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IkeConfig") private String ikeConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpsecConfig") private String ipsecConfig; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RemoteSubnet") private String remoteSubnet; @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.Body @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnConnectionId") @com.aliyun.core.annotation.Validation(required = true) private String vpnConnectionId; private ModifyVpnConnectionAttributeRequest(Builder builder) { super(builder); this.autoConfigRoute = builder.autoConfigRoute; this.bgpConfig = builder.bgpConfig; this.clientToken = builder.clientToken; this.effectImmediately = builder.effectImmediately; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.enableTunnelsBgp = builder.enableTunnelsBgp; this.healthCheckConfig = builder.healthCheckConfig; this.ikeConfig = builder.ikeConfig; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.remoteCaCertificate = builder.remoteCaCertificate; this.remoteSubnet = builder.remoteSubnet; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vpnConnectionId = builder.vpnConnectionId; } public static Builder builder() { return new Builder(); } public static ModifyVpnConnectionAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return autoConfigRoute */ public Boolean getAutoConfigRoute() { return this.autoConfigRoute; } /** * @return bgpConfig */ public String getBgpConfig() { return this.bgpConfig; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return enableTunnelsBgp */ public Boolean getEnableTunnelsBgp() { return this.enableTunnelsBgp; } /** * @return healthCheckConfig */ public String getHealthCheckConfig() { return this.healthCheckConfig; } /** * @return ikeConfig */ public String getIkeConfig() { return this.ikeConfig; } /** * @return ipsecConfig */ public String getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return remoteSubnet */ public String getRemoteSubnet() { return this.remoteSubnet; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tunnelOptionsSpecification */ public java.util.List<TunnelOptionsSpecification> getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } public static final class Builder extends Request.Builder<ModifyVpnConnectionAttributeRequest, Builder> { private Boolean autoConfigRoute; private String bgpConfig; private String clientToken; private Boolean effectImmediately; private Boolean enableDpd; private Boolean enableNatTraversal; private Boolean enableTunnelsBgp; private String healthCheckConfig; private String ikeConfig; private String ipsecConfig; private String localSubnet; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String remoteCaCertificate; private String remoteSubnet; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification; private String vpnConnectionId; private Builder() { super(); } private Builder(ModifyVpnConnectionAttributeRequest request) { super(request); this.autoConfigRoute = request.autoConfigRoute; this.bgpConfig = request.bgpConfig; this.clientToken = request.clientToken; this.effectImmediately = request.effectImmediately; this.enableDpd = request.enableDpd; this.enableNatTraversal = request.enableNatTraversal; this.enableTunnelsBgp = request.enableTunnelsBgp; this.healthCheckConfig = request.healthCheckConfig; this.ikeConfig = request.ikeConfig; this.ipsecConfig = request.ipsecConfig; this.localSubnet = request.localSubnet; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.remoteCaCertificate = request.remoteCaCertificate; this.remoteSubnet = request.remoteSubnet; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tunnelOptionsSpecification = request.tunnelOptionsSpecification; this.vpnConnectionId = request.vpnConnectionId; } /** * <p>Specifies whether to automatically advertise routes. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoConfigRoute(Boolean autoConfigRoute) { this.putQueryParameter("AutoConfigRoute", autoConfigRoute); this.autoConfigRoute = autoConfigRoute; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>BGP configuration:</p> * <ul> * <li><p><strong>BgpConfig.EnableBgp</strong>: specifies whether to enable BGP. Valid values: <strong>true</strong> and <strong>false</strong>.</p> * </li> * <li><p><strong>BgpConfig.LocalAsn:</strong> the autonomous system number (ASN) on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>.</p> * <p>You can enter a value in two segments separated by a period (.). Each segment is 16 bits in length. Enter the number in each segment in decimal format.</p> * <p>For example, if you enter 123.456, the ASN is 8061384. The ASN is calculated by using the following formula: 123 × 65536 + 456 = 8061384.</p> * </li> * <li><p><strong>BgpConfig.TunnelCidr</strong>: The CIDR block of the IPsec tunnel. The CIDR block must fall within 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p> * <blockquote> * <p>The CIDR block of the IPsec tunnel for each IPsec-VPN connection on a VPN gateway must be unique.</p> * </blockquote> * </li> * <li><p><strong>LocalBgpIp</strong>: the BGP address on the Alibaba Cloud side. It must be an IP address that falls within the CIDR block of the IPsec tunnel.</p> * </li> * </ul> * <blockquote> * <ul> * <li>This parameter is required when the VPN gateway has dynamic BGP enabled.</li> * <li>Before you add BGP configurations, we recommend that you learn about how BGP dynamic routing works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/2638220.html">Configure BGP dynamic routing</a>.</li> * <li>We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. For information about the range of private ASNs, see the relevant documentation.</li> * </ul> * </blockquote> * * <strong>example:</strong> * <p>{&quot;EnableBgp&quot;:&quot;true&quot;,&quot;LocalAsn&quot;:&quot;65530&quot;,&quot;TunnelCidr&quot;:&quot;169.254.11.0/30&quot;,&quot;LocalBgpIp&quot;:&quot;169.254.11.1&quot;}</p> */ public Builder bgpConfig(String bgpConfig) { this.putQueryParameter("BgpConfig", bgpConfig); this.bgpConfig = bgpConfig; 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 value of <strong>RequestId</strong> as the value of <strong>ClientToken</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to immediately start IPsec negotiations after the configuration takes effect. Valid values:</p> * <ul> * <li><strong>true</strong>: immediately starts IPsec negotiations after the configuration takes effect.</li> * <li><strong>false</strong>: IPsec negotiations start when inbound traffic is detected.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.putQueryParameter("EffectImmediately", effectImmediately); this.effectImmediately = effectImmediately; return this; } /** * <p>You can specify this parameter if you modify the configuration of a single-tunnel IPsec-VPN connection.</p> * <p>Specifies whether to enable the dead peer detection (DPD) feature. Valid values:</p> * <ul> * <li><strong>true:</strong>: enables the DPD feature. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within a specific period of time, the connection fails. Then, the ISAKMP SA, IPsec SA, and IPsec tunnel are deleted.</li> * <li><strong>false</strong>: disables the DPD feature. The initiator of the IPsec-VPN connection does not send DPD packets.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.putQueryParameter("EnableDpd", enableDpd); this.enableDpd = enableDpd; return this; } /** * <p>You can specify this parameter if you modify the configuration of a single-tunnel IPsec-VPN connection.</p> * <p>Specifies whether to enable NAT traversal. Valid values:</p> * <ul> * <li><strong>true</strong> After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec tunnel.</li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.putQueryParameter("EnableNatTraversal", enableNatTraversal); this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>You can specify this parameter if you modify the configuration of a dual-tunnel IPsec-VPN connection.</p> * <p>Specifies whether to enable BGP for the tunnel. Valid values: <strong>true</strong> and <strong>false</strong>.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) { this.putQueryParameter("EnableTunnelsBgp", enableTunnelsBgp); this.enableTunnelsBgp = enableTunnelsBgp; return this; } /** * <p>You can specify this parameter if you modify the configuration of a single-tunnel IPsec-VPN connection.</p> * <p>The health check configuration:</p> * <ul> * <li><strong>HealthCheckConfig.enable</strong>: specifies whether to enable health checks. Valid values: <strong>true</strong> and <strong>false</strong>.</li> * <li><strong>HealthCheckConfig.dip</strong>: the destination IP address that is used for health checks.</li> * <li><strong>HealthCheckConfig.sip</strong>: the source IP address that is used for health checks.</li> * <li><strong>HealthCheckConfig.interval</strong>: the interval between two consecutive health checks. Unit: seconds.</li> * <li><strong>HealthCheckConfig.retry</strong>: the maximum number of health check retries.</li> * </ul> * * <strong>example:</strong> * <p>{&quot;enable&quot;:&quot;true&quot;,&quot;dip&quot;:&quot;192.168.1.1&quot;,&quot;sip&quot;:&quot;10.1.1.1&quot;,&quot;interval&quot;:&quot;3&quot;,&quot;retry&quot;:&quot;3&quot;}</p> */ public Builder healthCheckConfig(String healthCheckConfig) { this.putQueryParameter("HealthCheckConfig", healthCheckConfig); this.healthCheckConfig = healthCheckConfig; return this; } /** * <p>This parameter is supported if you modify the configurations of an IPsec-VPN connection in single-tunnel mode.</p> * <p>The configurations of Phase 1 negotiations:</p> * <ul> * <li><p><strong>IkeConfig.Psk</strong>: The pre-shared key that is used for identity authentication between the VPN gateway and the on-premises data center.</p> * <ul> * <li>The key cannot contain space characters. The key must be 1 to 100 characters in length, and can contain digits, letters, and the following special characters: <code>~!`@#$%^&amp;*()_-+={}[]|;:\&quot;,.&lt;&gt;/?</code></li> * <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526951.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</li> * </ul> * <blockquote> * <p>The pre-shared key of the IPsec-VPN connection must be the same as the authentication key of the on-premises data center. Otherwise, connections between the on-premises data center and the VPN gateway cannot be established.</p> * </blockquote> * </li> * <li><p><strong>IkeConfig.IkeVersion</strong>: the version of the Internet Key Exchange (IKE) protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>.</p> * <p>Compared with IKEv1, IKEv2 simplifies the security association (SA) negotiation process and provides better support for scenarios with multiple CIDR blocks.</p> * </li> * <li><p><strong>IkeConfig.IkeMode</strong>: the negotiation mode of IKE. Valid values: <strong>main</strong> and <strong>aggressive</strong>.</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive:</strong> This mode supports faster negotiations and a higher success rate.</li> * </ul> * </li> * <li><p><strong>IkeConfig.IkeEncAlg</strong>: the encryption algorithm that is used in Phase 1 negotiations.</p> * <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkeAuthAlg</strong>: the authentication algorithm that is used in Phase 1 negotiations.</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkePfs</strong>: the Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * </li> * <li><p><strong>IkeConfig.IkeLifetime</strong>: the SA lifetime as a result of Phase 1 negotiations. Unit: seconds Valid values: <strong>0 to 86400</strong>.</p> * </li> * <li><p><strong>IkeConfig.LocalId</strong>: the identifier of the VPN gateway. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the VPN gateway.</p> * </li> * <li><p><strong>IkeConfig.RemoteId</strong>: the identifier of the customer gateway. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the customer gateway.</p> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;Psk&quot;:&quot;pgw6dy7d1i8i****&quot;,&quot;IkeVersion&quot;:&quot;ikev1&quot;,&quot;IkeMode&quot;:&quot;main&quot;,&quot;IkeEncAlg&quot;:&quot;aes&quot;,&quot;IkeAuthAlg&quot;:&quot;sha1&quot;,&quot;IkePfs&quot;:&quot;group2&quot;,&quot;IkeLifetime&quot;:86400,&quot;LocalId&quot;:&quot;116.64.XX.XX&quot;,&quot;RemoteId&quot;:&quot;139.18.XX.XX&quot;}</p> */ public Builder ikeConfig(String ikeConfig) { this.putQueryParameter("IkeConfig", ikeConfig); this.ikeConfig = ikeConfig; return this; } /** * <p>You can specify this parameter if you modify the configuration of a single-tunnel IPsec-VPN connection.</p> * <p>The configuration of Phase 2 negotiations:</p> * <ul> * <li><p><strong>IpsecConfig.IpsecEncAlg</strong>: the encryption algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * </li> * <li><p><strong>IpsecConfig. IpsecAuthAlg</strong>: the authentication algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * </li> * <li><p><strong>IpsecConfig. IpsecPfs</strong>: the DH key exchange algorithm that is used in Phase 1 negotiations. If you specify this parameter, packets of all protocols are forwarded. Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * </li> * <li><p><strong>IpsecConfig. IpsecLifetime:</strong> the SA lifetime that is determined by Phase 2 negotiations. Unit: seconds. Valid values: <strong>0 to 86400</strong>.</p> * </li> * </ul> * * <strong>example:</strong> * <p>{&quot;IpsecEncAlg&quot;:&quot;aes&quot;,&quot;IpsecAuthAlg&quot;:&quot;sha1&quot;,&quot;IpsecPfs&quot;:&quot;group2&quot;,&quot;IpsecLifetime&quot;:86400}</p> */ public Builder ipsecConfig(String ipsecConfig) { this.putQueryParameter("IpsecConfig", ipsecConfig); this.ipsecConfig = ipsecConfig; return this; } /** * <p>The CIDR block used to connect the virtual private cloud (VPC) to the data center. The CIDR block is used in Phase 2 negotiations.</p> * <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.</p> * <p>The following routing modes are supported:</p> * <ul> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li> * </ul> * * <strong>example:</strong> * <p>10.1.1.0/24,10.1.2.0/24</p> */ public Builder localSubnet(String localSubnet) { this.putQueryParameter("LocalSubnet", localSubnet); this.localSubnet = localSubnet; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * <p>The name must be 1 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region in which 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; } /** * <p>You can specify this parameter if you modify the configuration of a single-tunnel IPsec-VPN connection.</p> * <p>If the VPN gateway uses a ShangMi (SM) certificate, you can modify the CA certificate used by the IPsec peer.</p> * <p>If the VPN gateway does not use an SM certificate, you cannot specify this parameter.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.putQueryParameter("RemoteCaCertificate", remoteCaCertificate); this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The CIDR block on the data center side. This CIDR block is used in Phase 2 negotiations.</p> * <p>Separate multiple CIDR blocks with commas (,). Example: 192.168.3.0/24,192.168.4.0/24.</p> * <p>The following routing modes are supported:</p> * <ul> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to 0.0.0.0/0, the routing mode of the IPsec-VPN connection is set to Destination Routing Mode.</li> * <li>If you set <strong>LocalSubnet</strong> and <strong>RemoteSubnet</strong> to specific CIDR blocks, the routing mode of the IPsec-VPN connection is set to Protected Data Flows.</li> * </ul> * * <strong>example:</strong> * <p>10.2.1.0/24,10.2.2.0/24</p> */ public Builder remoteSubnet(String remoteSubnet) { this.putQueryParameter("RemoteSubnet", remoteSubnet); this.remoteSubnet = remoteSubnet; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The tunnel configurations.</p> * <p>You can specify parameters in the <strong>TunnelOptionsSpecification</strong> array when you modify the configurations of an IPsec-VPN connection in dual-tunnel mode. You can modify the configurations of both the active and standby tunnels of the IPsec-VPN connection.</p> */ public Builder tunnelOptionsSpecification(java.util.List<TunnelOptionsSpecification> tunnelOptionsSpecification) { this.putBodyParameter("TunnelOptionsSpecification", tunnelOptionsSpecification); this.tunnelOptionsSpecification = tunnelOptionsSpecification; 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 ModifyVpnConnectionAttributeRequest build() { return new ModifyVpnConnectionAttributeRequest(this); } } /** * * {@link ModifyVpnConnectionAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeRequest</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private Long localAsn; private String localBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The ASN of the tunnel on the Alibaba Cloud side. Valid values: <strong>1</strong> to <strong>4294967295</strong>. Default value: <strong>45104</strong>.</p> * <blockquote> * <p> You can specify this parameter only if <strong>EnableTunnelsBgp</strong> is set to <strong>true</strong>.</p> * </blockquote> * <ul> * <li><p>Before you add BGP configurations, we recommend that you learn about how BGP dynamic routing works and the limits. For more information, see <a href="https://help.aliyun.com/document_detail/2638220.html">Configure BGP dynamic routing</a>.</p> * </li> * <li><p>We recommend that you use a private ASN to establish BGP connections to Alibaba Cloud. For information about the range of private ASNs, see the relevant documentation.</p> * </li> * </ul> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address of the tunnel on the Alibaba Cloud side. The address is an IP address that falls within the BGP CIDR block.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The BGP CIDR block of the tunnel.</p> * <p>The CIDR block must fall within 169.254.0.0/16 and the mask of the CIDR block must be 30 bits in length. The CIDR block cannot be 169.254.0.0/30, 169.254.1.0/30, 169.254.2.0/30, 169.254.3.0/30, 169.254.4.0/30, 169.254.5.0/30, 169.254.6.0/30, or 169.254.169.252/30.</p> * <blockquote> * <p> The BGP CIDR block of each tunnel must be unique on a VPN gateway.</p> * </blockquote> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeRequest</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm that is used in Phase 1 negotiations.</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * * <strong>example:</strong> * <p>md5</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm that is used in Phase 1 negotiations.</p> * <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The SA lifetime as a result of Phase 1 negotiations. Unit: seconds Valid values: <strong>0</strong> to <strong>86400</strong>.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The negotiation mode of IKE. Valid values:</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive:</strong> This mode supports faster negotiations and a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Valid values: <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol. Valid values: <strong>ikev1</strong> and <strong>ikev2</strong>.</p> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and provides better support for scenarios with multiple CIDR blocks.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier on the Alibaba Cloud side, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the tunnel.</p> * <p><strong>LocalId</strong> supports fully qualified domain names (FQDNs). If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</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, which is used for identity authentication between the tunnel and the tunnel peer.</p> * <ul> * <li>The key cannot contain space characters. The key must be 1 to 100 characters in length, and can contain digits, letters, and the following special characters: <code>~!\`@#$%^&amp;*()_-+={}[]|;:\&quot;,.&lt;&gt;/?</code></li> * <li>If you do not specify a pre-shared key, the system randomly generates a 16-bit string as the pre-shared key. You can call the <a href="https://help.aliyun.com/document_detail/2526951.html">DescribeVpnConnection</a> operation to query the pre-shared key that is automatically generated by the system.</li> * </ul> * <blockquote> * <p> The tunnel and the tunnel peer must use the same pre-shared key. Otherwise, the tunnel cannot be built.</p> * </blockquote> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the tunnel peer, which is used in Phase 1 negotiations. The identifier cannot exceed 100 characters in length and cannot contain space characters. The default value is the IP address of the customer gateway that is associated with the tunnel.</p> * <p><strong>RemoteId</strong> supports FQDNs. If you use an FQDN, we recommend that you set the negotiation mode to <strong>aggressive</strong>.</p> * * <strong>example:</strong> * <p>47.42.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeRequest</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Integer ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Integer getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Integer ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>md5</strong>, <strong>sha1</strong>, <strong>sha256</strong>, <strong>sha384</strong>, and <strong>sha512</strong>.</p> * * <strong>example:</strong> * <p>md5</p> */ public Builder ipsecAuthAlg(String ipsecAuthAlg) { this.ipsecAuthAlg = ipsecAuthAlg; return this; } /** * <p>The encryption algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>aes</strong>, <strong>aes192</strong>, <strong>aes256</strong>, <strong>des</strong>, and <strong>3des</strong>.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ipsecEncAlg(String ipsecEncAlg) { this.ipsecEncAlg = ipsecEncAlg; return this; } /** * <p>The SA lifetime as a result of Phase 2 negotiations. Unit: seconds Valid values: <strong>0</strong> to <strong>86400</strong>.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ipsecLifetime(Integer ipsecLifetime) { this.ipsecLifetime = ipsecLifetime; return this; } /** * <p>The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiations.</p> * <p>Valid values: <strong>disabled</strong>, <strong>group1</strong>, <strong>group2</strong>, <strong>group5</strong>, and <strong>group14</strong>.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ipsecPfs(String ipsecPfs) { this.ipsecPfs = ipsecPfs; return this; } public TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeRequest} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeRequest</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("Role") private String role; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; private TunnelOptionsSpecification(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.remoteCaCertificate = builder.remoteCaCertificate; this.role = builder.role; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return role */ public String getRole() { return this.role; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } public static final class Builder { private String customerGatewayId; private Boolean enableDpd; private Boolean enableNatTraversal; private String remoteCaCertificate; private String role; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private TunnelIpsecConfig tunnelIpsecConfig; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.remoteCaCertificate = model.remoteCaCertificate; this.role = model.role; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIpsecConfig = model.tunnelIpsecConfig; } /** * <p>The ID of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>cgw-1nmwbpgrp7ssqm1yn****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Specifies whether to enable the Dead Peer Detection (DPD) feature for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong>: enables DPD. The initiator of the IPsec-VPN connection sends DPD packets to check the existence and availability of the peer. If no feedback is received from the peer within the specified period of time, the connection fails. In this case, ISAKMP SA and IPsec SA are deleted. The security tunnel is also deleted.</li> * <li><strong>false</strong>: disables DPD. The initiator of the IPsec-VPN connection does not send DPD packets.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Specifies whether to enable NAT traversal for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong>: enables NAT traversal. After NAT traversal is enabled, the initiator does not check the UDP ports during IKE negotiations and can automatically discover NAT gateway devices along the IPsec-VPN tunnel.</li> * <li><strong>false</strong>: disables NAT traversal.</li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>If the VPN gateway uses an SM certificate, you can modify the CA certificate used by the IPsec peer.</p> * <p>If the VPN gateway does not use an SM certificate, this parameter is not supported.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The tunnel role. Valid values:</p> * <ul> * <li><strong>master</strong>: The tunnel is an active tunnel.</li> * <li><strong>slave</strong>: The tunnel is a standby tunnel.</li> * </ul> * * <strong>example:</strong> * <p>master</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The Border Gateway Protocol (BGP) configurations of the tunnel.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-opsqc4d97wni27****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The configurations of Phase 1 negotiations.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The configurations of Phase 2 negotiations.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnConnectionAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnConnectionAttributeResponse} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponse</p> */ public class ModifyVpnConnectionAttributeResponse 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 ModifyVpnConnectionAttributeResponseBody body; private ModifyVpnConnectionAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnConnectionAttributeResponse 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 ModifyVpnConnectionAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnConnectionAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnConnectionAttributeResponseBody body); @Override ModifyVpnConnectionAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnConnectionAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnConnectionAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnConnectionAttributeResponse 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(ModifyVpnConnectionAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVpnConnectionAttributeResponse build() { return new ModifyVpnConnectionAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnConnectionAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public class ModifyVpnConnectionAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EffectImmediately") private Boolean effectImmediately; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("EnableTunnelsBgp") private Boolean enableTunnelsBgp; @com.aliyun.core.annotation.NameInMap("IkeConfig") private IkeConfig ikeConfig; @com.aliyun.core.annotation.NameInMap("IpsecConfig") private IpsecConfig ipsecConfig; @com.aliyun.core.annotation.NameInMap("LocalSubnet") private String localSubnet; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RemoteSubnet") private String remoteSubnet; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("TunnelOptionsSpecification") private TunnelOptionsSpecification tunnelOptionsSpecification; @com.aliyun.core.annotation.NameInMap("VcoHealthCheck") private VcoHealthCheck vcoHealthCheck; @com.aliyun.core.annotation.NameInMap("VpnBgpConfig") private VpnBgpConfig vpnBgpConfig; @com.aliyun.core.annotation.NameInMap("VpnConnectionId") private String vpnConnectionId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private ModifyVpnConnectionAttributeResponseBody(Builder builder) { this.createTime = builder.createTime; this.customerGatewayId = builder.customerGatewayId; this.description = builder.description; this.effectImmediately = builder.effectImmediately; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.enableTunnelsBgp = builder.enableTunnelsBgp; this.ikeConfig = builder.ikeConfig; this.ipsecConfig = builder.ipsecConfig; this.localSubnet = builder.localSubnet; this.name = builder.name; this.remoteSubnet = builder.remoteSubnet; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.tunnelOptionsSpecification = builder.tunnelOptionsSpecification; this.vcoHealthCheck = builder.vcoHealthCheck; this.vpnBgpConfig = builder.vpnBgpConfig; this.vpnConnectionId = builder.vpnConnectionId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ModifyVpnConnectionAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return effectImmediately */ public Boolean getEffectImmediately() { return this.effectImmediately; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return enableTunnelsBgp */ public Boolean getEnableTunnelsBgp() { return this.enableTunnelsBgp; } /** * @return ikeConfig */ public IkeConfig getIkeConfig() { return this.ikeConfig; } /** * @return ipsecConfig */ public IpsecConfig getIpsecConfig() { return this.ipsecConfig; } /** * @return localSubnet */ public String getLocalSubnet() { return this.localSubnet; } /** * @return name */ public String getName() { return this.name; } /** * @return remoteSubnet */ public String getRemoteSubnet() { return this.remoteSubnet; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tunnelOptionsSpecification */ public TunnelOptionsSpecification getTunnelOptionsSpecification() { return this.tunnelOptionsSpecification; } /** * @return vcoHealthCheck */ public VcoHealthCheck getVcoHealthCheck() { return this.vcoHealthCheck; } /** * @return vpnBgpConfig */ public VpnBgpConfig getVpnBgpConfig() { return this.vpnBgpConfig; } /** * @return vpnConnectionId */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private Long createTime; private String customerGatewayId; private String description; private Boolean effectImmediately; private Boolean enableDpd; private Boolean enableNatTraversal; private Boolean enableTunnelsBgp; private IkeConfig ikeConfig; private IpsecConfig ipsecConfig; private String localSubnet; private String name; private String remoteSubnet; private String requestId; private String resourceGroupId; private TunnelOptionsSpecification tunnelOptionsSpecification; private VcoHealthCheck vcoHealthCheck; private VpnBgpConfig vpnBgpConfig; private String vpnConnectionId; private String vpnGatewayId; private Builder() { } private Builder(ModifyVpnConnectionAttributeResponseBody model) { this.createTime = model.createTime; this.customerGatewayId = model.customerGatewayId; this.description = model.description; this.effectImmediately = model.effectImmediately; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.enableTunnelsBgp = model.enableTunnelsBgp; this.ikeConfig = model.ikeConfig; this.ipsecConfig = model.ipsecConfig; this.localSubnet = model.localSubnet; this.name = model.name; this.remoteSubnet = model.remoteSubnet; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.tunnelOptionsSpecification = model.tunnelOptionsSpecification; this.vcoHealthCheck = model.vcoHealthCheck; this.vpnBgpConfig = model.vpnBgpConfig; this.vpnConnectionId = model.vpnConnectionId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>The timestamp generated when the IPsec-VPN connection was established. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1492753817000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The ID of the customer gateway associated with the IPsec-VPN connection.</p> * <p>This parameter is returned only for single-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>cgw-p0w2jemrcj5u61un8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>The description of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>description</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>Indicates whether IPsec negotiations immediately start after the configuration takes effect. Valid values:</p> * <ul> * <li><strong>true</strong>: IPsec negotiations immediately start after the configuration takes effect.</li> * <li><strong>false</strong>: IPsec negotiations start when inbound traffic is detected.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder effectImmediately(Boolean effectImmediately) { this.effectImmediately = effectImmediately; return this; } /** * <p>Indicates whether the DPD feature is enabled for the IPsec-VPN connection. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * <p>This parameter is returned only for single-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled for the IPsec-VPN connection. Valid values: Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * <p>This parameter is returned only for single-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>Indicates whether BGP is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * <p>This parameter is returned only by dual-tunnel IPsec-VPN connections.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder enableTunnelsBgp(Boolean enableTunnelsBgp) { this.enableTunnelsBgp = enableTunnelsBgp; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> * <p><strong>IkeConfig</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder ikeConfig(IkeConfig ikeConfig) { this.ikeConfig = ikeConfig; return this; } /** * <p>The configuration of Phase 2 negotiations.</p> * <p><strong>IpsecConfig</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder ipsecConfig(IpsecConfig ipsecConfig) { this.ipsecConfig = ipsecConfig; return this; } /** * <p>The CIDR block on the VPC side.</p> * * <strong>example:</strong> * <p>10.1.1.0/24,10.1.2.0/24</p> */ public Builder localSubnet(String localSubnet) { this.localSubnet = localSubnet; return this; } /** * <p>The name of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>nametest</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The CIDR block on the data center side.</p> * * <strong>example:</strong> * <p>10.2.1.0/24,10.2.2.0/24</p> */ public Builder remoteSubnet(String remoteSubnet) { this.remoteSubnet = remoteSubnet; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>7DB79D0C-5F27-4AB5-995B-79BE55102F90</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the IPsec-VPN connection belongs.</p> * <p>The IPsec-VPN connection and the VPN gateway associated with the IPsec-VPN connection belong to the same resource group. You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource groups.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The tunnel configuration of the IPsec-VPN connection.</p> * <p><strong>TunnelOptionsSpecification</strong> parameters are returned only for dual-tunnel IPsec-VPN connections.</p> */ public Builder tunnelOptionsSpecification(TunnelOptionsSpecification tunnelOptionsSpecification) { this.tunnelOptionsSpecification = tunnelOptionsSpecification; return this; } /** * <p>The health check configuration.</p> * <p><strong>VcoHealthCheck</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder vcoHealthCheck(VcoHealthCheck vcoHealthCheck) { this.vcoHealthCheck = vcoHealthCheck; return this; } /** * <p>The BGP configuration.</p> * <p><strong>VpnBgpConfig</strong> parameters are returned only for single-tunnel IPsec-VPN connections.</p> */ public Builder vpnBgpConfig(VpnBgpConfig vpnBgpConfig) { this.vpnBgpConfig = vpnBgpConfig; return this; } /** * <p>The ID of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>vco-bp1bbi27hojx80nck****</p> */ public Builder vpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm2ogj****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public ModifyVpnConnectionAttributeResponseBody build() { return new ModifyVpnConnectionAttributeResponseBody(this); } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class IkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private IkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static IkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(IkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The lifetime in the IKE phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main</strong>: This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The DH group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * <ul> * <li><strong>ikev1</strong></li> * <li><strong>ikev2</strong></li> * </ul> * <p>Compared with IKEv1, IKEv2 simplifies the SA negotiation process and is more suitable for scenarios in which multiple CIDR blocks are used.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier on the VPC side. The default value is the IP address of the VPN gateway. The value can be an FQDN or an IP address.</p> * * <strong>example:</strong> * <p>116.64.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>pgw6dy7d1i8i****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier on the data center side. The default value is the IP address of the customer gateway. The value can be a FQDN or an IP address.</p> * * <strong>example:</strong> * <p>139.18.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public IkeConfig build() { return new IkeConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</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 ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class TunnelBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("LocalAsn") private Long localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Long peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private TunnelBgpConfig(Builder builder) { this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static TunnelBgpConfig create() { return builder().build(); } /** * @return localAsn */ public Long getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Long getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private Long localAsn; private String localBgpIp; private Long peerAsn; private String peerBgpIp; private String tunnelCidr; private Builder() { } private Builder(TunnelBgpConfig model) { this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.tunnelCidr = model.tunnelCidr; } /** * <p>The ASN of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Long localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.10.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN of the tunnel peer.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder peerAsn(Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the tunnel peer.</p> * * <strong>example:</strong> * <p>169.254.10.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The BGP CIDR block of the tunnel.</p> * * <strong>example:</strong> * <p>169.254.10.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public TunnelBgpConfig build() { return new TunnelBgpConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class TunnelIkeConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IkeAuthAlg") private String ikeAuthAlg; @com.aliyun.core.annotation.NameInMap("IkeEncAlg") private String ikeEncAlg; @com.aliyun.core.annotation.NameInMap("IkeLifetime") private Long ikeLifetime; @com.aliyun.core.annotation.NameInMap("IkeMode") private String ikeMode; @com.aliyun.core.annotation.NameInMap("IkePfs") private String ikePfs; @com.aliyun.core.annotation.NameInMap("IkeVersion") private String ikeVersion; @com.aliyun.core.annotation.NameInMap("LocalId") private String localId; @com.aliyun.core.annotation.NameInMap("Psk") private String psk; @com.aliyun.core.annotation.NameInMap("RemoteId") private String remoteId; private TunnelIkeConfig(Builder builder) { this.ikeAuthAlg = builder.ikeAuthAlg; this.ikeEncAlg = builder.ikeEncAlg; this.ikeLifetime = builder.ikeLifetime; this.ikeMode = builder.ikeMode; this.ikePfs = builder.ikePfs; this.ikeVersion = builder.ikeVersion; this.localId = builder.localId; this.psk = builder.psk; this.remoteId = builder.remoteId; } public static Builder builder() { return new Builder(); } public static TunnelIkeConfig create() { return builder().build(); } /** * @return ikeAuthAlg */ public String getIkeAuthAlg() { return this.ikeAuthAlg; } /** * @return ikeEncAlg */ public String getIkeEncAlg() { return this.ikeEncAlg; } /** * @return ikeLifetime */ public Long getIkeLifetime() { return this.ikeLifetime; } /** * @return ikeMode */ public String getIkeMode() { return this.ikeMode; } /** * @return ikePfs */ public String getIkePfs() { return this.ikePfs; } /** * @return ikeVersion */ public String getIkeVersion() { return this.ikeVersion; } /** * @return localId */ public String getLocalId() { return this.localId; } /** * @return psk */ public String getPsk() { return this.psk; } /** * @return remoteId */ public String getRemoteId() { return this.remoteId; } public static final class Builder { private String ikeAuthAlg; private String ikeEncAlg; private Long ikeLifetime; private String ikeMode; private String ikePfs; private String ikeVersion; private String localId; private String psk; private String remoteId; private Builder() { } private Builder(TunnelIkeConfig model) { this.ikeAuthAlg = model.ikeAuthAlg; this.ikeEncAlg = model.ikeEncAlg; this.ikeLifetime = model.ikeLifetime; this.ikeMode = model.ikeMode; this.ikePfs = model.ikePfs; this.ikeVersion = model.ikeVersion; this.localId = model.localId; this.psk = model.psk; this.remoteId = model.remoteId; } /** * <p>The authentication algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>sha1</p> */ public Builder ikeAuthAlg(String ikeAuthAlg) { this.ikeAuthAlg = ikeAuthAlg; return this; } /** * <p>The encryption algorithm in the IKE phase.</p> * * <strong>example:</strong> * <p>aes</p> */ public Builder ikeEncAlg(String ikeEncAlg) { this.ikeEncAlg = ikeEncAlg; return this; } /** * <p>The lifetime in the IKE phase. Unit: seconds.</p> * * <strong>example:</strong> * <p>86400</p> */ public Builder ikeLifetime(Long ikeLifetime) { this.ikeLifetime = ikeLifetime; return this; } /** * <p>The IKE negotiation mode.</p> * <ul> * <li><strong>main:</strong> This mode offers higher security during negotiations.</li> * <li><strong>aggressive</strong>: This mode is faster and has a higher success rate.</li> * </ul> * * <strong>example:</strong> * <p>main</p> */ public Builder ikeMode(String ikeMode) { this.ikeMode = ikeMode; return this; } /** * <p>The DH group in the IKE phase.</p> * * <strong>example:</strong> * <p>group2</p> */ public Builder ikePfs(String ikePfs) { this.ikePfs = ikePfs; return this; } /** * <p>The version of the IKE protocol.</p> * * <strong>example:</strong> * <p>ikev1</p> */ public Builder ikeVersion(String ikeVersion) { this.ikeVersion = ikeVersion; return this; } /** * <p>The identifier of the tunnel on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.21.XX.XX</p> */ public Builder localId(String localId) { this.localId = localId; return this; } /** * <p>The pre-shared key.</p> * * <strong>example:</strong> * <p>123456****</p> */ public Builder psk(String psk) { this.psk = psk; return this; } /** * <p>The identifier of the tunnel peer.</p> * * <strong>example:</strong> * <p>47.42.XX.XX</p> */ public Builder remoteId(String remoteId) { this.remoteId = remoteId; return this; } public TunnelIkeConfig build() { return new TunnelIkeConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class TunnelIpsecConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("IpsecAuthAlg") private String ipsecAuthAlg; @com.aliyun.core.annotation.NameInMap("IpsecEncAlg") private String ipsecEncAlg; @com.aliyun.core.annotation.NameInMap("IpsecLifetime") private Long ipsecLifetime; @com.aliyun.core.annotation.NameInMap("IpsecPfs") private String ipsecPfs; private TunnelIpsecConfig(Builder builder) { this.ipsecAuthAlg = builder.ipsecAuthAlg; this.ipsecEncAlg = builder.ipsecEncAlg; this.ipsecLifetime = builder.ipsecLifetime; this.ipsecPfs = builder.ipsecPfs; } public static Builder builder() { return new Builder(); } public static TunnelIpsecConfig create() { return builder().build(); } /** * @return ipsecAuthAlg */ public String getIpsecAuthAlg() { return this.ipsecAuthAlg; } /** * @return ipsecEncAlg */ public String getIpsecEncAlg() { return this.ipsecEncAlg; } /** * @return ipsecLifetime */ public Long getIpsecLifetime() { return this.ipsecLifetime; } /** * @return ipsecPfs */ public String getIpsecPfs() { return this.ipsecPfs; } public static final class Builder { private String ipsecAuthAlg; private String ipsecEncAlg; private Long ipsecLifetime; private String ipsecPfs; private Builder() { } private Builder(TunnelIpsecConfig model) { this.ipsecAuthAlg = model.ipsecAuthAlg; this.ipsecEncAlg = model.ipsecEncAlg; this.ipsecLifetime = model.ipsecLifetime; this.ipsecPfs = model.ipsecPfs; } /** * <p>The authentication algorithm 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 TunnelIpsecConfig build() { return new TunnelIpsecConfig(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class TunnelOptions extends TeaModel { @com.aliyun.core.annotation.NameInMap("CustomerGatewayId") private String customerGatewayId; @com.aliyun.core.annotation.NameInMap("EnableDpd") private Boolean enableDpd; @com.aliyun.core.annotation.NameInMap("EnableNatTraversal") private Boolean enableNatTraversal; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("RemoteCaCertificate") private String remoteCaCertificate; @com.aliyun.core.annotation.NameInMap("Role") private String role; @com.aliyun.core.annotation.NameInMap("State") private String state; @com.aliyun.core.annotation.NameInMap("TunnelBgpConfig") private TunnelBgpConfig tunnelBgpConfig; @com.aliyun.core.annotation.NameInMap("TunnelId") private String tunnelId; @com.aliyun.core.annotation.NameInMap("TunnelIkeConfig") private TunnelIkeConfig tunnelIkeConfig; @com.aliyun.core.annotation.NameInMap("TunnelIpsecConfig") private TunnelIpsecConfig tunnelIpsecConfig; @com.aliyun.core.annotation.NameInMap("ZoneNo") private String zoneNo; private TunnelOptions(Builder builder) { this.customerGatewayId = builder.customerGatewayId; this.enableDpd = builder.enableDpd; this.enableNatTraversal = builder.enableNatTraversal; this.internetIp = builder.internetIp; this.remoteCaCertificate = builder.remoteCaCertificate; this.role = builder.role; this.state = builder.state; this.tunnelBgpConfig = builder.tunnelBgpConfig; this.tunnelId = builder.tunnelId; this.tunnelIkeConfig = builder.tunnelIkeConfig; this.tunnelIpsecConfig = builder.tunnelIpsecConfig; this.zoneNo = builder.zoneNo; } public static Builder builder() { return new Builder(); } public static TunnelOptions create() { return builder().build(); } /** * @return customerGatewayId */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** * @return enableDpd */ public Boolean getEnableDpd() { return this.enableDpd; } /** * @return enableNatTraversal */ public Boolean getEnableNatTraversal() { return this.enableNatTraversal; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return remoteCaCertificate */ public String getRemoteCaCertificate() { return this.remoteCaCertificate; } /** * @return role */ public String getRole() { return this.role; } /** * @return state */ public String getState() { return this.state; } /** * @return tunnelBgpConfig */ public TunnelBgpConfig getTunnelBgpConfig() { return this.tunnelBgpConfig; } /** * @return tunnelId */ public String getTunnelId() { return this.tunnelId; } /** * @return tunnelIkeConfig */ public TunnelIkeConfig getTunnelIkeConfig() { return this.tunnelIkeConfig; } /** * @return tunnelIpsecConfig */ public TunnelIpsecConfig getTunnelIpsecConfig() { return this.tunnelIpsecConfig; } /** * @return zoneNo */ public String getZoneNo() { return this.zoneNo; } public static final class Builder { private String customerGatewayId; private Boolean enableDpd; private Boolean enableNatTraversal; private String internetIp; private String remoteCaCertificate; private String role; private String state; private TunnelBgpConfig tunnelBgpConfig; private String tunnelId; private TunnelIkeConfig tunnelIkeConfig; private TunnelIpsecConfig tunnelIpsecConfig; private String zoneNo; private Builder() { } private Builder(TunnelOptions model) { this.customerGatewayId = model.customerGatewayId; this.enableDpd = model.enableDpd; this.enableNatTraversal = model.enableNatTraversal; this.internetIp = model.internetIp; this.remoteCaCertificate = model.remoteCaCertificate; this.role = model.role; this.state = model.state; this.tunnelBgpConfig = model.tunnelBgpConfig; this.tunnelId = model.tunnelId; this.tunnelIkeConfig = model.tunnelIkeConfig; this.tunnelIpsecConfig = model.tunnelIpsecConfig; this.zoneNo = model.zoneNo; } /** * <p>The ID of the customer gateway associated with the tunnel.</p> * * <strong>example:</strong> * <p>cgw-p0wy363lucf1uyae8****</p> */ public Builder customerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; return this; } /** * <p>Indicates whether the DPD feature is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableDpd(Boolean enableDpd) { this.enableDpd = enableDpd; return this; } /** * <p>Indicates whether NAT traversal is enabled for the tunnel. Valid values:</p> * <ul> * <li><strong>false</strong></li> * <li><strong>true</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableNatTraversal(Boolean enableNatTraversal) { this.enableNatTraversal = enableNatTraversal; return this; } /** * <p>The IP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>47.21.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The CA certificate of the tunnel peer.</p> * <p>This parameter is returned only if the VPN gateway is of the SM type.</p> * * <strong>example:</strong> * <p>-----BEGIN CERTIFICATE----- MIIB7zCCAZW**** -----END CERTIFICATE-----</p> */ public Builder remoteCaCertificate(String remoteCaCertificate) { this.remoteCaCertificate = remoteCaCertificate; return this; } /** * <p>The tunnel role. Valid values:</p> * <ul> * <li><strong>master</strong>: The tunnel is an active tunnel.</li> * <li><strong>slave</strong>: The tunnel is a standby tunnel.</li> * </ul> * * <strong>example:</strong> * <p>master</p> */ public Builder role(String role) { this.role = role; return this; } /** * <p>The tunnel status. Valid values:</p> * <ul> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder state(String state) { this.state = state; return this; } /** * <p>The BGP configuration.</p> */ public Builder tunnelBgpConfig(TunnelBgpConfig tunnelBgpConfig) { this.tunnelBgpConfig = tunnelBgpConfig; return this; } /** * <p>The tunnel ID.</p> * * <strong>example:</strong> * <p>tun-opsqc4d97wni27****</p> */ public Builder tunnelId(String tunnelId) { this.tunnelId = tunnelId; return this; } /** * <p>The configuration of Phase 1 negotiations.</p> */ public Builder tunnelIkeConfig(TunnelIkeConfig tunnelIkeConfig) { this.tunnelIkeConfig = tunnelIkeConfig; return this; } /** * <p>The configuration of Phase 2 negotiations.</p> */ public Builder tunnelIpsecConfig(TunnelIpsecConfig tunnelIpsecConfig) { this.tunnelIpsecConfig = tunnelIpsecConfig; return this; } /** * <p>The zone of the tunnel.</p> * * <strong>example:</strong> * <p>ap-southeast-5a</p> */ public Builder zoneNo(String zoneNo) { this.zoneNo = zoneNo; return this; } public TunnelOptions build() { return new TunnelOptions(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class TunnelOptionsSpecification extends TeaModel { @com.aliyun.core.annotation.NameInMap("TunnelOptions") private java.util.List<TunnelOptions> tunnelOptions; private TunnelOptionsSpecification(Builder builder) { this.tunnelOptions = builder.tunnelOptions; } public static Builder builder() { return new Builder(); } public static TunnelOptionsSpecification create() { return builder().build(); } /** * @return tunnelOptions */ public java.util.List<TunnelOptions> getTunnelOptions() { return this.tunnelOptions; } public static final class Builder { private java.util.List<TunnelOptions> tunnelOptions; private Builder() { } private Builder(TunnelOptionsSpecification model) { this.tunnelOptions = model.tunnelOptions; } /** * TunnelOptions. */ public Builder tunnelOptions(java.util.List<TunnelOptions> tunnelOptions) { this.tunnelOptions = tunnelOptions; return this; } public TunnelOptionsSpecification build() { return new TunnelOptionsSpecification(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class VcoHealthCheck extends TeaModel { @com.aliyun.core.annotation.NameInMap("Dip") private String dip; @com.aliyun.core.annotation.NameInMap("Enable") private String enable; @com.aliyun.core.annotation.NameInMap("Interval") private Integer interval; @com.aliyun.core.annotation.NameInMap("Retry") private Integer retry; @com.aliyun.core.annotation.NameInMap("Sip") private String sip; private VcoHealthCheck(Builder builder) { this.dip = builder.dip; this.enable = builder.enable; this.interval = builder.interval; this.retry = builder.retry; this.sip = builder.sip; } public static Builder builder() { return new Builder(); } public static VcoHealthCheck create() { return builder().build(); } /** * @return dip */ public String getDip() { return this.dip; } /** * @return enable */ public String getEnable() { return this.enable; } /** * @return interval */ public Integer getInterval() { return this.interval; } /** * @return retry */ public Integer getRetry() { return this.retry; } /** * @return sip */ public String getSip() { return this.sip; } public static final class Builder { private String dip; private String enable; private Integer interval; private Integer retry; private String sip; private Builder() { } private Builder(VcoHealthCheck model) { this.dip = model.dip; this.enable = model.enable; this.interval = model.interval; this.retry = model.retry; this.sip = model.sip; } /** * <p>The destination IP address.</p> * * <strong>example:</strong> * <p>192.168.1.1</p> */ public Builder dip(String dip) { this.dip = dip; return this; } /** * <p>Indicates whether the health check feature is enabled for the IPsec-VPN connection.</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enable(String enable) { this.enable = enable; return this; } /** * <p>The interval between two consecutive health checks. Unit: seconds.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder interval(Integer interval) { this.interval = interval; return this; } /** * <p>The maximum number of health check retries.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder retry(Integer retry) { this.retry = retry; return this; } /** * <p>The source IP address that is used for health checks.</p> * * <strong>example:</strong> * <p>10.1.1.1</p> */ public Builder sip(String sip) { this.sip = sip; return this; } public VcoHealthCheck build() { return new VcoHealthCheck(this); } } } /** * * {@link ModifyVpnConnectionAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnConnectionAttributeResponseBody</p> */ public static class VpnBgpConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("EnableBgp") private String enableBgp; @com.aliyun.core.annotation.NameInMap("LocalAsn") private Integer localAsn; @com.aliyun.core.annotation.NameInMap("LocalBgpIp") private String localBgpIp; @com.aliyun.core.annotation.NameInMap("PeerAsn") private Integer peerAsn; @com.aliyun.core.annotation.NameInMap("PeerBgpIp") private String peerBgpIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("TunnelCidr") private String tunnelCidr; private VpnBgpConfig(Builder builder) { this.enableBgp = builder.enableBgp; this.localAsn = builder.localAsn; this.localBgpIp = builder.localBgpIp; this.peerAsn = builder.peerAsn; this.peerBgpIp = builder.peerBgpIp; this.status = builder.status; this.tunnelCidr = builder.tunnelCidr; } public static Builder builder() { return new Builder(); } public static VpnBgpConfig create() { return builder().build(); } /** * @return enableBgp */ public String getEnableBgp() { return this.enableBgp; } /** * @return localAsn */ public Integer getLocalAsn() { return this.localAsn; } /** * @return localBgpIp */ public String getLocalBgpIp() { return this.localBgpIp; } /** * @return peerAsn */ public Integer getPeerAsn() { return this.peerAsn; } /** * @return peerBgpIp */ public String getPeerBgpIp() { return this.peerBgpIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tunnelCidr */ public String getTunnelCidr() { return this.tunnelCidr; } public static final class Builder { private String enableBgp; private Integer localAsn; private String localBgpIp; private Integer peerAsn; private String peerBgpIp; private String status; private String tunnelCidr; private Builder() { } private Builder(VpnBgpConfig model) { this.enableBgp = model.enableBgp; this.localAsn = model.localAsn; this.localBgpIp = model.localBgpIp; this.peerAsn = model.peerAsn; this.peerBgpIp = model.peerBgpIp; this.status = model.status; this.tunnelCidr = model.tunnelCidr; } /** * <p>Indicates whether BGP is enabled. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(String enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The ASN on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>65530</p> */ public Builder localAsn(Integer localAsn) { this.localAsn = localAsn; return this; } /** * <p>The BGP IP address on the Alibaba Cloud side.</p> * * <strong>example:</strong> * <p>169.254.11.1</p> */ public Builder localBgpIp(String localBgpIp) { this.localBgpIp = localBgpIp; return this; } /** * <p>The ASN on the data center side.</p> * * <strong>example:</strong> * <p>65531</p> */ public Builder peerAsn(Integer peerAsn) { this.peerAsn = peerAsn; return this; } /** * <p>The BGP IP address of the data center.</p> * * <strong>example:</strong> * <p>169.254.11.2</p> */ public Builder peerBgpIp(String peerBgpIp) { this.peerBgpIp = peerBgpIp; return this; } /** * <p>The negotiation state of BGP. Valid values:</p> * <ul> * <li><strong>success</strong>: normal</li> * <li><strong>false</strong>: abnormal</li> * </ul> * * <strong>example:</strong> * <p>success</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The BGP CIDR block of the IPsec-VPN connection.</p> * * <strong>example:</strong> * <p>169.254.11.0/30</p> */ public Builder tunnelCidr(String tunnelCidr) { this.tunnelCidr = tunnelCidr; return this; } public VpnBgpConfig build() { return new VpnBgpConfig(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnGatewayAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnGatewayAttributeRequest} extends {@link RequestModel} * * <p>ModifyVpnGatewayAttributeRequest</p> */ public class ModifyVpnGatewayAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AutoPropagate") private Boolean autoPropagate; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; private ModifyVpnGatewayAttributeRequest(Builder builder) { super(builder); this.autoPropagate = builder.autoPropagate; this.clientToken = builder.clientToken; this.description = builder.description; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ModifyVpnGatewayAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return autoPropagate */ public Boolean getAutoPropagate() { return this.autoPropagate; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return description */ public String getDescription() { return this.description; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<ModifyVpnGatewayAttributeRequest, Builder> { private Boolean autoPropagate; private String clientToken; private String description; private String name; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vpnGatewayId; private Builder() { super(); } private Builder(ModifyVpnGatewayAttributeRequest request) { super(request); this.autoPropagate = request.autoPropagate; this.clientToken = request.clientToken; this.description = request.description; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>Specifies whether to automatically advertise BGP routes to the virtual private cloud (VPC). Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoPropagate(Boolean autoPropagate) { this.putQueryParameter("AutoPropagate", autoPropagate); this.autoPropagate = autoPropagate; 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 request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-4266****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new description of the VPN connection.</p> * <p>The description must be 1 to 100 characters in length.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * <p>The new name of the VPN gateway.</p> * <p>The name must be 2 to 100 characters in length and cannot start with <code>http://</code> or <code>https://</code>. It must start with a letter and can contain letters, digits, underscores (_), hyphens (-), and periods (.). Other characters are not supported.</p> * * <strong>example:</strong> * <p>myvpn</p> */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the VPN gateway is created. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-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 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 ModifyVpnGatewayAttributeRequest build() { return new ModifyVpnGatewayAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnGatewayAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnGatewayAttributeResponse} extends {@link TeaModel} * * <p>ModifyVpnGatewayAttributeResponse</p> */ public class ModifyVpnGatewayAttributeResponse 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 ModifyVpnGatewayAttributeResponseBody body; private ModifyVpnGatewayAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnGatewayAttributeResponse 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 ModifyVpnGatewayAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnGatewayAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnGatewayAttributeResponseBody body); @Override ModifyVpnGatewayAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnGatewayAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnGatewayAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnGatewayAttributeResponse 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(ModifyVpnGatewayAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVpnGatewayAttributeResponse build() { return new ModifyVpnGatewayAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnGatewayAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnGatewayAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnGatewayAttributeResponseBody</p> */ public class ModifyVpnGatewayAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("AutoPropagate") private Boolean autoPropagate; @com.aliyun.core.annotation.NameInMap("BusinessStatus") private String businessStatus; @com.aliyun.core.annotation.NameInMap("CreateTime") private Long createTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("DisasterRecoveryInternetIp") private String disasterRecoveryInternetIp; @com.aliyun.core.annotation.NameInMap("DisasterRecoveryVSwitchId") private String disasterRecoveryVSwitchId; @com.aliyun.core.annotation.NameInMap("EnableBgp") private Boolean enableBgp; @com.aliyun.core.annotation.NameInMap("EndTime") private Long endTime; @com.aliyun.core.annotation.NameInMap("InternetIp") private String internetIp; @com.aliyun.core.annotation.NameInMap("IntranetIp") private String intranetIp; @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Spec") private String spec; @com.aliyun.core.annotation.NameInMap("SslVpnInternetIp") private String sslVpnInternetIp; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("VSwitchId") private String vSwitchId; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; @com.aliyun.core.annotation.NameInMap("VpnGatewayId") private String vpnGatewayId; private ModifyVpnGatewayAttributeResponseBody(Builder builder) { this.autoPropagate = builder.autoPropagate; this.businessStatus = builder.businessStatus; this.createTime = builder.createTime; this.description = builder.description; this.disasterRecoveryInternetIp = builder.disasterRecoveryInternetIp; this.disasterRecoveryVSwitchId = builder.disasterRecoveryVSwitchId; this.enableBgp = builder.enableBgp; this.endTime = builder.endTime; this.internetIp = builder.internetIp; this.intranetIp = builder.intranetIp; this.name = builder.name; this.requestId = builder.requestId; this.resourceGroupId = builder.resourceGroupId; this.spec = builder.spec; this.sslVpnInternetIp = builder.sslVpnInternetIp; this.status = builder.status; this.vSwitchId = builder.vSwitchId; this.vpcId = builder.vpcId; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static ModifyVpnGatewayAttributeResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return autoPropagate */ public Boolean getAutoPropagate() { return this.autoPropagate; } /** * @return businessStatus */ public String getBusinessStatus() { return this.businessStatus; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disasterRecoveryInternetIp */ public String getDisasterRecoveryInternetIp() { return this.disasterRecoveryInternetIp; } /** * @return disasterRecoveryVSwitchId */ public String getDisasterRecoveryVSwitchId() { return this.disasterRecoveryVSwitchId; } /** * @return enableBgp */ public Boolean getEnableBgp() { return this.enableBgp; } /** * @return endTime */ public Long getEndTime() { return this.endTime; } /** * @return internetIp */ public String getInternetIp() { return this.internetIp; } /** * @return intranetIp */ public String getIntranetIp() { return this.intranetIp; } /** * @return name */ public String getName() { return this.name; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return spec */ public String getSpec() { return this.spec; } /** * @return sslVpnInternetIp */ public String getSslVpnInternetIp() { return this.sslVpnInternetIp; } /** * @return status */ public String getStatus() { return this.status; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder { private Boolean autoPropagate; private String businessStatus; private Long createTime; private String description; private String disasterRecoveryInternetIp; private String disasterRecoveryVSwitchId; private Boolean enableBgp; private Long endTime; private String internetIp; private String intranetIp; private String name; private String requestId; private String resourceGroupId; private String spec; private String sslVpnInternetIp; private String status; private String vSwitchId; private String vpcId; private String vpnGatewayId; private Builder() { } private Builder(ModifyVpnGatewayAttributeResponseBody model) { this.autoPropagate = model.autoPropagate; this.businessStatus = model.businessStatus; this.createTime = model.createTime; this.description = model.description; this.disasterRecoveryInternetIp = model.disasterRecoveryInternetIp; this.disasterRecoveryVSwitchId = model.disasterRecoveryVSwitchId; this.enableBgp = model.enableBgp; this.endTime = model.endTime; this.internetIp = model.internetIp; this.intranetIp = model.intranetIp; this.name = model.name; this.requestId = model.requestId; this.resourceGroupId = model.resourceGroupId; this.spec = model.spec; this.sslVpnInternetIp = model.sslVpnInternetIp; this.status = model.status; this.vSwitchId = model.vSwitchId; this.vpcId = model.vpcId; this.vpnGatewayId = model.vpnGatewayId; } /** * <p>Indicates whether BGP routes are automatically advertised to the VPC. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder autoPropagate(Boolean autoPropagate) { this.autoPropagate = autoPropagate; return this; } /** * <p>The payment status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>Normal</strong></li> * <li><strong>FinancialLocked</strong></li> * </ul> * * <strong>example:</strong> * <p>Normal</p> */ public Builder businessStatus(String businessStatus) { this.businessStatus = businessStatus; return this; } /** * <p>The time when the VPN gateway was created. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1492753580000</p> */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * <p>The description of the VPN gateway.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder description(String description) { this.description = description; return this; } /** * <p>The second IP address assigned by the system to create an IPsec-VPN connection.</p> * <p>This parameter is returned only when the VPN gateway supports the dual-tunnel mode.</p> * * <strong>example:</strong> * <p>116.11.XX.XX</p> */ public Builder disasterRecoveryInternetIp(String disasterRecoveryInternetIp) { this.disasterRecoveryInternetIp = disasterRecoveryInternetIp; return this; } /** * <p>The ID of the second vSwitch associated with the VPN gateway.</p> * <p>This parameter is returned only when the VPN gateway supports the dual-tunnel mode.</p> * * <strong>example:</strong> * <p>vsw-p0w95ql6tmr2ludkt****</p> */ public Builder disasterRecoveryVSwitchId(String disasterRecoveryVSwitchId) { this.disasterRecoveryVSwitchId = disasterRecoveryVSwitchId; return this; } /** * <p>Indicates whether BGP is enabled for the VPN gateway. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder enableBgp(Boolean enableBgp) { this.enableBgp = enableBgp; return this; } /** * <p>The time when the VPN gateway expires. Unit: milliseconds.</p> * <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.</p> * * <strong>example:</strong> * <p>1495382400000</p> */ public Builder endTime(Long endTime) { this.endTime = endTime; return this; } /** * <ul> * <li><p>If the VPN gateway supports IPsec-VPN connections in single-tunnel mode, the address is the IP address of the VPN gateway and can be used to create an IPsec-VPN connection or an SSL-VPN connection.</p> * </li> * <li><p>If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the address is the first IP address used to create an IPsec-VPN connection. The address cannot be used to create an SSL-VPN connection.</p> * <p>If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the system assigns two IP addresses to the VPN gateway to create two encrypted tunnels.</p> * </li> * </ul> * * <strong>example:</strong> * <p>116.62.XX.XX</p> */ public Builder internetIp(String internetIp) { this.internetIp = internetIp; return this; } /** * <p>The private IP address of the vSwitch that is used by the system when the VPN gateway is deployed.</p> * <p>The parameter is returned only for VPN gateways that support single-tunnel IPsec-VPN connections. The IPsec-VPN feature must be enabled.</p> * * <strong>example:</strong> * <p>172.27.30.24</p> */ public Builder intranetIp(String intranetIp) { this.intranetIp = intranetIp; return this; } /** * <p>The name of the VPN gateway.</p> * * <strong>example:</strong> * <p>test</p> */ public Builder name(String name) { this.name = name; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>54B48E3D-DF70-471B-AA93-08E683A1B457</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>The ID of the resource group to which the VPN gateway belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/158855.html">ListResourceGroups</a> operation to query resource groups.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * <p>The maximum bandwidth of the VPN gateway. Unit: Mbit/s.</p> * * <strong>example:</strong> * <p>5M</p> */ public Builder spec(String spec) { this.spec = spec; return this; } /** * <p>The IP address of the SSL-VPN connection.</p> * <p>This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.</p> * * <strong>example:</strong> * <p>116.33.XX.XX</p> */ public Builder sslVpnInternetIp(String sslVpnInternetIp) { this.sslVpnInternetIp = sslVpnInternetIp; return this; } /** * <p>The status of the VPN gateway. Valid values:</p> * <ul> * <li><strong>init</strong></li> * <li><strong>provisioning</strong></li> * <li><strong>active</strong></li> * <li><strong>updating</strong></li> * <li><strong>deleting</strong></li> * </ul> * * <strong>example:</strong> * <p>active</p> */ public Builder status(String status) { this.status = status; return this; } /** * <p>The ID of the vSwitch associated with the VPN gateway.</p> * * <strong>example:</strong> * <p>vsw-bp1y9ovl1cu9ou4tv****</p> */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * <p>The ID of the VPC to which the VPN gateway belongs.</p> * * <strong>example:</strong> * <p>vpc-bp1ub1yt9cvakoel****</p> */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * <p>The ID of the VPN gateway.</p> * * <strong>example:</strong> * <p>vpn-bp1q8bgx4xnkm2ogj****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; return this; } public ModifyVpnGatewayAttributeResponseBody build() { return new ModifyVpnGatewayAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryAttributeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryAttributeRequest} extends {@link RequestModel} * * <p>ModifyVpnPbrRouteEntryAttributeRequest</p> */ public class ModifyVpnPbrRouteEntryAttributeRequest 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("NewPriority") private Integer newPriority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewWeight") private Integer newWeight; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextHop") @com.aliyun.core.annotation.Validation(required = true) private String nextHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Priority") @com.aliyun.core.annotation.Validation(required = true) private Integer priority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteDest") @com.aliyun.core.annotation.Validation(required = true) private String routeDest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteSource") @com.aliyun.core.annotation.Validation(required = true) private String routeSource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Weight") @com.aliyun.core.annotation.Validation(required = true) private Integer weight; private ModifyVpnPbrRouteEntryAttributeRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.newPriority = builder.newPriority; this.newWeight = builder.newWeight; this.nextHop = builder.nextHop; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.priority = builder.priority; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeDest = builder.routeDest; this.routeSource = builder.routeSource; this.vpnGatewayId = builder.vpnGatewayId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static ModifyVpnPbrRouteEntryAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return newPriority */ public Integer getNewPriority() { return this.newPriority; } /** * @return newWeight */ public Integer getNewWeight() { return this.newWeight; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeSource */ public String getRouteSource() { return this.routeSource; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder extends Request.Builder<ModifyVpnPbrRouteEntryAttributeRequest, Builder> { private String clientToken; private Integer newPriority; private Integer newWeight; private String nextHop; private String ownerAccount; private Long ownerId; private Integer priority; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeDest; private String routeSource; private String vpnGatewayId; private Integer weight; private Builder() { super(); } private Builder(ModifyVpnPbrRouteEntryAttributeRequest request) { super(request); this.clientToken = request.clientToken; this.newPriority = request.newPriority; this.newWeight = request.newWeight; this.nextHop = request.nextHop; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.priority = request.priority; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeDest = request.routeDest; this.routeSource = request.routeSource; this.vpnGatewayId = request.vpnGatewayId; this.weight = request.weight; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>d7d24a21-f4ba-4454-9173-b3****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new priority of the policy-based route. Valid values: <strong>1</strong> to <strong>100</strong>.</p> * <p>A smaller value indicates a higher priority.</p> * <p>If you do not specify this parameter, the priority of the policy-based route is not modified.</p> * <blockquote> * <p> You must specify at least one of <strong>NewPriority</strong> and <strong>NewWeight</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>10</p> */ public Builder newPriority(Integer newPriority) { this.putQueryParameter("NewPriority", newPriority); this.newPriority = newPriority; return this; } /** * <p>The new weight of the policy-based route. Valid values:</p> * <ul> * <li><strong>100</strong>: The IPsec-VPN connection associated with the policy-based route serves as the active connection.</li> * <li><strong>0</strong>: The IPsec-VPN connection associated with the policy-based route serves as the standby connection.</li> * </ul> * <p>If you do not specify this parameter, the weight of the policy-based route is not modified.</p> * <blockquote> * <p> You must specify at least one of <strong>NewPriority</strong> and <strong>NewWeight</strong>.</p> * </blockquote> * * <strong>example:</strong> * <p>0</p> */ public Builder newWeight(Integer newWeight) { this.putQueryParameter("NewWeight", newWeight); this.newWeight = newWeight; return this; } /** * <p>The next hop of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-bp15oes1py4i66rmd****</p> */ public Builder nextHop(String nextHop) { this.putQueryParameter("NextHop", nextHop); this.nextHop = nextHop; return this; } /** * 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 original priority of the policy-based route. Valid values: <strong>1</strong> to <strong>100</strong>.</p> * <p>A smaller value indicates a higher priority.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder priority(Integer priority) { this.putQueryParameter("Priority", priority); this.priority = priority; 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-heyuan</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The destination CIDR block of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.putQueryParameter("RouteDest", routeDest); this.routeDest = routeDest; return this; } /** * <p>The source CIDR block of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder routeSource(String routeSource) { this.putQueryParameter("RouteSource", routeSource); this.routeSource = routeSource; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1a3kqjiiq9legfx****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The original weight of the policy-based route. Valid values:</p> * <ul> * <li><strong>100</strong>: The IPsec-VPN connection associated with the policy-based route serves as an active connection.</li> * <li><strong>0</strong>: The IPsec-VPN connection associated with the policy-based route serves as a standby connection.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder weight(Integer weight) { this.putQueryParameter("Weight", weight); this.weight = weight; return this; } @Override public ModifyVpnPbrRouteEntryAttributeRequest build() { return new ModifyVpnPbrRouteEntryAttributeRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryAttributeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryAttributeResponse} extends {@link TeaModel} * * <p>ModifyVpnPbrRouteEntryAttributeResponse</p> */ public class ModifyVpnPbrRouteEntryAttributeResponse 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 ModifyVpnPbrRouteEntryAttributeResponseBody body; private ModifyVpnPbrRouteEntryAttributeResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnPbrRouteEntryAttributeResponse 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 ModifyVpnPbrRouteEntryAttributeResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnPbrRouteEntryAttributeResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnPbrRouteEntryAttributeResponseBody body); @Override ModifyVpnPbrRouteEntryAttributeResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnPbrRouteEntryAttributeResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnPbrRouteEntryAttributeResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnPbrRouteEntryAttributeResponse 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(ModifyVpnPbrRouteEntryAttributeResponseBody body) { this.body = body; return this; } @Override public ModifyVpnPbrRouteEntryAttributeResponse build() { return new ModifyVpnPbrRouteEntryAttributeResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryAttributeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryAttributeResponseBody} extends {@link TeaModel} * * <p>ModifyVpnPbrRouteEntryAttributeResponseBody</p> */ public class ModifyVpnPbrRouteEntryAttributeResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVpnPbrRouteEntryAttributeResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVpnPbrRouteEntryAttributeResponseBody 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(ModifyVpnPbrRouteEntryAttributeResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVpnPbrRouteEntryAttributeResponseBody build() { return new ModifyVpnPbrRouteEntryAttributeResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryPriorityRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryPriorityRequest} extends {@link RequestModel} * * <p>ModifyVpnPbrRouteEntryPriorityRequest</p> */ public class ModifyVpnPbrRouteEntryPriorityRequest 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("NewPriority") @com.aliyun.core.annotation.Validation(required = true) private Integer newPriority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextHop") @com.aliyun.core.annotation.Validation(required = true) private String nextHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteDest") @com.aliyun.core.annotation.Validation(required = true) private String routeDest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteSource") @com.aliyun.core.annotation.Validation(required = true) private String routeSource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Weight") @com.aliyun.core.annotation.Validation(required = true) private Integer weight; private ModifyVpnPbrRouteEntryPriorityRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.newPriority = builder.newPriority; this.nextHop = builder.nextHop; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.priority = builder.priority; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeDest = builder.routeDest; this.routeSource = builder.routeSource; this.vpnGatewayId = builder.vpnGatewayId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static ModifyVpnPbrRouteEntryPriorityRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return newPriority */ public Integer getNewPriority() { return this.newPriority; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeSource */ public String getRouteSource() { return this.routeSource; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder extends Request.Builder<ModifyVpnPbrRouteEntryPriorityRequest, Builder> { private String clientToken; private Integer newPriority; private String nextHop; private String ownerAccount; private Long ownerId; private Integer priority; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeDest; private String routeSource; private String vpnGatewayId; private Integer weight; private Builder() { super(); } private Builder(ModifyVpnPbrRouteEntryPriorityRequest request) { super(request); this.clientToken = request.clientToken; this.newPriority = request.newPriority; this.nextHop = request.nextHop; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.priority = request.priority; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeDest = request.routeDest; this.routeSource = request.routeSource; this.vpnGatewayId = request.vpnGatewayId; this.weight = request.weight; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>d7d24a21-f4ba-4454-9173-b3****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new priority of the policy-based route. Valid values: <strong>1</strong> to <strong>100</strong>.</p> * <p>A smaller value indicates a higher priority.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10</p> */ public Builder newPriority(Integer newPriority) { this.putQueryParameter("NewPriority", newPriority); this.newPriority = newPriority; return this; } /** * <p>The next hop of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-bp15oes1py4i66rmd****</p> */ public Builder nextHop(String nextHop) { this.putQueryParameter("NextHop", nextHop); this.nextHop = nextHop; return this; } /** * 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 original priority of the policy-based route. Valid values: <strong>1</strong> to <strong>100</strong>.</p> * <p>A smaller value indicates a higher priority.</p> * * <strong>example:</strong> * <p>5</p> */ public Builder priority(Integer priority) { this.putQueryParameter("Priority", priority); this.priority = priority; return this; } /** * <p>The ID of the region where the VPN gateway is created.</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-henyuan</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The destination CIDR block of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.putQueryParameter("RouteDest", routeDest); this.routeDest = routeDest; return this; } /** * <p>The source CIDR block of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder routeSource(String routeSource) { this.putQueryParameter("RouteSource", routeSource); this.routeSource = routeSource; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1a3kqjiiq9legfx****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The weight of the policy-based route. Valid values:</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder weight(Integer weight) { this.putQueryParameter("Weight", weight); this.weight = weight; return this; } @Override public ModifyVpnPbrRouteEntryPriorityRequest build() { return new ModifyVpnPbrRouteEntryPriorityRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryPriorityResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryPriorityResponse} extends {@link TeaModel} * * <p>ModifyVpnPbrRouteEntryPriorityResponse</p> */ public class ModifyVpnPbrRouteEntryPriorityResponse 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 ModifyVpnPbrRouteEntryPriorityResponseBody body; private ModifyVpnPbrRouteEntryPriorityResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnPbrRouteEntryPriorityResponse 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 ModifyVpnPbrRouteEntryPriorityResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnPbrRouteEntryPriorityResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnPbrRouteEntryPriorityResponseBody body); @Override ModifyVpnPbrRouteEntryPriorityResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnPbrRouteEntryPriorityResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnPbrRouteEntryPriorityResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnPbrRouteEntryPriorityResponse 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(ModifyVpnPbrRouteEntryPriorityResponseBody body) { this.body = body; return this; } @Override public ModifyVpnPbrRouteEntryPriorityResponse build() { return new ModifyVpnPbrRouteEntryPriorityResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryPriorityResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryPriorityResponseBody} extends {@link TeaModel} * * <p>ModifyVpnPbrRouteEntryPriorityResponseBody</p> */ public class ModifyVpnPbrRouteEntryPriorityResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVpnPbrRouteEntryPriorityResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVpnPbrRouteEntryPriorityResponseBody 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(ModifyVpnPbrRouteEntryPriorityResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVpnPbrRouteEntryPriorityResponseBody build() { return new ModifyVpnPbrRouteEntryPriorityResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryWeightRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryWeightRequest} extends {@link RequestModel} * * <p>ModifyVpnPbrRouteEntryWeightRequest</p> */ public class ModifyVpnPbrRouteEntryWeightRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewWeight") @com.aliyun.core.annotation.Validation(required = true) private Integer newWeight; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextHop") @com.aliyun.core.annotation.Validation(required = true) private String nextHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OverlayMode") private String overlayMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Priority") private Integer priority; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteDest") @com.aliyun.core.annotation.Validation(required = true) private String routeDest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteSource") @com.aliyun.core.annotation.Validation(required = true) private String routeSource; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Weight") @com.aliyun.core.annotation.Validation(required = true) private Integer weight; private ModifyVpnPbrRouteEntryWeightRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.newWeight = builder.newWeight; this.nextHop = builder.nextHop; this.overlayMode = builder.overlayMode; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.priority = builder.priority; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeDest = builder.routeDest; this.routeSource = builder.routeSource; this.vpnGatewayId = builder.vpnGatewayId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static ModifyVpnPbrRouteEntryWeightRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return newWeight */ public Integer getNewWeight() { return this.newWeight; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return overlayMode */ public String getOverlayMode() { return this.overlayMode; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return priority */ public Integer getPriority() { return this.priority; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeSource */ public String getRouteSource() { return this.routeSource; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder extends Request.Builder<ModifyVpnPbrRouteEntryWeightRequest, Builder> { private String clientToken; private Integer newWeight; private String nextHop; private String overlayMode; private String ownerAccount; private Long ownerId; private Integer priority; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeDest; private String routeSource; private String vpnGatewayId; private Integer weight; private Builder() { super(); } private Builder(ModifyVpnPbrRouteEntryWeightRequest request) { super(request); this.clientToken = request.clientToken; this.newWeight = request.newWeight; this.nextHop = request.nextHop; this.overlayMode = request.overlayMode; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.priority = request.priority; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeDest = request.routeDest; this.routeSource = request.routeSource; this.vpnGatewayId = request.vpnGatewayId; this.weight = request.weight; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>d7d24a21-f4ba-4454-9173-b3828dae492b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new weight of the policy-based route. Valid values:</p> * <ul> * <li><strong>100</strong>: The IPsec-VPN connection associated with the policy-based route serves as an active connection.</li> * <li><strong>0</strong>: The IPsec-VPN connection associated with the policy-based route serves as a standby connection.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder newWeight(Integer newWeight) { this.putQueryParameter("NewWeight", newWeight); this.newWeight = newWeight; return this; } /** * <p>The next hop of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-bp15oes1py4i66rmd****</p> */ public Builder nextHop(String nextHop) { this.putQueryParameter("NextHop", nextHop); this.nextHop = nextHop; return this; } /** * <p>The tunneling protocol. The value is set to <strong>Ipsec</strong>, which indicates the IPsec tunneling protocol.</p> * * <strong>example:</strong> * <p>Ipsec</p> */ public Builder overlayMode(String overlayMode) { this.putQueryParameter("OverlayMode", overlayMode); this.overlayMode = overlayMode; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The priority of the policy-based route.</p> * <ul> * <li><p>If the route was not assigned a priority, this parameter is optional.</p> * </li> * <li><p>If the route was assigned a priority, this parameter is optional.</p> * <pre><code>If you specify this parameter, set the value to the priority that was assigned to the policy-based route. Otherwise, the operation fails. * </code></pre> * </li> * </ul> * * <strong>example:</strong> * <p>10</p> */ public Builder priority(Integer priority) { this.putQueryParameter("Priority", priority); this.priority = priority; return this; } /** * <p>The ID of the region where the VPN gateway is created. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The destination CIDR block of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.putQueryParameter("RouteDest", routeDest); this.routeDest = routeDest; return this; } /** * <p>The source CIDR block of the policy-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>192.168.1.0/24</p> */ public Builder routeSource(String routeSource) { this.putQueryParameter("RouteSource", routeSource); this.routeSource = routeSource; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1a3kqjiiq9legfx****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The original weight of the policy-based route. Valid values:</p> * <ul> * <li><strong>100</strong>: The IPsec-VPN connection associated with the policy-based route serves as an active connection.</li> * <li><strong>0</strong>: The IPsec-VPN connection associated with the policy-based route serves as a standby connection.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder weight(Integer weight) { this.putQueryParameter("Weight", weight); this.weight = weight; return this; } @Override public ModifyVpnPbrRouteEntryWeightRequest build() { return new ModifyVpnPbrRouteEntryWeightRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryWeightResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryWeightResponse} extends {@link TeaModel} * * <p>ModifyVpnPbrRouteEntryWeightResponse</p> */ public class ModifyVpnPbrRouteEntryWeightResponse 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 ModifyVpnPbrRouteEntryWeightResponseBody body; private ModifyVpnPbrRouteEntryWeightResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnPbrRouteEntryWeightResponse 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 ModifyVpnPbrRouteEntryWeightResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnPbrRouteEntryWeightResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnPbrRouteEntryWeightResponseBody body); @Override ModifyVpnPbrRouteEntryWeightResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnPbrRouteEntryWeightResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnPbrRouteEntryWeightResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnPbrRouteEntryWeightResponse 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(ModifyVpnPbrRouteEntryWeightResponseBody body) { this.body = body; return this; } @Override public ModifyVpnPbrRouteEntryWeightResponse build() { return new ModifyVpnPbrRouteEntryWeightResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnPbrRouteEntryWeightResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnPbrRouteEntryWeightResponseBody} extends {@link TeaModel} * * <p>ModifyVpnPbrRouteEntryWeightResponseBody</p> */ public class ModifyVpnPbrRouteEntryWeightResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVpnPbrRouteEntryWeightResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVpnPbrRouteEntryWeightResponseBody 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(ModifyVpnPbrRouteEntryWeightResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVpnPbrRouteEntryWeightResponseBody build() { return new ModifyVpnPbrRouteEntryWeightResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnRouteEntryWeightRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnRouteEntryWeightRequest} extends {@link RequestModel} * * <p>ModifyVpnRouteEntryWeightRequest</p> */ public class ModifyVpnRouteEntryWeightRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewWeight") @com.aliyun.core.annotation.Validation(required = true) private Integer newWeight; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextHop") @com.aliyun.core.annotation.Validation(required = true) private String nextHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OverlayMode") private String overlayMode; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteDest") @com.aliyun.core.annotation.Validation(required = true) private String routeDest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Weight") @com.aliyun.core.annotation.Validation(required = true) private Integer weight; private ModifyVpnRouteEntryWeightRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.newWeight = builder.newWeight; this.nextHop = builder.nextHop; this.overlayMode = builder.overlayMode; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeDest = builder.routeDest; this.vpnGatewayId = builder.vpnGatewayId; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static ModifyVpnRouteEntryWeightRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return newWeight */ public Integer getNewWeight() { return this.newWeight; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return overlayMode */ public String getOverlayMode() { return this.overlayMode; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder extends Request.Builder<ModifyVpnRouteEntryWeightRequest, Builder> { private String clientToken; private Integer newWeight; private String nextHop; private String overlayMode; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeDest; private String vpnGatewayId; private Integer weight; private Builder() { super(); } private Builder(ModifyVpnRouteEntryWeightRequest request) { super(request); this.clientToken = request.clientToken; this.newWeight = request.newWeight; this.nextHop = request.nextHop; this.overlayMode = request.overlayMode; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeDest = request.routeDest; this.vpnGatewayId = request.vpnGatewayId; this.weight = request.weight; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>d7d24a21-f4ba-4454-9173-b3828dae492b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The new weight of the destination-based route. Valid values:</p> * <ul> * <li><strong>0</strong>: a low priority</li> * <li><strong>100</strong>: a high priority</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>100</p> */ public Builder newWeight(Integer newWeight) { this.putQueryParameter("NewWeight", newWeight); this.newWeight = newWeight; return this; } /** * <p>The next hop of the destination-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-bp15oes1py4i66rmd****</p> */ public Builder nextHop(String nextHop) { this.putQueryParameter("NextHop", nextHop); this.nextHop = nextHop; return this; } /** * <p>The tunneling protocol. Set the value to <strong>Ipsec</strong>.</p> * * <strong>example:</strong> * <p>Ipsec</p> */ public Builder overlayMode(String overlayMode) { this.putQueryParameter("OverlayMode", overlayMode); this.overlayMode = overlayMode; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the VPN gateway is created. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The destination CIDR block of the destination-based route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.putQueryParameter("RouteDest", routeDest); this.routeDest = routeDest; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1a3kqjiiq9legfx****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } /** * <p>The original weight of the destination-based route. Valid values:</p> * <ul> * <li><strong>0</strong>: a low priority</li> * <li><strong>100</strong>: a high priority</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>0</p> */ public Builder weight(Integer weight) { this.putQueryParameter("Weight", weight); this.weight = weight; return this; } @Override public ModifyVpnRouteEntryWeightRequest build() { return new ModifyVpnRouteEntryWeightRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnRouteEntryWeightResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnRouteEntryWeightResponse} extends {@link TeaModel} * * <p>ModifyVpnRouteEntryWeightResponse</p> */ public class ModifyVpnRouteEntryWeightResponse 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 ModifyVpnRouteEntryWeightResponseBody body; private ModifyVpnRouteEntryWeightResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ModifyVpnRouteEntryWeightResponse 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 ModifyVpnRouteEntryWeightResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ModifyVpnRouteEntryWeightResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ModifyVpnRouteEntryWeightResponseBody body); @Override ModifyVpnRouteEntryWeightResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ModifyVpnRouteEntryWeightResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ModifyVpnRouteEntryWeightResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ModifyVpnRouteEntryWeightResponse 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(ModifyVpnRouteEntryWeightResponseBody body) { this.body = body; return this; } @Override public ModifyVpnRouteEntryWeightResponse build() { return new ModifyVpnRouteEntryWeightResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ModifyVpnRouteEntryWeightResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ModifyVpnRouteEntryWeightResponseBody} extends {@link TeaModel} * * <p>ModifyVpnRouteEntryWeightResponseBody</p> */ public class ModifyVpnRouteEntryWeightResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ModifyVpnRouteEntryWeightResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ModifyVpnRouteEntryWeightResponseBody 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(ModifyVpnRouteEntryWeightResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ModifyVpnRouteEntryWeightResponseBody build() { return new ModifyVpnRouteEntryWeightResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/MoveResourceGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link MoveResourceGroupRequest} extends {@link RequestModel} * * <p>MoveResourceGroupRequest</p> */ public class MoveResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String newResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private MoveResourceGroupRequest(Builder builder) { super(builder); this.newResourceGroupId = builder.newResourceGroupId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static MoveResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return newResourceGroupId */ public String getNewResourceGroupId() { return this.newResourceGroupId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<MoveResourceGroupRequest, Builder> { private String newResourceGroupId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private Builder() { super(); } private Builder(MoveResourceGroupRequest request) { super(request); this.newResourceGroupId = request.newResourceGroupId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; } /** * <p>The ID of the resource group to which you want to move the resource.</p> * <blockquote> * <p> You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see <a href="https://help.aliyun.com/document_detail/94475.html">What is resource management?</a></p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rg-acfm3peow3k****</p> */ public Builder newResourceGroupId(String newResourceGroupId) { this.putQueryParameter("NewResourceGroupId", newResourceGroupId); this.newResourceGroupId = newResourceGroupId; 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 cloud resource belongs.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-hp31psbg8ec3023s6****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of the resource for which you want to modify the resource group. Valid values:</p> * <ul> * <li><strong>Vpc</strong></li> * <li><strong>Eip</strong></li> * <li><strong>BandwidthPackage</strong></li> * <li><strong>PrefixList</strong></li> * <li><strong>PublicIpAddressPool</strong></li> * <li><strong>FlowLog</strong></li> * <li><strong>HaVip</strong></li> * <li><strong>TrafficMirrorFilter</strong></li> * <li><strong>TrafficMirrorSession</strong></li> * <li><strong>IPv4Gateway</strong></li> * <li><strong>IPv6Gateway</strong></li> * <li><strong>DhcpOptionsSet</strong></li> * <li><strong>GatewayEndpoint</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public MoveResourceGroupRequest build() { return new MoveResourceGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/MoveResourceGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link MoveResourceGroupResponse} extends {@link TeaModel} * * <p>MoveResourceGroupResponse</p> */ public class MoveResourceGroupResponse 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 MoveResourceGroupResponseBody body; private MoveResourceGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static MoveResourceGroupResponse 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 MoveResourceGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<MoveResourceGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(MoveResourceGroupResponseBody body); @Override MoveResourceGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<MoveResourceGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private MoveResourceGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(MoveResourceGroupResponse 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(MoveResourceGroupResponseBody body) { this.body = body; return this; } @Override public MoveResourceGroupResponse build() { return new MoveResourceGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/MoveResourceGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link MoveResourceGroupResponseBody} extends {@link TeaModel} * * <p>MoveResourceGroupResponseBody</p> */ public class MoveResourceGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private MoveResourceGroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static MoveResourceGroupResponseBody 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(MoveResourceGroupResponseBody 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 MoveResourceGroupResponseBody build() { return new MoveResourceGroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/MoveVpnResourceGroupRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link MoveVpnResourceGroupRequest} extends {@link RequestModel} * * <p>MoveVpnResourceGroupRequest</p> */ public class MoveVpnResourceGroupRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NewResourceGroupId") @com.aliyun.core.annotation.Validation(required = true) private String newResourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private MoveVpnResourceGroupRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.newResourceGroupId = builder.newResourceGroupId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static MoveVpnResourceGroupRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return newResourceGroupId */ public String getNewResourceGroupId() { return this.newResourceGroupId; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<MoveVpnResourceGroupRequest, Builder> { private String instanceId; private String newResourceGroupId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private Builder() { super(); } private Builder(MoveVpnResourceGroupRequest request) { super(request); this.instanceId = request.instanceId; this.newResourceGroupId = request.newResourceGroupId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; } /** * <p>The ID of the resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-8vb3lzn7biepthri8****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The ID of the new resource group.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>rg-acfmzs372yg****</p> */ public Builder newResourceGroupId(String newResourceGroupId) { this.putQueryParameter("NewResourceGroupId", newResourceGroupId); this.newResourceGroupId = newResourceGroupId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the resource.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-zhangjiakou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of resource.</p> * <ul> * <li><p><strong>VpnGateway</strong>: VPN gateway</p> * <p>After you move a VPN gateway to a new resource group, the following associated resources are also moved to the new resource group: IPsec servers, SSL servers, SSL client certificates, and IPsec-VPN connections.</p> * </li> * <li><p><strong>CustomerGateway</strong>: customer gateway</p> * </li> * <li><p><strong>VpnAttachment</strong>: IPsec-VPN connection</p> * <p>An IPsec-VPN connection associated with a transit router or not associate with a resource.</p> * </li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>VpnGateway</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public MoveVpnResourceGroupRequest build() { return new MoveVpnResourceGroupRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/MoveVpnResourceGroupResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link MoveVpnResourceGroupResponse} extends {@link TeaModel} * * <p>MoveVpnResourceGroupResponse</p> */ public class MoveVpnResourceGroupResponse 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 MoveVpnResourceGroupResponseBody body; private MoveVpnResourceGroupResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static MoveVpnResourceGroupResponse 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 MoveVpnResourceGroupResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<MoveVpnResourceGroupResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(MoveVpnResourceGroupResponseBody body); @Override MoveVpnResourceGroupResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<MoveVpnResourceGroupResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private MoveVpnResourceGroupResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(MoveVpnResourceGroupResponse 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(MoveVpnResourceGroupResponseBody body) { this.body = body; return this; } @Override public MoveVpnResourceGroupResponse build() { return new MoveVpnResourceGroupResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/MoveVpnResourceGroupResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link MoveVpnResourceGroupResponseBody} extends {@link TeaModel} * * <p>MoveVpnResourceGroupResponseBody</p> */ public class MoveVpnResourceGroupResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private MoveVpnResourceGroupResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static MoveVpnResourceGroupResponseBody 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(MoveVpnResourceGroupResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>89ED47AF-3319-566E-A5F5-94E3F47F54A8</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public MoveVpnResourceGroupResponseBody build() { return new MoveVpnResourceGroupResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenFlowLogServiceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenFlowLogServiceRequest} extends {@link RequestModel} * * <p>OpenFlowLogServiceRequest</p> */ public class OpenFlowLogServiceRequest 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 OpenFlowLogServiceRequest(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 OpenFlowLogServiceRequest 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<OpenFlowLogServiceRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(OpenFlowLogServiceRequest 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 token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not set this parameter, the system automatically set <strong>ClientToken</strong> to the value of <strong>RequestId</strong>. The value of <strong>RequestId</strong> for each API request is 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 OpenFlowLogServiceRequest build() { return new OpenFlowLogServiceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenFlowLogServiceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenFlowLogServiceResponse} extends {@link TeaModel} * * <p>OpenFlowLogServiceResponse</p> */ public class OpenFlowLogServiceResponse 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 OpenFlowLogServiceResponseBody body; private OpenFlowLogServiceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static OpenFlowLogServiceResponse 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 OpenFlowLogServiceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<OpenFlowLogServiceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(OpenFlowLogServiceResponseBody body); @Override OpenFlowLogServiceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<OpenFlowLogServiceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private OpenFlowLogServiceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(OpenFlowLogServiceResponse 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(OpenFlowLogServiceResponseBody body) { this.body = body; return this; } @Override public OpenFlowLogServiceResponse build() { return new OpenFlowLogServiceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenFlowLogServiceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenFlowLogServiceResponseBody} extends {@link TeaModel} * * <p>OpenFlowLogServiceResponseBody</p> */ public class OpenFlowLogServiceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private OpenFlowLogServiceResponseBody(Builder builder) { this.code = builder.code; this.message = builder.message; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static OpenFlowLogServiceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String code; private String message; private String requestId; private Builder() { } private Builder(OpenFlowLogServiceResponseBody model) { this.code = model.code; this.message = model.message; this.requestId = model.requestId; } /** * <p>The HTTP status code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The information returned after the flow log feature is enabled.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>28CF47AB-B6C0-5FA2-80C7-2B28826A92CB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public OpenFlowLogServiceResponseBody build() { return new OpenFlowLogServiceResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenPhysicalConnectionServiceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenPhysicalConnectionServiceRequest} extends {@link RequestModel} * * <p>OpenPhysicalConnectionServiceRequest</p> */ public class OpenPhysicalConnectionServiceRequest 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 OpenPhysicalConnectionServiceRequest(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 OpenPhysicalConnectionServiceRequest 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<OpenPhysicalConnectionServiceRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(OpenPhysicalConnectionServiceRequest 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 where the Express Connect circuit 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 OpenPhysicalConnectionServiceRequest build() { return new OpenPhysicalConnectionServiceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenPhysicalConnectionServiceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenPhysicalConnectionServiceResponse} extends {@link TeaModel} * * <p>OpenPhysicalConnectionServiceResponse</p> */ public class OpenPhysicalConnectionServiceResponse 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 OpenPhysicalConnectionServiceResponseBody body; private OpenPhysicalConnectionServiceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static OpenPhysicalConnectionServiceResponse 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 OpenPhysicalConnectionServiceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<OpenPhysicalConnectionServiceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(OpenPhysicalConnectionServiceResponseBody body); @Override OpenPhysicalConnectionServiceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<OpenPhysicalConnectionServiceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private OpenPhysicalConnectionServiceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(OpenPhysicalConnectionServiceResponse 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(OpenPhysicalConnectionServiceResponseBody body) { this.body = body; return this; } @Override public OpenPhysicalConnectionServiceResponse build() { return new OpenPhysicalConnectionServiceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenPhysicalConnectionServiceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenPhysicalConnectionServiceResponseBody} extends {@link TeaModel} * * <p>OpenPhysicalConnectionServiceResponseBody</p> */ public class OpenPhysicalConnectionServiceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private OpenPhysicalConnectionServiceResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static OpenPhysicalConnectionServiceResponseBody 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(OpenPhysicalConnectionServiceResponseBody model) { this.requestId = model.requestId; } /** * <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 OpenPhysicalConnectionServiceResponseBody build() { return new OpenPhysicalConnectionServiceResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenPublicIpAddressPoolServiceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenPublicIpAddressPoolServiceRequest} extends {@link RequestModel} * * <p>OpenPublicIpAddressPoolServiceRequest</p> */ public class OpenPublicIpAddressPoolServiceRequest 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 OpenPublicIpAddressPoolServiceRequest(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 OpenPublicIpAddressPoolServiceRequest 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<OpenPublicIpAddressPoolServiceRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(OpenPublicIpAddressPoolServiceRequest 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; } /** * ClientToken. */ 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>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 OpenPublicIpAddressPoolServiceRequest build() { return new OpenPublicIpAddressPoolServiceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenPublicIpAddressPoolServiceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenPublicIpAddressPoolServiceResponse} extends {@link TeaModel} * * <p>OpenPublicIpAddressPoolServiceResponse</p> */ public class OpenPublicIpAddressPoolServiceResponse 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 OpenPublicIpAddressPoolServiceResponseBody body; private OpenPublicIpAddressPoolServiceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static OpenPublicIpAddressPoolServiceResponse 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 OpenPublicIpAddressPoolServiceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<OpenPublicIpAddressPoolServiceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(OpenPublicIpAddressPoolServiceResponseBody body); @Override OpenPublicIpAddressPoolServiceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<OpenPublicIpAddressPoolServiceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private OpenPublicIpAddressPoolServiceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(OpenPublicIpAddressPoolServiceResponse 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(OpenPublicIpAddressPoolServiceResponseBody body) { this.body = body; return this; } @Override public OpenPublicIpAddressPoolServiceResponse build() { return new OpenPublicIpAddressPoolServiceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenPublicIpAddressPoolServiceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenPublicIpAddressPoolServiceResponseBody} extends {@link TeaModel} * * <p>OpenPublicIpAddressPoolServiceResponseBody</p> */ public class OpenPublicIpAddressPoolServiceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private OpenPublicIpAddressPoolServiceResponseBody(Builder builder) { this.code = builder.code; this.message = builder.message; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static OpenPublicIpAddressPoolServiceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String code; private String message; private String requestId; private Builder() { } private Builder(OpenPublicIpAddressPoolServiceResponseBody model) { this.code = model.code; this.message = model.message; this.requestId = model.requestId; } /** * Code. */ public Builder code(String code) { this.code = code; return this; } /** * Message. */ public Builder message(String message) { this.message = message; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public OpenPublicIpAddressPoolServiceResponseBody build() { return new OpenPublicIpAddressPoolServiceResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenTrafficMirrorServiceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenTrafficMirrorServiceRequest} extends {@link RequestModel} * * <p>OpenTrafficMirrorServiceRequest</p> */ public class OpenTrafficMirrorServiceRequest 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 OpenTrafficMirrorServiceRequest(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 OpenTrafficMirrorServiceRequest 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<OpenTrafficMirrorServiceRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(OpenTrafficMirrorServiceRequest 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 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-426655442222</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 OpenTrafficMirrorServiceRequest build() { return new OpenTrafficMirrorServiceRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenTrafficMirrorServiceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenTrafficMirrorServiceResponse} extends {@link TeaModel} * * <p>OpenTrafficMirrorServiceResponse</p> */ public class OpenTrafficMirrorServiceResponse 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 OpenTrafficMirrorServiceResponseBody body; private OpenTrafficMirrorServiceResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static OpenTrafficMirrorServiceResponse 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 OpenTrafficMirrorServiceResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<OpenTrafficMirrorServiceResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(OpenTrafficMirrorServiceResponseBody body); @Override OpenTrafficMirrorServiceResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<OpenTrafficMirrorServiceResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private OpenTrafficMirrorServiceResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(OpenTrafficMirrorServiceResponse 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(OpenTrafficMirrorServiceResponseBody body) { this.body = body; return this; } @Override public OpenTrafficMirrorServiceResponse build() { return new OpenTrafficMirrorServiceResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/OpenTrafficMirrorServiceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link OpenTrafficMirrorServiceResponseBody} extends {@link TeaModel} * * <p>OpenTrafficMirrorServiceResponseBody</p> */ public class OpenTrafficMirrorServiceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private String code; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private OpenTrafficMirrorServiceResponseBody(Builder builder) { this.code = builder.code; this.message = builder.message; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static OpenTrafficMirrorServiceResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return code */ public String getCode() { return this.code; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private String code; private String message; private String requestId; private Builder() { } private Builder(OpenTrafficMirrorServiceResponseBody model) { this.code = model.code; this.message = model.message; this.requestId = model.requestId; } /** * <p>The error code.</p> * * <strong>example:</strong> * <p>200</p> */ public Builder code(String code) { this.code = code; return this; } /** * <p>The information returned after traffic mirror is enabled.</p> * * <strong>example:</strong> * <p>successful</p> */ public Builder message(String message) { this.message = message; return this; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4FCCF008-4C13-4231-BE77-D5203801A9E2</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public OpenTrafficMirrorServiceResponseBody build() { return new OpenTrafficMirrorServiceResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/PublishVpcRouteEntriesRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link PublishVpcRouteEntriesRequest} extends {@link RequestModel} * * <p>PublishVpcRouteEntriesRequest</p> */ public class PublishVpcRouteEntriesRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteEntries") private java.util.List<RouteEntries> routeEntries; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String targetInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TargetType") @com.aliyun.core.annotation.Validation(required = true) private String targetType; private PublishVpcRouteEntriesRequest(Builder builder) { super(builder); this.dryRun = builder.dryRun; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeEntries = builder.routeEntries; this.targetInstanceId = builder.targetInstanceId; this.targetType = builder.targetType; } public static Builder builder() { return new Builder(); } public static PublishVpcRouteEntriesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeEntries */ public java.util.List<RouteEntries> getRouteEntries() { return this.routeEntries; } /** * @return targetInstanceId */ public String getTargetInstanceId() { return this.targetInstanceId; } /** * @return targetType */ public String getTargetType() { return this.targetType; } public static final class Builder extends Request.Builder<PublishVpcRouteEntriesRequest, Builder> { private Boolean dryRun; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List<RouteEntries> routeEntries; private String targetInstanceId; private String targetType; private Builder() { super(); } private Builder(PublishVpcRouteEntriesRequest request) { super(request); this.dryRun = request.dryRun; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeEntries = request.routeEntries; this.targetInstanceId = request.targetInstanceId; this.targetType = request.targetType; } /** * <p>Indicates whether to perform a dry run of this request. Values:</p> * <ul> * <li><p><strong>true</strong>: Sends a check request without publishing the route. The checks include whether the AccessKey is valid, the authorization status of the RAM user, and if all required parameters are filled out. If the check fails, the corresponding error is returned. If the check passes, the <code>DryRunOperation</code> error code is returned.</p> * </li> * <li><p><strong>false</strong> (default): Sends a normal request. After passing the check, it returns a 2xx HTTP status code and directly queries the resource status.</p> * </li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region where the instance is located. You can obtain the region ID by calling the DescribeRegions interface.</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>List of route entries to be published, supporting up to 50 routes at most.</p> */ public Builder routeEntries(java.util.List<RouteEntries> routeEntries) { this.putQueryParameter("RouteEntries", routeEntries); this.routeEntries = routeEntries; return this; } /** * <p>The ID of the target instance for route publication.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ecr-dhw2xsds5****</p> */ public Builder targetInstanceId(String targetInstanceId) { this.putQueryParameter("TargetInstanceId", targetInstanceId); this.targetInstanceId = targetInstanceId; return this; } /** * <p>The type of the target for route publication.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ECR</p> */ public Builder targetType(String targetType) { this.putQueryParameter("TargetType", targetType); this.targetType = targetType; return this; } @Override public PublishVpcRouteEntriesRequest build() { return new PublishVpcRouteEntriesRequest(this); } } /** * * {@link PublishVpcRouteEntriesRequest} extends {@link TeaModel} * * <p>PublishVpcRouteEntriesRequest</p> */ public static class RouteEntries extends TeaModel { @com.aliyun.core.annotation.NameInMap("DestinationCidrBlock") @com.aliyun.core.annotation.Validation(required = true) private String destinationCidrBlock; @com.aliyun.core.annotation.NameInMap("RouteTableId") @com.aliyun.core.annotation.Validation(required = true) private String routeTableId; private RouteEntries(Builder builder) { this.destinationCidrBlock = builder.destinationCidrBlock; this.routeTableId = builder.routeTableId; } public static Builder builder() { return new Builder(); } public static RouteEntries create() { return builder().build(); } /** * @return destinationCidrBlock */ public String getDestinationCidrBlock() { return this.destinationCidrBlock; } /** * @return routeTableId */ public String getRouteTableId() { return this.routeTableId; } public static final class Builder { private String destinationCidrBlock; private String routeTableId; private Builder() { } private Builder(RouteEntries model) { this.destinationCidrBlock = model.destinationCidrBlock; this.routeTableId = model.routeTableId; } /** * <p>The destination CIDR block for the route entry.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>121.41.165.123/32</p> */ public Builder destinationCidrBlock(String destinationCidrBlock) { this.destinationCidrBlock = destinationCidrBlock; return this; } /** * <p>The ID of the route table for the route entry.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vtb-2ze3jgygk9bmsj23s****</p> */ public Builder routeTableId(String routeTableId) { this.routeTableId = routeTableId; return this; } public RouteEntries build() { return new RouteEntries(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/PublishVpcRouteEntriesResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link PublishVpcRouteEntriesResponse} extends {@link TeaModel} * * <p>PublishVpcRouteEntriesResponse</p> */ public class PublishVpcRouteEntriesResponse 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 PublishVpcRouteEntriesResponseBody body; private PublishVpcRouteEntriesResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static PublishVpcRouteEntriesResponse 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 PublishVpcRouteEntriesResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<PublishVpcRouteEntriesResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(PublishVpcRouteEntriesResponseBody body); @Override PublishVpcRouteEntriesResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<PublishVpcRouteEntriesResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private PublishVpcRouteEntriesResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(PublishVpcRouteEntriesResponse 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(PublishVpcRouteEntriesResponseBody body) { this.body = body; return this; } @Override public PublishVpcRouteEntriesResponse build() { return new PublishVpcRouteEntriesResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/PublishVpcRouteEntriesResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link PublishVpcRouteEntriesResponseBody} extends {@link TeaModel} * * <p>PublishVpcRouteEntriesResponseBody</p> */ public class PublishVpcRouteEntriesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private PublishVpcRouteEntriesResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static PublishVpcRouteEntriesResponseBody 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(PublishVpcRouteEntriesResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>980960B0-2969-40BF-8542-EBB34FD358AB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public PublishVpcRouteEntriesResponseBody build() { return new PublishVpcRouteEntriesResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/PublishVpnRouteEntryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link PublishVpnRouteEntryRequest} extends {@link RequestModel} * * <p>PublishVpnRouteEntryRequest</p> */ public class PublishVpnRouteEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextHop") @com.aliyun.core.annotation.Validation(required = true) private String nextHop; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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("PublishVpc") @com.aliyun.core.annotation.Validation(required = true) private Boolean publishVpc; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteDest") @com.aliyun.core.annotation.Validation(required = true) private String routeDest; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RouteType") @com.aliyun.core.annotation.Validation(required = true) private String routeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpnGatewayId") @com.aliyun.core.annotation.Validation(required = true) private String vpnGatewayId; private PublishVpnRouteEntryRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.nextHop = builder.nextHop; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.publishVpc = builder.publishVpc; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.routeDest = builder.routeDest; this.routeType = builder.routeType; this.vpnGatewayId = builder.vpnGatewayId; } public static Builder builder() { return new Builder(); } public static PublishVpnRouteEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return nextHop */ public String getNextHop() { return this.nextHop; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return publishVpc */ public Boolean getPublishVpc() { return this.publishVpc; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return routeDest */ public String getRouteDest() { return this.routeDest; } /** * @return routeType */ public String getRouteType() { return this.routeType; } /** * @return vpnGatewayId */ public String getVpnGatewayId() { return this.vpnGatewayId; } public static final class Builder extends Request.Builder<PublishVpnRouteEntryRequest, Builder> { private String clientToken; private String nextHop; private String ownerAccount; private Long ownerId; private Boolean publishVpc; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String routeDest; private String routeType; private String vpnGatewayId; private Builder() { super(); } private Builder(PublishVpnRouteEntryRequest request) { super(request); this.clientToken = request.clientToken; this.nextHop = request.nextHop; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.publishVpc = request.publishVpc; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.routeDest = request.routeDest; this.routeType = request.routeType; this.vpnGatewayId = request.vpnGatewayId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>d7d24a21-f4ba-4454-9173-b382****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The next hop of the VPN gateway route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vco-bp15oes1py4i66rmd****</p> */ public Builder nextHop(String nextHop) { this.putQueryParameter("NextHop", nextHop); this.nextHop = nextHop; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>Specifies whether to advertise the VPN gateway route to the VPC route table. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>true</p> */ public Builder publishVpc(Boolean publishVpc) { this.putQueryParameter("PublishVpc", publishVpc); this.publishVpc = publishVpc; return this; } /** * <p>The ID of the region where the VPN gateway is created.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The destination CIDR block of the VPN gateway route.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>10.0.0.0/24</p> */ public Builder routeDest(String routeDest) { this.putQueryParameter("RouteDest", routeDest); this.routeDest = routeDest; return this; } /** * <p>The type of the VPN gateway route. Valid values:</p> * <ul> * <li><strong>pbr</strong>: policy-based route</li> * <li><strong>dbr</strong>: destination-based route</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pbr</p> */ public Builder routeType(String routeType) { this.putQueryParameter("RouteType", routeType); this.routeType = routeType; return this; } /** * <p>The ID of the VPN gateway.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpn-bp1a3kqjiiq9legfx****</p> */ public Builder vpnGatewayId(String vpnGatewayId) { this.putQueryParameter("VpnGatewayId", vpnGatewayId); this.vpnGatewayId = vpnGatewayId; return this; } @Override public PublishVpnRouteEntryRequest build() { return new PublishVpnRouteEntryRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/PublishVpnRouteEntryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link PublishVpnRouteEntryResponse} extends {@link TeaModel} * * <p>PublishVpnRouteEntryResponse</p> */ public class PublishVpnRouteEntryResponse 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 PublishVpnRouteEntryResponseBody body; private PublishVpnRouteEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static PublishVpnRouteEntryResponse 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 PublishVpnRouteEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<PublishVpnRouteEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(PublishVpnRouteEntryResponseBody body); @Override PublishVpnRouteEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<PublishVpnRouteEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private PublishVpnRouteEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(PublishVpnRouteEntryResponse 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(PublishVpnRouteEntryResponseBody body) { this.body = body; return this; } @Override public PublishVpnRouteEntryResponse build() { return new PublishVpnRouteEntryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/PublishVpnRouteEntryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link PublishVpnRouteEntryResponseBody} extends {@link TeaModel} * * <p>PublishVpnRouteEntryResponseBody</p> */ public class PublishVpnRouteEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private PublishVpnRouteEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static PublishVpnRouteEntryResponseBody 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(PublishVpnRouteEntryResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public PublishVpnRouteEntryResponseBody build() { return new PublishVpnRouteEntryResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RecoverPhysicalConnectionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RecoverPhysicalConnectionRequest} extends {@link RequestModel} * * <p>RecoverPhysicalConnectionRequest</p> */ public class RecoverPhysicalConnectionRequest 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("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("Token") private String token; private RecoverPhysicalConnectionRequest(Builder builder) { super(builder); this.dryRun = builder.dryRun; this.instanceId = builder.instanceId; this.regionId = builder.regionId; this.token = builder.token; } public static Builder builder() { return new Builder(); } public static RecoverPhysicalConnectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return token */ public String getToken() { return this.token; } public static final class Builder extends Request.Builder<RecoverPhysicalConnectionRequest, Builder> { private Boolean dryRun; private String instanceId; private String regionId; private String token; private Builder() { super(); } private Builder(RecoverPhysicalConnectionRequest request) { super(request); this.dryRun = request.dryRun; this.instanceId = request.instanceId; this.regionId = request.regionId; this.token = request.token; } /** * <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 instance status. If the request fails the dry run, an error message is returned. If the request passes the dry run, the request ID 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 Express Connect circuit.</p> * <blockquote> * <p> You can resume only shared Express Connect circuits by calling this API operation.</p> * </blockquote> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-bp1mrgfbtmc9brre7****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The region ID of the Express Connect circuit.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * * <strong>example:</strong> * <p>CBCE910E-D396-4944-8****</p> */ public Builder token(String token) { this.putQueryParameter("Token", token); this.token = token; return this; } @Override public RecoverPhysicalConnectionRequest build() { return new RecoverPhysicalConnectionRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RecoverPhysicalConnectionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RecoverPhysicalConnectionResponse} extends {@link TeaModel} * * <p>RecoverPhysicalConnectionResponse</p> */ public class RecoverPhysicalConnectionResponse 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 RecoverPhysicalConnectionResponseBody body; private RecoverPhysicalConnectionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RecoverPhysicalConnectionResponse 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 RecoverPhysicalConnectionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RecoverPhysicalConnectionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RecoverPhysicalConnectionResponseBody body); @Override RecoverPhysicalConnectionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RecoverPhysicalConnectionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RecoverPhysicalConnectionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RecoverPhysicalConnectionResponse 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(RecoverPhysicalConnectionResponseBody body) { this.body = body; return this; } @Override public RecoverPhysicalConnectionResponse build() { return new RecoverPhysicalConnectionResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RecoverPhysicalConnectionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RecoverPhysicalConnectionResponseBody} extends {@link TeaModel} * * <p>RecoverPhysicalConnectionResponseBody</p> */ public class RecoverPhysicalConnectionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RecoverPhysicalConnectionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RecoverPhysicalConnectionResponseBody 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(RecoverPhysicalConnectionResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>CD14EA74-E9C3-59A9-942A-DFEC7E12818D</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RecoverPhysicalConnectionResponseBody build() { return new RecoverPhysicalConnectionResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RecoverVirtualBorderRouterRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RecoverVirtualBorderRouterRequest} extends {@link RequestModel} * * <p>RecoverVirtualBorderRouterRequest</p> */ public class RecoverVirtualBorderRouterRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VbrId") @com.aliyun.core.annotation.Validation(required = true) private String vbrId; private RecoverVirtualBorderRouterRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.vbrId = builder.vbrId; } public static Builder builder() { return new Builder(); } public static RecoverVirtualBorderRouterRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return vbrId */ public String getVbrId() { return this.vbrId; } public static final class Builder extends Request.Builder<RecoverVirtualBorderRouterRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String vbrId; private Builder() { super(); } private Builder(RecoverVirtualBorderRouterRequest request) { super(request); this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.vbrId = request.vbrId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-0016e04115b</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the VBR.</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 VBR.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vbr-bp1lhl0taikrte****</p> */ public Builder vbrId(String vbrId) { this.putQueryParameter("VbrId", vbrId); this.vbrId = vbrId; return this; } @Override public RecoverVirtualBorderRouterRequest build() { return new RecoverVirtualBorderRouterRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RecoverVirtualBorderRouterResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RecoverVirtualBorderRouterResponse} extends {@link TeaModel} * * <p>RecoverVirtualBorderRouterResponse</p> */ public class RecoverVirtualBorderRouterResponse 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 RecoverVirtualBorderRouterResponseBody body; private RecoverVirtualBorderRouterResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RecoverVirtualBorderRouterResponse 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 RecoverVirtualBorderRouterResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RecoverVirtualBorderRouterResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RecoverVirtualBorderRouterResponseBody body); @Override RecoverVirtualBorderRouterResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RecoverVirtualBorderRouterResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RecoverVirtualBorderRouterResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RecoverVirtualBorderRouterResponse 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(RecoverVirtualBorderRouterResponseBody body) { this.body = body; return this; } @Override public RecoverVirtualBorderRouterResponse build() { return new RecoverVirtualBorderRouterResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RecoverVirtualBorderRouterResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RecoverVirtualBorderRouterResponseBody} extends {@link TeaModel} * * <p>RecoverVirtualBorderRouterResponseBody</p> */ public class RecoverVirtualBorderRouterResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RecoverVirtualBorderRouterResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RecoverVirtualBorderRouterResponseBody 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(RecoverVirtualBorderRouterResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>4EC47282-1B74-4534-BD0E-403F3EE64CAF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RecoverVirtualBorderRouterResponseBody build() { return new RecoverVirtualBorderRouterResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseEipAddressRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseEipAddressRequest} extends {@link RequestModel} * * <p>ReleaseEipAddressRequest</p> */ public class ReleaseEipAddressRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationId") @com.aliyun.core.annotation.Validation(required = true) private String allocationId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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 ReleaseEipAddressRequest(Builder builder) { super(builder); this.allocationId = builder.allocationId; 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 ReleaseEipAddressRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return allocationId */ public String getAllocationId() { return this.allocationId; } /** * @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<ReleaseEipAddressRequest, Builder> { private String allocationId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ReleaseEipAddressRequest request) { super(request); this.allocationId = request.allocationId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the EIP that you want to release.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-2zeerraiwb7uj6i0d****</p> */ public Builder allocationId(String allocationId) { this.putQueryParameter("AllocationId", allocationId); this.allocationId = allocationId; return this; } /** * 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 EIP 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> * * <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 ReleaseEipAddressRequest build() { return new ReleaseEipAddressRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseEipAddressResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseEipAddressResponse} extends {@link TeaModel} * * <p>ReleaseEipAddressResponse</p> */ public class ReleaseEipAddressResponse 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 ReleaseEipAddressResponseBody body; private ReleaseEipAddressResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ReleaseEipAddressResponse 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 ReleaseEipAddressResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ReleaseEipAddressResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ReleaseEipAddressResponseBody body); @Override ReleaseEipAddressResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ReleaseEipAddressResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ReleaseEipAddressResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ReleaseEipAddressResponse 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(ReleaseEipAddressResponseBody body) { this.body = body; return this; } @Override public ReleaseEipAddressResponse build() { return new ReleaseEipAddressResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseEipAddressResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseEipAddressResponseBody} extends {@link TeaModel} * * <p>ReleaseEipAddressResponseBody</p> */ public class ReleaseEipAddressResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ReleaseEipAddressResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ReleaseEipAddressResponseBody 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(ReleaseEipAddressResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>748C38F6-9A3D-482E-83FB-DB6C39C68AEA</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ReleaseEipAddressResponseBody build() { return new ReleaseEipAddressResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseEipSegmentAddressRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseEipSegmentAddressRequest} extends {@link RequestModel} * * <p>ReleaseEipSegmentAddressRequest</p> */ public class ReleaseEipSegmentAddressRequest 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("SegmentInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String segmentInstanceId; private ReleaseEipSegmentAddressRequest(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.segmentInstanceId = builder.segmentInstanceId; } public static Builder builder() { return new Builder(); } public static ReleaseEipSegmentAddressRequest 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 segmentInstanceId */ public String getSegmentInstanceId() { return this.segmentInstanceId; } public static final class Builder extends Request.Builder<ReleaseEipSegmentAddressRequest, Builder> { private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String segmentInstanceId; private Builder() { super(); } private Builder(ReleaseEipSegmentAddressRequest 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.segmentInstanceId = request.segmentInstanceId; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>02fb3da4-130e-11e9-8e44-001sdfg</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 contiguous EIPs. 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 contiguous EIP group to be released.</p> * <p>The system releases all EIPs in the group.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eipsg-2zett8ba055tbsxme****</p> */ public Builder segmentInstanceId(String segmentInstanceId) { this.putQueryParameter("SegmentInstanceId", segmentInstanceId); this.segmentInstanceId = segmentInstanceId; return this; } @Override public ReleaseEipSegmentAddressRequest build() { return new ReleaseEipSegmentAddressRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseEipSegmentAddressResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseEipSegmentAddressResponse} extends {@link TeaModel} * * <p>ReleaseEipSegmentAddressResponse</p> */ public class ReleaseEipSegmentAddressResponse 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 ReleaseEipSegmentAddressResponseBody body; private ReleaseEipSegmentAddressResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ReleaseEipSegmentAddressResponse 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 ReleaseEipSegmentAddressResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ReleaseEipSegmentAddressResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ReleaseEipSegmentAddressResponseBody body); @Override ReleaseEipSegmentAddressResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ReleaseEipSegmentAddressResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ReleaseEipSegmentAddressResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ReleaseEipSegmentAddressResponse 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(ReleaseEipSegmentAddressResponseBody body) { this.body = body; return this; } @Override public ReleaseEipSegmentAddressResponse build() { return new ReleaseEipSegmentAddressResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseEipSegmentAddressResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseEipSegmentAddressResponseBody} extends {@link TeaModel} * * <p>ReleaseEipSegmentAddressResponseBody</p> */ public class ReleaseEipSegmentAddressResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ReleaseEipSegmentAddressResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ReleaseEipSegmentAddressResponseBody 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(ReleaseEipSegmentAddressResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>F7A6301A-64BA-41EC-8284-8F4838C15D1F</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ReleaseEipSegmentAddressResponseBody build() { return new ReleaseEipSegmentAddressResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseIpv6AddressRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseIpv6AddressRequest} extends {@link RequestModel} * * <p>ReleaseIpv6AddressRequest</p> */ public class ReleaseIpv6AddressRequest 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("Ipv6AddressId") @com.aliyun.core.annotation.Validation(required = true) private String ipv6AddressId; @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 ReleaseIpv6AddressRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ipv6AddressId = builder.ipv6AddressId; 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 ReleaseIpv6AddressRequest 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 ipv6AddressId */ public String getIpv6AddressId() { return this.ipv6AddressId; } /** * @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<ReleaseIpv6AddressRequest, Builder> { private String clientToken; private Boolean dryRun; private String ipv6AddressId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ReleaseIpv6AddressRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ipv6AddressId = request.ipv6AddressId; 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 ensure 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 specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</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 precheck, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * <p>The ID of the IPv6 address.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6-2zen5j4axcp5l5qyy****</p> */ public Builder ipv6AddressId(String ipv6AddressId) { this.putQueryParameter("Ipv6AddressId", ipv6AddressId); this.ipv6AddressId = ipv6AddressId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ReleaseIpv6AddressRequest build() { return new ReleaseIpv6AddressRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseIpv6AddressResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseIpv6AddressResponse} extends {@link TeaModel} * * <p>ReleaseIpv6AddressResponse</p> */ public class ReleaseIpv6AddressResponse 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 ReleaseIpv6AddressResponseBody body; private ReleaseIpv6AddressResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ReleaseIpv6AddressResponse 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 ReleaseIpv6AddressResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ReleaseIpv6AddressResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ReleaseIpv6AddressResponseBody body); @Override ReleaseIpv6AddressResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ReleaseIpv6AddressResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ReleaseIpv6AddressResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ReleaseIpv6AddressResponse 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(ReleaseIpv6AddressResponseBody body) { this.body = body; return this; } @Override public ReleaseIpv6AddressResponse build() { return new ReleaseIpv6AddressResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReleaseIpv6AddressResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReleaseIpv6AddressResponseBody} extends {@link TeaModel} * * <p>ReleaseIpv6AddressResponseBody</p> */ public class ReleaseIpv6AddressResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ReleaseIpv6AddressResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ReleaseIpv6AddressResponseBody 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(ReleaseIpv6AddressResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C44F62BE-9CE7-4277-B117-69243F3988BF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ReleaseIpv6AddressResponseBody build() { return new ReleaseIpv6AddressResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveCommonBandwidthPackageIpRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveCommonBandwidthPackageIpRequest} extends {@link RequestModel} * * <p>RemoveCommonBandwidthPackageIpRequest</p> */ public class RemoveCommonBandwidthPackageIpRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BandwidthPackageId") @com.aliyun.core.annotation.Validation(required = true) private String bandwidthPackageId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String ipInstanceId; @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 RemoveCommonBandwidthPackageIpRequest(Builder builder) { super(builder); this.bandwidthPackageId = builder.bandwidthPackageId; this.clientToken = builder.clientToken; this.ipInstanceId = builder.ipInstanceId; 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 RemoveCommonBandwidthPackageIpRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidthPackageId */ public String getBandwidthPackageId() { return this.bandwidthPackageId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return ipInstanceId */ public String getIpInstanceId() { return this.ipInstanceId; } /** * @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<RemoveCommonBandwidthPackageIpRequest, Builder> { private String bandwidthPackageId; private String clientToken; private String ipInstanceId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(RemoveCommonBandwidthPackageIpRequest request) { super(request); this.bandwidthPackageId = request.bandwidthPackageId; this.clientToken = request.clientToken; this.ipInstanceId = request.ipInstanceId; 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 Internet Shared Bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cbwp-2ze2ic1xd2qeqk145****</p> */ public Builder bandwidthPackageId(String bandwidthPackageId) { this.putQueryParameter("BandwidthPackageId", bandwidthPackageId); this.bandwidthPackageId = bandwidthPackageId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The EIP ID.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36018.html">DescribeEipAddresses</a> operation to query EIP IDs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-2zeerraiwb7uj6i0d****</p> */ public Builder ipInstanceId(String ipInstanceId) { this.putQueryParameter("IpInstanceId", ipInstanceId); this.ipInstanceId = ipInstanceId; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region ID of the Internet Shared Bandwidth instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public RemoveCommonBandwidthPackageIpRequest build() { return new RemoveCommonBandwidthPackageIpRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveCommonBandwidthPackageIpResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveCommonBandwidthPackageIpResponse} extends {@link TeaModel} * * <p>RemoveCommonBandwidthPackageIpResponse</p> */ public class RemoveCommonBandwidthPackageIpResponse 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 RemoveCommonBandwidthPackageIpResponseBody body; private RemoveCommonBandwidthPackageIpResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveCommonBandwidthPackageIpResponse 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 RemoveCommonBandwidthPackageIpResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveCommonBandwidthPackageIpResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveCommonBandwidthPackageIpResponseBody body); @Override RemoveCommonBandwidthPackageIpResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveCommonBandwidthPackageIpResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveCommonBandwidthPackageIpResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveCommonBandwidthPackageIpResponse 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(RemoveCommonBandwidthPackageIpResponseBody body) { this.body = body; return this; } @Override public RemoveCommonBandwidthPackageIpResponse build() { return new RemoveCommonBandwidthPackageIpResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveCommonBandwidthPackageIpResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveCommonBandwidthPackageIpResponseBody} extends {@link TeaModel} * * <p>RemoveCommonBandwidthPackageIpResponseBody</p> */ public class RemoveCommonBandwidthPackageIpResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveCommonBandwidthPackageIpResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveCommonBandwidthPackageIpResponseBody 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(RemoveCommonBandwidthPackageIpResponseBody 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 RemoveCommonBandwidthPackageIpResponseBody build() { return new RemoveCommonBandwidthPackageIpResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveGlobalAccelerationInstanceIpRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveGlobalAccelerationInstanceIpRequest} extends {@link RequestModel} * * <p>RemoveGlobalAccelerationInstanceIpRequest</p> */ public class RemoveGlobalAccelerationInstanceIpRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GlobalAccelerationInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String globalAccelerationInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("IpInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String ipInstanceId; @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 RemoveGlobalAccelerationInstanceIpRequest(Builder builder) { super(builder); this.globalAccelerationInstanceId = builder.globalAccelerationInstanceId; this.ipInstanceId = builder.ipInstanceId; 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 RemoveGlobalAccelerationInstanceIpRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return globalAccelerationInstanceId */ public String getGlobalAccelerationInstanceId() { return this.globalAccelerationInstanceId; } /** * @return ipInstanceId */ public String getIpInstanceId() { return this.ipInstanceId; } /** * @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<RemoveGlobalAccelerationInstanceIpRequest, Builder> { private String globalAccelerationInstanceId; private String ipInstanceId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(RemoveGlobalAccelerationInstanceIpRequest request) { super(request); this.globalAccelerationInstanceId = request.globalAccelerationInstanceId; this.ipInstanceId = request.ipInstanceId; 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 shared-bandwidth instance.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ga-m5ex47zwya1sejyni****</p> */ public Builder globalAccelerationInstanceId(String globalAccelerationInstanceId) { this.putQueryParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); this.globalAccelerationInstanceId = globalAccelerationInstanceId; return this; } /** * <p>The ID of the EIP.</p> * <p>To query the EIP ID, call DescribeEipAddresses.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-bp13e9i2qst4g6jzi****</p> */ public Builder ipInstanceId(String ipInstanceId) { this.putQueryParameter("IpInstanceId", ipInstanceId); this.ipInstanceId = ipInstanceId; 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 shared-bandwidth instance is located.</p> * <p>To query the region ID, call DescribeRegions.</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 RemoveGlobalAccelerationInstanceIpRequest build() { return new RemoveGlobalAccelerationInstanceIpRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveGlobalAccelerationInstanceIpResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveGlobalAccelerationInstanceIpResponse} extends {@link TeaModel} * * <p>RemoveGlobalAccelerationInstanceIpResponse</p> */ public class RemoveGlobalAccelerationInstanceIpResponse 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 RemoveGlobalAccelerationInstanceIpResponseBody body; private RemoveGlobalAccelerationInstanceIpResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveGlobalAccelerationInstanceIpResponse 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 RemoveGlobalAccelerationInstanceIpResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveGlobalAccelerationInstanceIpResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveGlobalAccelerationInstanceIpResponseBody body); @Override RemoveGlobalAccelerationInstanceIpResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveGlobalAccelerationInstanceIpResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveGlobalAccelerationInstanceIpResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveGlobalAccelerationInstanceIpResponse 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(RemoveGlobalAccelerationInstanceIpResponseBody body) { this.body = body; return this; } @Override public RemoveGlobalAccelerationInstanceIpResponse build() { return new RemoveGlobalAccelerationInstanceIpResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveGlobalAccelerationInstanceIpResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveGlobalAccelerationInstanceIpResponseBody} extends {@link TeaModel} * * <p>RemoveGlobalAccelerationInstanceIpResponseBody</p> */ public class RemoveGlobalAccelerationInstanceIpResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveGlobalAccelerationInstanceIpResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveGlobalAccelerationInstanceIpResponseBody 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(RemoveGlobalAccelerationInstanceIpResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>5BE01CD7-5A50-472D-AC14-CA181C5C03BE</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RemoveGlobalAccelerationInstanceIpResponseBody build() { return new RemoveGlobalAccelerationInstanceIpResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveIPv6TranslatorAclListEntryRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveIPv6TranslatorAclListEntryRequest} extends {@link RequestModel} * * <p>RemoveIPv6TranslatorAclListEntryRequest</p> */ public class RemoveIPv6TranslatorAclListEntryRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclEntryId") @com.aliyun.core.annotation.Validation(required = true) private String aclEntryId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AclId") @com.aliyun.core.annotation.Validation(required = true) private String aclId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("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 RemoveIPv6TranslatorAclListEntryRequest(Builder builder) { super(builder); this.aclEntryId = builder.aclEntryId; this.aclId = builder.aclId; 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 RemoveIPv6TranslatorAclListEntryRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return aclEntryId */ public String getAclEntryId() { return this.aclEntryId; } /** * @return aclId */ public String getAclId() { return this.aclId; } /** * @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<RemoveIPv6TranslatorAclListEntryRequest, Builder> { private String aclEntryId; private String aclId; private String clientToken; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(RemoveIPv6TranslatorAclListEntryRequest request) { super(request); this.aclEntryId = request.aclEntryId; this.aclId = request.aclId; this.clientToken = request.clientToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * <p>The ID of the ACL entry to be deleted.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6transaclentry-bp105jrs****</p> */ public Builder aclEntryId(String aclEntryId) { this.putQueryParameter("AclEntryId", aclEntryId); this.aclEntryId = aclEntryId; return this; } /** * <p>The ID of the ACL to which the ACL entry belongs.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ipv6transacl-bp1de2****</p> */ public Builder aclId(String aclId) { this.putQueryParameter("AclId", aclId); this.aclId = aclId; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The region of the ACL.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public RemoveIPv6TranslatorAclListEntryRequest build() { return new RemoveIPv6TranslatorAclListEntryRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveIPv6TranslatorAclListEntryResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveIPv6TranslatorAclListEntryResponse} extends {@link TeaModel} * * <p>RemoveIPv6TranslatorAclListEntryResponse</p> */ public class RemoveIPv6TranslatorAclListEntryResponse 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 RemoveIPv6TranslatorAclListEntryResponseBody body; private RemoveIPv6TranslatorAclListEntryResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveIPv6TranslatorAclListEntryResponse 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 RemoveIPv6TranslatorAclListEntryResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveIPv6TranslatorAclListEntryResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveIPv6TranslatorAclListEntryResponseBody body); @Override RemoveIPv6TranslatorAclListEntryResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveIPv6TranslatorAclListEntryResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveIPv6TranslatorAclListEntryResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveIPv6TranslatorAclListEntryResponse 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(RemoveIPv6TranslatorAclListEntryResponseBody body) { this.body = body; return this; } @Override public RemoveIPv6TranslatorAclListEntryResponse build() { return new RemoveIPv6TranslatorAclListEntryResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveIPv6TranslatorAclListEntryResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveIPv6TranslatorAclListEntryResponseBody} extends {@link TeaModel} * * <p>RemoveIPv6TranslatorAclListEntryResponseBody</p> */ public class RemoveIPv6TranslatorAclListEntryResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveIPv6TranslatorAclListEntryResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveIPv6TranslatorAclListEntryResponseBody 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(RemoveIPv6TranslatorAclListEntryResponseBody 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 RemoveIPv6TranslatorAclListEntryResponseBody build() { return new RemoveIPv6TranslatorAclListEntryResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveSourcesFromTrafficMirrorSessionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveSourcesFromTrafficMirrorSessionRequest} extends {@link RequestModel} * * <p>RemoveSourcesFromTrafficMirrorSessionRequest</p> */ public class RemoveSourcesFromTrafficMirrorSessionRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorSessionId") @com.aliyun.core.annotation.Validation(required = true) private String trafficMirrorSessionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TrafficMirrorSourceIds") @com.aliyun.core.annotation.Validation(required = true, maxLength = 128) private java.util.List<String> trafficMirrorSourceIds; private RemoveSourcesFromTrafficMirrorSessionRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.trafficMirrorSessionId = builder.trafficMirrorSessionId; this.trafficMirrorSourceIds = builder.trafficMirrorSourceIds; } public static Builder builder() { return new Builder(); } public static RemoveSourcesFromTrafficMirrorSessionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return trafficMirrorSessionId */ public String getTrafficMirrorSessionId() { return this.trafficMirrorSessionId; } /** * @return trafficMirrorSourceIds */ public java.util.List<String> getTrafficMirrorSourceIds() { return this.trafficMirrorSourceIds; } public static final class Builder extends Request.Builder<RemoveSourcesFromTrafficMirrorSessionRequest, Builder> { private String clientToken; private Boolean dryRun; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String trafficMirrorSessionId; private java.util.List<String> trafficMirrorSourceIds; private Builder() { super(); } private Builder(RemoveSourcesFromTrafficMirrorSessionRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.trafficMirrorSessionId = request.trafficMirrorSessionId; this.trafficMirrorSourceIds = request.trafficMirrorSourceIds; } /** * <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 the value 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 uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>0c593ea1-3bea-11e9-b96b-88e9fe63****</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>Specifies whether to check the request without performing the operation. Valid values:</p> * <ul> * <li><strong>true</strong>: checks the request without performing the operation. The system checks the required parameters, request format, and limits. If the request fails the check, an error message is returned. If the request passes the check, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong> (default): sends the request. After the request passes the check, the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region to which the traffic mirror session belongs. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list. For more information about regions that support traffic mirror, see <a href="https://help.aliyun.com/document_detail/207513.html">Overview of traffic mirror</a>.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hongkong</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The ID of the traffic mirror session from which you want to delete a traffic mirror source.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>tms-j6cla50buc44ap8tu****</p> */ public Builder trafficMirrorSessionId(String trafficMirrorSessionId) { this.putQueryParameter("TrafficMirrorSessionId", trafficMirrorSessionId); this.trafficMirrorSessionId = trafficMirrorSessionId; return this; } /** * <p>The ID of the traffic mirror source to be deleted. Maximum value of N: 10.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eni-j6c8znm5l1yt4sox****</p> */ public Builder trafficMirrorSourceIds(java.util.List<String> trafficMirrorSourceIds) { this.putQueryParameter("TrafficMirrorSourceIds", trafficMirrorSourceIds); this.trafficMirrorSourceIds = trafficMirrorSourceIds; return this; } @Override public RemoveSourcesFromTrafficMirrorSessionRequest build() { return new RemoveSourcesFromTrafficMirrorSessionRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveSourcesFromTrafficMirrorSessionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveSourcesFromTrafficMirrorSessionResponse} extends {@link TeaModel} * * <p>RemoveSourcesFromTrafficMirrorSessionResponse</p> */ public class RemoveSourcesFromTrafficMirrorSessionResponse 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 RemoveSourcesFromTrafficMirrorSessionResponseBody body; private RemoveSourcesFromTrafficMirrorSessionResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RemoveSourcesFromTrafficMirrorSessionResponse 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 RemoveSourcesFromTrafficMirrorSessionResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RemoveSourcesFromTrafficMirrorSessionResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RemoveSourcesFromTrafficMirrorSessionResponseBody body); @Override RemoveSourcesFromTrafficMirrorSessionResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RemoveSourcesFromTrafficMirrorSessionResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RemoveSourcesFromTrafficMirrorSessionResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RemoveSourcesFromTrafficMirrorSessionResponse 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(RemoveSourcesFromTrafficMirrorSessionResponseBody body) { this.body = body; return this; } @Override public RemoveSourcesFromTrafficMirrorSessionResponse build() { return new RemoveSourcesFromTrafficMirrorSessionResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RemoveSourcesFromTrafficMirrorSessionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RemoveSourcesFromTrafficMirrorSessionResponseBody} extends {@link TeaModel} * * <p>RemoveSourcesFromTrafficMirrorSessionResponseBody</p> */ public class RemoveSourcesFromTrafficMirrorSessionResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RemoveSourcesFromTrafficMirrorSessionResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RemoveSourcesFromTrafficMirrorSessionResponseBody 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(RemoveSourcesFromTrafficMirrorSessionResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>A33B2C6A-89D1-4DEA-A807-A6E8CC552484</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RemoveSourcesFromTrafficMirrorSessionResponseBody build() { return new RemoveSourcesFromTrafficMirrorSessionResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReplaceVpcDhcpOptionsSetRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReplaceVpcDhcpOptionsSetRequest} extends {@link RequestModel} * * <p>ReplaceVpcDhcpOptionsSetRequest</p> */ public class ReplaceVpcDhcpOptionsSetRequest 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 ReplaceVpcDhcpOptionsSetRequest(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 ReplaceVpcDhcpOptionsSetRequest 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<ReplaceVpcDhcpOptionsSetRequest, 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(ReplaceVpcDhcpOptionsSetRequest 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 value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not set this parameter, the system uses <strong>RequestId</strong> as <strong>ClientToken</strong>. <strong>RequestId</strong> may be different for each API request.</p> * </blockquote> * * <strong>example:</strong> * <p>0c593ea1-3bea-11e9-b96b-88e9fe637760</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the new 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; } /** * <p>Specifies whether to check the request without performing the operation. Valid values:</p> * <ul> * <li><strong>true</strong>: checks the request without performing the operation. The system checks whether your AccessKey pair is valid, whether the Resource Access Management (RAM) user is authorized, and whether the required parameters are set. If the request fails to pass the check, the corresponding error message is returned. If the request passes the check, the DryRunOperation error code is returned.</li> * <li><strong>false</strong> (default): sends the request. If the request passes the check, a 2XX HTTP status code is returned and the operation is performed.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The 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 associated VPC.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-dsferghthth****</p> */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public ReplaceVpcDhcpOptionsSetRequest build() { return new ReplaceVpcDhcpOptionsSetRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReplaceVpcDhcpOptionsSetResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReplaceVpcDhcpOptionsSetResponse} extends {@link TeaModel} * * <p>ReplaceVpcDhcpOptionsSetResponse</p> */ public class ReplaceVpcDhcpOptionsSetResponse 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 ReplaceVpcDhcpOptionsSetResponseBody body; private ReplaceVpcDhcpOptionsSetResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static ReplaceVpcDhcpOptionsSetResponse 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 ReplaceVpcDhcpOptionsSetResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<ReplaceVpcDhcpOptionsSetResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(ReplaceVpcDhcpOptionsSetResponseBody body); @Override ReplaceVpcDhcpOptionsSetResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<ReplaceVpcDhcpOptionsSetResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private ReplaceVpcDhcpOptionsSetResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(ReplaceVpcDhcpOptionsSetResponse 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(ReplaceVpcDhcpOptionsSetResponseBody body) { this.body = body; return this; } @Override public ReplaceVpcDhcpOptionsSetResponse build() { return new ReplaceVpcDhcpOptionsSetResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/ReplaceVpcDhcpOptionsSetResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link ReplaceVpcDhcpOptionsSetResponseBody} extends {@link TeaModel} * * <p>ReplaceVpcDhcpOptionsSetResponseBody</p> */ public class ReplaceVpcDhcpOptionsSetResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private ReplaceVpcDhcpOptionsSetResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static ReplaceVpcDhcpOptionsSetResponseBody 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(ReplaceVpcDhcpOptionsSetResponseBody model) { this.requestId = model.requestId; } /** * <p>The ID of the request.</p> * * <strong>example:</strong> * <p>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public ReplaceVpcDhcpOptionsSetResponseBody build() { return new ReplaceVpcDhcpOptionsSetResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RetryVpcPrefixListAssociationRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RetryVpcPrefixListAssociationRequest} extends {@link RequestModel} * * <p>RetryVpcPrefixListAssociationRequest</p> */ public class RetryVpcPrefixListAssociationRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DryRun") private Boolean dryRun; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PrefixListId") @com.aliyun.core.annotation.Validation(required = true) private String prefixListId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private String resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; private RetryVpcPrefixListAssociationRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.dryRun = builder.dryRun; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.prefixListId = builder.prefixListId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; } public static Builder builder() { return new Builder(); } public static RetryVpcPrefixListAssociationRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return prefixListId */ public String getPrefixListId() { return this.prefixListId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceId */ public String getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } public static final class Builder extends Request.Builder<RetryVpcPrefixListAssociationRequest, Builder> { private String clientToken; private Boolean dryRun; private String ownerAccount; private Long ownerId; private String prefixListId; private String regionId; private String resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private Builder() { super(); } private Builder(RetryVpcPrefixListAssociationRequest request) { super(request); this.clientToken = request.clientToken; this.dryRun = request.dryRun; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.prefixListId = request.prefixListId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not 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 associating the prefix list. The system prechecks the required parameters, request syntax, and limits. If the request fails the precheck, an error message is returned. If the request passes the precheck, the <code>DryRunOperation</code> error code is returned.</li> * <li><strong>false</strong>: sends the request. If the request passes the precheck, a 2xx HTTP status code is returned and the prefix list is associated. This is the default value.</li> * </ul> * * <strong>example:</strong> * <p>false</p> */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * 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 re-apply.</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 that you want to re-apply.</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 associated resource.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vtb-bp1drpcfz9srr393h****</p> */ public Builder resourceId(String resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of the resource with which the prefix list is associated. Valid values:</p> * <ul> * <li><strong>vpcRouteTable</strong>: VPC route table</li> * <li><strong>trRouteTable</strong>: route table of a transit router</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpcRouteTable</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } @Override public RetryVpcPrefixListAssociationRequest build() { return new RetryVpcPrefixListAssociationRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RetryVpcPrefixListAssociationResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RetryVpcPrefixListAssociationResponse} extends {@link TeaModel} * * <p>RetryVpcPrefixListAssociationResponse</p> */ public class RetryVpcPrefixListAssociationResponse 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 RetryVpcPrefixListAssociationResponseBody body; private RetryVpcPrefixListAssociationResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RetryVpcPrefixListAssociationResponse 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 RetryVpcPrefixListAssociationResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RetryVpcPrefixListAssociationResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RetryVpcPrefixListAssociationResponseBody body); @Override RetryVpcPrefixListAssociationResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RetryVpcPrefixListAssociationResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RetryVpcPrefixListAssociationResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RetryVpcPrefixListAssociationResponse 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(RetryVpcPrefixListAssociationResponseBody body) { this.body = body; return this; } @Override public RetryVpcPrefixListAssociationResponse build() { return new RetryVpcPrefixListAssociationResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RetryVpcPrefixListAssociationResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RetryVpcPrefixListAssociationResponseBody} extends {@link TeaModel} * * <p>RetryVpcPrefixListAssociationResponseBody</p> */ public class RetryVpcPrefixListAssociationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RetryVpcPrefixListAssociationResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RetryVpcPrefixListAssociationResponseBody 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(RetryVpcPrefixListAssociationResponseBody model) { this.requestId = model.requestId; } /** * <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; } public RetryVpcPrefixListAssociationResponseBody build() { return new RetryVpcPrefixListAssociationResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RevokeInstanceFromCenRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RevokeInstanceFromCenRequest} extends {@link RequestModel} * * <p>RevokeInstanceFromCenRequest</p> */ public class RevokeInstanceFromCenRequest 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 RevokeInstanceFromCenRequest(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 RevokeInstanceFromCenRequest 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<RevokeInstanceFromCenRequest, 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(RevokeInstanceFromCenRequest 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 the network instance is attached.</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> * <li><strong>CCN</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 RevokeInstanceFromCenRequest build() { return new RevokeInstanceFromCenRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RevokeInstanceFromCenResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RevokeInstanceFromCenResponse} extends {@link TeaModel} * * <p>RevokeInstanceFromCenResponse</p> */ public class RevokeInstanceFromCenResponse 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 RevokeInstanceFromCenResponseBody body; private RevokeInstanceFromCenResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RevokeInstanceFromCenResponse 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 RevokeInstanceFromCenResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RevokeInstanceFromCenResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RevokeInstanceFromCenResponseBody body); @Override RevokeInstanceFromCenResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RevokeInstanceFromCenResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RevokeInstanceFromCenResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RevokeInstanceFromCenResponse 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(RevokeInstanceFromCenResponseBody body) { this.body = body; return this; } @Override public RevokeInstanceFromCenResponse build() { return new RevokeInstanceFromCenResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RevokeInstanceFromCenResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RevokeInstanceFromCenResponseBody} extends {@link TeaModel} * * <p>RevokeInstanceFromCenResponseBody</p> */ public class RevokeInstanceFromCenResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RevokeInstanceFromCenResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RevokeInstanceFromCenResponseBody 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(RevokeInstanceFromCenResponseBody 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 RevokeInstanceFromCenResponseBody build() { return new RevokeInstanceFromCenResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RevokeInstanceFromVbrRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RevokeInstanceFromVbrRequest} extends {@link RequestModel} * * <p>RevokeInstanceFromVbrRequest</p> */ public class RevokeInstanceFromVbrRequest 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 String vbrOwnerUid; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VbrRegionNo") @com.aliyun.core.annotation.Validation(required = true) private String vbrRegionNo; private RevokeInstanceFromVbrRequest(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 RevokeInstanceFromVbrRequest 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 String getVbrOwnerUid() { return this.vbrOwnerUid; } /** * @return vbrRegionNo */ public String getVbrRegionNo() { return this.vbrRegionNo; } public static final class Builder extends Request.Builder<RevokeInstanceFromVbrRequest, Builder> { private String grantType; private String instanceId; private String regionId; private java.util.List<String> vbrInstanceIds; private String vbrOwnerUid; private String vbrRegionNo; private Builder() { super(); } private Builder(RevokeInstanceFromVbrRequest 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 for which you want to revoke permissions on the VPC. Valid values:</p> * <ul> * <li><strong>ALL</strong>: Permissions on the VPC are revoked for all VBRs in the specified region. <strong>VbrInstanceIds</strong> can be left empty.</li> * <li><strong>Specify</strong>: Permissions on the VPC are revoked for 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 VPC ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>vpc-bp1brjuegjc88v3u9****</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 IDs of the VBRs for which you want to revoke the permissions.</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(String 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 RevokeInstanceFromVbrRequest build() { return new RevokeInstanceFromVbrRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RevokeInstanceFromVbrResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RevokeInstanceFromVbrResponse} extends {@link TeaModel} * * <p>RevokeInstanceFromVbrResponse</p> */ public class RevokeInstanceFromVbrResponse 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 RevokeInstanceFromVbrResponseBody body; private RevokeInstanceFromVbrResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static RevokeInstanceFromVbrResponse 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 RevokeInstanceFromVbrResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<RevokeInstanceFromVbrResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(RevokeInstanceFromVbrResponseBody body); @Override RevokeInstanceFromVbrResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<RevokeInstanceFromVbrResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private RevokeInstanceFromVbrResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(RevokeInstanceFromVbrResponse 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(RevokeInstanceFromVbrResponseBody body) { this.body = body; return this; } @Override public RevokeInstanceFromVbrResponse build() { return new RevokeInstanceFromVbrResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/RevokeInstanceFromVbrResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link RevokeInstanceFromVbrResponseBody} extends {@link TeaModel} * * <p>RevokeInstanceFromVbrResponseBody</p> */ public class RevokeInstanceFromVbrResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private RevokeInstanceFromVbrResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static RevokeInstanceFromVbrResponseBody 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(RevokeInstanceFromVbrResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>45B7AA4A-4658-5FFC-90DD-9B8729F301BB</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public RevokeInstanceFromVbrResponseBody build() { return new RevokeInstanceFromVbrResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/SecondApplyPhysicalConnectionLOARequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link SecondApplyPhysicalConnectionLOARequest} extends {@link RequestModel} * * <p>SecondApplyPhysicalConnectionLOARequest</p> */ public class SecondApplyPhysicalConnectionLOARequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") private Integer bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CompanyName") @com.aliyun.core.annotation.Validation(required = true) private String companyName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ConstructionTime") @com.aliyun.core.annotation.Validation(required = true) private String constructionTime; @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("LineType") @com.aliyun.core.annotation.Validation(required = true) private String lineType; @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("PMInfo") private java.util.List<PMInfo> PMInfo; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeerLocation") private String peerLocation; @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("Si") @com.aliyun.core.annotation.Validation(required = true) private String si; private SecondApplyPhysicalConnectionLOARequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.clientToken = builder.clientToken; this.companyName = builder.companyName; this.constructionTime = builder.constructionTime; this.instanceId = builder.instanceId; this.lineType = builder.lineType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.PMInfo = builder.PMInfo; this.peerLocation = builder.peerLocation; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.si = builder.si; } public static Builder builder() { return new Builder(); } public static SecondApplyPhysicalConnectionLOARequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public Integer getBandwidth() { return this.bandwidth; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return companyName */ public String getCompanyName() { return this.companyName; } /** * @return constructionTime */ public String getConstructionTime() { return this.constructionTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lineType */ public String getLineType() { return this.lineType; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return PMInfo */ public java.util.List<PMInfo> getPMInfo() { return this.PMInfo; } /** * @return peerLocation */ public String getPeerLocation() { return this.peerLocation; } /** * @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 si */ public String getSi() { return this.si; } public static final class Builder extends Request.Builder<SecondApplyPhysicalConnectionLOARequest, Builder> { private Integer bandwidth; private String clientToken; private String companyName; private String constructionTime; private String instanceId; private String lineType; private String ownerAccount; private Long ownerId; private java.util.List<PMInfo> PMInfo; private String peerLocation; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String si; private Builder() { super(); } private Builder(SecondApplyPhysicalConnectionLOARequest request) { super(request); this.bandwidth = request.bandwidth; this.clientToken = request.clientToken; this.companyName = request.companyName; this.constructionTime = request.constructionTime; this.instanceId = request.instanceId; this.lineType = request.lineType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.PMInfo = request.PMInfo; this.peerLocation = request.peerLocation; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.si = request.si; } /** * <p>The bandwidth of the Express Connect circuit. Unit: Mbit/s.</p> * <p>Valid values: <strong>2</strong> to <strong>10240</strong>.</p> * * <strong>example:</strong> * <p>3</p> */ public Builder bandwidth(Integer bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests.</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>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The name of the customer company that requires the Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>company</p> */ public Builder companyName(String companyName) { this.putQueryParameter("CompanyName", companyName); this.companyName = companyName; return this; } /** * <p>The time when construction started. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>2022-02-28T16:00:00Z</p> */ public Builder constructionTime(String constructionTime) { this.putQueryParameter("ConstructionTime", constructionTime); this.constructionTime = constructionTime; return this; } /** * <p>The ID of the Express Connect circuit.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>pc-bp1qrb3044eqi****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The type of Express Connect circuit. Valid values:</p> * <ul> * <li><strong>MSTP</strong></li> * <li><strong>MPLSVPN</strong></li> * <li><strong>FIBRE</strong></li> * <li><strong>Other</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>FIBRE</p> */ public Builder lineType(String lineType) { this.putQueryParameter("LineType", lineType); this.lineType = lineType; 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 information about the construction engineer.</p> */ public Builder PMInfo(java.util.List<PMInfo> PMInfo) { this.putQueryParameter("PMInfo", PMInfo); this.PMInfo = PMInfo; return this; } /** * <p>The geographic location where the Express Connect circuit is deployed.</p> * * <strong>example:</strong> * <p>XX Number, XX Road, XX Town, XX District, Hangzhou City, Zhejiang Province.</p> */ public Builder peerLocation(String peerLocation) { this.putQueryParameter("PeerLocation", peerLocation); this.peerLocation = peerLocation; return this; } /** * <p>The region where the Express Connect circuit is deployed. You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The construction company.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>company</p> */ public Builder si(String si) { this.putQueryParameter("Si", si); this.si = si; return this; } @Override public SecondApplyPhysicalConnectionLOARequest build() { return new SecondApplyPhysicalConnectionLOARequest(this); } } /** * * {@link SecondApplyPhysicalConnectionLOARequest} extends {@link TeaModel} * * <p>SecondApplyPhysicalConnectionLOARequest</p> */ public static class PMInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("PMCertificateNo") private String PMCertificateNo; @com.aliyun.core.annotation.NameInMap("PMCertificateType") private String PMCertificateType; @com.aliyun.core.annotation.NameInMap("PMContactInfo") private String PMContactInfo; @com.aliyun.core.annotation.NameInMap("PMGender") private String PMGender; @com.aliyun.core.annotation.NameInMap("PMName") private String PMName; private PMInfo(Builder builder) { this.PMCertificateNo = builder.PMCertificateNo; this.PMCertificateType = builder.PMCertificateType; this.PMContactInfo = builder.PMContactInfo; this.PMGender = builder.PMGender; this.PMName = builder.PMName; } public static Builder builder() { return new Builder(); } public static PMInfo create() { return builder().build(); } /** * @return PMCertificateNo */ public String getPMCertificateNo() { return this.PMCertificateNo; } /** * @return PMCertificateType */ public String getPMCertificateType() { return this.PMCertificateType; } /** * @return PMContactInfo */ public String getPMContactInfo() { return this.PMContactInfo; } /** * @return PMGender */ public String getPMGender() { return this.PMGender; } /** * @return PMName */ public String getPMName() { return this.PMName; } public static final class Builder { private String PMCertificateNo; private String PMCertificateType; private String PMContactInfo; private String PMGender; private String PMName; private Builder() { } private Builder(PMInfo model) { this.PMCertificateNo = model.PMCertificateNo; this.PMCertificateType = model.PMCertificateType; this.PMContactInfo = model.PMContactInfo; this.PMGender = model.PMGender; this.PMName = model.PMName; } /** * <p>The ID number of the construction engineer. You can specify the ID number of an ID card or an international passport.</p> * <p>You can configure information for up to 16 construction engineers.</p> * * <strong>example:</strong> * <p>5****************9</p> */ public Builder PMCertificateNo(String PMCertificateNo) { this.PMCertificateNo = PMCertificateNo; return this; } /** * <p>The type of the identity document of the construction engineer. Valid values:</p> * <ul> * <li><strong>IDCard</strong></li> * <li><strong>Passport</strong></li> * </ul> * * <strong>example:</strong> * <p>IDCard</p> */ public Builder PMCertificateType(String PMCertificateType) { this.PMCertificateType = PMCertificateType; return this; } /** * <p>The contact information about the construction engineer.</p> * * <strong>example:</strong> * <p>1390000****</p> */ public Builder PMContactInfo(String PMContactInfo) { this.PMContactInfo = PMContactInfo; return this; } /** * <p>The gender of the construction engineer.</p> * * <strong>example:</strong> * <p>Male</p> */ public Builder PMGender(String PMGender) { this.PMGender = PMGender; return this; } /** * <p>The name of the construction engineer.</p> * * <strong>example:</strong> * <p>Zhangsan</p> */ public Builder PMName(String PMName) { this.PMName = PMName; return this; } public PMInfo build() { return new PMInfo(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/SecondApplyPhysicalConnectionLOAResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link SecondApplyPhysicalConnectionLOAResponse} extends {@link TeaModel} * * <p>SecondApplyPhysicalConnectionLOAResponse</p> */ public class SecondApplyPhysicalConnectionLOAResponse 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 SecondApplyPhysicalConnectionLOAResponseBody body; private SecondApplyPhysicalConnectionLOAResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SecondApplyPhysicalConnectionLOAResponse 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 SecondApplyPhysicalConnectionLOAResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SecondApplyPhysicalConnectionLOAResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SecondApplyPhysicalConnectionLOAResponseBody body); @Override SecondApplyPhysicalConnectionLOAResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SecondApplyPhysicalConnectionLOAResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SecondApplyPhysicalConnectionLOAResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SecondApplyPhysicalConnectionLOAResponse 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(SecondApplyPhysicalConnectionLOAResponseBody body) { this.body = body; return this; } @Override public SecondApplyPhysicalConnectionLOAResponse build() { return new SecondApplyPhysicalConnectionLOAResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/SecondApplyPhysicalConnectionLOAResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link SecondApplyPhysicalConnectionLOAResponseBody} extends {@link TeaModel} * * <p>SecondApplyPhysicalConnectionLOAResponseBody</p> */ public class SecondApplyPhysicalConnectionLOAResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private SecondApplyPhysicalConnectionLOAResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static SecondApplyPhysicalConnectionLOAResponseBody 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(SecondApplyPhysicalConnectionLOAResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>A47BD386-7FDE-42C4-8D22-C6223D18AA1C</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public SecondApplyPhysicalConnectionLOAResponseBody build() { return new SecondApplyPhysicalConnectionLOAResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/SetHighDefinitionMonitorLogStatusRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link SetHighDefinitionMonitorLogStatusRequest} extends {@link RequestModel} * * <p>SetHighDefinitionMonitorLogStatusRequest</p> */ public class SetHighDefinitionMonitorLogStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceType") private String instanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogProject") @com.aliyun.core.annotation.Validation(required = true) private String logProject; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LogStore") @com.aliyun.core.annotation.Validation(required = true) private String logStore; @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("Status") @com.aliyun.core.annotation.Validation(required = true) private String status; private SetHighDefinitionMonitorLogStatusRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.instanceType = builder.instanceType; this.logProject = builder.logProject; this.logStore = builder.logStore; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static SetHighDefinitionMonitorLogStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return logProject */ public String getLogProject() { return this.logProject; } /** * @return logStore */ public String getLogStore() { return this.logStore; } /** * @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 status */ public String getStatus() { return this.status; } public static final class Builder extends Request.Builder<SetHighDefinitionMonitorLogStatusRequest, Builder> { private String instanceId; private String instanceType; private String logProject; private String logStore; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String status; private Builder() { super(); } private Builder(SetHighDefinitionMonitorLogStatusRequest request) { super(request); this.instanceId = request.instanceId; this.instanceType = request.instanceType; this.logProject = request.logProject; this.logStore = request.logStore; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.status = request.status; } /** * <p>The ID of the instance for which you want to configure fine-grained monitoring.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eip-wz9fi6qboho9fwgx7****</p> */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * <p>The instance type. Set the value to <strong>EIP</strong>.</p> * * <strong>example:</strong> * <p>EIP</p> */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * <p>The name of the Simple Log Service (SLS) project.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>hdmonitor-cn-shenzhen</p> */ public Builder logProject(String logProject) { this.putQueryParameter("LogProject", logProject); this.logProject = logProject; return this; } /** * <p>The name of the Logstore.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>hdmonitor</p> */ public Builder logStore(String logStore) { this.putQueryParameter("LogStore", logStore); this.logStore = logStore; 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 instance.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to query the most recent region list.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The status of fine-grained monitoring. Valid values:</p> * <ul> * <li><strong>ON</strong></li> * <li><strong>OFF</strong></li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ON</p> */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } @Override public SetHighDefinitionMonitorLogStatusRequest build() { return new SetHighDefinitionMonitorLogStatusRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/SetHighDefinitionMonitorLogStatusResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link SetHighDefinitionMonitorLogStatusResponse} extends {@link TeaModel} * * <p>SetHighDefinitionMonitorLogStatusResponse</p> */ public class SetHighDefinitionMonitorLogStatusResponse 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 SetHighDefinitionMonitorLogStatusResponseBody body; private SetHighDefinitionMonitorLogStatusResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static SetHighDefinitionMonitorLogStatusResponse 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 SetHighDefinitionMonitorLogStatusResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<SetHighDefinitionMonitorLogStatusResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(SetHighDefinitionMonitorLogStatusResponseBody body); @Override SetHighDefinitionMonitorLogStatusResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<SetHighDefinitionMonitorLogStatusResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private SetHighDefinitionMonitorLogStatusResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(SetHighDefinitionMonitorLogStatusResponse 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(SetHighDefinitionMonitorLogStatusResponseBody body) { this.body = body; return this; } @Override public SetHighDefinitionMonitorLogStatusResponse build() { return new SetHighDefinitionMonitorLogStatusResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/SetHighDefinitionMonitorLogStatusResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link SetHighDefinitionMonitorLogStatusResponseBody} extends {@link TeaModel} * * <p>SetHighDefinitionMonitorLogStatusResponseBody</p> */ public class SetHighDefinitionMonitorLogStatusResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Success") private String success; private SetHighDefinitionMonitorLogStatusResponseBody(Builder builder) { this.requestId = builder.requestId; this.success = builder.success; } public static Builder builder() { return new Builder(); } public static SetHighDefinitionMonitorLogStatusResponseBody create() { return builder().build(); } public Builder toBuilder() { return new Builder(this); } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return success */ public String getSuccess() { return this.success; } public static final class Builder { private String requestId; private String success; private Builder() { } private Builder(SetHighDefinitionMonitorLogStatusResponseBody model) { this.requestId = model.requestId; this.success = model.success; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>54B48E3D-DF70-471B-AA93-08E683A1B457</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** * <p>Indicates whether the operation is performed. Valid values:</p> * <ul> * <li><strong>true</strong></li> * <li><strong>false</strong></li> * </ul> * * <strong>example:</strong> * <p>true</p> */ public Builder success(String success) { this.success = success; return this; } public SetHighDefinitionMonitorLogStatusResponseBody build() { return new SetHighDefinitionMonitorLogStatusResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/StartFailoverTestJobRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link StartFailoverTestJobRequest} extends {@link RequestModel} * * <p>StartFailoverTestJobRequest</p> */ public class StartFailoverTestJobRequest 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("JobId") @com.aliyun.core.annotation.Validation(required = true) private String jobId; @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; private StartFailoverTestJobRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.jobId = builder.jobId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static StartFailoverTestJobRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @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; } public static final class Builder extends Request.Builder<StartFailoverTestJobRequest, Builder> { private String clientToken; private String jobId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(StartFailoverTestJobRequest request) { super(request); this.clientToken = request.clientToken; this.jobId = request.jobId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p>If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the failover test.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ftj-xxxxxxxxx</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; 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 failover test.</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; } @Override public StartFailoverTestJobRequest build() { return new StartFailoverTestJobRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/StartFailoverTestJobResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link StartFailoverTestJobResponse} extends {@link TeaModel} * * <p>StartFailoverTestJobResponse</p> */ public class StartFailoverTestJobResponse 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 StartFailoverTestJobResponseBody body; private StartFailoverTestJobResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StartFailoverTestJobResponse 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 StartFailoverTestJobResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StartFailoverTestJobResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StartFailoverTestJobResponseBody body); @Override StartFailoverTestJobResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StartFailoverTestJobResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StartFailoverTestJobResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StartFailoverTestJobResponse 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(StartFailoverTestJobResponseBody body) { this.body = body; return this; } @Override public StartFailoverTestJobResponse build() { return new StartFailoverTestJobResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/StartFailoverTestJobResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link StartFailoverTestJobResponseBody} extends {@link TeaModel} * * <p>StartFailoverTestJobResponseBody</p> */ public class StartFailoverTestJobResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StartFailoverTestJobResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StartFailoverTestJobResponseBody 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(StartFailoverTestJobResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C44F62BE-9CE7-4277-B117-69243F3988BF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StartFailoverTestJobResponseBody build() { return new StartFailoverTestJobResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/StopFailoverTestJobRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link StopFailoverTestJobRequest} extends {@link RequestModel} * * <p>StopFailoverTestJobRequest</p> */ public class StopFailoverTestJobRequest 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("JobId") @com.aliyun.core.annotation.Validation(required = true) private String jobId; @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; private StopFailoverTestJobRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.jobId = builder.jobId; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; } public static Builder builder() { return new Builder(); } public static StopFailoverTestJobRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return jobId */ public String getJobId() { return this.jobId; } /** * @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; } public static final class Builder extends Request.Builder<StopFailoverTestJobRequest, Builder> { private String clientToken; private String jobId; private String ownerAccount; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Builder() { super(); } private Builder(StopFailoverTestJobRequest request) { super(request); this.clientToken = request.clientToken; this.jobId = request.jobId; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; } /** * <p>The client token that is used to ensure the idempotence of the request.</p> * <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.</p> * <blockquote> * <p> If you do not specify this parameter, the system automatically uses the <strong>request ID</strong> as the <strong>client token</strong>. The <strong>request ID</strong> may be different for each request.</p> * </blockquote> * * <strong>example:</strong> * <p>123e4567-e89b-12d3-a456-426655440000</p> */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * <p>The ID of the failover test.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>ftj-xxxxxxxxx</p> */ public Builder jobId(String jobId) { this.putQueryParameter("JobId", jobId); this.jobId = jobId; 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 failover test.</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; } @Override public StopFailoverTestJobRequest build() { return new StopFailoverTestJobRequest(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/StopFailoverTestJobResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link StopFailoverTestJobResponse} extends {@link TeaModel} * * <p>StopFailoverTestJobResponse</p> */ public class StopFailoverTestJobResponse 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 StopFailoverTestJobResponseBody body; private StopFailoverTestJobResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static StopFailoverTestJobResponse 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 StopFailoverTestJobResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<StopFailoverTestJobResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(StopFailoverTestJobResponseBody body); @Override StopFailoverTestJobResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<StopFailoverTestJobResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private StopFailoverTestJobResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(StopFailoverTestJobResponse 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(StopFailoverTestJobResponseBody body) { this.body = body; return this; } @Override public StopFailoverTestJobResponse build() { return new StopFailoverTestJobResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/StopFailoverTestJobResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link StopFailoverTestJobResponseBody} extends {@link TeaModel} * * <p>StopFailoverTestJobResponseBody</p> */ public class StopFailoverTestJobResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private StopFailoverTestJobResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static StopFailoverTestJobResponseBody 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(StopFailoverTestJobResponseBody model) { this.requestId = model.requestId; } /** * <p>The request ID.</p> * * <strong>example:</strong> * <p>C44F62BE-9CE7-4277-B117-69243F3988BF</p> */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public StopFailoverTestJobResponseBody build() { return new StopFailoverTestJobResponseBody(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/TagResourcesForExpressConnectRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link TagResourcesForExpressConnectRequest} extends {@link RequestModel} * * <p>TagResourcesForExpressConnectRequest</p> */ public class TagResourcesForExpressConnectRequest 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("ResourceId") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<String> resourceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") @com.aliyun.core.annotation.Validation(required = true) private java.util.List<Tag> tag; private TagResourcesForExpressConnectRequest(Builder builder) { super(builder); this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceId = builder.resourceId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.resourceType = builder.resourceType; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static TagResourcesForExpressConnectRequest 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 resourceId */ public java.util.List<String> getResourceId() { return this.resourceId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return tag */ public java.util.List<Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder<TagResourcesForExpressConnectRequest, Builder> { private String ownerAccount; private Long ownerId; private String regionId; private java.util.List<String> resourceId; private String resourceOwnerAccount; private Long resourceOwnerId; private String resourceType; private java.util.List<Tag> tag; private Builder() { super(); } private Builder(TagResourcesForExpressConnectRequest request) { super(request); this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceId = request.resourceId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.resourceType = request.resourceType; this.tag = request.tag; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * <p>The ID of the region in which the resource is deployed.</p> * <p>You can call the <a href="https://help.aliyun.com/document_detail/36063.html">DescribeRegions</a> operation to obtain the region ID.</p> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cn-hangzhou</p> */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * <p>The resource IDs. You can specify up to 20 resource IDs.</p> * <p>This parameter is required.</p> */ public Builder resourceId(java.util.List<String> resourceId) { this.putQueryParameter("ResourceId", resourceId); this.resourceId = resourceId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * <p>The type of the resource. Valid values:</p> * <ul> * <li><strong>PHYSICALCONNECTION</strong>: Express Connect circuit.</li> * <li><strong>VIRTUALBORDERROUTER</strong>: virtual border router (VBR).</li> * <li><strong>ROUTERINTERFACE</strong>: router interface.</li> * </ul> * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>PHYSICALCONNECTION</p> */ public Builder resourceType(String resourceType) { this.putQueryParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * <p>The tags to add to the resource.</p> * <p>This parameter is required.</p> */ public Builder tag(java.util.List<Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public TagResourcesForExpressConnectRequest build() { return new TagResourcesForExpressConnectRequest(this); } } /** * * {@link TagResourcesForExpressConnectRequest} extends {@link TeaModel} * * <p>TagResourcesForExpressConnectRequest</p> */ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; private Builder() { } private Builder(Tag model) { this.key = model.key; this.value = model.value; } /** * <p>The key of the tag to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.</p> * <p>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceDept</p> */ public Builder key(String key) { this.key = key; return this; } /** * <p>The value of the tag to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.</p> * <p>The tag value can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag value cannot start with <code>aliyun</code> or <code>acs:</code>.</p> * * <strong>example:</strong> * <p>FinanceJoshua</p> */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/TagResourcesForExpressConnectResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link TagResourcesForExpressConnectResponse} extends {@link TeaModel} * * <p>TagResourcesForExpressConnectResponse</p> */ public class TagResourcesForExpressConnectResponse 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 TagResourcesForExpressConnectResponseBody body; private TagResourcesForExpressConnectResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static TagResourcesForExpressConnectResponse 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 TagResourcesForExpressConnectResponseBody getBody() { return this.body; } public interface Builder extends Response.Builder<TagResourcesForExpressConnectResponse, Builder> { Builder headers(java.util.Map<String, String> headers); Builder statusCode(Integer statusCode); Builder body(TagResourcesForExpressConnectResponseBody body); @Override TagResourcesForExpressConnectResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl<TagResourcesForExpressConnectResponse, Builder> implements Builder { private java.util.Map<String, String> headers; private Integer statusCode; private TagResourcesForExpressConnectResponseBody body; private BuilderImpl() { super(); } private BuilderImpl(TagResourcesForExpressConnectResponse 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(TagResourcesForExpressConnectResponseBody body) { this.body = body; return this; } @Override public TagResourcesForExpressConnectResponse build() { return new TagResourcesForExpressConnectResponse(this); } } }
0
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428
java-sources/com/aliyun/alibabacloud-vpc20160428/5.0.42/com/aliyun/sdk/service/vpc20160428/models/TagResourcesForExpressConnectResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sdk.service.vpc20160428.models; import com.aliyun.sdk.gateway.pop.*; import darabonba.core.*; import darabonba.core.async.*; import darabonba.core.sync.*; import darabonba.core.client.*; import darabonba.core.RequestModel; import darabonba.core.TeaModel; import com.aliyun.sdk.gateway.pop.models.*; /** * * {@link TagResourcesForExpressConnectResponseBody} extends {@link TeaModel} * * <p>TagResourcesForExpressConnectResponseBody</p> */ public class TagResourcesForExpressConnectResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private TagResourcesForExpressConnectResponseBody(Builder builder) { this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static TagResourcesForExpressConnectResponseBody 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(TagResourcesForExpressConnectResponseBody 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 TagResourcesForExpressConnectResponseBody build() { return new TagResourcesForExpressConnectResponseBody(this); } } }