com.finbourne.access.model.AccessControlledResource 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.AccessControlledAction;
import com.finbourne.access.model.IdentifierPartSchema;
import com.finbourne.access.model.Link;
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;
/**
* AccessControlledResource
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccessControlledResource {
public static final String SERIALIZED_NAME_APPLICATION = "application";
@SerializedName(SERIALIZED_NAME_APPLICATION)
private String application;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_ACTIONS = "actions";
@SerializedName(SERIALIZED_NAME_ACTIONS)
private List actions = new ArrayList<>();
public static final String SERIALIZED_NAME_IDENTIFIER_PARTS = "identifierParts";
@SerializedName(SERIALIZED_NAME_IDENTIFIER_PARTS)
private List identifierParts = null;
public static final String SERIALIZED_NAME_LINKS = "links";
@SerializedName(SERIALIZED_NAME_LINKS)
private List links = null;
public AccessControlledResource application(String application) {
this.application = application;
return this;
}
/**
* Get application
* @return application
**/
@ApiModelProperty(value = "")
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
public AccessControlledResource name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public AccessControlledResource description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(required = true, value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public AccessControlledResource actions(List actions) {
this.actions = actions;
return this;
}
public AccessControlledResource addActionsItem(AccessControlledAction actionsItem) {
this.actions.add(actionsItem);
return this;
}
/**
* Get actions
* @return actions
**/
@ApiModelProperty(required = true, value = "")
public List getActions() {
return actions;
}
public void setActions(List actions) {
this.actions = actions;
}
public AccessControlledResource identifierParts(List identifierParts) {
this.identifierParts = identifierParts;
return this;
}
public AccessControlledResource addIdentifierPartsItem(IdentifierPartSchema identifierPartsItem) {
if (this.identifierParts == null) {
this.identifierParts = new ArrayList<>();
}
this.identifierParts.add(identifierPartsItem);
return this;
}
/**
* Get identifierParts
* @return identifierParts
**/
@ApiModelProperty(value = "")
public List getIdentifierParts() {
return identifierParts;
}
public void setIdentifierParts(List identifierParts) {
this.identifierParts = identifierParts;
}
public AccessControlledResource links(List links) {
this.links = links;
return this;
}
public AccessControlledResource 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;
}
@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 AccessControlledResource {\n");
sb.append(" application: ").append(toIndentedString(application)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
sb.append(" identifierParts: ").append(toIndentedString(identifierParts)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).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 ");
}
}