Class IamWorkforcePoolConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.iam_workforce_pool.IamWorkforcePoolConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IamWorkforcePoolConfig>
- Enclosing interface:
- IamWorkforcePoolConfig
@Stability(Stable) public static final class IamWorkforcePoolConfig.Builder extends Object implements software.amazon.jsii.Builder<IamWorkforcePoolConfig>
A builder forIamWorkforcePoolConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IamWorkforcePoolConfig.BuilderaccessRestrictions(IamWorkforcePoolAccessRestrictions accessRestrictions)Sets the value ofIamWorkforcePoolConfig.getAccessRestrictions()IamWorkforcePoolConfigbuild()Builds the configured instance.IamWorkforcePoolConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()IamWorkforcePoolConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()IamWorkforcePoolConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()IamWorkforcePoolConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()IamWorkforcePoolConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()IamWorkforcePoolConfig.Builderdescription(String description)Sets the value ofIamWorkforcePoolConfig.getDescription()IamWorkforcePoolConfig.Builderdisabled(com.hashicorp.cdktf.IResolvable disabled)Sets the value ofIamWorkforcePoolConfig.getDisabled()IamWorkforcePoolConfig.Builderdisabled(Boolean disabled)Sets the value ofIamWorkforcePoolConfig.getDisabled()IamWorkforcePoolConfig.BuilderdisplayName(String displayName)Sets the value ofIamWorkforcePoolConfig.getDisplayName()IamWorkforcePoolConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()IamWorkforcePoolConfig.Builderid(String id)Sets the value ofIamWorkforcePoolConfig.getId()IamWorkforcePoolConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()IamWorkforcePoolConfig.Builderlocation(String location)Sets the value ofIamWorkforcePoolConfig.getLocation()IamWorkforcePoolConfig.Builderparent(String parent)Sets the value ofIamWorkforcePoolConfig.getParent()IamWorkforcePoolConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()IamWorkforcePoolConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()IamWorkforcePoolConfig.BuildersessionDuration(String sessionDuration)Sets the value ofIamWorkforcePoolConfig.getSessionDuration()IamWorkforcePoolConfig.Buildertimeouts(IamWorkforcePoolTimeouts timeouts)Sets the value ofIamWorkforcePoolConfig.getTimeouts()IamWorkforcePoolConfig.BuilderworkforcePoolId(String workforcePoolId)Sets the value ofIamWorkforcePoolConfig.getWorkforcePoolId()
-
-
-
Method Detail
-
location
@Stability(Stable) public IamWorkforcePoolConfig.Builder location(String location)
Sets the value ofIamWorkforcePoolConfig.getLocation()- Parameters:
location- The location for the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#location IamWorkforcePool#location}- Returns:
this
-
parent
@Stability(Stable) public IamWorkforcePoolConfig.Builder parent(String parent)
Sets the value ofIamWorkforcePoolConfig.getParent()- Parameters:
parent- Immutable. The resource name of the parent. Format: 'organizations/{org-id}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#parent IamWorkforcePool#parent}- Returns:
this
-
workforcePoolId
@Stability(Stable) public IamWorkforcePoolConfig.Builder workforcePoolId(String workforcePoolId)
Sets the value ofIamWorkforcePoolConfig.getWorkforcePoolId()- Parameters:
workforcePoolId- The name of the pool. This parameter is required. The ID must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix 'gcp-' is reserved for use by Google, and may not be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#workforce_pool_id IamWorkforcePool#workforce_pool_id}- Returns:
this
-
accessRestrictions
@Stability(Stable) public IamWorkforcePoolConfig.Builder accessRestrictions(IamWorkforcePoolAccessRestrictions accessRestrictions)
Sets the value ofIamWorkforcePoolConfig.getAccessRestrictions()- Parameters:
accessRestrictions- access_restrictions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#access_restrictions IamWorkforcePool#access_restrictions}- Returns:
this
-
description
@Stability(Stable) public IamWorkforcePoolConfig.Builder description(String description)
Sets the value ofIamWorkforcePoolConfig.getDescription()- Parameters:
description- A user-specified description of the pool. Cannot exceed 256 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#description IamWorkforcePool#description}- Returns:
this
-
disabled
@Stability(Stable) public IamWorkforcePoolConfig.Builder disabled(Boolean disabled)
Sets the value ofIamWorkforcePoolConfig.getDisabled()- Parameters:
disabled- Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#disabled IamWorkforcePool#disabled}- Returns:
this
-
disabled
@Stability(Stable) public IamWorkforcePoolConfig.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofIamWorkforcePoolConfig.getDisabled()- Parameters:
disabled- Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#disabled IamWorkforcePool#disabled}- Returns:
this
-
displayName
@Stability(Stable) public IamWorkforcePoolConfig.Builder displayName(String displayName)
Sets the value ofIamWorkforcePoolConfig.getDisplayName()- Parameters:
displayName- A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#display_name IamWorkforcePool#display_name}- Returns:
this
-
id
@Stability(Stable) public IamWorkforcePoolConfig.Builder id(String id)
Sets the value ofIamWorkforcePoolConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#id IamWorkforcePool#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
-
sessionDuration
@Stability(Stable) public IamWorkforcePoolConfig.Builder sessionDuration(String sessionDuration)
Sets the value ofIamWorkforcePoolConfig.getSessionDuration()- Parameters:
sessionDuration- Duration that the Google Cloud access tokens, console sign-in sessions, and 'gcloud' sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If 'sessionDuration' is not configured, minted credentials have a default duration of one hour (3600s). A duration in seconds with up to nine fractional digits, ending with ''s''. Example: "'3.5s'". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#session_duration IamWorkforcePool#session_duration}- Returns:
this
-
timeouts
@Stability(Stable) public IamWorkforcePoolConfig.Builder timeouts(IamWorkforcePoolTimeouts timeouts)
Sets the value ofIamWorkforcePoolConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#timeouts IamWorkforcePool#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.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 IamWorkforcePoolConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public IamWorkforcePoolConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IamWorkforcePoolConfig>- Returns:
- a new instance of
IamWorkforcePoolConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-