@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficPattern extends Object implements Serializable, Cloneable, StructuredPojo
Defines the traffic pattern of the load test.
Constructor and Description |
---|
TrafficPattern() |
Modifier and Type | Method and Description |
---|---|
TrafficPattern |
clone() |
boolean |
equals(Object obj) |
List<Phase> |
getPhases()
Defines the phases traffic specification.
|
Stairs |
getStairs()
Defines the stairs traffic pattern.
|
String |
getTrafficType()
Defines the traffic patterns.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPhases(Collection<Phase> phases)
Defines the phases traffic specification.
|
void |
setStairs(Stairs stairs)
Defines the stairs traffic pattern.
|
void |
setTrafficType(String trafficType)
Defines the traffic patterns.
|
String |
toString()
Returns a string representation of this object.
|
TrafficPattern |
withPhases(Collection<Phase> phases)
Defines the phases traffic specification.
|
TrafficPattern |
withPhases(Phase... phases)
Defines the phases traffic specification.
|
TrafficPattern |
withStairs(Stairs stairs)
Defines the stairs traffic pattern.
|
TrafficPattern |
withTrafficType(String trafficType)
Defines the traffic patterns.
|
TrafficPattern |
withTrafficType(TrafficType trafficType)
Defines the traffic patterns.
|
public void setTrafficType(String trafficType)
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
trafficType
- Defines the traffic patterns. Choose either PHASES
or STAIRS
.TrafficType
public String getTrafficType()
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
PHASES
or STAIRS
.TrafficType
public TrafficPattern withTrafficType(String trafficType)
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
trafficType
- Defines the traffic patterns. Choose either PHASES
or STAIRS
.TrafficType
public TrafficPattern withTrafficType(TrafficType trafficType)
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
trafficType
- Defines the traffic patterns. Choose either PHASES
or STAIRS
.TrafficType
public List<Phase> getPhases()
Defines the phases traffic specification.
public void setPhases(Collection<Phase> phases)
Defines the phases traffic specification.
phases
- Defines the phases traffic specification.public TrafficPattern withPhases(Phase... phases)
Defines the phases traffic specification.
NOTE: This method appends the values to the existing list (if any). Use
setPhases(java.util.Collection)
or withPhases(java.util.Collection)
if you want to override the
existing values.
phases
- Defines the phases traffic specification.public TrafficPattern withPhases(Collection<Phase> phases)
Defines the phases traffic specification.
phases
- Defines the phases traffic specification.public void setStairs(Stairs stairs)
Defines the stairs traffic pattern.
stairs
- Defines the stairs traffic pattern.public Stairs getStairs()
Defines the stairs traffic pattern.
public TrafficPattern withStairs(Stairs stairs)
Defines the stairs traffic pattern.
stairs
- Defines the stairs traffic pattern.public String toString()
toString
in class Object
Object.toString()
public TrafficPattern clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.