@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComputeCapacity extends Object implements Serializable, Cloneable, StructuredPojo
Describes the capacity for a fleet.
Constructor and Description |
---|
ComputeCapacity() |
Modifier and Type | Method and Description |
---|---|
ComputeCapacity |
clone() |
boolean |
equals(Object obj) |
Integer |
getDesiredInstances()
The desired number of streaming instances.
|
Integer |
getDesiredSessions()
The desired number of user sessions for a multi-session fleet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredInstances(Integer desiredInstances)
The desired number of streaming instances.
|
void |
setDesiredSessions(Integer desiredSessions)
The desired number of user sessions for a multi-session fleet.
|
String |
toString()
Returns a string representation of this object.
|
ComputeCapacity |
withDesiredInstances(Integer desiredInstances)
The desired number of streaming instances.
|
ComputeCapacity |
withDesiredSessions(Integer desiredSessions)
The desired number of user sessions for a multi-session fleet.
|
public void setDesiredInstances(Integer desiredInstances)
The desired number of streaming instances.
desiredInstances
- The desired number of streaming instances.public Integer getDesiredInstances()
The desired number of streaming instances.
public ComputeCapacity withDesiredInstances(Integer desiredInstances)
The desired number of streaming instances.
desiredInstances
- The desired number of streaming instances.public void setDesiredSessions(Integer desiredSessions)
The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
desiredSessions
- The desired number of user sessions for a multi-session fleet. This is not allowed for single-session
fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
public Integer getDesiredSessions()
The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
public ComputeCapacity withDesiredSessions(Integer desiredSessions)
The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
desiredSessions
- The desired number of user sessions for a multi-session fleet. This is not allowed for single-session
fleets.
When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.
public String toString()
toString
in class Object
Object.toString()
public ComputeCapacity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.