com.spotinst.sdkjava.model.api.elastigroup.aws.ApiSuspendedScalingPolicy Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.api.elastigroup.aws;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEntity;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")
public class ApiSuspendedScalingPolicy implements IPartialUpdateEntity {
@JsonIgnore
private Set isSet;
private String groupId;
private String policyName;
private String State;
private Date expiresAt;
public ApiSuspendedScalingPolicy() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
isSet.add("groupId");
this.groupId = groupId;
}
public String getPolicyName() {
return policyName;
}
public void setPolicyName(String policyName) {
isSet.add("policyName");
this.policyName = policyName;
}
public String getState() {
return State;
}
public void setState(String state) {
isSet.add("state");
State = state;
}
public Date getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(Date expiresAt) {
isSet.add("expiresAt");
this.expiresAt = expiresAt;
}
@JsonIgnore
public boolean isGroupIdSet() {
return isSet.contains("groupId");
}
@JsonIgnore
public boolean isPolicyNameSet() {
return isSet.contains("policyName");
}
@JsonIgnore
public boolean isExpiresAtSet() {
return isSet.contains("expiresAt");
}
@JsonIgnore
public boolean isStateSet() {
return isSet.contains("state");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy