Class SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.securityposture_posture.SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules>
- Enclosing interface:
- SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules
@Stability(Stable) public static final class SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder extends Object implements software.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allowAll
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder allowAll(Boolean allowAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder allowAll(com.hashicorp.cdktf.IResolvable allowAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder condition(SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRulesCondition condition)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder denyAll(Boolean denyAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder denyAll(com.hashicorp.cdktf.IResolvable denyAll)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder enforce(Boolean enforce)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder enforce(com.hashicorp.cdktf.IResolvable enforce)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.Builder values(SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRulesValues values)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules.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 SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules>- Returns:
- a new instance of
SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomPolicyRules - Throws:
NullPointerException- if any required attribute was not provided
-
-