@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 a 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 a 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 a 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. The value should be between 1 and 3.
initialNumberOfUsers
- Specifies how many concurrent users to start with. The value should be between 1 and 3.public Integer getInitialNumberOfUsers()
Specifies how many concurrent users to start with. The value should be between 1 and 3.
public Phase withInitialNumberOfUsers(Integer initialNumberOfUsers)
Specifies how many concurrent users to start with. The value should be between 1 and 3.
initialNumberOfUsers
- Specifies how many concurrent users to start with. The value should be between 1 and 3.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 a traffic phase should be. For custom load tests, the value should be between 120 and 3600.
This value should not exceed JobDurationInSeconds
.
durationInSeconds
- Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and
3600. This value should not exceed JobDurationInSeconds
.public Integer getDurationInSeconds()
Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and 3600.
This value should not exceed JobDurationInSeconds
.
JobDurationInSeconds
.public Phase withDurationInSeconds(Integer durationInSeconds)
Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and 3600.
This value should not exceed JobDurationInSeconds
.
durationInSeconds
- Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and
3600. This value should not exceed JobDurationInSeconds
.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.