Class CognitoUserConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.cognito_user.CognitoUserConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CognitoUserConfig>
- Enclosing interface:
- CognitoUserConfig
@Stability(Stable) public static final class CognitoUserConfig.Builder extends Object implements software.amazon.jsii.Builder<CognitoUserConfig>
A builder forCognitoUserConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CognitoUserConfig.Builderattributes(Map<String,String> attributes)Sets the value ofCognitoUserConfig.getAttributes()CognitoUserConfigbuild()Builds the configured instance.CognitoUserConfig.BuilderclientMetadata(Map<String,String> clientMetadata)Sets the value ofCognitoUserConfig.getClientMetadata()CognitoUserConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()CognitoUserConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()CognitoUserConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()CognitoUserConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()CognitoUserConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()CognitoUserConfig.BuilderdesiredDeliveryMediums(List<String> desiredDeliveryMediums)Sets the value ofCognitoUserConfig.getDesiredDeliveryMediums()CognitoUserConfig.Builderenabled(com.hashicorp.cdktf.IResolvable enabled)Sets the value ofCognitoUserConfig.getEnabled()CognitoUserConfig.Builderenabled(Boolean enabled)Sets the value ofCognitoUserConfig.getEnabled()CognitoUserConfig.BuilderforceAliasCreation(com.hashicorp.cdktf.IResolvable forceAliasCreation)Sets the value ofCognitoUserConfig.getForceAliasCreation()CognitoUserConfig.BuilderforceAliasCreation(Boolean forceAliasCreation)Sets the value ofCognitoUserConfig.getForceAliasCreation()CognitoUserConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()CognitoUserConfig.Builderid(String id)Sets the value ofCognitoUserConfig.getId()CognitoUserConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()CognitoUserConfig.BuildermessageAction(String messageAction)Sets the value ofCognitoUserConfig.getMessageAction()CognitoUserConfig.Builderpassword(String password)Sets the value ofCognitoUserConfig.getPassword()CognitoUserConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()CognitoUserConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()CognitoUserConfig.BuildertemporaryPassword(String temporaryPassword)Sets the value ofCognitoUserConfig.getTemporaryPassword()CognitoUserConfig.Builderusername(String username)Sets the value ofCognitoUserConfig.getUsername()CognitoUserConfig.BuilderuserPoolId(String userPoolId)Sets the value ofCognitoUserConfig.getUserPoolId()CognitoUserConfig.BuildervalidationData(Map<String,String> validationData)Sets the value ofCognitoUserConfig.getValidationData()
-
-
-
Method Detail
-
username
@Stability(Stable) public CognitoUserConfig.Builder username(String username)
Sets the value ofCognitoUserConfig.getUsername()- Parameters:
username- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#username CognitoUser#username}. This parameter is required.- Returns:
this
-
userPoolId
@Stability(Stable) public CognitoUserConfig.Builder userPoolId(String userPoolId)
Sets the value ofCognitoUserConfig.getUserPoolId()- Parameters:
userPoolId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#user_pool_id CognitoUser#user_pool_id}. This parameter is required.- Returns:
this
-
attributes
@Stability(Stable) public CognitoUserConfig.Builder attributes(Map<String,String> attributes)
Sets the value ofCognitoUserConfig.getAttributes()- Parameters:
attributes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#attributes CognitoUser#attributes}.- Returns:
this
-
clientMetadata
@Stability(Stable) public CognitoUserConfig.Builder clientMetadata(Map<String,String> clientMetadata)
Sets the value ofCognitoUserConfig.getClientMetadata()- Parameters:
clientMetadata- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#client_metadata CognitoUser#client_metadata}.- Returns:
this
-
desiredDeliveryMediums
@Stability(Stable) public CognitoUserConfig.Builder desiredDeliveryMediums(List<String> desiredDeliveryMediums)
Sets the value ofCognitoUserConfig.getDesiredDeliveryMediums()- Parameters:
desiredDeliveryMediums- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#desired_delivery_mediums CognitoUser#desired_delivery_mediums}.- Returns:
this
-
enabled
@Stability(Stable) public CognitoUserConfig.Builder enabled(Boolean enabled)
Sets the value ofCognitoUserConfig.getEnabled()- Parameters:
enabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#enabled CognitoUser#enabled}.- Returns:
this
-
enabled
@Stability(Stable) public CognitoUserConfig.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofCognitoUserConfig.getEnabled()- Parameters:
enabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#enabled CognitoUser#enabled}.- Returns:
this
-
forceAliasCreation
@Stability(Stable) public CognitoUserConfig.Builder forceAliasCreation(Boolean forceAliasCreation)
Sets the value ofCognitoUserConfig.getForceAliasCreation()- Parameters:
forceAliasCreation- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#force_alias_creation CognitoUser#force_alias_creation}.- Returns:
this
-
forceAliasCreation
@Stability(Stable) public CognitoUserConfig.Builder forceAliasCreation(com.hashicorp.cdktf.IResolvable forceAliasCreation)
Sets the value ofCognitoUserConfig.getForceAliasCreation()- Parameters:
forceAliasCreation- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#force_alias_creation CognitoUser#force_alias_creation}.- Returns:
this
-
id
@Stability(Stable) public CognitoUserConfig.Builder id(String id)
Sets the value ofCognitoUserConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#id CognitoUser#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
-
messageAction
@Stability(Stable) public CognitoUserConfig.Builder messageAction(String messageAction)
Sets the value ofCognitoUserConfig.getMessageAction()- Parameters:
messageAction- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#message_action CognitoUser#message_action}.- Returns:
this
-
password
@Stability(Stable) public CognitoUserConfig.Builder password(String password)
Sets the value ofCognitoUserConfig.getPassword()- Parameters:
password- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#password CognitoUser#password}.- Returns:
this
-
temporaryPassword
@Stability(Stable) public CognitoUserConfig.Builder temporaryPassword(String temporaryPassword)
Sets the value ofCognitoUserConfig.getTemporaryPassword()- Parameters:
temporaryPassword- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#temporary_password CognitoUser#temporary_password}.- Returns:
this
-
validationData
@Stability(Stable) public CognitoUserConfig.Builder validationData(Map<String,String> validationData)
Sets the value ofCognitoUserConfig.getValidationData()- Parameters:
validationData- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cognito_user#validation_data CognitoUser#validation_data}.- Returns:
this
-
connection
@Stability(Experimental) public CognitoUserConfig.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 CognitoUserConfig.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 CognitoUserConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CognitoUserConfig.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 CognitoUserConfig.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 CognitoUserConfig.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 CognitoUserConfig.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 CognitoUserConfig.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 CognitoUserConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CognitoUserConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CognitoUserConfig>- Returns:
- a new instance of
CognitoUserConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-