Interface CreateLoadBalancerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLoadBalancerRequest.Builder,
,CreateLoadBalancerRequest> LightsailRequest.Builder
,SdkBuilder<CreateLoadBalancerRequest.Builder,
,CreateLoadBalancerRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLoadBalancerRequest
-
Method Summary
Modifier and TypeMethodDescriptioncertificateAlternativeNames
(String... certificateAlternativeNames) The optional alternative domains and subdomains to use with your SSL/TLS certificate (www.example.com
,example.com
,m.example.com
,blog.example.com
).certificateAlternativeNames
(Collection<String> certificateAlternativeNames) The optional alternative domains and subdomains to use with your SSL/TLS certificate (www.example.com
,example.com
,m.example.com
,blog.example.com
).certificateDomainName
(String certificateDomainName) The domain name with which your certificate is associated (example.com
).certificateName
(String certificateName) The name of the SSL/TLS certificate.healthCheckPath
(String healthCheckPath) The path you provided to perform the load balancer health check.instancePort
(Integer instancePort) The instance port where you're creating your load balancer.ipAddressType
(String ipAddressType) The IP address type for the load balancer.ipAddressType
(IpAddressType ipAddressType) The IP address type for the load balancer.loadBalancerName
(String loadBalancerName) The name of your load balancer.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) The tag keys and optional values to add to the resource during create.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values to add to the resource during create.The tag keys and optional values to add to the resource during create.tlsPolicyName
(String tlsPolicyName) The name of the TLS policy to apply to the load balancer.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
loadBalancerName
The name of your load balancer.
- Parameters:
loadBalancerName
- The name of your load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instancePort
The instance port where you're creating your load balancer.
- Parameters:
instancePort
- The instance port where you're creating your load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheckPath
The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (
"/"
).You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.
- Parameters:
healthCheckPath
- The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website ("/"
).You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateName
The name of the SSL/TLS certificate.
If you specify
certificateName
, thencertificateDomainName
is required (and vice-versa).- Parameters:
certificateName
- The name of the SSL/TLS certificate.If you specify
certificateName
, thencertificateDomainName
is required (and vice-versa).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateDomainName
The domain name with which your certificate is associated (
example.com
).If you specify
certificateDomainName
, thencertificateName
is required (and vice-versa).- Parameters:
certificateDomainName
- The domain name with which your certificate is associated (example.com
).If you specify
certificateDomainName
, thencertificateName
is required (and vice-versa).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateAlternativeNames
CreateLoadBalancerRequest.Builder certificateAlternativeNames(Collection<String> certificateAlternativeNames) The optional alternative domains and subdomains to use with your SSL/TLS certificate (
www.example.com
,example.com
,m.example.com
,blog.example.com
).- Parameters:
certificateAlternativeNames
- The optional alternative domains and subdomains to use with your SSL/TLS certificate (www.example.com
,example.com
,m.example.com
,blog.example.com
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateAlternativeNames
CreateLoadBalancerRequest.Builder certificateAlternativeNames(String... certificateAlternativeNames) The optional alternative domains and subdomains to use with your SSL/TLS certificate (
www.example.com
,example.com
,m.example.com
,blog.example.com
).- Parameters:
certificateAlternativeNames
- The optional alternative domains and subdomains to use with your SSL/TLS certificate (www.example.com
,example.com
,m.example.com
,blog.example.com
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the resource during create.
Use the
TagResource
action to tag a resource after it's created.- Parameters:
tags
- The tag keys and optional values to add to the resource during create.Use the
TagResource
action to tag a resource after it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the resource during create.
Use the
TagResource
action to tag a resource after it's created.- Parameters:
tags
- The tag keys and optional values to add to the resource during create.Use the
TagResource
action to tag a resource after it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the resource during create.
Use the
This is a convenience method that creates an instance of theTagResource
action to tag a resource after it's created.Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type for the load balancer.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Parameters:
ipAddressType
- The IP address type for the load balancer.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type for the load balancer.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Parameters:
ipAddressType
- The IP address type for the load balancer.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tlsPolicyName
The name of the TLS policy to apply to the load balancer.
Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.
- Parameters:
tlsPolicyName
- The name of the TLS policy to apply to the load balancer.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateLoadBalancerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLoadBalancerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-