Interface TrafficConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TrafficConfig.Builder,,TrafficConfig> SdkBuilder<TrafficConfig.Builder,,TrafficConfig> SdkPojo
- Enclosing class:
TrafficConfig
public static interface TrafficConfig.Builder
extends SdkPojo, CopyableBuilder<TrafficConfig.Builder,TrafficConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TrafficConfig.BuildersingleHeaderConfig(Consumer<ContinuousDeploymentSingleHeaderConfig.Builder> singleHeaderConfig) Determines which HTTP requests are sent to the staging distribution.singleHeaderConfig(ContinuousDeploymentSingleHeaderConfig singleHeaderConfig) Determines which HTTP requests are sent to the staging distribution.default TrafficConfig.BuildersingleWeightConfig(Consumer<ContinuousDeploymentSingleWeightConfig.Builder> singleWeightConfig) Contains the percentage of traffic to send to the staging distribution.singleWeightConfig(ContinuousDeploymentSingleWeightConfig singleWeightConfig) Contains the percentage of traffic to send to the staging distribution.The type of traffic configuration.The type of traffic configuration.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, sdkFields
-
Method Details
-
singleWeightConfig
Contains the percentage of traffic to send to the staging distribution.
- Parameters:
singleWeightConfig- Contains the percentage of traffic to send to the staging distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
singleWeightConfig
default TrafficConfig.Builder singleWeightConfig(Consumer<ContinuousDeploymentSingleWeightConfig.Builder> singleWeightConfig) Contains the percentage of traffic to send to the staging distribution.
This is a convenience method that creates an instance of theContinuousDeploymentSingleWeightConfig.Builderavoiding the need to create one manually viaContinuousDeploymentSingleWeightConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosingleWeightConfig(ContinuousDeploymentSingleWeightConfig).- Parameters:
singleWeightConfig- a consumer that will call methods onContinuousDeploymentSingleWeightConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
singleHeaderConfig
Determines which HTTP requests are sent to the staging distribution.
- Parameters:
singleHeaderConfig- Determines which HTTP requests are sent to the staging distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
singleHeaderConfig
default TrafficConfig.Builder singleHeaderConfig(Consumer<ContinuousDeploymentSingleHeaderConfig.Builder> singleHeaderConfig) Determines which HTTP requests are sent to the staging distribution.
This is a convenience method that creates an instance of theContinuousDeploymentSingleHeaderConfig.Builderavoiding the need to create one manually viaContinuousDeploymentSingleHeaderConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig).- Parameters:
singleHeaderConfig- a consumer that will call methods onContinuousDeploymentSingleHeaderConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of traffic configuration.
- Parameters:
type- The type of traffic configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of traffic configuration.
- Parameters:
type- The type of traffic configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-