io.alauda.devops.api.model.Policy Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.alauda.kubernetes.api.model.Doneable;
import io.alauda.kubernetes.api.model.HasMetadata;
import io.alauda.kubernetes.api.model.ObjectMeta;
import io.alauda.kubernetes.api.model.validators.CheckObjectMeta;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"lastModified",
"roles"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.alauda.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class Policy implements HasMetadata
{
/**
*
* (Required)
*
*/
@NotNull
@JsonProperty("apiVersion")
private java.lang.String apiVersion = "authorization.openshift.io/v1";
/**
*
* (Required)
*
*/
@NotNull
@JsonProperty("kind")
private java.lang.String kind = "Policy";
/**
*
*
*/
@JsonProperty("lastModified")
@Valid
private String lastModified;
/**
*
*
*/
@JsonProperty("metadata")
@Valid
@CheckObjectMeta(minimal = true)
private ObjectMeta metadata;
/**
*
*
*/
@JsonProperty("roles")
@Valid
private List roles = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Policy() {
}
/**
*
* @param metadata
* @param apiVersion
* @param kind
* @param roles
* @param lastModified
*/
public Policy(java.lang.String apiVersion, java.lang.String kind, String lastModified, ObjectMeta metadata, List roles) {
this.apiVersion = apiVersion;
this.kind = kind;
this.lastModified = lastModified;
this.metadata = metadata;
this.roles = roles;
}
/**
*
* (Required)
*
* @return
* The apiVersion
*/
@JsonProperty("apiVersion")
public java.lang.String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(java.lang.String apiVersion) {
this.apiVersion = apiVersion;
}
/**
*
* (Required)
*
* @return
* The kind
*/
@JsonProperty("kind")
public java.lang.String getKind() {
return kind;
}
/**
*
* (Required)
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(java.lang.String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The lastModified
*/
@JsonProperty("lastModified")
public String getLastModified() {
return lastModified;
}
/**
*
*
* @param lastModified
* The lastModified
*/
@JsonProperty("lastModified")
public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
/**
*
*
* @return
* The metadata
*/
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
/**
*
*
* @param metadata
* The metadata
*/
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}
/**
*
*
* @return
* The roles
*/
@JsonProperty("roles")
public List getRoles() {
return roles;
}
/**
*
*
* @param roles
* The roles
*/
@JsonProperty("roles")
public void setRoles(List roles) {
this.roles = roles;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
}