Class TunnelPhaseTwoDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.TunnelPhaseTwoDetails.Builder
-
- Enclosing class:
- TunnelPhaseTwoDetails
public static class TunnelPhaseTwoDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelPhaseTwoDetails
build()
TunnelPhaseTwoDetails.Builder
copy(TunnelPhaseTwoDetails model)
TunnelPhaseTwoDetails.Builder
customAuthenticationAlgorithm(String customAuthenticationAlgorithm)
Phase two authentication algorithm proposed during tunnel negotiation.TunnelPhaseTwoDetails.Builder
customEncryptionAlgorithm(String customEncryptionAlgorithm)
The proposed custom phase two encryption algorithm.TunnelPhaseTwoDetails.Builder
dhGroup(String dhGroup)
The proposed Diffie-Hellman group.TunnelPhaseTwoDetails.Builder
isCustomPhaseTwoConfig(Boolean isCustomPhaseTwoConfig)
Indicates whether custom phase two configuration is enabled.TunnelPhaseTwoDetails.Builder
isEspEstablished(Boolean isEspEstablished)
Indicates that ESP phase two is established.TunnelPhaseTwoDetails.Builder
isPfsEnabled(Boolean isPfsEnabled)
Indicates that PFS (perfect forward secrecy) is enabled.TunnelPhaseTwoDetails.Builder
lifetime(Long lifetime)
The total configured lifetime of the IKE security association.TunnelPhaseTwoDetails.Builder
negotiatedAuthenticationAlgorithm(String negotiatedAuthenticationAlgorithm)
The negotiated phase two authentication algorithm.TunnelPhaseTwoDetails.Builder
negotiatedDhGroup(String negotiatedDhGroup)
The negotiated Diffie-Hellman group.TunnelPhaseTwoDetails.Builder
negotiatedEncryptionAlgorithm(String negotiatedEncryptionAlgorithm)
The negotiated encryption algorithm.TunnelPhaseTwoDetails.Builder
remainingLifetime(Long remainingLifetime)
The remaining lifetime before the key is refreshed.TunnelPhaseTwoDetails.Builder
remainingLifetimeLastRetrieved(Date remainingLifetimeLastRetrieved)
The date and time the remaining lifetime was last retrieved, in the format defined by RFC3339.
-
-
-
Method Detail
-
isCustomPhaseTwoConfig
public TunnelPhaseTwoDetails.Builder isCustomPhaseTwoConfig(Boolean isCustomPhaseTwoConfig)
Indicates whether custom phase two configuration is enabled.If this option is not enabled, default settings are proposed.
- Parameters:
isCustomPhaseTwoConfig
- the value to set- Returns:
- this builder
-
lifetime
public TunnelPhaseTwoDetails.Builder lifetime(Long lifetime)
The total configured lifetime of the IKE security association.- Parameters:
lifetime
- the value to set- Returns:
- this builder
-
remainingLifetime
public TunnelPhaseTwoDetails.Builder remainingLifetime(Long remainingLifetime)
The remaining lifetime before the key is refreshed.- Parameters:
remainingLifetime
- the value to set- Returns:
- this builder
-
customAuthenticationAlgorithm
public TunnelPhaseTwoDetails.Builder customAuthenticationAlgorithm(String customAuthenticationAlgorithm)
Phase two authentication algorithm proposed during tunnel negotiation.- Parameters:
customAuthenticationAlgorithm
- the value to set- Returns:
- this builder
-
negotiatedAuthenticationAlgorithm
public TunnelPhaseTwoDetails.Builder negotiatedAuthenticationAlgorithm(String negotiatedAuthenticationAlgorithm)
The negotiated phase two authentication algorithm.- Parameters:
negotiatedAuthenticationAlgorithm
- the value to set- Returns:
- this builder
-
customEncryptionAlgorithm
public TunnelPhaseTwoDetails.Builder customEncryptionAlgorithm(String customEncryptionAlgorithm)
The proposed custom phase two encryption algorithm.- Parameters:
customEncryptionAlgorithm
- the value to set- Returns:
- this builder
-
negotiatedEncryptionAlgorithm
public TunnelPhaseTwoDetails.Builder negotiatedEncryptionAlgorithm(String negotiatedEncryptionAlgorithm)
The negotiated encryption algorithm.- Parameters:
negotiatedEncryptionAlgorithm
- the value to set- Returns:
- this builder
-
dhGroup
public TunnelPhaseTwoDetails.Builder dhGroup(String dhGroup)
The proposed Diffie-Hellman group.- Parameters:
dhGroup
- the value to set- Returns:
- this builder
-
negotiatedDhGroup
public TunnelPhaseTwoDetails.Builder negotiatedDhGroup(String negotiatedDhGroup)
The negotiated Diffie-Hellman group.- Parameters:
negotiatedDhGroup
- the value to set- Returns:
- this builder
-
isEspEstablished
public TunnelPhaseTwoDetails.Builder isEspEstablished(Boolean isEspEstablished)
Indicates that ESP phase two is established.- Parameters:
isEspEstablished
- the value to set- Returns:
- this builder
-
isPfsEnabled
public TunnelPhaseTwoDetails.Builder isPfsEnabled(Boolean isPfsEnabled)
Indicates that PFS (perfect forward secrecy) is enabled.- Parameters:
isPfsEnabled
- the value to set- Returns:
- this builder
-
remainingLifetimeLastRetrieved
public TunnelPhaseTwoDetails.Builder remainingLifetimeLastRetrieved(Date remainingLifetimeLastRetrieved)
The date and time the remaining lifetime was last retrieved, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
remainingLifetimeLastRetrieved
- the value to set- Returns:
- this builder
-
build
public TunnelPhaseTwoDetails build()
-
copy
public TunnelPhaseTwoDetails.Builder copy(TunnelPhaseTwoDetails model)
-
-