@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.
|
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 |
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 |
withTrafficType(String trafficType)
Defines the traffic patterns.
|
TrafficPattern |
withTrafficType(TrafficType trafficType)
Defines the traffic patterns.
|
public void setTrafficType(String trafficType)
Defines the traffic patterns.
trafficType
- Defines the traffic patterns.TrafficType
public String getTrafficType()
Defines the traffic patterns.
TrafficType
public TrafficPattern withTrafficType(String trafficType)
Defines the traffic patterns.
trafficType
- Defines the traffic patterns.TrafficType
public TrafficPattern withTrafficType(TrafficType trafficType)
Defines the traffic patterns.
trafficType
- Defines the traffic patterns.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 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.