@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScalingConfigurationInput extends Object implements Serializable, Cloneable, StructuredPojo
The scaling configuration input of a compute fleet.
Constructor and Description |
---|
ScalingConfigurationInput() |
Modifier and Type | Method and Description |
---|---|
ScalingConfigurationInput |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxCapacity()
The maximum number of instances in the fleet when auto-scaling.
|
String |
getScalingType()
The scaling type for a compute fleet.
|
List<TargetTrackingScalingConfiguration> |
getTargetTrackingScalingConfigs()
A list of
TargetTrackingScalingConfiguration objects. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxCapacity(Integer maxCapacity)
The maximum number of instances in the fleet when auto-scaling.
|
void |
setScalingType(String scalingType)
The scaling type for a compute fleet.
|
void |
setTargetTrackingScalingConfigs(Collection<TargetTrackingScalingConfiguration> targetTrackingScalingConfigs)
A list of
TargetTrackingScalingConfiguration objects. |
String |
toString()
Returns a string representation of this object.
|
ScalingConfigurationInput |
withMaxCapacity(Integer maxCapacity)
The maximum number of instances in the fleet when auto-scaling.
|
ScalingConfigurationInput |
withScalingType(FleetScalingType scalingType)
The scaling type for a compute fleet.
|
ScalingConfigurationInput |
withScalingType(String scalingType)
The scaling type for a compute fleet.
|
ScalingConfigurationInput |
withTargetTrackingScalingConfigs(Collection<TargetTrackingScalingConfiguration> targetTrackingScalingConfigs)
A list of
TargetTrackingScalingConfiguration objects. |
ScalingConfigurationInput |
withTargetTrackingScalingConfigs(TargetTrackingScalingConfiguration... targetTrackingScalingConfigs)
A list of
TargetTrackingScalingConfiguration objects. |
public void setScalingType(String scalingType)
The scaling type for a compute fleet.
scalingType
- The scaling type for a compute fleet.FleetScalingType
public String getScalingType()
The scaling type for a compute fleet.
FleetScalingType
public ScalingConfigurationInput withScalingType(String scalingType)
The scaling type for a compute fleet.
scalingType
- The scaling type for a compute fleet.FleetScalingType
public ScalingConfigurationInput withScalingType(FleetScalingType scalingType)
The scaling type for a compute fleet.
scalingType
- The scaling type for a compute fleet.FleetScalingType
public List<TargetTrackingScalingConfiguration> getTargetTrackingScalingConfigs()
A list of TargetTrackingScalingConfiguration
objects.
TargetTrackingScalingConfiguration
objects.public void setTargetTrackingScalingConfigs(Collection<TargetTrackingScalingConfiguration> targetTrackingScalingConfigs)
A list of TargetTrackingScalingConfiguration
objects.
targetTrackingScalingConfigs
- A list of TargetTrackingScalingConfiguration
objects.public ScalingConfigurationInput withTargetTrackingScalingConfigs(TargetTrackingScalingConfiguration... targetTrackingScalingConfigs)
A list of TargetTrackingScalingConfiguration
objects.
NOTE: This method appends the values to the existing list (if any). Use
setTargetTrackingScalingConfigs(java.util.Collection)
or
withTargetTrackingScalingConfigs(java.util.Collection)
if you want to override the existing values.
targetTrackingScalingConfigs
- A list of TargetTrackingScalingConfiguration
objects.public ScalingConfigurationInput withTargetTrackingScalingConfigs(Collection<TargetTrackingScalingConfiguration> targetTrackingScalingConfigs)
A list of TargetTrackingScalingConfiguration
objects.
targetTrackingScalingConfigs
- A list of TargetTrackingScalingConfiguration
objects.public void setMaxCapacity(Integer maxCapacity)
The maximum number of instances in the fleet when auto-scaling.
maxCapacity
- The maximum number of instances in the fleet when auto-scaling.public Integer getMaxCapacity()
The maximum number of instances in the fleet when auto-scaling.
public ScalingConfigurationInput withMaxCapacity(Integer maxCapacity)
The maximum number of instances in the fleet when auto-scaling.
maxCapacity
- The maximum number of instances in the fleet when auto-scaling.public String toString()
toString
in class Object
Object.toString()
public ScalingConfigurationInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.