com.seeq.model.AclOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.AceOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* AclOutputV1
*/
public class AclOutputV1 {
@JsonProperty("entries")
private List entries = new ArrayList();
@JsonProperty("permissionsInheritanceDisabled")
private Boolean permissionsInheritanceDisabled = false;
@JsonProperty("permissionsManagedByDatasource")
private Boolean permissionsManagedByDatasource = false;
@JsonProperty("statusMessage")
private String statusMessage = null;
public AclOutputV1 entries(List entries) {
this.entries = entries;
return this;
}
public AclOutputV1 addEntriesItem(AceOutputV1 entriesItem) {
if (this.entries == null) {
this.entries = new ArrayList();
}
this.entries.add(entriesItem);
return this;
}
/**
* Access control list
* @return entries
**/
@Schema(description = "Access control list")
public List getEntries() {
return entries;
}
public void setEntries(List entries) {
this.entries = entries;
}
public AclOutputV1 permissionsInheritanceDisabled(Boolean permissionsInheritanceDisabled) {
this.permissionsInheritanceDisabled = permissionsInheritanceDisabled;
return this;
}
/**
* Whether permission inheritance for the item is disabled or not
* @return permissionsInheritanceDisabled
**/
@Schema(description = "Whether permission inheritance for the item is disabled or not")
public Boolean getPermissionsInheritanceDisabled() {
return permissionsInheritanceDisabled;
}
public void setPermissionsInheritanceDisabled(Boolean permissionsInheritanceDisabled) {
this.permissionsInheritanceDisabled = permissionsInheritanceDisabled;
}
public AclOutputV1 permissionsManagedByDatasource(Boolean permissionsManagedByDatasource) {
this.permissionsManagedByDatasource = permissionsManagedByDatasource;
return this;
}
/**
* Whether permissions are managed by the datasource or not
* @return permissionsManagedByDatasource
**/
@Schema(description = "Whether permissions are managed by the datasource or not")
public Boolean getPermissionsManagedByDatasource() {
return permissionsManagedByDatasource;
}
public void setPermissionsManagedByDatasource(Boolean permissionsManagedByDatasource) {
this.permissionsManagedByDatasource = permissionsManagedByDatasource;
}
public AclOutputV1 statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* A plain language status message with information about any issues that may have been encountered during an operation
* @return statusMessage
**/
@Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation")
public String getStatusMessage() {
return statusMessage;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AclOutputV1 aclOutputV1 = (AclOutputV1) o;
return Objects.equals(this.entries, aclOutputV1.entries) &&
Objects.equals(this.permissionsInheritanceDisabled, aclOutputV1.permissionsInheritanceDisabled) &&
Objects.equals(this.permissionsManagedByDatasource, aclOutputV1.permissionsManagedByDatasource) &&
Objects.equals(this.statusMessage, aclOutputV1.statusMessage);
}
@Override
public int hashCode() {
return Objects.hash(entries, permissionsInheritanceDisabled, permissionsManagedByDatasource, statusMessage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AclOutputV1 {\n");
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
sb.append(" permissionsInheritanceDisabled: ").append(toIndentedString(permissionsInheritanceDisabled)).append("\n");
sb.append(" permissionsManagedByDatasource: ").append(toIndentedString(permissionsManagedByDatasource)).append("\n");
sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).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 ");
}
}