@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficRoutingConfig extends Object implements Serializable, Cloneable, StructuredPojo
Defines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.
| Constructor and Description |
|---|
TrafficRoutingConfig() |
| Modifier and Type | Method and Description |
|---|---|
TrafficRoutingConfig |
clone() |
boolean |
equals(Object obj) |
CapacitySize |
getCanarySize()
Batch size for the first step to turn on traffic on the new endpoint fleet.
|
CapacitySize |
getLinearStepSize()
Batch size for each step to turn on traffic on the new endpoint fleet.
|
String |
getType()
Traffic routing strategy type.
|
Integer |
getWaitIntervalInSeconds()
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCanarySize(CapacitySize canarySize)
Batch size for the first step to turn on traffic on the new endpoint fleet.
|
void |
setLinearStepSize(CapacitySize linearStepSize)
Batch size for each step to turn on traffic on the new endpoint fleet.
|
void |
setType(String type)
Traffic routing strategy type.
|
void |
setWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
|
String |
toString()
Returns a string representation of this object.
|
TrafficRoutingConfig |
withCanarySize(CapacitySize canarySize)
Batch size for the first step to turn on traffic on the new endpoint fleet.
|
TrafficRoutingConfig |
withLinearStepSize(CapacitySize linearStepSize)
Batch size for each step to turn on traffic on the new endpoint fleet.
|
TrafficRoutingConfig |
withType(String type)
Traffic routing strategy type.
|
TrafficRoutingConfig |
withType(TrafficRoutingConfigType type)
Traffic routing strategy type.
|
TrafficRoutingConfig |
withWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
|
public void setType(String type)
Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which
is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
type - Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary,
which is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
TrafficRoutingConfigTypepublic String getType()
Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which
is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary,
which is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
TrafficRoutingConfigTypepublic TrafficRoutingConfig withType(String type)
Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which
is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
type - Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary,
which is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
TrafficRoutingConfigTypepublic TrafficRoutingConfig withType(TrafficRoutingConfigType type)
Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which
is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
type - Traffic routing strategy type.
ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.
CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary,
which is a small portion of the traffic. The second step is the remainder of the traffic.
LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
TrafficRoutingConfigTypepublic void setWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
waitIntervalInSeconds - The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.public Integer getWaitIntervalInSeconds()
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
public TrafficRoutingConfig withWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
waitIntervalInSeconds - The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.public void setCanarySize(CapacitySize canarySize)
Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be less than
or equal to 50% of the variant's total instance count.
canarySize - Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be
less than or equal to 50% of the variant's total instance count.public CapacitySize getCanarySize()
Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be less than
or equal to 50% of the variant's total instance count.
Value must be
less than or equal to 50% of the variant's total instance count.public TrafficRoutingConfig withCanarySize(CapacitySize canarySize)
Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be less than
or equal to 50% of the variant's total instance count.
canarySize - Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be
less than or equal to 50% of the variant's total instance count.public void setLinearStepSize(CapacitySize linearStepSize)
Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50% of the
variant's total instance count.
linearStepSize - Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50%
of the variant's total instance count.public CapacitySize getLinearStepSize()
Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50% of the
variant's total instance count.
Value must be 10-50%
of the variant's total instance count.public TrafficRoutingConfig withLinearStepSize(CapacitySize linearStepSize)
Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50% of the
variant's total instance count.
linearStepSize - Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50%
of the variant's total instance count.public String toString()
toString in class ObjectObject.toString()public TrafficRoutingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.