me.snowdrop.istio.api.rbac.v1alpha1.AccessRule Maven / Gradle / Ivy
package me.snowdrop.istio.api.rbac.v1alpha1;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.fabric8.kubernetes.api.model.Doneable;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"constraints",
"hosts",
"methods",
"notHosts",
"notMethods",
"notPaths",
"notPorts",
"paths",
"ports",
"services"
})
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = {
@Inline(type = Doneable.class, prefix = "Doneable", value = "done")
}, refs = {
@BuildableReference(ObjectMeta.class)
})
public class AccessRule implements Serializable
{
/**
*
*
*/
@JsonProperty("constraints")
@JsonPropertyDescription("")
@Valid
private List constraints = new ArrayList();
/**
*
*
*/
@JsonProperty("hosts")
@JsonPropertyDescription("")
@Valid
private List hosts = new ArrayList();
/**
*
*
*/
@JsonProperty("methods")
@JsonPropertyDescription("")
@Valid
private List methods = new ArrayList();
/**
*
*
*/
@JsonProperty("notHosts")
@JsonPropertyDescription("")
@Valid
private List notHosts = new ArrayList();
/**
*
*
*/
@JsonProperty("notMethods")
@JsonPropertyDescription("")
@Valid
private List notMethods = new ArrayList();
/**
*
*
*/
@JsonProperty("notPaths")
@JsonPropertyDescription("")
@Valid
private List notPaths = new ArrayList();
/**
*
*
*/
@JsonProperty("notPorts")
@JsonPropertyDescription("")
private String notPorts;
/**
*
*
*/
@JsonProperty("paths")
@JsonPropertyDescription("")
@Valid
private List paths = new ArrayList();
/**
*
*
*/
@JsonProperty("ports")
@JsonPropertyDescription("")
private String ports;
/**
*
*
*/
@JsonProperty("services")
@JsonPropertyDescription("")
@Valid
private List services = new ArrayList();
private final static long serialVersionUID = -7376884111738322874L;
/**
* No args constructor for use in serialization
*
*/
public AccessRule() {
}
/**
*
* @param notMethods
* @param hosts
* @param methods
* @param paths
* @param notPaths
* @param notHosts
* @param services
* @param ports
* @param constraints
* @param notPorts
*/
public AccessRule(List constraints, List hosts, List methods, List notHosts, List notMethods, List notPaths, String notPorts, List paths, String ports, List services) {
super();
this.constraints = constraints;
this.hosts = hosts;
this.methods = methods;
this.notHosts = notHosts;
this.notMethods = notMethods;
this.notPaths = notPaths;
this.notPorts = notPorts;
this.paths = paths;
this.ports = ports;
this.services = services;
}
/**
*
*
*/
@JsonProperty("constraints")
public List getConstraints() {
return constraints;
}
/**
*
*
*/
@JsonProperty("constraints")
public void setConstraints(List constraints) {
this.constraints = constraints;
}
/**
*
*
*/
@JsonProperty("hosts")
public List getHosts() {
return hosts;
}
/**
*
*
*/
@JsonProperty("hosts")
public void setHosts(List hosts) {
this.hosts = hosts;
}
/**
*
*
*/
@JsonProperty("methods")
public List getMethods() {
return methods;
}
/**
*
*
*/
@JsonProperty("methods")
public void setMethods(List methods) {
this.methods = methods;
}
/**
*
*
*/
@JsonProperty("notHosts")
public List getNotHosts() {
return notHosts;
}
/**
*
*
*/
@JsonProperty("notHosts")
public void setNotHosts(List notHosts) {
this.notHosts = notHosts;
}
/**
*
*
*/
@JsonProperty("notMethods")
public List getNotMethods() {
return notMethods;
}
/**
*
*
*/
@JsonProperty("notMethods")
public void setNotMethods(List notMethods) {
this.notMethods = notMethods;
}
/**
*
*
*/
@JsonProperty("notPaths")
public List getNotPaths() {
return notPaths;
}
/**
*
*
*/
@JsonProperty("notPaths")
public void setNotPaths(List notPaths) {
this.notPaths = notPaths;
}
/**
*
*
*/
@JsonProperty("notPorts")
public String getNotPorts() {
return notPorts;
}
/**
*
*
*/
@JsonProperty("notPorts")
public void setNotPorts(String notPorts) {
this.notPorts = notPorts;
}
/**
*
*
*/
@JsonProperty("paths")
public List getPaths() {
return paths;
}
/**
*
*
*/
@JsonProperty("paths")
public void setPaths(List paths) {
this.paths = paths;
}
/**
*
*
*/
@JsonProperty("ports")
public String getPorts() {
return ports;
}
/**
*
*
*/
@JsonProperty("ports")
public void setPorts(String ports) {
this.ports = ports;
}
/**
*
*
*/
@JsonProperty("services")
public List getServices() {
return services;
}
/**
*
*
*/
@JsonProperty("services")
public void setServices(List services) {
this.services = services;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy