Class SqlUserPasswordPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.sql_user.SqlUserPasswordPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SqlUserPasswordPolicy>
- Enclosing interface:
- SqlUserPasswordPolicy
@Stability(Stable) public static final class SqlUserPasswordPolicy.Builder extends Object implements software.amazon.jsii.Builder<SqlUserPasswordPolicy>
A builder forSqlUserPasswordPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allowedFailedAttempts
@Stability(Stable) public SqlUserPasswordPolicy.Builder allowedFailedAttempts(Number allowedFailedAttempts)
Sets the value ofSqlUserPasswordPolicy.getAllowedFailedAttempts()- Parameters:
allowedFailedAttempts- Number of failed attempts allowed before the user get locked. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#allowed_failed_attempts SqlUser#allowed_failed_attempts}- Returns:
this
-
enableFailedAttemptsCheck
@Stability(Stable) public SqlUserPasswordPolicy.Builder enableFailedAttemptsCheck(Boolean enableFailedAttemptsCheck)
Sets the value ofSqlUserPasswordPolicy.getEnableFailedAttemptsCheck()- Parameters:
enableFailedAttemptsCheck- If true, the check that will lock user after too many failed login attempts will be enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_failed_attempts_check SqlUser#enable_failed_attempts_check}- Returns:
this
-
enableFailedAttemptsCheck
@Stability(Stable) public SqlUserPasswordPolicy.Builder enableFailedAttemptsCheck(com.hashicorp.cdktf.IResolvable enableFailedAttemptsCheck)
Sets the value ofSqlUserPasswordPolicy.getEnableFailedAttemptsCheck()- Parameters:
enableFailedAttemptsCheck- If true, the check that will lock user after too many failed login attempts will be enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_failed_attempts_check SqlUser#enable_failed_attempts_check}- Returns:
this
-
enablePasswordVerification
@Stability(Stable) public SqlUserPasswordPolicy.Builder enablePasswordVerification(Boolean enablePasswordVerification)
Sets the value ofSqlUserPasswordPolicy.getEnablePasswordVerification()- Parameters:
enablePasswordVerification- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_password_verification SqlUser#enable_password_verification}- Returns:
this
-
enablePasswordVerification
@Stability(Stable) public SqlUserPasswordPolicy.Builder enablePasswordVerification(com.hashicorp.cdktf.IResolvable enablePasswordVerification)
Sets the value ofSqlUserPasswordPolicy.getEnablePasswordVerification()- Parameters:
enablePasswordVerification- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_password_verification SqlUser#enable_password_verification}- Returns:
this
-
passwordExpirationDuration
@Stability(Stable) public SqlUserPasswordPolicy.Builder passwordExpirationDuration(String passwordExpirationDuration)
Sets the value ofSqlUserPasswordPolicy.getPasswordExpirationDuration()- Parameters:
passwordExpirationDuration- Password expiration duration with one week grace period. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#password_expiration_duration SqlUser#password_expiration_duration}- Returns:
this
-
build
@Stability(Stable) public SqlUserPasswordPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SqlUserPasswordPolicy>- Returns:
- a new instance of
SqlUserPasswordPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-