@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoutingConfigurationListItem extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the routing configuration of a state machine alias. In a routing configuration, you define an array of objects that specify up to two state machine versions. You also specify the percentage of traffic to be routed to each version.
Constructor and Description |
---|
RoutingConfigurationListItem() |
Modifier and Type | Method and Description |
---|---|
RoutingConfigurationListItem |
clone() |
boolean |
equals(Object obj) |
String |
getStateMachineVersionArn()
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing
configuration.
|
Integer |
getWeight()
The percentage of traffic you want to route to the second state machine version.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setStateMachineVersionArn(String stateMachineVersionArn)
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing
configuration.
|
void |
setWeight(Integer weight)
The percentage of traffic you want to route to the second state machine version.
|
String |
toString()
Returns a string representation of this object.
|
RoutingConfigurationListItem |
withStateMachineVersionArn(String stateMachineVersionArn)
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing
configuration.
|
RoutingConfigurationListItem |
withWeight(Integer weight)
The percentage of traffic you want to route to the second state machine version.
|
public void setStateMachineVersionArn(String stateMachineVersionArn)
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
stateMachineVersionArn
- The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing
configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
public String getStateMachineVersionArn()
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
public RoutingConfigurationListItem withStateMachineVersionArn(String stateMachineVersionArn)
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
stateMachineVersionArn
- The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing
configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
public void setWeight(Integer weight)
The percentage of traffic you want to route to the second state machine version. The sum of the weights in the routing configuration must be equal to 100.
weight
- The percentage of traffic you want to route to the second state machine version. The sum of the weights in
the routing configuration must be equal to 100.public Integer getWeight()
The percentage of traffic you want to route to the second state machine version. The sum of the weights in the routing configuration must be equal to 100.
public RoutingConfigurationListItem withWeight(Integer weight)
The percentage of traffic you want to route to the second state machine version. The sum of the weights in the routing configuration must be equal to 100.
weight
- The percentage of traffic you want to route to the second state machine version. The sum of the weights in
the routing configuration must be equal to 100.public String toString()
toString
in class Object
Object.toString()
public RoutingConfigurationListItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.