@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionPlacementConstraintsDetails extends Object implements Serializable, Cloneable, StructuredPojo
A placement constraint object to use for tasks.
Constructor and Description |
---|
AwsEcsTaskDefinitionPlacementConstraintsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionPlacementConstraintsDetails |
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.
|
AwsEcsTaskDefinitionPlacementConstraintsDetails |
withExpression(String expression)
A cluster query language expression to apply to the constraint.
|
AwsEcsTaskDefinitionPlacementConstraintsDetails |
withType(String type)
The type of constraint.
|
public AwsEcsTaskDefinitionPlacementConstraintsDetails()
public void setExpression(String expression)
A cluster query language expression to apply to the constraint.
expression
- A cluster query language expression to apply to the constraint.public String getExpression()
A cluster query language expression to apply to the constraint.
public AwsEcsTaskDefinitionPlacementConstraintsDetails withExpression(String expression)
A cluster query language expression to apply to the constraint.
expression
- A cluster query language expression to apply to the constraint.public void setType(String type)
The type of constraint.
type
- The type of constraint.public String getType()
The type of constraint.
public AwsEcsTaskDefinitionPlacementConstraintsDetails withType(String type)
The type of constraint.
type
- The type of constraint.public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskDefinitionPlacementConstraintsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.