@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsClusterDefaultCapacityProviderStrategyDetails extends Object implements Serializable, Cloneable, StructuredPojo
The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
Constructor and Description |
---|
AwsEcsClusterDefaultCapacityProviderStrategyDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsClusterDefaultCapacityProviderStrategyDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getBase()
The minimum number of tasks to run on the specified capacity provider.
|
String |
getCapacityProvider()
The name of the capacity provider.
|
Integer |
getWeight()
The relative percentage of the total number of tasks launched 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 specified capacity provider.
|
void |
setCapacityProvider(String capacityProvider)
The name of the capacity provider.
|
void |
setWeight(Integer weight)
The relative percentage of the total number of tasks launched that should use the capacity provider.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsClusterDefaultCapacityProviderStrategyDetails |
withBase(Integer base)
The minimum number of tasks to run on the specified capacity provider.
|
AwsEcsClusterDefaultCapacityProviderStrategyDetails |
withCapacityProvider(String capacityProvider)
The name of the capacity provider.
|
AwsEcsClusterDefaultCapacityProviderStrategyDetails |
withWeight(Integer weight)
The relative percentage of the total number of tasks launched that should use the capacity provider.
|
public AwsEcsClusterDefaultCapacityProviderStrategyDetails()
public void setBase(Integer base)
The minimum number of tasks to run on the specified capacity provider.
base
- The minimum number of tasks to run on the specified capacity provider.public Integer getBase()
The minimum number of tasks to run on the specified capacity provider.
public AwsEcsClusterDefaultCapacityProviderStrategyDetails withBase(Integer base)
The minimum number of tasks to run on the specified capacity provider.
base
- The minimum number of tasks to run on the specified capacity provider.public void setCapacityProvider(String capacityProvider)
The name of the capacity provider.
capacityProvider
- The name of the capacity provider.public String getCapacityProvider()
The name of the capacity provider.
public AwsEcsClusterDefaultCapacityProviderStrategyDetails withCapacityProvider(String capacityProvider)
The name of the capacity provider.
capacityProvider
- The name of the capacity provider.public void setWeight(Integer weight)
The relative percentage of the total number of tasks launched that should use the capacity provider.
weight
- The relative percentage of the total number of tasks launched that should use the capacity provider.public Integer getWeight()
The relative percentage of the total number of tasks launched that should use the capacity provider.
public AwsEcsClusterDefaultCapacityProviderStrategyDetails withWeight(Integer weight)
The relative percentage of the total number of tasks launched that should use the capacity provider.
weight
- The relative percentage of the total number of tasks launched that should use the capacity provider.public String toString()
toString
in class Object
Object.toString()
public AwsEcsClusterDefaultCapacityProviderStrategyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.