@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaskDefinitionPlacementConstraint extends Object implements Serializable, Cloneable, StructuredPojo
The constraint on task placement in the task definition. For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide.
Task placement constraints aren't supported for tasks run on Fargate.
Constructor and Description |
---|
TaskDefinitionPlacementConstraint() |
Modifier and Type | Method and Description |
---|---|
TaskDefinitionPlacementConstraint |
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.
|
void |
setType(TaskDefinitionPlacementConstraintType type)
The type of constraint.
|
String |
toString()
Returns a string representation of this object.
|
TaskDefinitionPlacementConstraint |
withExpression(String expression)
A cluster query language expression to apply to the constraint.
|
TaskDefinitionPlacementConstraint |
withType(String type)
The type of constraint.
|
TaskDefinitionPlacementConstraint |
withType(TaskDefinitionPlacementConstraintType type)
The type of constraint.
|
public void setType(String type)
The type of constraint. The MemberOf
constraint restricts selection to be from a group of valid
candidates.
type
- The type of constraint. The MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public String getType()
The type of constraint. The MemberOf
constraint restricts selection to be from a group of valid
candidates.
MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public TaskDefinitionPlacementConstraint withType(String type)
The type of constraint. The MemberOf
constraint restricts selection to be from a group of valid
candidates.
type
- The type of constraint. The MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public void setType(TaskDefinitionPlacementConstraintType type)
The type of constraint. The MemberOf
constraint restricts selection to be from a group of valid
candidates.
type
- The type of constraint. The MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public TaskDefinitionPlacementConstraint withType(TaskDefinitionPlacementConstraintType type)
The type of constraint. The MemberOf
constraint restricts selection to be from a group of valid
candidates.
type
- The type of constraint. The MemberOf
constraint restricts selection to be from a group of
valid candidates.TaskDefinitionPlacementConstraintType
public void setExpression(String expression)
A cluster query language expression to apply to the constraint. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.
expression
- A cluster query language expression to apply to the constraint. For more information, see Cluster
query language in the Amazon Elastic Container Service Developer Guide.public String getExpression()
A cluster query language expression to apply to the constraint. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.
public TaskDefinitionPlacementConstraint withExpression(String expression)
A cluster query language expression to apply to the constraint. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.
expression
- A cluster query language expression to apply to the constraint. For more information, see Cluster
query language in the Amazon Elastic Container Service Developer Guide.public String toString()
toString
in class Object
Object.toString()
public TaskDefinitionPlacementConstraint clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.