Class OrgPolicyPolicyDryRunSpec.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.org_policy_policy.OrgPolicyPolicyDryRunSpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OrgPolicyPolicyDryRunSpec>
- Enclosing interface:
- OrgPolicyPolicyDryRunSpec
@Stability(Stable) public static final class OrgPolicyPolicyDryRunSpec.Builder extends Object implements software.amazon.jsii.Builder<OrgPolicyPolicyDryRunSpec>
A builder forOrgPolicyPolicyDryRunSpec
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrgPolicyPolicyDryRunSpecbuild()Builds the configured instance.OrgPolicyPolicyDryRunSpec.BuilderinheritFromParent(com.hashicorp.cdktf.IResolvable inheritFromParent)Sets the value ofOrgPolicyPolicyDryRunSpec.getInheritFromParent()OrgPolicyPolicyDryRunSpec.BuilderinheritFromParent(Boolean inheritFromParent)Sets the value ofOrgPolicyPolicyDryRunSpec.getInheritFromParent()OrgPolicyPolicyDryRunSpec.Builderreset(com.hashicorp.cdktf.IResolvable reset)Sets the value ofOrgPolicyPolicyDryRunSpec.getReset()OrgPolicyPolicyDryRunSpec.Builderreset(Boolean reset)Sets the value ofOrgPolicyPolicyDryRunSpec.getReset()OrgPolicyPolicyDryRunSpec.Builderrules(com.hashicorp.cdktf.IResolvable rules)Sets the value ofOrgPolicyPolicyDryRunSpec.getRules()OrgPolicyPolicyDryRunSpec.Builderrules(List<? extends OrgPolicyPolicyDryRunSpecRules> rules)Sets the value ofOrgPolicyPolicyDryRunSpec.getRules()
-
-
-
Method Detail
-
inheritFromParent
@Stability(Stable) public OrgPolicyPolicyDryRunSpec.Builder inheritFromParent(Boolean inheritFromParent)
Sets the value ofOrgPolicyPolicyDryRunSpec.getInheritFromParent()- Parameters:
inheritFromParent- Determines the inheritance behavior for this policy. If 'inherit_from_parent' is true, policy rules 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 OrgPolicyPolicyDryRunSpec.Builder inheritFromParent(com.hashicorp.cdktf.IResolvable inheritFromParent)
Sets the value ofOrgPolicyPolicyDryRunSpec.getInheritFromParent()- Parameters:
inheritFromParent- Determines the inheritance behavior for this policy. If 'inherit_from_parent' is true, policy rules 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 OrgPolicyPolicyDryRunSpec.Builder reset(Boolean reset)
Sets the value ofOrgPolicyPolicyDryRunSpec.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 OrgPolicyPolicyDryRunSpec.Builder reset(com.hashicorp.cdktf.IResolvable reset)
Sets the value ofOrgPolicyPolicyDryRunSpec.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 OrgPolicyPolicyDryRunSpec.Builder rules(com.hashicorp.cdktf.IResolvable rules)
Sets the value ofOrgPolicyPolicyDryRunSpec.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 OrgPolicyPolicyDryRunSpec.Builder rules(List<? extends OrgPolicyPolicyDryRunSpecRules> rules)
Sets the value ofOrgPolicyPolicyDryRunSpec.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 OrgPolicyPolicyDryRunSpec build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OrgPolicyPolicyDryRunSpec>- Returns:
- a new instance of
OrgPolicyPolicyDryRunSpec - Throws:
NullPointerException- if any required attribute was not provided
-
-