public static final class ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder extends Object
构造器和说明 |
---|
Builder() |
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder ikeAuthAlg(String ikeAuthAlg)
* Valid values when the IPsec connection is attached to a standard VPN gateway: **md5**, **sha1**, **sha256**, **sha384**, and **sha512**. * Valid values when the IPsec connection is attached to a VPN gateway that uses an SM certificate: **sm3**.
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder ikeEncAlg(String ikeEncAlg)
* Valid values when the IPsec connection is attached to a standard VPN gateway: **aes**, **aes192**, **sha256**, **des**, and **3des**. * Valid values when the IPsec connection is attached to a VPN gateway that uses an SM certificate: **sm4**.
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder ikeLifetime(Long ikeLifetime)
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder ikeMode(String ikeMode)
* **main:** This mode offers higher security during negotiations. * **aggressive:** This mode is faster and has a higher success rate.
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder ikePfs(String ikePfs)
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder ikeVersion(String ikeVersion)
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder localId(String localId)
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder psk(String psk)
* It must be 1 to 100 characters in length, and can contain letters, digits, and the following characters: ``~!`@#$%^&*()_-+={}[]|;:\",.<>/?`` * If you do not specify a pre-shared key, the system generates a random 16-character string as the pre-shared key. You can call the [DescribeVpnConnection](~~120374~~) operation to query the pre-shared key that is generated by the system. > The pre-shared key that is configured for the tunnel and the tunnel peer must be the same. Otherwise, the system cannot establish the tunnel.
public ModifyTunnelAttributeRequest.TunnelIkeConfig.Builder remoteId(String remoteId)
public ModifyTunnelAttributeRequest.TunnelIkeConfig build()
Copyright © 2024. All rights reserved.