Interface TrafficSplitOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TrafficSplitOptions.Builder,,TrafficSplitOptions> SdkBuilder<TrafficSplitOptions.Builder,,TrafficSplitOptions> SdkPojo
- Enclosing class:
TrafficSplitOptions
@Mutable
@NotThreadSafe
public static interface TrafficSplitOptions.Builder
extends SdkPojo, CopyableBuilder<TrafficSplitOptions.Builder,TrafficSplitOptions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TrafficSplitOptions.Buildercurrent(Consumer<TrafficPercents.Builder> current) The traffic split currently in effect.current(TrafficPercents current) The traffic split currently in effect.The status of the traffic shift.status(TrafficSplitStatus status) The status of the traffic shift.default TrafficSplitOptions.Buildertarget(Consumer<TrafficPercents.Builder> target) The requested traffic split.target(TrafficPercents target) The requested traffic split.Methods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
current
The traffic split currently in effect.
- Parameters:
current- The traffic split currently in effect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
current
The traffic split currently in effect.
This is a convenience method that creates an instance of theTrafficPercents.Builderavoiding the need to create one manually viaTrafficPercents.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocurrent(TrafficPercents).- Parameters:
current- a consumer that will call methods onTrafficPercents.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
target
The requested traffic split.
- Parameters:
target- The requested traffic split.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The requested traffic split.
This is a convenience method that creates an instance of theTrafficPercents.Builderavoiding the need to create one manually viaTrafficPercents.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(TrafficPercents).- Parameters:
target- a consumer that will call methods onTrafficPercents.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the traffic shift.
- Parameters:
status- The status of the traffic shift.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the traffic shift.
- Parameters:
status- The status of the traffic shift.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-