mesosphere.metronome.client.model.v1.Placement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marathon-client Show documentation
Show all versions of marathon-client Show documentation
A Java API client for Mesosphere's Marathon.
package mesosphere.metronome.client.model.v1;
import java.util.ArrayList;
import java.util.List;
import mesosphere.client.common.ModelUtils;
public class Placement {
private List constraints;
public List getConstraints() {
return constraints;
}
public void addConstraint(Constraint constraint) {
if (constraints == null) {
constraints = new ArrayList<>();
}
this.constraints.add(constraint);
}
public void setConstraints(List constraints) {
this.constraints = constraints;
}
@Override
public String toString() {
return ModelUtils.toString(this);
}
}