@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Phase extends Object implements Serializable, Cloneable, StructuredPojo
Defines the traffic pattern.
Constructor and Description |
---|
Phase() |
Modifier and Type | Method and Description |
---|---|
Phase |
clone() |
boolean |
equals(Object obj) |
Integer |
getDurationInSeconds()
Specifies how long traffic phase should be.
|
Integer |
getInitialNumberOfUsers()
Specifies how many concurrent users to start with.
|
Integer |
getSpawnRate()
Specified how many new users to spawn in a minute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDurationInSeconds(Integer durationInSeconds)
Specifies how long traffic phase should be.
|
void |
setInitialNumberOfUsers(Integer initialNumberOfUsers)
Specifies how many concurrent users to start with.
|
void |
setSpawnRate(Integer spawnRate)
Specified how many new users to spawn in a minute.
|
String |
toString()
Returns a string representation of this object.
|
Phase |
withDurationInSeconds(Integer durationInSeconds)
Specifies how long traffic phase should be.
|
Phase |
withInitialNumberOfUsers(Integer initialNumberOfUsers)
Specifies how many concurrent users to start with.
|
Phase |
withSpawnRate(Integer spawnRate)
Specified how many new users to spawn in a minute.
|
public void setInitialNumberOfUsers(Integer initialNumberOfUsers)
Specifies how many concurrent users to start with.
initialNumberOfUsers
- Specifies how many concurrent users to start with.public Integer getInitialNumberOfUsers()
Specifies how many concurrent users to start with.
public Phase withInitialNumberOfUsers(Integer initialNumberOfUsers)
Specifies how many concurrent users to start with.
initialNumberOfUsers
- Specifies how many concurrent users to start with.public void setSpawnRate(Integer spawnRate)
Specified how many new users to spawn in a minute.
spawnRate
- Specified how many new users to spawn in a minute.public Integer getSpawnRate()
Specified how many new users to spawn in a minute.
public Phase withSpawnRate(Integer spawnRate)
Specified how many new users to spawn in a minute.
spawnRate
- Specified how many new users to spawn in a minute.public void setDurationInSeconds(Integer durationInSeconds)
Specifies how long traffic phase should be.
durationInSeconds
- Specifies how long traffic phase should be.public Integer getDurationInSeconds()
Specifies how long traffic phase should be.
public Phase withDurationInSeconds(Integer durationInSeconds)
Specifies how long traffic phase should be.
durationInSeconds
- Specifies how long traffic phase should be.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.