com.finbourne.access.model.ResourceListOfPolicyCollectionResponse Maven / Gradle / Ivy
/*
* FINBOURNE Access Management API
* ### Introduction This page documents the LUSID Access Management APIs from FINBOURNE Technology, which allow authorised users to query and update their access control policies and roles within the LUSID platform's Identity and Access Management system.
*
* The version of the OpenAPI document: 0.0.3031
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.finbourne.access.model;
import java.util.Objects;
import java.util.Arrays;
import com.finbourne.access.model.Link;
import com.finbourne.access.model.PolicyCollectionResponse;
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.net.URI;
import java.util.ArrayList;
import java.util.List;
/**
* ResourceListOfPolicyCollectionResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ResourceListOfPolicyCollectionResponse {
public static final String SERIALIZED_NAME_VALUES = "values";
@SerializedName(SERIALIZED_NAME_VALUES)
private List values = new ArrayList<>();
public static final String SERIALIZED_NAME_HREF = "href";
@SerializedName(SERIALIZED_NAME_HREF)
private URI href;
public static final String SERIALIZED_NAME_LINKS = "links";
@SerializedName(SERIALIZED_NAME_LINKS)
private List links = null;
public static final String SERIALIZED_NAME_NEXT_PAGE = "nextPage";
@SerializedName(SERIALIZED_NAME_NEXT_PAGE)
private String nextPage;
public static final String SERIALIZED_NAME_PREVIOUS_PAGE = "previousPage";
@SerializedName(SERIALIZED_NAME_PREVIOUS_PAGE)
private String previousPage;
public ResourceListOfPolicyCollectionResponse values(List values) {
this.values = values;
return this;
}
public ResourceListOfPolicyCollectionResponse addValuesItem(PolicyCollectionResponse valuesItem) {
this.values.add(valuesItem);
return this;
}
/**
* Get values
* @return values
**/
@ApiModelProperty(required = true, value = "")
public List getValues() {
return values;
}
public void setValues(List values) {
this.values = values;
}
public ResourceListOfPolicyCollectionResponse href(URI href) {
this.href = href;
return this;
}
/**
* Get href
* @return href
**/
@ApiModelProperty(value = "")
public URI getHref() {
return href;
}
public void setHref(URI href) {
this.href = href;
}
public ResourceListOfPolicyCollectionResponse links(List links) {
this.links = links;
return this;
}
public ResourceListOfPolicyCollectionResponse addLinksItem(Link linksItem) {
if (this.links == null) {
this.links = new ArrayList<>();
}
this.links.add(linksItem);
return this;
}
/**
* Get links
* @return links
**/
@ApiModelProperty(value = "")
public List getLinks() {
return links;
}
public void setLinks(List links) {
this.links = links;
}
public ResourceListOfPolicyCollectionResponse nextPage(String nextPage) {
this.nextPage = nextPage;
return this;
}
/**
* Get nextPage
* @return nextPage
**/
@ApiModelProperty(value = "")
public String getNextPage() {
return nextPage;
}
public void setNextPage(String nextPage) {
this.nextPage = nextPage;
}
public ResourceListOfPolicyCollectionResponse previousPage(String previousPage) {
this.previousPage = previousPage;
return this;
}
/**
* Get previousPage
* @return previousPage
**/
@ApiModelProperty(value = "")
public String getPreviousPage() {
return previousPage;
}
public void setPreviousPage(String previousPage) {
this.previousPage = previousPage;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ResourceListOfPolicyCollectionResponse {\n");
sb.append(" values: ").append(toIndentedString(values)).append("\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n");
sb.append(" previousPage: ").append(toIndentedString(previousPage)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}