Package com.ibm.cloud.is.vpc.v1.model
Class CreateIkePolicyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateIkePolicyOptions.Builder
-
- Enclosing class:
- CreateIkePolicyOptions
public static class CreateIkePolicyOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateIkePolicyOptions.Builder
authenticationAlgorithm(String authenticationAlgorithm)
Set the authenticationAlgorithm.CreateIkePolicyOptions
build()
Builds a CreateIkePolicyOptions.CreateIkePolicyOptions.Builder
dhGroup(long dhGroup)
Set the dhGroup.CreateIkePolicyOptions.Builder
encryptionAlgorithm(String encryptionAlgorithm)
Set the encryptionAlgorithm.CreateIkePolicyOptions.Builder
ikeVersion(long ikeVersion)
Set the ikeVersion.CreateIkePolicyOptions.Builder
keyLifetime(long keyLifetime)
Set the keyLifetime.CreateIkePolicyOptions.Builder
name(String name)
Set the name.CreateIkePolicyOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String authenticationAlgorithm, Long dhGroup, String encryptionAlgorithm, Long ikeVersion)
Instantiates a new builder with required properties.- Parameters:
authenticationAlgorithm
- the authenticationAlgorithmdhGroup
- the dhGroupencryptionAlgorithm
- the encryptionAlgorithmikeVersion
- the ikeVersion
-
-
Method Detail
-
build
public CreateIkePolicyOptions build()
Builds a CreateIkePolicyOptions.- Returns:
- the new CreateIkePolicyOptions instance
-
authenticationAlgorithm
public CreateIkePolicyOptions.Builder authenticationAlgorithm(String authenticationAlgorithm)
Set the authenticationAlgorithm.- Parameters:
authenticationAlgorithm
- the authenticationAlgorithm- Returns:
- the CreateIkePolicyOptions builder
-
dhGroup
public CreateIkePolicyOptions.Builder dhGroup(long dhGroup)
Set the dhGroup.- Parameters:
dhGroup
- the dhGroup- Returns:
- the CreateIkePolicyOptions builder
-
encryptionAlgorithm
public CreateIkePolicyOptions.Builder encryptionAlgorithm(String encryptionAlgorithm)
Set the encryptionAlgorithm.- Parameters:
encryptionAlgorithm
- the encryptionAlgorithm- Returns:
- the CreateIkePolicyOptions builder
-
ikeVersion
public CreateIkePolicyOptions.Builder ikeVersion(long ikeVersion)
Set the ikeVersion.- Parameters:
ikeVersion
- the ikeVersion- Returns:
- the CreateIkePolicyOptions builder
-
keyLifetime
public CreateIkePolicyOptions.Builder keyLifetime(long keyLifetime)
Set the keyLifetime.- Parameters:
keyLifetime
- the keyLifetime- Returns:
- the CreateIkePolicyOptions builder
-
name
public CreateIkePolicyOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateIkePolicyOptions builder
-
resourceGroup
public CreateIkePolicyOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateIkePolicyOptions builder
-
-