Class OrgPolicyPolicySpecRules.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.org_policy_policy.OrgPolicyPolicySpecRules.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OrgPolicyPolicySpecRules>
- Enclosing interface:
- OrgPolicyPolicySpecRules
@Stability(Stable) public static final class OrgPolicyPolicySpecRules.Builder extends Object implements software.amazon.jsii.Builder<OrgPolicyPolicySpecRules>
A builder forOrgPolicyPolicySpecRules
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrgPolicyPolicySpecRules.BuilderallowAll(String allowAll)Sets the value ofOrgPolicyPolicySpecRules.getAllowAll()OrgPolicyPolicySpecRulesbuild()Builds the configured instance.OrgPolicyPolicySpecRules.Buildercondition(OrgPolicyPolicySpecRulesCondition condition)Sets the value ofOrgPolicyPolicySpecRules.getCondition()OrgPolicyPolicySpecRules.BuilderdenyAll(String denyAll)Sets the value ofOrgPolicyPolicySpecRules.getDenyAll()OrgPolicyPolicySpecRules.Builderenforce(String enforce)Sets the value ofOrgPolicyPolicySpecRules.getEnforce()OrgPolicyPolicySpecRules.Buildervalues(OrgPolicyPolicySpecRulesValues values)Sets the value ofOrgPolicyPolicySpecRules.getValues()
-
-
-
Method Detail
-
allowAll
@Stability(Stable) public OrgPolicyPolicySpecRules.Builder allowAll(String allowAll)
Sets the value ofOrgPolicyPolicySpecRules.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/org_policy_policy#allow_all OrgPolicyPolicy#allow_all}- Returns:
this
-
condition
@Stability(Stable) public OrgPolicyPolicySpecRules.Builder condition(OrgPolicyPolicySpecRulesCondition condition)
Sets the value ofOrgPolicyPolicySpecRules.getCondition()- Parameters:
condition- condition block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#condition OrgPolicyPolicy#condition}- Returns:
this
-
denyAll
@Stability(Stable) public OrgPolicyPolicySpecRules.Builder denyAll(String denyAll)
Sets the value ofOrgPolicyPolicySpecRules.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/org_policy_policy#deny_all OrgPolicyPolicy#deny_all}- Returns:
this
-
enforce
@Stability(Stable) public OrgPolicyPolicySpecRules.Builder enforce(String enforce)
Sets the value ofOrgPolicyPolicySpecRules.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/org_policy_policy#enforce OrgPolicyPolicy#enforce}- Returns:
this
-
values
@Stability(Stable) public OrgPolicyPolicySpecRules.Builder values(OrgPolicyPolicySpecRulesValues values)
Sets the value ofOrgPolicyPolicySpecRules.getValues()- Parameters:
values- values block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#values OrgPolicyPolicy#values}- Returns:
this
-
build
@Stability(Stable) public OrgPolicyPolicySpecRules build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OrgPolicyPolicySpecRules>- Returns:
- a new instance of
OrgPolicyPolicySpecRules - Throws:
NullPointerException- if any required attribute was not provided
-
-