Class IpsecPolicy
- java.lang.Object
-
- com.azure.resourcemanager.network.models.IpsecPolicy
-
public final class IpsecPolicy extends Object
An IPSec Policy configuration for a virtual network gateway connection.
-
-
Constructor Summary
Constructors Constructor Description IpsecPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DhGroupdhGroup()Get the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.IkeEncryptionikeEncryption()Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).IkeIntegrityikeIntegrity()Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).IpsecEncryptionipsecEncryption()Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).IpsecIntegrityipsecIntegrity()Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).PfsGrouppfsGroup()Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.intsaDataSizeKilobytes()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.intsaLifeTimeSeconds()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.voidvalidate()Validates the instance.IpsecPolicywithDhGroup(DhGroup dhGroup)Set the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.IpsecPolicywithIkeEncryption(IkeEncryption ikeEncryption)Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).IpsecPolicywithIkeIntegrity(IkeIntegrity ikeIntegrity)Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).IpsecPolicywithIpsecEncryption(IpsecEncryption ipsecEncryption)Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).IpsecPolicywithIpsecIntegrity(IpsecIntegrity ipsecIntegrity)Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).IpsecPolicywithPfsGroup(PfsGroup pfsGroup)Set the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.IpsecPolicywithSaDataSizeKilobytes(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.IpsecPolicywithSaLifeTimeSeconds(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.
-
-
-
Method Detail
-
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
public IpsecPolicy 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.- 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
public IpsecPolicy 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.- Parameters:
saDataSizeKilobytes- the saDataSizeKilobytes value to set.- Returns:
- the IpsecPolicy object itself.
-
ipsecEncryption
public IpsecEncryption ipsecEncryption()
Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).- Returns:
- the ipsecEncryption value.
-
withIpsecEncryption
public IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)
Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).- Parameters:
ipsecEncryption- the ipsecEncryption value to set.- Returns:
- the IpsecPolicy object itself.
-
ipsecIntegrity
public IpsecIntegrity ipsecIntegrity()
Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).- Returns:
- the ipsecIntegrity value.
-
withIpsecIntegrity
public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)
Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).- Parameters:
ipsecIntegrity- the ipsecIntegrity value to set.- Returns:
- the IpsecPolicy object itself.
-
ikeEncryption
public IkeEncryption ikeEncryption()
Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).- Returns:
- the ikeEncryption value.
-
withIkeEncryption
public IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)
Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).- Parameters:
ikeEncryption- the ikeEncryption value to set.- Returns:
- the IpsecPolicy object itself.
-
ikeIntegrity
public IkeIntegrity ikeIntegrity()
Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).- Returns:
- the ikeIntegrity value.
-
withIkeIntegrity
public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)
Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).- Parameters:
ikeIntegrity- the ikeIntegrity value to set.- Returns:
- the IpsecPolicy object itself.
-
dhGroup
public DhGroup dhGroup()
Get the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.- Returns:
- the dhGroup value.
-
withDhGroup
public IpsecPolicy withDhGroup(DhGroup dhGroup)
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
public PfsGroup pfsGroup()
Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.- Returns:
- the pfsGroup value.
-
withPfsGroup
public IpsecPolicy withPfsGroup(PfsGroup pfsGroup)
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.
-
-