Package com.vmware.nsx_policy.model
Class OspfAuthenticationConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.OspfAuthenticationConfig.Builder
-
- Enclosing class:
- OspfAuthenticationConfig
public static final class OspfAuthenticationConfig.Builder extends java.lang.Object
Builder class forOspfAuthenticationConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofOspfAuthenticationConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OspfAuthenticationConfig
build()
OspfAuthenticationConfig.Builder
setKeyId(java.lang.Long keyId)
Authentication secret key id is mandatory for type md5 with min value of 1 and max value 255.OspfAuthenticationConfig.Builder
setMode(java.lang.String mode)
Possible values are:OspfAuthenticationConfig.MODE_NONE
OspfAuthenticationConfig.MODE_PASSWORD
OspfAuthenticationConfig.MODE_MD5
If mode is MD5 or PASSWORD, Authentication secret key is mandatory if mode is NONE, then authentication is deactivated.OspfAuthenticationConfig.Builder
setSecretKey(java.lang.String secretKey)
Authentication secret is mandatory for type password and md5 with min length of 1 and max length 8.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofOspfAuthenticationConfig
.
-
-
Method Detail
-
setKeyId
public OspfAuthenticationConfig.Builder setKeyId(java.lang.Long keyId)
Authentication secret key id is mandatory for type md5 with min value of 1 and max value 255. format: int64- Parameters:
keyId
- New value for the property.
-
setMode
public OspfAuthenticationConfig.Builder setMode(java.lang.String mode)
Possible values are: If mode is MD5 or PASSWORD, Authentication secret key is mandatory if mode is NONE, then authentication is deactivated.- Parameters:
mode
- New value for the property.
-
setSecretKey
public OspfAuthenticationConfig.Builder setSecretKey(java.lang.String secretKey)
Authentication secret is mandatory for type password and md5 with min length of 1 and max length 8.- Parameters:
secretKey
- New value for the property.
-
build
public OspfAuthenticationConfig build()
-
-