com.akeyless.auth.swagger.model.GetRoleReplyObj Maven / Gradle / Ivy
/*
* Auth - Application API
* Auth manages access policies for services that need access policies management for their clients. Auth also issues temporary credentials for the services' clients and validates them for the services
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.akeyless.auth.swagger.model;
import java.util.Objects;
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;
import java.util.ArrayList;
import java.util.List;
/**
* GetRoleReplyObj
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-08T10:19:11.231+03:00")
public class GetRoleReplyObj {
@SerializedName("comment")
private String comment = null;
@SerializedName("role_action")
private String roleAction = null;
@SerializedName("role_items")
private List roleItems = null;
@SerializedName("role_name")
private String roleName = null;
@SerializedName("role_users")
private List roleUsers = null;
public GetRoleReplyObj comment(String comment) {
this.comment = comment;
return this;
}
/**
* Get comment
* @return comment
**/
@ApiModelProperty(value = "")
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public GetRoleReplyObj roleAction(String roleAction) {
this.roleAction = roleAction;
return this;
}
/**
* Get roleAction
* @return roleAction
**/
@ApiModelProperty(value = "")
public String getRoleAction() {
return roleAction;
}
public void setRoleAction(String roleAction) {
this.roleAction = roleAction;
}
public GetRoleReplyObj roleItems(List roleItems) {
this.roleItems = roleItems;
return this;
}
public GetRoleReplyObj addRoleItemsItem(String roleItemsItem) {
if (this.roleItems == null) {
this.roleItems = new ArrayList();
}
this.roleItems.add(roleItemsItem);
return this;
}
/**
* Get roleItems
* @return roleItems
**/
@ApiModelProperty(value = "")
public List getRoleItems() {
return roleItems;
}
public void setRoleItems(List roleItems) {
this.roleItems = roleItems;
}
public GetRoleReplyObj roleName(String roleName) {
this.roleName = roleName;
return this;
}
/**
* Get roleName
* @return roleName
**/
@ApiModelProperty(value = "")
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
public GetRoleReplyObj roleUsers(List roleUsers) {
this.roleUsers = roleUsers;
return this;
}
public GetRoleReplyObj addRoleUsersItem(String roleUsersItem) {
if (this.roleUsers == null) {
this.roleUsers = new ArrayList();
}
this.roleUsers.add(roleUsersItem);
return this;
}
/**
* Get roleUsers
* @return roleUsers
**/
@ApiModelProperty(value = "")
public List getRoleUsers() {
return roleUsers;
}
public void setRoleUsers(List roleUsers) {
this.roleUsers = roleUsers;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetRoleReplyObj getRoleReplyObj = (GetRoleReplyObj) o;
return Objects.equals(this.comment, getRoleReplyObj.comment) &&
Objects.equals(this.roleAction, getRoleReplyObj.roleAction) &&
Objects.equals(this.roleItems, getRoleReplyObj.roleItems) &&
Objects.equals(this.roleName, getRoleReplyObj.roleName) &&
Objects.equals(this.roleUsers, getRoleReplyObj.roleUsers);
}
@Override
public int hashCode() {
return Objects.hash(comment, roleAction, roleItems, roleName, roleUsers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetRoleReplyObj {\n");
sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
sb.append(" roleAction: ").append(toIndentedString(roleAction)).append("\n");
sb.append(" roleItems: ").append(toIndentedString(roleItems)).append("\n");
sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n");
sb.append(" roleUsers: ").append(toIndentedString(roleUsers)).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 ");
}
}