Interface ContinuousDeploymentSingleWeightConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContinuousDeploymentSingleWeightConfig.Builder,
,ContinuousDeploymentSingleWeightConfig> SdkBuilder<ContinuousDeploymentSingleWeightConfig.Builder,
,ContinuousDeploymentSingleWeightConfig> SdkPojo
- Enclosing class:
ContinuousDeploymentSingleWeightConfig
public static interface ContinuousDeploymentSingleWeightConfig.Builder
extends SdkPojo, CopyableBuilder<ContinuousDeploymentSingleWeightConfig.Builder,ContinuousDeploymentSingleWeightConfig>
-
Method Summary
Modifier and TypeMethodDescriptionsessionStickinessConfig
(Consumer<SessionStickinessConfig.Builder> sessionStickinessConfig) Sets the value of the SessionStickinessConfig property for this object.sessionStickinessConfig
(SessionStickinessConfig sessionStickinessConfig) Sets the value of the SessionStickinessConfig property for this object.The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15.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 Details
-
weight
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- Parameters:
weight
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStickinessConfig
ContinuousDeploymentSingleWeightConfig.Builder sessionStickinessConfig(SessionStickinessConfig sessionStickinessConfig) Sets the value of the SessionStickinessConfig property for this object.- Parameters:
sessionStickinessConfig
- The new value for the SessionStickinessConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStickinessConfig
default ContinuousDeploymentSingleWeightConfig.Builder sessionStickinessConfig(Consumer<SessionStickinessConfig.Builder> sessionStickinessConfig) Sets the value of the SessionStickinessConfig property for this object. This is a convenience method that creates an instance of theSessionStickinessConfig.Builder
avoiding the need to create one manually viaSessionStickinessConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionStickinessConfig(SessionStickinessConfig)
.- Parameters:
sessionStickinessConfig
- a consumer that will call methods onSessionStickinessConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-