Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.implementation;
import com.microsoft.azure.management.network.IpsecEncryption;
import com.microsoft.azure.management.network.IpsecIntegrity;
import com.microsoft.azure.management.network.IkeEncryption;
import com.microsoft.azure.management.network.IkeIntegrity;
import com.microsoft.azure.management.network.DhGroup;
import com.microsoft.azure.management.network.PfsGroup;
import com.fasterxml.jackson.annotation.JsonProperty;
An IPSec parameters for a virtual network gateway P2S connection.
/**
* An IPSec parameters for a virtual network gateway P2S connection.
*/
public class VpnClientIPsecParametersInner {
The IPSec Security Association (also called Quick Mode or Phase 2 SA)
lifetime in seconds for P2S client.
/**
* The IPSec Security Association (also called Quick Mode or Phase 2 SA)
* lifetime in seconds for P2S client.
*/
@JsonProperty(value = "saLifeTimeSeconds", required = true)
private int saLifeTimeSeconds;
The IPSec Security Association (also called Quick Mode or Phase 2 SA)
payload size in KB for P2S client..
/**
* The IPSec Security Association (also called Quick Mode or Phase 2 SA)
* payload size in KB for P2S client..
*/
@JsonProperty(value = "saDataSizeKilobytes", required = true)
private int saDataSizeKilobytes;
The IPSec encryption algorithm (IKE phase 1). Possible values include:
'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128',
'GCMAES192', 'GCMAES256'.
/**
* The IPSec encryption algorithm (IKE phase 1). Possible values include:
* 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128',
* 'GCMAES192', 'GCMAES256'.
*/
@JsonProperty(value = "ipsecEncryption", required = true)
private IpsecEncryption ipsecEncryption;
The IPSec integrity algorithm (IKE phase 1). Possible values include:
'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
/**
* The IPSec integrity algorithm (IKE phase 1). Possible values include:
* 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
*/
@JsonProperty(value = "ipsecIntegrity", required = true)
private IpsecIntegrity ipsecIntegrity;
The IKE encryption algorithm (IKE phase 2). Possible values include:
'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
/**
* The IKE encryption algorithm (IKE phase 2). Possible values include:
* 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
*/
@JsonProperty(value = "ikeEncryption", required = true)
private IkeEncryption ikeEncryption;
The IKE integrity algorithm (IKE phase 2). Possible values include:
'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
/**
* The IKE integrity algorithm (IKE phase 2). Possible values include:
* 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
*/
@JsonProperty(value = "ikeIntegrity", required = true)
private IkeIntegrity ikeIntegrity;
The DH Group used in IKE Phase 1 for initial SA. Possible values
include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048',
'ECP256', 'ECP384', 'DHGroup24'.
/**
* The DH Group used in IKE Phase 1 for initial SA. Possible values
* include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048',
* 'ECP256', 'ECP384', 'DHGroup24'.
*/
@JsonProperty(value = "dhGroup", required = true)
private DhGroup dhGroup;
The Pfs Group used in IKE Phase 2 for new child SA. Possible values
include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24',
'PFS14', 'PFSMM'.
/**
* The Pfs Group used in IKE Phase 2 for new child SA. Possible values
* include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24',
* 'PFS14', 'PFSMM'.
*/
@JsonProperty(value = "pfsGroup", required = true)
private PfsGroup pfsGroup;
Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client.
Returns: the saLifeTimeSeconds value
/**
* Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client.
*
* @return the saLifeTimeSeconds value
*/
public int saLifeTimeSeconds() {
return this.saLifeTimeSeconds;
}
Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client.
Params: - saLifeTimeSeconds – the saLifeTimeSeconds value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client.
*
* @param saLifeTimeSeconds the saLifeTimeSeconds value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withSaLifeTimeSeconds(int saLifeTimeSeconds) {
this.saLifeTimeSeconds = saLifeTimeSeconds;
return this;
}
Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client..
Returns: the saDataSizeKilobytes value
/**
* Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client..
*
* @return the saDataSizeKilobytes value
*/
public int saDataSizeKilobytes() {
return this.saDataSizeKilobytes;
}
Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client..
Params: - saDataSizeKilobytes – the saDataSizeKilobytes value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client..
*
* @param saDataSizeKilobytes the saDataSizeKilobytes value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withSaDataSizeKilobytes(int saDataSizeKilobytes) {
this.saDataSizeKilobytes = saDataSizeKilobytes;
return this;
}
Get the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
Returns: the ipsecEncryption value
/**
* Get the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
*
* @return the ipsecEncryption value
*/
public IpsecEncryption ipsecEncryption() {
return this.ipsecEncryption;
}
Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
Params: - ipsecEncryption – the ipsecEncryption value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
*
* @param ipsecEncryption the ipsecEncryption value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withIpsecEncryption(IpsecEncryption ipsecEncryption) {
this.ipsecEncryption = ipsecEncryption;
return this;
}
Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
Returns: the ipsecIntegrity value
/**
* Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
*
* @return the ipsecIntegrity value
*/
public IpsecIntegrity ipsecIntegrity() {
return this.ipsecIntegrity;
}
Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
Params: - ipsecIntegrity – the ipsecIntegrity value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
*
* @param ipsecIntegrity the ipsecIntegrity value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withIpsecIntegrity(IpsecIntegrity ipsecIntegrity) {
this.ipsecIntegrity = ipsecIntegrity;
return this;
}
Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
Returns: the ikeEncryption value
/**
* Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
*
* @return the ikeEncryption value
*/
public IkeEncryption ikeEncryption() {
return this.ikeEncryption;
}
Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
Params: - ikeEncryption – the ikeEncryption value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
*
* @param ikeEncryption the ikeEncryption value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withIkeEncryption(IkeEncryption ikeEncryption) {
this.ikeEncryption = ikeEncryption;
return this;
}
Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
Returns: the ikeIntegrity value
/**
* Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
*
* @return the ikeIntegrity value
*/
public IkeIntegrity ikeIntegrity() {
return this.ikeIntegrity;
}
Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
Params: - ikeIntegrity – the ikeIntegrity value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
*
* @param ikeIntegrity the ikeIntegrity value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withIkeIntegrity(IkeIntegrity ikeIntegrity) {
this.ikeIntegrity = ikeIntegrity;
return this;
}
Get the DH Group used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'.
Returns: the dhGroup value
/**
* Get the DH Group used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'.
*
* @return the dhGroup value
*/
public DhGroup dhGroup() {
return this.dhGroup;
}
Set the DH Group used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'.
Params: - dhGroup – the dhGroup value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the DH Group used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'.
*
* @param dhGroup the dhGroup value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withDhGroup(DhGroup dhGroup) {
this.dhGroup = dhGroup;
return this;
}
Get the Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'.
Returns: the pfsGroup value
/**
* Get the Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'.
*
* @return the pfsGroup value
*/
public PfsGroup pfsGroup() {
return this.pfsGroup;
}
Set the Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'.
Params: - pfsGroup – the pfsGroup value to set
Returns: the VpnClientIPsecParametersInner object itself.
/**
* Set the Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'.
*
* @param pfsGroup the pfsGroup value to set
* @return the VpnClientIPsecParametersInner object itself.
*/
public VpnClientIPsecParametersInner withPfsGroup(PfsGroup pfsGroup) {
this.pfsGroup = pfsGroup;
return this;
}
}