@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityProviderStrategyItem extends Object implements Serializable, Cloneable, StructuredPojo
The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.
Constructor and Description |
---|
CapacityProviderStrategyItem() |
Modifier and Type | Method and Description |
---|---|
CapacityProviderStrategyItem |
clone() |
boolean |
equals(Object obj) |
Integer |
getBase()
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
String |
getCapacityProvider()
The short name of the capacity provider.
|
Integer |
getWeight()
The weight value designates the relative percentage of the total number of tasks launched that should use the
specified capacity provider.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBase(Integer base)
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
void |
setCapacityProvider(String capacityProvider)
The short name of the capacity provider.
|
void |
setWeight(Integer weight)
The weight value designates the relative percentage of the total number of tasks launched that should use the
specified capacity provider.
|
String |
toString()
Returns a string representation of this object.
|
CapacityProviderStrategyItem |
withBase(Integer base)
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
CapacityProviderStrategyItem |
withCapacityProvider(String capacityProvider)
The short name of the capacity provider.
|
CapacityProviderStrategyItem |
withWeight(Integer weight)
The weight value designates the relative percentage of the total number of tasks launched that should use the
specified capacity provider.
|
public void setCapacityProvider(String capacityProvider)
The short name of the capacity provider.
capacityProvider
- The short name of the capacity provider.public String getCapacityProvider()
The short name of the capacity provider.
public CapacityProviderStrategyItem withCapacityProvider(String capacityProvider)
The short name of the capacity provider.
capacityProvider
- The short name of the capacity provider.public void setWeight(Integer weight)
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
weight
- The weight value designates the relative percentage of the total number of tasks launched that should use
the specified capacity provider. The weight value is taken into consideration after the base value, if
defined, is satisfied.public Integer getWeight()
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
public CapacityProviderStrategyItem withWeight(Integer weight)
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
weight
- The weight value designates the relative percentage of the total number of tasks launched that should use
the specified capacity provider. The weight value is taken into consideration after the base value, if
defined, is satisfied.public void setBase(Integer base)
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
base
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only
one capacity provider in a capacity provider strategy can have a base defined. If no value is specified,
the default value of 0 is used.public Integer getBase()
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
public CapacityProviderStrategyItem withBase(Integer base)
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
base
- The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only
one capacity provider in a capacity provider strategy can have a base defined. If no value is specified,
the default value of 0 is used.public String toString()
toString
in class Object
Object.toString()
public CapacityProviderStrategyItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.