Interface AttachTrafficSourcesRequest.Builder
- All Superinterfaces:
AutoScalingRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<AttachTrafficSourcesRequest.Builder,,AttachTrafficSourcesRequest> SdkBuilder<AttachTrafficSourcesRequest.Builder,,AttachTrafficSourcesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AttachTrafficSourcesRequest
public static interface AttachTrafficSourcesRequest.Builder
extends AutoScalingRequest.Builder, SdkPojo, CopyableBuilder<AttachTrafficSourcesRequest.Builder,AttachTrafficSourcesRequest>
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupName(String autoScalingGroupName) The name of the Auto Scaling group.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.trafficSources(Collection<TrafficSourceIdentifier> trafficSources) The unique identifiers of one or more traffic sources.trafficSources(Consumer<TrafficSourceIdentifier.Builder>... trafficSources) The unique identifiers of one or more traffic sources.trafficSources(TrafficSourceIdentifier... trafficSources) The unique identifiers of one or more traffic sources.Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingRequest.Builder
buildMethods 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.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
autoScalingGroupName
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName- The name of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficSources
AttachTrafficSourcesRequest.Builder trafficSources(Collection<TrafficSourceIdentifier> trafficSources) The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.
- Parameters:
trafficSources- The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficSources
The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.
- Parameters:
trafficSources- The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficSources
AttachTrafficSourcesRequest.Builder trafficSources(Consumer<TrafficSourceIdentifier.Builder>... trafficSources) The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.
This is a convenience method that creates an instance of theTrafficSourceIdentifier.Builderavoiding the need to create one manually viaTrafficSourceIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrafficSources(List<TrafficSourceIdentifier>).- Parameters:
trafficSources- a consumer that will call methods onTrafficSourceIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AttachTrafficSourcesRequest.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
AttachTrafficSourcesRequest.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.
-