public static final class UpdateIpsecServerRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
UpdateIpsecServerRequest |
build() |
UpdateIpsecServerRequest.Builder |
clientIpPool(String clientIpPool)
The client CIDR block from which an IP address is allocated to the virtual network interface controller (NIC) of the client.
|
UpdateIpsecServerRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
UpdateIpsecServerRequest.Builder |
dryRun(String dryRun)
Specifies whether to only precheck this request.
|
UpdateIpsecServerRequest.Builder |
effectImmediately(Boolean effectImmediately)
Specifies whether to delete the negotiated IPsec tunnel and initiate the negotiation again.
|
UpdateIpsecServerRequest.Builder |
ikeConfig(String ikeConfig)
The configuration of Phase 1 negotiations.
|
UpdateIpsecServerRequest.Builder |
ipsecConfig(String ipsecConfig)
The configuration of Phase 2 negotiation.
|
UpdateIpsecServerRequest.Builder |
ipsecServerId(String ipsecServerId)
The IPsec server ID.
|
UpdateIpsecServerRequest.Builder |
ipsecServerName(String ipsecServerName)
The name of the IPsec server.
|
UpdateIpsecServerRequest.Builder |
localSubnet(String localSubnet)
The local CIDR blocks, which are the CIDR blocks of the virtual private cloud (VPC) for the client to access.
|
UpdateIpsecServerRequest.Builder |
psk(String psk)
The pre-shared key.
|
UpdateIpsecServerRequest.Builder |
pskEnabled(Boolean pskEnabled)
Specifies whether to enable pre-shared key authentication.
|
UpdateIpsecServerRequest.Builder |
regionId(String regionId)
The ID of the region where the IPsec server is created.
|
public UpdateIpsecServerRequest.Builder clientIpPool(String clientIpPool)
> The client CIDR block must not overlap with the CIDR blocks of the VPC.
public UpdateIpsecServerRequest.Builder clientToken(String clientToken)
You can use the client to generate a value, and you must make sure that each request has a unique token value. The client token can contain only ASCII characters. > If you do not specify this parameter, the system automatically uses the value of **RequestId** as the value of **ClientToken**. The **request ID** may be different for each request.
public UpdateIpsecServerRequest.Builder dryRun(String dryRun)
* **true**: prechecks the request without modifying the configurations of the IPsec server. The system checks the required parameters, request format, and service limits. If the request fails to pass the precheck, an error code is returned. If the request passes the precheck, the `DryRunOperation` error code is returned. * **false**: sends the request. This is the default value. If the request passes the precheck, the system modifies the configurations of the IPsec server.
public UpdateIpsecServerRequest.Builder effectImmediately(Boolean effectImmediately)
* **true**: immediately initiates negotiations after the configuration is complete. * **false**: initiates negotiations when inbound traffic is detected.
public UpdateIpsecServerRequest.Builder ikeConfig(String ikeConfig)
* **IkeVersion**: The IKE version. Valid values: **ikev1** and **ikev2**. * **IkeMode**: The IKE negotiation mode. Default value: **main**. * **IkeEncAlg**: the encryption algorithm that is used in Phase 1 negotiation. Default value: **aes**. * **IkeAuthAlg**: the authentication algorithm that is used in Phase 1 negotiation. Default value: **sha1**. * **IkePfs**: The Diffie-Hellman key exchange algorithm that is used in Phase 1 negotiations. Default value: **group2**. * **IkeLifetime**: The SA lifetime determined by Phase 1 negotiations. Unit: seconds. Valid values: **0** to **86400**. Default value: **86400**. * **LocalId**: The identifier of the IPsec server. Only FQDN and IP address formats are supported. * **RemoteId**: the peer identifier. Only FQDN and IP address formats are supported.
public UpdateIpsecServerRequest.Builder ipsecConfig(String ipsecConfig)
* **IpsecEncAlg**: the encryption algorithm that is used in Phase 2 negotiation. Default value: **aes**. * **IpsecAuthAlg**: the authentication algorithm that is used in Phase 2 negotiation. Default value: **sha1**. * **IpsecPfs**: forwards packets of all protocols. The Diffie-Hellman key exchange algorithm that is used in Phase 2 negotiation. Default value: **group2**. * **IpsecLifetime**: the SA lifetime determined by Phase 2 negotiation. Unit: seconds. Valid values: **0** to **86400**. Default value: **86400**.
public UpdateIpsecServerRequest.Builder ipsecServerId(String ipsecServerId)
public UpdateIpsecServerRequest.Builder ipsecServerName(String ipsecServerName)
It must be 1 to 100 characters in length.
public UpdateIpsecServerRequest.Builder localSubnet(String localSubnet)
Multiple CIDR blocks are separated with commas (,). Example: 192.168.1.0/24,192.168.2.0/24.
public UpdateIpsecServerRequest.Builder psk(String psk)
The pre-shared key that is used for authentication between the IPsec-VPN server and the client. It must be 1 to 100 characters in length. You can call [ListIpsecServers](~~2794120~~) to query keys generated by the system. > The pre-shared key of the IPsec server key must be the same as that of the client. Otherwise, the connection between the IPsec server and the client cannot be established.
public UpdateIpsecServerRequest.Builder pskEnabled(Boolean pskEnabled)
public UpdateIpsecServerRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public UpdateIpsecServerRequest build()
Copyright © 2024. All rights reserved.