Interface CreateLoadBalancerPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateLoadBalancerPolicyRequest.Builder,,CreateLoadBalancerPolicyRequest> ElasticLoadBalancingRequest.Builder,SdkBuilder<CreateLoadBalancerPolicyRequest.Builder,,CreateLoadBalancerPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateLoadBalancerPolicyRequest
@Mutable
@NotThreadSafe
public static interface CreateLoadBalancerPolicyRequest.Builder
extends ElasticLoadBalancingRequest.Builder, SdkPojo, CopyableBuilder<CreateLoadBalancerPolicyRequest.Builder,CreateLoadBalancerPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionloadBalancerName(String loadBalancerName) The name of the load balancer.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyAttributes(Collection<PolicyAttribute> policyAttributes) The policy attributes.policyAttributes(Consumer<PolicyAttribute.Builder>... policyAttributes) The policy attributes.policyAttributes(PolicyAttribute... policyAttributes) The policy attributes.policyName(String policyName) The name of the load balancer policy to be created.policyTypeName(String policyTypeName) The name of the base policy type.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.elasticloadbalancing.model.ElasticLoadBalancingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
loadBalancerName
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyName
The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
- Parameters:
policyName- The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyTypeName
The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
- Parameters:
policyTypeName- The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttributes
CreateLoadBalancerPolicyRequest.Builder policyAttributes(Collection<PolicyAttribute> policyAttributes) The policy attributes.
- Parameters:
policyAttributes- The policy attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttributes
The policy attributes.
- Parameters:
policyAttributes- The policy attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttributes
CreateLoadBalancerPolicyRequest.Builder policyAttributes(Consumer<PolicyAttribute.Builder>... policyAttributes) The policy attributes.
This is a convenience method that creates an instance of thePolicyAttribute.Builderavoiding the need to create one manually viaPolicyAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyAttributes(List<PolicyAttribute>).- Parameters:
policyAttributes- a consumer that will call methods onPolicyAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateLoadBalancerPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLoadBalancerPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-