@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsServiceCapacityProviderStrategyDetails extends Object implements Serializable, Cloneable, StructuredPojo
Strategy item for the capacity provider strategy that the service uses.
Constructor and Description |
---|
AwsEcsServiceCapacityProviderStrategyDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsServiceCapacityProviderStrategyDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getBase()
The minimum number of tasks to run on the capacity provider.
|
String |
getCapacityProvider()
The short name of the capacity provider.
|
Integer |
getWeight()
The relative percentage of the total number of tasks that should use the capacity provider.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBase(Integer base)
The minimum number of tasks to run on the capacity provider.
|
void |
setCapacityProvider(String capacityProvider)
The short name of the capacity provider.
|
void |
setWeight(Integer weight)
The relative percentage of the total number of tasks that should use the capacity provider.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsServiceCapacityProviderStrategyDetails |
withBase(Integer base)
The minimum number of tasks to run on the capacity provider.
|
AwsEcsServiceCapacityProviderStrategyDetails |
withCapacityProvider(String capacityProvider)
The short name of the capacity provider.
|
AwsEcsServiceCapacityProviderStrategyDetails |
withWeight(Integer weight)
The relative percentage of the total number of tasks that should use the capacity provider.
|
public AwsEcsServiceCapacityProviderStrategyDetails()
public void setBase(Integer base)
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for
Base
.
The value must be between 0 and 100000.
base
- The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value
for Base
.
The value must be between 0 and 100000.
public Integer getBase()
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for
Base
.
The value must be between 0 and 100000.
Base
.
The value must be between 0 and 100000.
public AwsEcsServiceCapacityProviderStrategyDetails withBase(Integer base)
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for
Base
.
The value must be between 0 and 100000.
base
- The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value
for Base
.
The value must be between 0 and 100000.
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 AwsEcsServiceCapacityProviderStrategyDetails withCapacityProvider(String capacityProvider)
The short name of the capacity provider.
capacityProvider
- The short name of the capacity provider.public void setWeight(Integer weight)
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
weight
- The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
public Integer getWeight()
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
public AwsEcsServiceCapacityProviderStrategyDetails withWeight(Integer weight)
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
weight
- The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
public String toString()
toString
in class Object
Object.toString()
public AwsEcsServiceCapacityProviderStrategyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.