Class OpsworksMemcachedLayerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.opsworks_memcached_layer.OpsworksMemcachedLayerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpsworksMemcachedLayerConfig>
- Enclosing interface:
- OpsworksMemcachedLayerConfig
@Stability(Stable) public static final class OpsworksMemcachedLayerConfig.Builder extends Object implements software.amazon.jsii.Builder<OpsworksMemcachedLayerConfig>
A builder forOpsworksMemcachedLayerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
stackId
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder stackId(String stackId)
Sets the value ofOpsworksMemcachedLayerConfig.getStackId()- Parameters:
stackId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#stack_id OpsworksMemcachedLayer#stack_id}. This parameter is required.- Returns:
this
-
allocatedMemory
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder allocatedMemory(Number allocatedMemory)
Sets the value ofOpsworksMemcachedLayerConfig.getAllocatedMemory()- Parameters:
allocatedMemory- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#allocated_memory OpsworksMemcachedLayer#allocated_memory}.- Returns:
this
-
autoAssignElasticIps
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder autoAssignElasticIps(Boolean autoAssignElasticIps)
Sets the value ofOpsworksMemcachedLayerConfig.getAutoAssignElasticIps()- Parameters:
autoAssignElasticIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#auto_assign_elastic_ips OpsworksMemcachedLayer#auto_assign_elastic_ips}.- Returns:
this
-
autoAssignElasticIps
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder autoAssignElasticIps(com.hashicorp.cdktf.IResolvable autoAssignElasticIps)
Sets the value ofOpsworksMemcachedLayerConfig.getAutoAssignElasticIps()- Parameters:
autoAssignElasticIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#auto_assign_elastic_ips OpsworksMemcachedLayer#auto_assign_elastic_ips}.- Returns:
this
-
autoAssignPublicIps
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder autoAssignPublicIps(Boolean autoAssignPublicIps)
Sets the value ofOpsworksMemcachedLayerConfig.getAutoAssignPublicIps()- Parameters:
autoAssignPublicIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#auto_assign_public_ips OpsworksMemcachedLayer#auto_assign_public_ips}.- Returns:
this
-
autoAssignPublicIps
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder autoAssignPublicIps(com.hashicorp.cdktf.IResolvable autoAssignPublicIps)
Sets the value ofOpsworksMemcachedLayerConfig.getAutoAssignPublicIps()- Parameters:
autoAssignPublicIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#auto_assign_public_ips OpsworksMemcachedLayer#auto_assign_public_ips}.- Returns:
this
-
autoHealing
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder autoHealing(Boolean autoHealing)
Sets the value ofOpsworksMemcachedLayerConfig.getAutoHealing()- Parameters:
autoHealing- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#auto_healing OpsworksMemcachedLayer#auto_healing}.- Returns:
this
-
autoHealing
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder autoHealing(com.hashicorp.cdktf.IResolvable autoHealing)
Sets the value ofOpsworksMemcachedLayerConfig.getAutoHealing()- Parameters:
autoHealing- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#auto_healing OpsworksMemcachedLayer#auto_healing}.- Returns:
this
-
cloudwatchConfiguration
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder cloudwatchConfiguration(OpsworksMemcachedLayerCloudwatchConfiguration cloudwatchConfiguration)
Sets the value ofOpsworksMemcachedLayerConfig.getCloudwatchConfiguration()- Parameters:
cloudwatchConfiguration- cloudwatch_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#cloudwatch_configuration OpsworksMemcachedLayer#cloudwatch_configuration}- Returns:
this
-
customConfigureRecipes
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customConfigureRecipes(List<String> customConfigureRecipes)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomConfigureRecipes()- Parameters:
customConfigureRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_configure_recipes OpsworksMemcachedLayer#custom_configure_recipes}.- Returns:
this
-
customDeployRecipes
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customDeployRecipes(List<String> customDeployRecipes)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomDeployRecipes()- Parameters:
customDeployRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_deploy_recipes OpsworksMemcachedLayer#custom_deploy_recipes}.- Returns:
this
-
customInstanceProfileArn
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customInstanceProfileArn(String customInstanceProfileArn)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomInstanceProfileArn()- Parameters:
customInstanceProfileArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_instance_profile_arn OpsworksMemcachedLayer#custom_instance_profile_arn}.- Returns:
this
-
customJson
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customJson(String customJson)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomJson()- Parameters:
customJson- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_json OpsworksMemcachedLayer#custom_json}.- Returns:
this
-
customSecurityGroupIds
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customSecurityGroupIds(List<String> customSecurityGroupIds)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomSecurityGroupIds()- Parameters:
customSecurityGroupIds- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_security_group_ids OpsworksMemcachedLayer#custom_security_group_ids}.- Returns:
this
-
customSetupRecipes
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customSetupRecipes(List<String> customSetupRecipes)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomSetupRecipes()- Parameters:
customSetupRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_setup_recipes OpsworksMemcachedLayer#custom_setup_recipes}.- Returns:
this
-
customShutdownRecipes
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customShutdownRecipes(List<String> customShutdownRecipes)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomShutdownRecipes()- Parameters:
customShutdownRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_shutdown_recipes OpsworksMemcachedLayer#custom_shutdown_recipes}.- Returns:
this
-
customUndeployRecipes
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder customUndeployRecipes(List<String> customUndeployRecipes)
Sets the value ofOpsworksMemcachedLayerConfig.getCustomUndeployRecipes()- Parameters:
customUndeployRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#custom_undeploy_recipes OpsworksMemcachedLayer#custom_undeploy_recipes}.- Returns:
this
-
drainElbOnShutdown
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder drainElbOnShutdown(Boolean drainElbOnShutdown)
Sets the value ofOpsworksMemcachedLayerConfig.getDrainElbOnShutdown()- Parameters:
drainElbOnShutdown- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#drain_elb_on_shutdown OpsworksMemcachedLayer#drain_elb_on_shutdown}.- Returns:
this
-
drainElbOnShutdown
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder drainElbOnShutdown(com.hashicorp.cdktf.IResolvable drainElbOnShutdown)
Sets the value ofOpsworksMemcachedLayerConfig.getDrainElbOnShutdown()- Parameters:
drainElbOnShutdown- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#drain_elb_on_shutdown OpsworksMemcachedLayer#drain_elb_on_shutdown}.- Returns:
this
-
ebsVolume
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder ebsVolume(com.hashicorp.cdktf.IResolvable ebsVolume)
Sets the value ofOpsworksMemcachedLayerConfig.getEbsVolume()- Parameters:
ebsVolume- ebs_volume block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#ebs_volume OpsworksMemcachedLayer#ebs_volume}- Returns:
this
-
ebsVolume
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder ebsVolume(List<? extends OpsworksMemcachedLayerEbsVolume> ebsVolume)
Sets the value ofOpsworksMemcachedLayerConfig.getEbsVolume()- Parameters:
ebsVolume- ebs_volume block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#ebs_volume OpsworksMemcachedLayer#ebs_volume}- Returns:
this
-
elasticLoadBalancer
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder elasticLoadBalancer(String elasticLoadBalancer)
Sets the value ofOpsworksMemcachedLayerConfig.getElasticLoadBalancer()- Parameters:
elasticLoadBalancer- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#elastic_load_balancer OpsworksMemcachedLayer#elastic_load_balancer}.- Returns:
this
-
id
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder id(String id)
Sets the value ofOpsworksMemcachedLayerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#id OpsworksMemcachedLayer#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
-
installUpdatesOnBoot
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot)
Sets the value ofOpsworksMemcachedLayerConfig.getInstallUpdatesOnBoot()- Parameters:
installUpdatesOnBoot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#install_updates_on_boot OpsworksMemcachedLayer#install_updates_on_boot}.- Returns:
this
-
installUpdatesOnBoot
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder installUpdatesOnBoot(com.hashicorp.cdktf.IResolvable installUpdatesOnBoot)
Sets the value ofOpsworksMemcachedLayerConfig.getInstallUpdatesOnBoot()- Parameters:
installUpdatesOnBoot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#install_updates_on_boot OpsworksMemcachedLayer#install_updates_on_boot}.- Returns:
this
-
instanceShutdownTimeout
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder instanceShutdownTimeout(Number instanceShutdownTimeout)
Sets the value ofOpsworksMemcachedLayerConfig.getInstanceShutdownTimeout()- Parameters:
instanceShutdownTimeout- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#instance_shutdown_timeout OpsworksMemcachedLayer#instance_shutdown_timeout}.- Returns:
this
-
loadBasedAutoScaling
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder loadBasedAutoScaling(OpsworksMemcachedLayerLoadBasedAutoScaling loadBasedAutoScaling)
Sets the value ofOpsworksMemcachedLayerConfig.getLoadBasedAutoScaling()- Parameters:
loadBasedAutoScaling- load_based_auto_scaling block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#load_based_auto_scaling OpsworksMemcachedLayer#load_based_auto_scaling}- Returns:
this
-
name
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder name(String name)
Sets the value ofOpsworksMemcachedLayerConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#name OpsworksMemcachedLayer#name}.- Returns:
this
-
systemPackages
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder systemPackages(List<String> systemPackages)
Sets the value ofOpsworksMemcachedLayerConfig.getSystemPackages()- Parameters:
systemPackages- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#system_packages OpsworksMemcachedLayer#system_packages}.- Returns:
this
-
tags
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder tags(Map<String,String> tags)
Sets the value ofOpsworksMemcachedLayerConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#tags OpsworksMemcachedLayer#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofOpsworksMemcachedLayerConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#tags_all OpsworksMemcachedLayer#tags_all}.- Returns:
this
-
useEbsOptimizedInstances
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Sets the value ofOpsworksMemcachedLayerConfig.getUseEbsOptimizedInstances()- Parameters:
useEbsOptimizedInstances- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#use_ebs_optimized_instances OpsworksMemcachedLayer#use_ebs_optimized_instances}.- Returns:
this
-
useEbsOptimizedInstances
@Stability(Stable) public OpsworksMemcachedLayerConfig.Builder useEbsOptimizedInstances(com.hashicorp.cdktf.IResolvable useEbsOptimizedInstances)
Sets the value ofOpsworksMemcachedLayerConfig.getUseEbsOptimizedInstances()- Parameters:
useEbsOptimizedInstances- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_memcached_layer#use_ebs_optimized_instances OpsworksMemcachedLayer#use_ebs_optimized_instances}.- Returns:
this
-
connection
@Stability(Experimental) public OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.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 OpsworksMemcachedLayerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public OpsworksMemcachedLayerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpsworksMemcachedLayerConfig>- Returns:
- a new instance of
OpsworksMemcachedLayerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-