Interface BlueGreenUpdatePolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BlueGreenUpdatePolicy.Builder,,BlueGreenUpdatePolicy> SdkBuilder<BlueGreenUpdatePolicy.Builder,,BlueGreenUpdatePolicy> SdkPojo
- Enclosing class:
BlueGreenUpdatePolicy
@Mutable
@NotThreadSafe
public static interface BlueGreenUpdatePolicy.Builder
extends SdkPojo, CopyableBuilder<BlueGreenUpdatePolicy.Builder,BlueGreenUpdatePolicy>
-
Method Summary
Modifier and TypeMethodDescriptionmaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds) Maximum execution timeout for the deployment.terminationWaitInSeconds(Integer terminationWaitInSeconds) Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet.default BlueGreenUpdatePolicy.BuildertrafficRoutingConfiguration(Consumer<TrafficRoutingConfig.Builder> trafficRoutingConfiguration) Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.trafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration) Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.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
-
trafficRoutingConfiguration
BlueGreenUpdatePolicy.Builder trafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration) Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
- Parameters:
trafficRoutingConfiguration- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficRoutingConfiguration
default BlueGreenUpdatePolicy.Builder trafficRoutingConfiguration(Consumer<TrafficRoutingConfig.Builder> trafficRoutingConfiguration) Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
This is a convenience method that creates an instance of theTrafficRoutingConfig.Builderavoiding the need to create one manually viaTrafficRoutingConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrafficRoutingConfiguration(TrafficRoutingConfig).- Parameters:
trafficRoutingConfiguration- a consumer that will call methods onTrafficRoutingConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
terminationWaitInSeconds
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
- Parameters:
terminationWaitInSeconds- Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumExecutionTimeoutInSeconds
BlueGreenUpdatePolicy.Builder maximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds) Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in
TerminationWaitInSecondsandWaitIntervalInSeconds.- Parameters:
maximumExecutionTimeoutInSeconds- Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified inTerminationWaitInSecondsandWaitIntervalInSeconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-