Class SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.securityposture_posture.SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules>
- Enclosing interface:
- SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules
@Stability(Stable) public static final class SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder extends Object implements software.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allowAll
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder allowAll(Boolean allowAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getAllowAll()- Parameters:
allowAll- Setting this to true means that all values are allowed. This field can be set only in policies for list constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#allow_all SecurityposturePosture#allow_all}- Returns:
this
-
allowAll
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder allowAll(com.hashicorp.cdktf.IResolvable allowAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getAllowAll()- Parameters:
allowAll- Setting this to true means that all values are allowed. This field can be set only in policies for list constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#allow_all SecurityposturePosture#allow_all}- Returns:
this
-
condition
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder condition(SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRulesCondition condition)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getCondition()- Parameters:
condition- condition block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#condition SecurityposturePosture#condition}- Returns:
this
-
denyAll
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder denyAll(Boolean denyAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getDenyAll()- Parameters:
denyAll- Setting this to true means that all values are denied. This field can be set only in policies for list constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#deny_all SecurityposturePosture#deny_all}- Returns:
this
-
denyAll
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder denyAll(com.hashicorp.cdktf.IResolvable denyAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getDenyAll()- Parameters:
denyAll- Setting this to true means that all values are denied. This field can be set only in policies for list constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#deny_all SecurityposturePosture#deny_all}- Returns:
this
-
enforce
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder enforce(Boolean enforce)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getEnforce()- Parameters:
enforce- If 'true', then the policy is enforced. If 'false', then any configuration is acceptable. This field can be set only in policies for boolean constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#enforce SecurityposturePosture#enforce}- Returns:
this
-
enforce
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder enforce(com.hashicorp.cdktf.IResolvable enforce)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getEnforce()- Parameters:
enforce- If 'true', then the policy is enforced. If 'false', then any configuration is acceptable. This field can be set only in policies for boolean constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#enforce SecurityposturePosture#enforce}- Returns:
this
-
values
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.Builder values(SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRulesValues values)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules.getValues()- Parameters:
values- values block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#values SecurityposturePosture#values}- Returns:
this
-
build
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules>- Returns:
- a new instance of
SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintPolicyRules - Throws:
NullPointerException- if any required attribute was not provided
-
-