@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.
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 or full Amazon Resource Name (ARN) 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 or full Amazon Resource Name (ARN) 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 or full Amazon Resource Name (ARN) 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 or full Amazon Resource Name (ARN) of the capacity provider.
capacityProvider
- The short name or full Amazon Resource Name (ARN) of the capacity provider.public String getCapacityProvider()
The short name or full Amazon Resource Name (ARN) of the capacity provider.
public CapacityProviderStrategyItem withCapacityProvider(String capacityProvider)
The short name or full Amazon Resource Name (ARN) of the capacity provider.
capacityProvider
- The short name or full Amazon Resource Name (ARN) 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.
For example, if you have a strategy that contains two capacity providers and both have a weight of 1
, then when the base
is satisfied, the tasks will be split evenly across the two capacity providers.
Using that same logic, if you specify a weight of 1
for capacityProviderA and a weight of
4
for capacityProviderB, then for every one task that is run using capacityProviderA,
four tasks would use capacityProviderB.
weight
- The weight value designates the relative percentage of the total number of tasks launched that
should use the specified capacity provider.
For example, if you have a strategy that contains two capacity providers and both have a weight of
1
, then when the base
is satisfied, the tasks will be split evenly across the
two capacity providers. Using that same logic, if you specify a weight of 1
for
capacityProviderA and a weight of 4
for capacityProviderB, then for every one
task that is run using capacityProviderA, four tasks would use capacityProviderB.
public Integer getWeight()
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
For example, if you have a strategy that contains two capacity providers and both have a weight of 1
, then when the base
is satisfied, the tasks will be split evenly across the two capacity providers.
Using that same logic, if you specify a weight of 1
for capacityProviderA and a weight of
4
for capacityProviderB, then for every one task that is run using capacityProviderA,
four tasks would use capacityProviderB.
For example, if you have a strategy that contains two capacity providers and both have a weight of
1
, then when the base
is satisfied, the tasks will be split evenly across the
two capacity providers. Using that same logic, if you specify a weight of 1
for
capacityProviderA and a weight of 4
for capacityProviderB, then for every one
task that is run using capacityProviderA, four tasks would use capacityProviderB.
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.
For example, if you have a strategy that contains two capacity providers and both have a weight of 1
, then when the base
is satisfied, the tasks will be split evenly across the two capacity providers.
Using that same logic, if you specify a weight of 1
for capacityProviderA and a weight of
4
for capacityProviderB, then for every one task that is run using capacityProviderA,
four tasks would use capacityProviderB.
weight
- The weight value designates the relative percentage of the total number of tasks launched that
should use the specified capacity provider.
For example, if you have a strategy that contains two capacity providers and both have a weight of
1
, then when the base
is satisfied, the tasks will be split evenly across the
two capacity providers. Using that same logic, if you specify a weight of 1
for
capacityProviderA and a weight of 4
for capacityProviderB, then for every one
task that is run using capacityProviderA, four tasks would use capacityProviderB.
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.
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.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.
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.
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.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.