feast.common.auth.providers.http.client.model.CheckAccessRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of feast-common Show documentation
Show all versions of feast-common Show documentation
Feast common module with functionality that can be reused
/*
* Feast Authorization Server
* Feast Authorization Server
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package feast.common.auth.providers.http.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* CheckAccessRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-11-06T08:35:00.516727Z[Etc/UTC]")
public class CheckAccessRequest {
public static final String SERIALIZED_NAME_ACTION = "action";
@SerializedName(SERIALIZED_NAME_ACTION)
private String action;
public static final String SERIALIZED_NAME_CONTEXT = "context";
@SerializedName(SERIALIZED_NAME_CONTEXT)
private Object context;
public static final String SERIALIZED_NAME_RESOURCE = "resource";
@SerializedName(SERIALIZED_NAME_RESOURCE)
private String resource;
public static final String SERIALIZED_NAME_SUBJECT = "subject";
@SerializedName(SERIALIZED_NAME_SUBJECT)
private String subject;
public CheckAccessRequest action(String action) {
this.action = action;
return this;
}
/**
* Action is the action that is being taken on the requested resource.
* @return action
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Action is the action that is being taken on the requested resource.")
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public CheckAccessRequest context(Object context) {
this.context = context;
return this;
}
/**
* Context is the request's environmental context.
* @return context
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Context is the request's environmental context.")
public Object getContext() {
return context;
}
public void setContext(Object context) {
this.context = context;
}
public CheckAccessRequest resource(String resource) {
this.resource = resource;
return this;
}
/**
* Resource is the resource that access is requested to.
* @return resource
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Resource is the resource that access is requested to.")
public String getResource() {
return resource;
}
public void setResource(String resource) {
this.resource = resource;
}
public CheckAccessRequest subject(String subject) {
this.subject = subject;
return this;
}
/**
* Subject is the subject that is requesting access, typically the user.
* @return subject
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Subject is the subject that is requesting access, typically the user.")
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CheckAccessRequest checkAccessRequest = (CheckAccessRequest) o;
return Objects.equals(this.action, checkAccessRequest.action) &&
Objects.equals(this.context, checkAccessRequest.context) &&
Objects.equals(this.resource, checkAccessRequest.resource) &&
Objects.equals(this.subject, checkAccessRequest.subject);
}
@Override
public int hashCode() {
return Objects.hash(action, context, resource, subject);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckAccessRequest {\n");
sb.append(" action: ").append(toIndentedString(action)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" resource: ").append(toIndentedString(resource)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}