@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsServicePlacementConstraintsDetails extends Object implements Serializable, Cloneable, StructuredPojo
A placement constraint for the tasks in the service.
| Constructor and Description |
|---|
AwsEcsServicePlacementConstraintsDetails() |
| Modifier and Type | Method and Description |
|---|---|
AwsEcsServicePlacementConstraintsDetails |
clone() |
boolean |
equals(Object obj) |
String |
getExpression()
A cluster query language expression to apply to the constraint.
|
String |
getType()
The type of constraint.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setExpression(String expression)
A cluster query language expression to apply to the constraint.
|
void |
setType(String type)
The type of constraint.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsServicePlacementConstraintsDetails |
withExpression(String expression)
A cluster query language expression to apply to the constraint.
|
AwsEcsServicePlacementConstraintsDetails |
withType(String type)
The type of constraint.
|
public AwsEcsServicePlacementConstraintsDetails()
public void setExpression(String expression)
A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance.
expression - A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance.public String getExpression()
A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance.
distinctInstance.public AwsEcsServicePlacementConstraintsDetails withExpression(String expression)
A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance.
expression - A cluster query language expression to apply to the constraint. You cannot specify an expression if the
constraint type is distinctInstance.public void setType(String type)
The type of constraint. Use distinctInstance to run each task in a particular group on a different
container instance. Use memberOf to restrict the selection to a group of valid candidates.
Valid values: distinctInstance | memberOf
type - The type of constraint. Use distinctInstance to run each task in a particular group on a
different container instance. Use memberOf to restrict the selection to a group of valid
candidates.
Valid values: distinctInstance | memberOf
public String getType()
The type of constraint. Use distinctInstance to run each task in a particular group on a different
container instance. Use memberOf to restrict the selection to a group of valid candidates.
Valid values: distinctInstance | memberOf
distinctInstance to run each task in a particular group on a
different container instance. Use memberOf to restrict the selection to a group of valid
candidates.
Valid values: distinctInstance | memberOf
public AwsEcsServicePlacementConstraintsDetails withType(String type)
The type of constraint. Use distinctInstance to run each task in a particular group on a different
container instance. Use memberOf to restrict the selection to a group of valid candidates.
Valid values: distinctInstance | memberOf
type - The type of constraint. Use distinctInstance to run each task in a particular group on a
different container instance. Use memberOf to restrict the selection to a group of valid
candidates.
Valid values: distinctInstance | memberOf
public String toString()
toString in class ObjectObject.toString()public AwsEcsServicePlacementConstraintsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.