io.alauda.devops.api.model.ClusterPolicyBinding 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.ObjectReference;
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",
"policyRef",
"roleBindings"
})
@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 ClusterPolicyBinding implements HasMetadata
{
/**
*
* (Required)
*
*/
@NotNull
@JsonProperty("apiVersion")
private java.lang.String apiVersion = "authorization.openshift.io/v1";
/**
*
* (Required)
*
*/
@NotNull
@JsonProperty("kind")
private java.lang.String kind = "ClusterPolicyBinding";
/**
*
*
*/
@JsonProperty("lastModified")
@Valid
private String lastModified;
/**
*
*
*/
@JsonProperty("metadata")
@Valid
@CheckObjectMeta(regexp = "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", max = 253)
private ObjectMeta metadata;
/**
*
*
*/
@JsonProperty("policyRef")
@Valid
private ObjectReference policyRef;
/**
*
*
*/
@JsonProperty("roleBindings")
@Valid
private List roleBindings = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public ClusterPolicyBinding() {
}
/**
*
* @param roleBindings
* @param metadata
* @param apiVersion
* @param kind
* @param lastModified
* @param policyRef
*/
public ClusterPolicyBinding(java.lang.String apiVersion, java.lang.String kind, String lastModified, ObjectMeta metadata, ObjectReference policyRef, List roleBindings) {
this.apiVersion = apiVersion;
this.kind = kind;
this.lastModified = lastModified;
this.metadata = metadata;
this.policyRef = policyRef;
this.roleBindings = roleBindings;
}
/**
*
* (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 policyRef
*/
@JsonProperty("policyRef")
public ObjectReference getPolicyRef() {
return policyRef;
}
/**
*
*
* @param policyRef
* The policyRef
*/
@JsonProperty("policyRef")
public void setPolicyRef(ObjectReference policyRef) {
this.policyRef = policyRef;
}
/**
*
*
* @return
* The roleBindings
*/
@JsonProperty("roleBindings")
public List getRoleBindings() {
return roleBindings;
}
/**
*
*
* @param roleBindings
* The roleBindings
*/
@JsonProperty("roleBindings")
public void setRoleBindings(List roleBindings) {
this.roleBindings = roleBindings;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
}