Class OrgPolicyPolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.org_policy_policy.OrgPolicyPolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OrgPolicyPolicyConfig>
- Enclosing interface:
- OrgPolicyPolicyConfig
@Stability(Stable) public static final class OrgPolicyPolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<OrgPolicyPolicyConfig>
A builder forOrgPolicyPolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrgPolicyPolicyConfigbuild()Builds the configured instance.OrgPolicyPolicyConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()OrgPolicyPolicyConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()OrgPolicyPolicyConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()OrgPolicyPolicyConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()OrgPolicyPolicyConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()OrgPolicyPolicyConfig.BuilderdryRunSpec(OrgPolicyPolicyDryRunSpec dryRunSpec)Sets the value ofOrgPolicyPolicyConfig.getDryRunSpec()OrgPolicyPolicyConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()OrgPolicyPolicyConfig.Builderid(String id)Sets the value ofOrgPolicyPolicyConfig.getId()OrgPolicyPolicyConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()OrgPolicyPolicyConfig.Buildername(String name)Sets the value ofOrgPolicyPolicyConfig.getName()OrgPolicyPolicyConfig.Builderparent(String parent)Sets the value ofOrgPolicyPolicyConfig.getParent()OrgPolicyPolicyConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()OrgPolicyPolicyConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()OrgPolicyPolicyConfig.Builderspec(OrgPolicyPolicySpec spec)Sets the value ofOrgPolicyPolicyConfig.getSpec()OrgPolicyPolicyConfig.Buildertimeouts(OrgPolicyPolicyTimeouts timeouts)Sets the value ofOrgPolicyPolicyConfig.getTimeouts()
-
-
-
Method Detail
-
name
@Stability(Stable) public OrgPolicyPolicyConfig.Builder name(String name)
Sets the value ofOrgPolicyPolicyConfig.getName()- Parameters:
name- Immutable. This parameter is required. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * 'projects/{project_number}/policies/{constraint_name}' * 'folders/{folder_id}/policies/{constraint_name}' * 'organizations/{organization_id}/policies/{constraint_name}' For example, "projects/123/policies/compute.disableSerialPortAccess". Note: 'projects/{project_id}/policies/{constraint_name}' is also an acceptable name for API requests, but responses will return the name using the equivalent project number. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#name OrgPolicyPolicy#name}- Returns:
this
-
parent
@Stability(Stable) public OrgPolicyPolicyConfig.Builder parent(String parent)
Sets the value ofOrgPolicyPolicyConfig.getParent()- Parameters:
parent- The parent of the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#parent OrgPolicyPolicy#parent}- Returns:
this
-
dryRunSpec
@Stability(Stable) public OrgPolicyPolicyConfig.Builder dryRunSpec(OrgPolicyPolicyDryRunSpec dryRunSpec)
Sets the value ofOrgPolicyPolicyConfig.getDryRunSpec()- Parameters:
dryRunSpec- dry_run_spec block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#dry_run_spec OrgPolicyPolicy#dry_run_spec}- Returns:
this
-
id
@Stability(Stable) public OrgPolicyPolicyConfig.Builder id(String id)
Sets the value ofOrgPolicyPolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#id OrgPolicyPolicy#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
spec
@Stability(Stable) public OrgPolicyPolicyConfig.Builder spec(OrgPolicyPolicySpec spec)
Sets the value ofOrgPolicyPolicyConfig.getSpec()- Parameters:
spec- spec block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#spec OrgPolicyPolicy#spec}- Returns:
this
-
timeouts
@Stability(Stable) public OrgPolicyPolicyConfig.Builder timeouts(OrgPolicyPolicyTimeouts timeouts)
Sets the value ofOrgPolicyPolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_policy#timeouts OrgPolicyPolicy#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public OrgPolicyPolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public OrgPolicyPolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OrgPolicyPolicyConfig>- Returns:
- a new instance of
OrgPolicyPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-