com.spotinst.sdkjava.model.ApiScalingAction Maven / Gradle / Ivy
package com.spotinst.sdkjava.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashSet;
import java.util.Set;
/**
* Created by aharontwizer on 7/22/15.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ApiScalingAction {
@JsonIgnore
private Set isSet = new HashSet<>();
private String type;
private String adjustment;
private String minTargetCapacity;
private String maxTargetCapacity;
private String target;
private String minimum;
private String maximum;
//endregion
//region Getter and Setter methods
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getType() {
return type;
}
public void setType(String type) {
isSet.add("type");
this.type = type;
}
public String getAdjustment() {
return adjustment;
}
public void setAdjustment(String adjustment) {
isSet.add("adjustment");
this.adjustment = adjustment;
}
public String getMinTargetCapacity() {
return minTargetCapacity;
}
public void setMinTargetCapacity(String minTargetCapacity) {
isSet.add("minTargetCapacity");
this.minTargetCapacity = minTargetCapacity;
}
public String getMaxTargetCapacity() {
return maxTargetCapacity;
}
public void setMaxTargetCapacity(String maxTargetCapacity) {
isSet.add("maxTargetCapacity");
this.maxTargetCapacity = maxTargetCapacity;
}
public String getTarget() {
return target;
}
public void setTarget(String target) {
isSet.add("target");
this.target = target;
}
public String getMinimum() {
return minimum;
}
public void setMinimum(String minimum) {
isSet.add("minimum");
this.minimum = minimum;
}
public String getMaximum() {
return maximum;
}
public void setMaximum(String maximum) {
isSet.add("maximum");
this.maximum = maximum;
}
//endregion
//region isSet methods
// Is type Set boolean method
@JsonIgnore
public boolean isTypeSet() {
return isSet.contains("type");
}
// Is adjustment Set boolean method
@JsonIgnore
public boolean isAdjustmentSet() {
return isSet.contains("adjustment");
}
// Is maxTargetCapacity Set boolean method
@JsonIgnore
public boolean isMaxTargetCapacitySet() {
return isSet.contains("maxTargetCapacity");
}
// Is minTargetCapacity Set boolean method
@JsonIgnore
public boolean isMinTargetCapacitySet() {
return isSet.contains("minTargetCapacity");
}
// Is target Set boolean method
@JsonIgnore
public boolean isTargetSet() {
return isSet.contains("target");
}
// Is minimum Set boolean method
@JsonIgnore
public boolean isMinimumSet() {
return isSet.contains("minimum");
}
// Is maximum Set boolean method
@JsonIgnore
public boolean isMaximumSet() {
return isSet.contains("maximum");
}
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy