com.akeyless.auth.swagger.model.GetUserReplyObj 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: 1.0.2
* Contact: [email protected]
*
* 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;
/**
* GetUserReplyObj
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-21T16:11:23.052+02:00")
public class GetUserReplyObj {
@SerializedName("access_expires")
private Long accessExpires = null;
@SerializedName("account_id")
private String accountId = null;
@SerializedName("cidr_whitelist")
private String cidrWhitelist = null;
@SerializedName("user_name")
private String userName = null;
@SerializedName("user_policy_id")
private String userPolicyId = null;
@SerializedName("user_roles")
private List userRoles = null;
public GetUserReplyObj accessExpires(Long accessExpires) {
this.accessExpires = accessExpires;
return this;
}
/**
* Get accessExpires
* @return accessExpires
**/
@ApiModelProperty(value = "")
public Long getAccessExpires() {
return accessExpires;
}
public void setAccessExpires(Long accessExpires) {
this.accessExpires = accessExpires;
}
public GetUserReplyObj accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
* @return accountId
**/
@ApiModelProperty(value = "")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public GetUserReplyObj cidrWhitelist(String cidrWhitelist) {
this.cidrWhitelist = cidrWhitelist;
return this;
}
/**
* Get cidrWhitelist
* @return cidrWhitelist
**/
@ApiModelProperty(value = "")
public String getCidrWhitelist() {
return cidrWhitelist;
}
public void setCidrWhitelist(String cidrWhitelist) {
this.cidrWhitelist = cidrWhitelist;
}
public GetUserReplyObj userName(String userName) {
this.userName = userName;
return this;
}
/**
* Get userName
* @return userName
**/
@ApiModelProperty(value = "")
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public GetUserReplyObj userPolicyId(String userPolicyId) {
this.userPolicyId = userPolicyId;
return this;
}
/**
* Get userPolicyId
* @return userPolicyId
**/
@ApiModelProperty(value = "")
public String getUserPolicyId() {
return userPolicyId;
}
public void setUserPolicyId(String userPolicyId) {
this.userPolicyId = userPolicyId;
}
public GetUserReplyObj userRoles(List userRoles) {
this.userRoles = userRoles;
return this;
}
public GetUserReplyObj addUserRolesItem(String userRolesItem) {
if (this.userRoles == null) {
this.userRoles = new ArrayList();
}
this.userRoles.add(userRolesItem);
return this;
}
/**
* Get userRoles
* @return userRoles
**/
@ApiModelProperty(value = "")
public List getUserRoles() {
return userRoles;
}
public void setUserRoles(List userRoles) {
this.userRoles = userRoles;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetUserReplyObj getUserReplyObj = (GetUserReplyObj) o;
return Objects.equals(this.accessExpires, getUserReplyObj.accessExpires) &&
Objects.equals(this.accountId, getUserReplyObj.accountId) &&
Objects.equals(this.cidrWhitelist, getUserReplyObj.cidrWhitelist) &&
Objects.equals(this.userName, getUserReplyObj.userName) &&
Objects.equals(this.userPolicyId, getUserReplyObj.userPolicyId) &&
Objects.equals(this.userRoles, getUserReplyObj.userRoles);
}
@Override
public int hashCode() {
return Objects.hash(accessExpires, accountId, cidrWhitelist, userName, userPolicyId, userRoles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetUserReplyObj {\n");
sb.append(" accessExpires: ").append(toIndentedString(accessExpires)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" cidrWhitelist: ").append(toIndentedString(cidrWhitelist)).append("\n");
sb.append(" userName: ").append(toIndentedString(userName)).append("\n");
sb.append(" userPolicyId: ").append(toIndentedString(userPolicyId)).append("\n");
sb.append(" userRoles: ").append(toIndentedString(userRoles)).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 ");
}
}