public static interface SetSubnetsRequest.Builder extends ElasticLoadBalancingv2Request.Builder, CopyableBuilder<SetSubnetsRequest.Builder,SetSubnetsRequest>
Modifier and Type | Method and Description |
---|---|
SetSubnetsRequest.Builder |
loadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
SetSubnetsRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
SetSubnetsRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
SetSubnetsRequest.Builder |
subnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets.
|
SetSubnetsRequest.Builder |
subnetMappings(Consumer<SubnetMapping.Builder>... subnetMappings)
The IDs of the subnets.
|
SetSubnetsRequest.Builder |
subnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets.
|
SetSubnetsRequest.Builder |
subnets(Collection<String> subnets)
The IDs of the subnets.
|
SetSubnetsRequest.Builder |
subnets(String... subnets)
The IDs of the subnets.
|
build
requestOverrideConfig
copy
apply, build
SetSubnetsRequest.Builder loadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.SetSubnetsRequest.Builder subnets(Collection<String> subnets)
The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
subnets
- The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify
only one subnet per Availability Zone. You must specify either subnets or subnet mappings.SetSubnetsRequest.Builder subnets(String... subnets)
The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
subnets
- The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify
only one subnet per Availability Zone. You must specify either subnets or subnet mappings.SetSubnetsRequest.Builder subnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
You cannot specify Elastic IP addresses for your subnets.
subnetMappings
- The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify
only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
You cannot specify Elastic IP addresses for your subnets.
SetSubnetsRequest.Builder subnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
You cannot specify Elastic IP addresses for your subnets.
subnetMappings
- The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify
only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
You cannot specify Elastic IP addresses for your subnets.
SetSubnetsRequest.Builder subnetMappings(Consumer<SubnetMapping.Builder>... subnetMappings)
The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
You cannot specify Elastic IP addresses for your subnets.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #subnetMappings(List)
.subnetMappings
- a consumer that will call methods on List.Builder
#subnetMappings(List)
SetSubnetsRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.SetSubnetsRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.