Class FolderOrganizationPolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.folder_organization_policy.FolderOrganizationPolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FolderOrganizationPolicyConfig>
- Enclosing interface:
- FolderOrganizationPolicyConfig
@Stability(Stable) public static final class FolderOrganizationPolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<FolderOrganizationPolicyConfig>
A builder forFolderOrganizationPolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
constraint
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder constraint(String constraint)
Sets the value ofFolderOrganizationPolicyConfig.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/folder_organization_policy#constraint FolderOrganizationPolicy#constraint}- Returns:
this
-
folder
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder folder(String folder)
Sets the value ofFolderOrganizationPolicyConfig.getFolder()- Parameters:
folder- The resource name of the folder to set the policy for. Its format is folders/{folder_id}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/folder_organization_policy#folder FolderOrganizationPolicy#folder}- Returns:
this
-
booleanPolicy
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder booleanPolicy(FolderOrganizationPolicyBooleanPolicy booleanPolicy)
Sets the value ofFolderOrganizationPolicyConfig.getBooleanPolicy()- Parameters:
booleanPolicy- boolean_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/folder_organization_policy#boolean_policy FolderOrganizationPolicy#boolean_policy}- Returns:
this
-
id
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder id(String id)
Sets the value ofFolderOrganizationPolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/folder_organization_policy#id FolderOrganizationPolicy#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 FolderOrganizationPolicyConfig.Builder listPolicy(FolderOrganizationPolicyListPolicy listPolicy)
Sets the value ofFolderOrganizationPolicyConfig.getListPolicy()- Parameters:
listPolicy- list_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/folder_organization_policy#list_policy FolderOrganizationPolicy#list_policy}- Returns:
this
-
restorePolicy
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder restorePolicy(FolderOrganizationPolicyRestorePolicy restorePolicy)
Sets the value ofFolderOrganizationPolicyConfig.getRestorePolicy()- Parameters:
restorePolicy- restore_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/folder_organization_policy#restore_policy FolderOrganizationPolicy#restore_policy}- Returns:
this
-
timeouts
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder timeouts(FolderOrganizationPolicyTimeouts timeouts)
Sets the value ofFolderOrganizationPolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/folder_organization_policy#timeouts FolderOrganizationPolicy#timeouts}- Returns:
this
-
version
@Stability(Stable) public FolderOrganizationPolicyConfig.Builder version(Number version)
Sets the value ofFolderOrganizationPolicyConfig.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/folder_organization_policy#version FolderOrganizationPolicy#version}- Returns:
this
-
connection
@Stability(Experimental) public FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.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 FolderOrganizationPolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public FolderOrganizationPolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FolderOrganizationPolicyConfig>- Returns:
- a new instance of
FolderOrganizationPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-