Class LbConfig.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<LbConfig>
    Enclosing interface:
    LbConfig

    @Stability(Stable)
    public static final class LbConfig.Builder
    extends Object
    implements software.amazon.jsii.Builder<LbConfig>
    A builder for LbConfig
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • accessLogs

        @Stability(Stable)
        public LbConfig.Builder accessLogs​(LbAccessLogs accessLogs)
        Sets the value of LbConfig.getAccessLogs()
        Parameters:
        accessLogs - access_logs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#access_logs Lb#access_logs}
        Returns:
        this
      • customerOwnedIpv4Pool

        @Stability(Stable)
        public LbConfig.Builder customerOwnedIpv4Pool​(String customerOwnedIpv4Pool)
        Parameters:
        customerOwnedIpv4Pool - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#customer_owned_ipv4_pool Lb#customer_owned_ipv4_pool}.
        Returns:
        this
      • desyncMitigationMode

        @Stability(Stable)
        public LbConfig.Builder desyncMitigationMode​(String desyncMitigationMode)
        Parameters:
        desyncMitigationMode - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#desync_mitigation_mode Lb#desync_mitigation_mode}.
        Returns:
        this
      • dropInvalidHeaderFields

        @Stability(Stable)
        public LbConfig.Builder dropInvalidHeaderFields​(Boolean dropInvalidHeaderFields)
        Parameters:
        dropInvalidHeaderFields - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#drop_invalid_header_fields Lb#drop_invalid_header_fields}.
        Returns:
        this
      • dropInvalidHeaderFields

        @Stability(Stable)
        public LbConfig.Builder dropInvalidHeaderFields​(com.hashicorp.cdktf.IResolvable dropInvalidHeaderFields)
        Parameters:
        dropInvalidHeaderFields - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#drop_invalid_header_fields Lb#drop_invalid_header_fields}.
        Returns:
        this
      • enableCrossZoneLoadBalancing

        @Stability(Stable)
        public LbConfig.Builder enableCrossZoneLoadBalancing​(Boolean enableCrossZoneLoadBalancing)
        Parameters:
        enableCrossZoneLoadBalancing - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_cross_zone_load_balancing Lb#enable_cross_zone_load_balancing}.
        Returns:
        this
      • enableCrossZoneLoadBalancing

        @Stability(Stable)
        public LbConfig.Builder enableCrossZoneLoadBalancing​(com.hashicorp.cdktf.IResolvable enableCrossZoneLoadBalancing)
        Parameters:
        enableCrossZoneLoadBalancing - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_cross_zone_load_balancing Lb#enable_cross_zone_load_balancing}.
        Returns:
        this
      • enableDeletionProtection

        @Stability(Stable)
        public LbConfig.Builder enableDeletionProtection​(Boolean enableDeletionProtection)
        Parameters:
        enableDeletionProtection - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_deletion_protection Lb#enable_deletion_protection}.
        Returns:
        this
      • enableDeletionProtection

        @Stability(Stable)
        public LbConfig.Builder enableDeletionProtection​(com.hashicorp.cdktf.IResolvable enableDeletionProtection)
        Parameters:
        enableDeletionProtection - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_deletion_protection Lb#enable_deletion_protection}.
        Returns:
        this
      • enableHttp2

        @Stability(Stable)
        public LbConfig.Builder enableHttp2​(Boolean enableHttp2)
        Sets the value of LbConfig.getEnableHttp2()
        Parameters:
        enableHttp2 - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_http2 Lb#enable_http2}.
        Returns:
        this
      • enableHttp2

        @Stability(Stable)
        public LbConfig.Builder enableHttp2​(com.hashicorp.cdktf.IResolvable enableHttp2)
        Sets the value of LbConfig.getEnableHttp2()
        Parameters:
        enableHttp2 - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_http2 Lb#enable_http2}.
        Returns:
        this
      • enableTlsVersionAndCipherSuiteHeaders

        @Stability(Stable)
        public LbConfig.Builder enableTlsVersionAndCipherSuiteHeaders​(Boolean enableTlsVersionAndCipherSuiteHeaders)
        Parameters:
        enableTlsVersionAndCipherSuiteHeaders - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_tls_version_and_cipher_suite_headers Lb#enable_tls_version_and_cipher_suite_headers}.
        Returns:
        this
      • enableTlsVersionAndCipherSuiteHeaders

        @Stability(Stable)
        public LbConfig.Builder enableTlsVersionAndCipherSuiteHeaders​(com.hashicorp.cdktf.IResolvable enableTlsVersionAndCipherSuiteHeaders)
        Parameters:
        enableTlsVersionAndCipherSuiteHeaders - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_tls_version_and_cipher_suite_headers Lb#enable_tls_version_and_cipher_suite_headers}.
        Returns:
        this
      • enableWafFailOpen

        @Stability(Stable)
        public LbConfig.Builder enableWafFailOpen​(Boolean enableWafFailOpen)
        Parameters:
        enableWafFailOpen - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_waf_fail_open Lb#enable_waf_fail_open}.
        Returns:
        this
      • enableWafFailOpen

        @Stability(Stable)
        public LbConfig.Builder enableWafFailOpen​(com.hashicorp.cdktf.IResolvable enableWafFailOpen)
        Parameters:
        enableWafFailOpen - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_waf_fail_open Lb#enable_waf_fail_open}.
        Returns:
        this
      • enableXffClientPort

        @Stability(Stable)
        public LbConfig.Builder enableXffClientPort​(Boolean enableXffClientPort)
        Parameters:
        enableXffClientPort - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_xff_client_port Lb#enable_xff_client_port}.
        Returns:
        this
      • enableXffClientPort

        @Stability(Stable)
        public LbConfig.Builder enableXffClientPort​(com.hashicorp.cdktf.IResolvable enableXffClientPort)
        Parameters:
        enableXffClientPort - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_xff_client_port Lb#enable_xff_client_port}.
        Returns:
        this
      • id

        @Stability(Stable)
        public LbConfig.Builder id​(String id)
        Sets the value of LbConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#id Lb#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
      • idleTimeout

        @Stability(Stable)
        public LbConfig.Builder idleTimeout​(Number idleTimeout)
        Sets the value of LbConfig.getIdleTimeout()
        Parameters:
        idleTimeout - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#idle_timeout Lb#idle_timeout}.
        Returns:
        this
      • internal

        @Stability(Stable)
        public LbConfig.Builder internal​(Boolean internal)
        Sets the value of LbConfig.getInternal()
        Parameters:
        internal - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#internal Lb#internal}.
        Returns:
        this
      • internal

        @Stability(Stable)
        public LbConfig.Builder internal​(com.hashicorp.cdktf.IResolvable internal)
        Sets the value of LbConfig.getInternal()
        Parameters:
        internal - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#internal Lb#internal}.
        Returns:
        this
      • ipAddressType

        @Stability(Stable)
        public LbConfig.Builder ipAddressType​(String ipAddressType)
        Sets the value of LbConfig.getIpAddressType()
        Parameters:
        ipAddressType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#ip_address_type Lb#ip_address_type}.
        Returns:
        this
      • loadBalancerType

        @Stability(Stable)
        public LbConfig.Builder loadBalancerType​(String loadBalancerType)
        Parameters:
        loadBalancerType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#load_balancer_type Lb#load_balancer_type}.
        Returns:
        this
      • name

        @Stability(Stable)
        public LbConfig.Builder name​(String name)
        Sets the value of LbConfig.getName()
        Parameters:
        name - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#name Lb#name}.
        Returns:
        this
      • namePrefix

        @Stability(Stable)
        public LbConfig.Builder namePrefix​(String namePrefix)
        Sets the value of LbConfig.getNamePrefix()
        Parameters:
        namePrefix - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#name_prefix Lb#name_prefix}.
        Returns:
        this
      • preserveHostHeader

        @Stability(Stable)
        public LbConfig.Builder preserveHostHeader​(Boolean preserveHostHeader)
        Parameters:
        preserveHostHeader - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#preserve_host_header Lb#preserve_host_header}.
        Returns:
        this
      • preserveHostHeader

        @Stability(Stable)
        public LbConfig.Builder preserveHostHeader​(com.hashicorp.cdktf.IResolvable preserveHostHeader)
        Parameters:
        preserveHostHeader - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#preserve_host_header Lb#preserve_host_header}.
        Returns:
        this
      • securityGroups

        @Stability(Stable)
        public LbConfig.Builder securityGroups​(List<String> securityGroups)
        Parameters:
        securityGroups - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#security_groups Lb#security_groups}.
        Returns:
        this
      • subnetMapping

        @Stability(Stable)
        public LbConfig.Builder subnetMapping​(com.hashicorp.cdktf.IResolvable subnetMapping)
        Sets the value of LbConfig.getSubnetMapping()
        Parameters:
        subnetMapping - subnet_mapping block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#subnet_mapping Lb#subnet_mapping}
        Returns:
        this
      • subnetMapping

        @Stability(Stable)
        public LbConfig.Builder subnetMapping​(List<? extends LbSubnetMapping> subnetMapping)
        Sets the value of LbConfig.getSubnetMapping()
        Parameters:
        subnetMapping - subnet_mapping block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#subnet_mapping Lb#subnet_mapping}
        Returns:
        this
      • subnets

        @Stability(Stable)
        public LbConfig.Builder subnets​(List<String> subnets)
        Sets the value of LbConfig.getSubnets()
        Parameters:
        subnets - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#subnets Lb#subnets}.
        Returns:
        this
      • tags

        @Stability(Stable)
        public LbConfig.Builder tags​(Map<String,​String> tags)
        Sets the value of LbConfig.getTags()
        Parameters:
        tags - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#tags Lb#tags}.
        Returns:
        this
      • tagsAll

        @Stability(Stable)
        public LbConfig.Builder tagsAll​(Map<String,​String> tagsAll)
        Sets the value of LbConfig.getTagsAll()
        Parameters:
        tagsAll - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#tags_all Lb#tags_all}.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public LbConfig.Builder timeouts​(LbTimeouts timeouts)
        Sets the value of LbConfig.getTimeouts()
        Parameters:
        timeouts - timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#timeouts Lb#timeouts}
        Returns:
        this
      • xffHeaderProcessingMode

        @Stability(Stable)
        public LbConfig.Builder xffHeaderProcessingMode​(String xffHeaderProcessingMode)
        Parameters:
        xffHeaderProcessingMode - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#xff_header_processing_mode Lb#xff_header_processing_mode}.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public LbConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public LbConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public LbConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public LbConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public LbConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public LbConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public LbConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public LbConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public LbConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this
      • build

        @Stability(Stable)
        public LbConfig build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<LbConfig>
        Returns:
        a new instance of LbConfig
        Throws:
        NullPointerException - if any required attribute was not provided