Package com.oracle.bmc.vault.model
Class SecretExpiryRule.Builder
- java.lang.Object
-
- com.oracle.bmc.vault.model.SecretExpiryRule.Builder
-
- Enclosing class:
- SecretExpiryRule
public static class SecretExpiryRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretExpiryRule
build()
SecretExpiryRule.Builder
copy(SecretExpiryRule model)
SecretExpiryRule.Builder
isSecretContentRetrievalBlockedOnExpiry(Boolean isSecretContentRetrievalBlockedOnExpiry)
A property indicating whether to block retrieval of the secret content, on expiry.SecretExpiryRule.Builder
secretVersionExpiryInterval(String secretVersionExpiryInterval)
A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format.SecretExpiryRule.Builder
timeOfAbsoluteExpiry(Date timeOfAbsoluteExpiry)
An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
secretVersionExpiryInterval
public SecretExpiryRule.Builder secretVersionExpiryInterval(String secretVersionExpiryInterval)
A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format.The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass P3D to have the secret version expire every 3 days.
- Parameters:
secretVersionExpiryInterval
- the value to set- Returns:
- this builder
-
timeOfAbsoluteExpiry
public SecretExpiryRule.Builder timeOfAbsoluteExpiry(Date timeOfAbsoluteExpiry)
An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format.The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example: 2019-04-03T21:10:29.600Z
- Parameters:
timeOfAbsoluteExpiry
- the value to set- Returns:
- this builder
-
isSecretContentRetrievalBlockedOnExpiry
public SecretExpiryRule.Builder isSecretContentRetrievalBlockedOnExpiry(Boolean isSecretContentRetrievalBlockedOnExpiry)
A property indicating whether to block retrieval of the secret content, on expiry.The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- Parameters:
isSecretContentRetrievalBlockedOnExpiry
- the value to set- Returns:
- this builder
-
build
public SecretExpiryRule build()
-
copy
public SecretExpiryRule.Builder copy(SecretExpiryRule model)
-
-