com.spotinst.sdkjava.model.ApiScaling Maven / Gradle / Ivy
package com.spotinst.sdkjava.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEntity;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Created by aharontwizer on 8/27/15.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ApiScaling implements IPartialUpdateEntity {
//region Members
// Partial Update support
@JsonIgnore
private Set isSet = new HashSet<>();
private List up;
private List down;
private List target;
//endregion
//region Getters & Setters
//region Up
public List getUp() {
return up;
}
public void setUp(List up) {
isSet.add("up");
this.up = up;
}
@JsonIgnore
public boolean isUpSet() {
return isSet.contains("up");
}
//endregion
//region Down
public List getDown() {
return down;
}
public void setDown(List down) {
isSet.add("down");
this.down = down;
}
@JsonIgnore
public boolean isDownSet() {
return isSet.contains("down");
}
//endregion
//region Target
public List getTarget() {
return target;
}
public void setTarget(List target) {
isSet.add("target");
this.target = target;
}
@JsonIgnore
public boolean isTargetSet() {
return isSet.contains("target");
}
//endregion
@Override
@JsonIgnore
public Set getIsSet() {
return isSet;
}
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy