com.spotinst.sdkjava.model.api.admin.organization.ApiPolicyStatement Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.api.admin.organization;
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 com.spotinst.sdkjava.enums.admin.organization.PolicyEffectEnum;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")
public class ApiPolicyStatement implements IPartialUpdateEntity {
@JsonIgnore
private Set isSet;
private PolicyEffectEnum effect;
private List actions;
private List resources;
public ApiPolicyStatement() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public PolicyEffectEnum getEffect() {
return effect;
}
public void setEffect(PolicyEffectEnum effect) {
isSet.add("effect");
this.effect = effect;
}
public List getActions() {
return actions;
}
public void setActions(List actions) {
isSet.add("actions");
this.actions = actions;
}
public List getResources() {
return resources;
}
public void setResources(List resources) {
isSet.add("resources");
this.resources = resources;
}
@JsonIgnore
public boolean isEffectSet() {
return isSet.contains("effect");
}
@JsonIgnore
public boolean isActionsSet() {
return isSet.contains("actions");
}
@JsonIgnore
public boolean isResourcesSet() {
return isSet.contains("resources");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy