com.seeq.model.AclInputV1 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.AceInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* AclInputV1
*/
public class AclInputV1 {
@JsonProperty("disablePermissionInheritance")
private Boolean disablePermissionInheritance = false;
@JsonProperty("entries")
private List entries = new ArrayList();
@JsonProperty("localizeInherited")
private Boolean localizeInherited = false;
@JsonProperty("preview")
private Boolean preview = false;
public AclInputV1 disablePermissionInheritance(Boolean disablePermissionInheritance) {
this.disablePermissionInheritance = disablePermissionInheritance;
return this;
}
/**
* Whether permission inheritance for the item should be disabled (default is false)
* @return disablePermissionInheritance
**/
@Schema(description = "Whether permission inheritance for the item should be disabled (default is false)")
public Boolean getDisablePermissionInheritance() {
return disablePermissionInheritance;
}
public void setDisablePermissionInheritance(Boolean disablePermissionInheritance) {
this.disablePermissionInheritance = disablePermissionInheritance;
}
public AclInputV1 entries(List entries) {
this.entries = entries;
return this;
}
public AclInputV1 addEntriesItem(AceInputV1 entriesItem) {
if (this.entries == null) {
this.entries = new ArrayList();
}
this.entries.add(entriesItem);
return this;
}
/**
* List of access control entries to set. Entries will be flattened to a minimal set of entries
* @return entries
**/
@Schema(description = "List of access control entries to set. Entries will be flattened to a minimal set of entries")
public List getEntries() {
return entries;
}
public void setEntries(List entries) {
this.entries = entries;
}
public AclInputV1 localizeInherited(Boolean localizeInherited) {
this.localizeInherited = localizeInherited;
return this;
}
/**
* If true, any existing inherited access control entries should be merged into the supplied ACL (default is true). This enables changing permission inheritance without changing the access to the item (default is true).
* @return localizeInherited
**/
@Schema(description = "If true, any existing inherited access control entries should be merged into the supplied ACL (default is true). This enables changing permission inheritance without changing the access to the item (default is true).")
public Boolean getLocalizeInherited() {
return localizeInherited;
}
public void setLocalizeInherited(Boolean localizeInherited) {
this.localizeInherited = localizeInherited;
}
public AclInputV1 preview(Boolean preview) {
this.preview = preview;
return this;
}
/**
* If true, new acl entries will be generated and returned but those acl entries will not be persisted to the item. This is useful for previewing how an acl change will modify entries without persisting the change
* @return preview
**/
@Schema(description = "If true, new acl entries will be generated and returned but those acl entries will not be persisted to the item. This is useful for previewing how an acl change will modify entries without persisting the change")
public Boolean getPreview() {
return preview;
}
public void setPreview(Boolean preview) {
this.preview = preview;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AclInputV1 aclInputV1 = (AclInputV1) o;
return Objects.equals(this.disablePermissionInheritance, aclInputV1.disablePermissionInheritance) &&
Objects.equals(this.entries, aclInputV1.entries) &&
Objects.equals(this.localizeInherited, aclInputV1.localizeInherited) &&
Objects.equals(this.preview, aclInputV1.preview);
}
@Override
public int hashCode() {
return Objects.hash(disablePermissionInheritance, entries, localizeInherited, preview);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AclInputV1 {\n");
sb.append(" disablePermissionInheritance: ").append(toIndentedString(disablePermissionInheritance)).append("\n");
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
sb.append(" localizeInherited: ").append(toIndentedString(localizeInherited)).append("\n");
sb.append(" preview: ").append(toIndentedString(preview)).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 ");
}
}