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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TrafficConfig.Builder
singleHeaderConfig(Consumer<ContinuousDeploymentSingleHeaderConfig.Builder> singleHeaderConfig)
Determines which HTTP requests are sent to the staging distribution.TrafficConfig.Builder
singleHeaderConfig(ContinuousDeploymentSingleHeaderConfig singleHeaderConfig)
Determines which HTTP requests are sent to the staging distribution.default TrafficConfig.Builder
singleWeightConfig(Consumer<ContinuousDeploymentSingleWeightConfig.Builder> singleWeightConfig)
Contains the percentage of traffic to send to the staging distribution.TrafficConfig.Builder
singleWeightConfig(ContinuousDeploymentSingleWeightConfig singleWeightConfig)
Contains the percentage of traffic to send to the staging distribution.TrafficConfig.Builder
type(String type)
The type of traffic configuration.TrafficConfig.Builder
type(ContinuousDeploymentPolicyType type)
The type of traffic configuration.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
singleWeightConfig
TrafficConfig.Builder singleWeightConfig(ContinuousDeploymentSingleWeightConfig 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.Builder
avoiding the need to create one manually viaContinuousDeploymentSingleWeightConfig.builder()
.When the
Consumer
completes,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:
singleWeightConfig(ContinuousDeploymentSingleWeightConfig)
-
singleHeaderConfig
TrafficConfig.Builder singleHeaderConfig(ContinuousDeploymentSingleHeaderConfig 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.Builder
avoiding the need to create one manually viaContinuousDeploymentSingleHeaderConfig.builder()
.When the
Consumer
completes,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:
singleHeaderConfig(ContinuousDeploymentSingleHeaderConfig)
-
type
TrafficConfig.Builder type(String 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:
ContinuousDeploymentPolicyType
,ContinuousDeploymentPolicyType
-
type
TrafficConfig.Builder type(ContinuousDeploymentPolicyType 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:
ContinuousDeploymentPolicyType
,ContinuousDeploymentPolicyType
-
-