Class ProjectOrganizationPolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.project_organization_policy.ProjectOrganizationPolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProjectOrganizationPolicyConfig>
- Enclosing interface:
- ProjectOrganizationPolicyConfig
@Stability(Stable) public static final class ProjectOrganizationPolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<ProjectOrganizationPolicyConfig>
A builder forProjectOrganizationPolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
constraint
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder constraint(String constraint)
Sets the value ofProjectOrganizationPolicyConfig.getConstraint()- Parameters:
constraint- The name of the Constraint the Policy is configuring, for example, serviceuser.services. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#constraint ProjectOrganizationPolicy#constraint}- Returns:
this
-
project
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder project(String project)
Sets the value ofProjectOrganizationPolicyConfig.getProject()- Parameters:
project- The project ID. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#project ProjectOrganizationPolicy#project}- Returns:
this
-
booleanPolicy
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder booleanPolicy(ProjectOrganizationPolicyBooleanPolicy booleanPolicy)
Sets the value ofProjectOrganizationPolicyConfig.getBooleanPolicy()- Parameters:
booleanPolicy- boolean_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#boolean_policy ProjectOrganizationPolicy#boolean_policy}- Returns:
this
-
id
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder id(String id)
Sets the value ofProjectOrganizationPolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#id ProjectOrganizationPolicy#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
-
listPolicy
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder listPolicy(ProjectOrganizationPolicyListPolicy listPolicy)
Sets the value ofProjectOrganizationPolicyConfig.getListPolicy()- Parameters:
listPolicy- list_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#list_policy ProjectOrganizationPolicy#list_policy}- Returns:
this
-
restorePolicy
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder restorePolicy(ProjectOrganizationPolicyRestorePolicy restorePolicy)
Sets the value ofProjectOrganizationPolicyConfig.getRestorePolicy()- Parameters:
restorePolicy- restore_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#restore_policy ProjectOrganizationPolicy#restore_policy}- Returns:
this
-
timeouts
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder timeouts(ProjectOrganizationPolicyTimeouts timeouts)
Sets the value ofProjectOrganizationPolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#timeouts ProjectOrganizationPolicy#timeouts}- Returns:
this
-
version
@Stability(Stable) public ProjectOrganizationPolicyConfig.Builder version(Number version)
Sets the value ofProjectOrganizationPolicyConfig.getVersion()- Parameters:
version- Version of the Policy. Default version is 0. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/project_organization_policy#version ProjectOrganizationPolicy#version}- Returns:
this
-
connection
@Stability(Experimental) public ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.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 ProjectOrganizationPolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ProjectOrganizationPolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ProjectOrganizationPolicyConfig>- Returns:
- a new instance of
ProjectOrganizationPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-