Class OrgPolicyPolicySpec.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.org_policy_policy.OrgPolicyPolicySpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OrgPolicyPolicySpec>
- Enclosing interface:
- OrgPolicyPolicySpec
@Stability(Stable) public static final class OrgPolicyPolicySpec.Builder extends Object implements software.amazon.jsii.Builder<OrgPolicyPolicySpec>
A builder forOrgPolicyPolicySpec
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrgPolicyPolicySpecbuild()Builds the configured instance.OrgPolicyPolicySpec.BuilderinheritFromParent(com.hashicorp.cdktf.IResolvable inheritFromParent)Sets the value ofOrgPolicyPolicySpec.getInheritFromParent()OrgPolicyPolicySpec.BuilderinheritFromParent(Boolean inheritFromParent)Sets the value ofOrgPolicyPolicySpec.getInheritFromParent()OrgPolicyPolicySpec.Builderreset(com.hashicorp.cdktf.IResolvable reset)Sets the value ofOrgPolicyPolicySpec.getReset()OrgPolicyPolicySpec.Builderreset(Boolean reset)Sets the value ofOrgPolicyPolicySpec.getReset()OrgPolicyPolicySpec.Builderrules(com.hashicorp.cdktf.IResolvable rules)Sets the value ofOrgPolicyPolicySpec.getRules()OrgPolicyPolicySpec.Builderrules(List<? extends OrgPolicyPolicySpecRules> rules)Sets the value ofOrgPolicyPolicySpec.getRules()
-
-
-
Method Detail
-
inheritFromParent
@Stability(Stable) public OrgPolicyPolicySpec.Builder inheritFromParent(Boolean inheritFromParent)
Sets the value ofOrgPolicyPolicySpec.getInheritFromParent()- Parameters:
inheritFromParent- Determines the inheritance behavior for this 'Policy'. If 'inherit_from_parent' is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#inherit_from_parent OrgPolicyPolicy#inherit_from_parent}- Returns:
this
-
inheritFromParent
@Stability(Stable) public OrgPolicyPolicySpec.Builder inheritFromParent(com.hashicorp.cdktf.IResolvable inheritFromParent)
Sets the value ofOrgPolicyPolicySpec.getInheritFromParent()- Parameters:
inheritFromParent- Determines the inheritance behavior for this 'Policy'. If 'inherit_from_parent' is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#inherit_from_parent OrgPolicyPolicy#inherit_from_parent}- Returns:
this
-
reset
@Stability(Stable) public OrgPolicyPolicySpec.Builder reset(Boolean reset)
Sets the value ofOrgPolicyPolicySpec.getReset()- Parameters:
reset- Ignores policies set above this resource and restores the 'constraint_default' enforcement behavior of the specific 'Constraint' at this resource. This field can be set in policies for either list or boolean constraints. If set, 'rules' must be empty and 'inherit_from_parent' must be set to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#reset OrgPolicyPolicy#reset}- Returns:
this
-
reset
@Stability(Stable) public OrgPolicyPolicySpec.Builder reset(com.hashicorp.cdktf.IResolvable reset)
Sets the value ofOrgPolicyPolicySpec.getReset()- Parameters:
reset- Ignores policies set above this resource and restores the 'constraint_default' enforcement behavior of the specific 'Constraint' at this resource. This field can be set in policies for either list or boolean constraints. If set, 'rules' must be empty and 'inherit_from_parent' must be set to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#reset OrgPolicyPolicy#reset}- Returns:
this
-
rules
@Stability(Stable) public OrgPolicyPolicySpec.Builder rules(com.hashicorp.cdktf.IResolvable rules)
Sets the value ofOrgPolicyPolicySpec.getRules()- Parameters:
rules- rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#rules OrgPolicyPolicy#rules}- Returns:
this
-
rules
@Stability(Stable) public OrgPolicyPolicySpec.Builder rules(List<? extends OrgPolicyPolicySpecRules> rules)
Sets the value ofOrgPolicyPolicySpec.getRules()- Parameters:
rules- rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#rules OrgPolicyPolicy#rules}- Returns:
this
-
build
@Stability(Stable) public OrgPolicyPolicySpec build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OrgPolicyPolicySpec>- Returns:
- a new instance of
OrgPolicyPolicySpec - Throws:
NullPointerException- if any required attribute was not provided
-
-