Class SecretManagerSecretRotation.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.secret_manager_secret.SecretManagerSecretRotation.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretManagerSecretRotation>
- Enclosing interface:
- SecretManagerSecretRotation
@Stability(Stable) public static final class SecretManagerSecretRotation.Builder extends Object implements software.amazon.jsii.Builder<SecretManagerSecretRotation>
A builder forSecretManagerSecretRotation
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretManagerSecretRotationbuild()Builds the configured instance.SecretManagerSecretRotation.BuildernextRotationTime(String nextRotationTime)Sets the value ofSecretManagerSecretRotation.getNextRotationTime()SecretManagerSecretRotation.BuilderrotationPeriod(String rotationPeriod)Sets the value ofSecretManagerSecretRotation.getRotationPeriod()
-
-
-
Method Detail
-
nextRotationTime
@Stability(Stable) public SecretManagerSecretRotation.Builder nextRotationTime(String nextRotationTime)
Sets the value ofSecretManagerSecretRotation.getNextRotationTime()- Parameters:
nextRotationTime- Timestamp in UTC at which the Secret is scheduled to rotate. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#next_rotation_time SecretManagerSecret#next_rotation_time}- Returns:
this
-
rotationPeriod
@Stability(Stable) public SecretManagerSecretRotation.Builder rotationPeriod(String rotationPeriod)
Sets the value ofSecretManagerSecretRotation.getRotationPeriod()- Parameters:
rotationPeriod- The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotationPeriod is set, 'next_rotation_time' must be set. 'next_rotation_time' will be advanced by this period when the service automatically sends rotation notifications. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#rotation_period SecretManagerSecret#rotation_period}- Returns:
this
-
build
@Stability(Stable) public SecretManagerSecretRotation build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretManagerSecretRotation>- Returns:
- a new instance of
SecretManagerSecretRotation - Throws:
NullPointerException- if any required attribute was not provided
-
-