Class IpsecPolicy
java.lang.Object
com.azure.resourcemanager.network.models.IpsecPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IpsecPolicy>
public final class IpsecPolicy
extends Object
implements com.azure.json.JsonSerializable<IpsecPolicy>
An IPSec Policy configuration for a virtual network gateway connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondhGroup()Get the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.static IpsecPolicyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpsecPolicy from the JsonReader.Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).pfsGroup()Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.intGet the saDataSizeKilobytes property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel.intGet the saLifeTimeSeconds property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDhGroup(DhGroup dhGroup) Set the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.withIkeEncryption(IkeEncryption ikeEncryption) Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).withIkeIntegrity(IkeIntegrity ikeIntegrity) Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).withIpsecEncryption(IpsecEncryption ipsecEncryption) Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).withIpsecIntegrity(IpsecIntegrity ipsecIntegrity) Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).withPfsGroup(PfsGroup pfsGroup) Set the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.withSaDataSizeKilobytes(int saDataSizeKilobytes) Set the saDataSizeKilobytes property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel.withSaLifeTimeSeconds(int saLifeTimeSeconds) Set the saLifeTimeSeconds property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IpsecPolicy
public IpsecPolicy()Creates an instance of IpsecPolicy class.
-
-
Method Details
-
saLifeTimeSeconds
public int saLifeTimeSeconds()Get the saLifeTimeSeconds property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.- Returns:
- the saLifeTimeSeconds value.
-
withSaLifeTimeSeconds
Set the saLifeTimeSeconds property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.- Parameters:
saLifeTimeSeconds- the saLifeTimeSeconds value to set.- Returns:
- the IpsecPolicy object itself.
-
saDataSizeKilobytes
public int saDataSizeKilobytes()Get the saDataSizeKilobytes property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel.- Returns:
- the saDataSizeKilobytes value.
-
withSaDataSizeKilobytes
Set the saDataSizeKilobytes property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel.- Parameters:
saDataSizeKilobytes- the saDataSizeKilobytes value to set.- Returns:
- the IpsecPolicy object itself.
-
ipsecEncryption
Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).- Returns:
- the ipsecEncryption value.
-
withIpsecEncryption
Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).- Parameters:
ipsecEncryption- the ipsecEncryption value to set.- Returns:
- the IpsecPolicy object itself.
-
ipsecIntegrity
Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).- Returns:
- the ipsecIntegrity value.
-
withIpsecIntegrity
Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).- Parameters:
ipsecIntegrity- the ipsecIntegrity value to set.- Returns:
- the IpsecPolicy object itself.
-
ikeEncryption
Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).- Returns:
- the ikeEncryption value.
-
withIkeEncryption
Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).- Parameters:
ikeEncryption- the ikeEncryption value to set.- Returns:
- the IpsecPolicy object itself.
-
ikeIntegrity
Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).- Returns:
- the ikeIntegrity value.
-
withIkeIntegrity
Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).- Parameters:
ikeIntegrity- the ikeIntegrity value to set.- Returns:
- the IpsecPolicy object itself.
-
dhGroup
Get the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.- Returns:
- the dhGroup value.
-
withDhGroup
Set the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.- Parameters:
dhGroup- the dhGroup value to set.- Returns:
- the IpsecPolicy object itself.
-
pfsGroup
Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.- Returns:
- the pfsGroup value.
-
withPfsGroup
Set the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.- Parameters:
pfsGroup- the pfsGroup value to set.- Returns:
- the IpsecPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IpsecPolicy>- Throws:
IOException
-
fromJson
Reads an instance of IpsecPolicy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IpsecPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the IpsecPolicy.
-