All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.AceOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 65.1.3-v202408082312
 * 
 *
 * 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.IdentityPreviewV1;
import com.seeq.model.ItemPreviewV1;
import com.seeq.model.PermissionsV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Access control list
 */
@Schema(description = "Access control list")
public class AceOutputV1 {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("identity")
  private IdentityPreviewV1 identity = null;

  @JsonProperty("origin")
  private ItemPreviewV1 origin = null;

  @JsonProperty("permissions")
  private PermissionsV1 permissions = null;

  @JsonProperty("role")
  private String role = null;

  public AceOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID that can be used to interact with the item
   * @return id
  **/
  @Schema(required = true, description = "The ID that can be used to interact with the item")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public AceOutputV1 identity(IdentityPreviewV1 identity) {
    this.identity = identity;
    return this;
  }

   /**
   * Get identity
   * @return identity
  **/
  @Schema(description = "")
  public IdentityPreviewV1 getIdentity() {
    return identity;
  }

  public void setIdentity(IdentityPreviewV1 identity) {
    this.identity = identity;
  }

  public AceOutputV1 origin(ItemPreviewV1 origin) {
    this.origin = origin;
    return this;
  }

   /**
   * Get origin
   * @return origin
  **/
  @Schema(description = "")
  public ItemPreviewV1 getOrigin() {
    return origin;
  }

  public void setOrigin(ItemPreviewV1 origin) {
    this.origin = origin;
  }

  public AceOutputV1 permissions(PermissionsV1 permissions) {
    this.permissions = permissions;
    return this;
  }

   /**
   * Get permissions
   * @return permissions
  **/
  @Schema(description = "")
  public PermissionsV1 getPermissions() {
    return permissions;
  }

  public void setPermissions(PermissionsV1 permissions) {
    this.permissions = permissions;
  }

  public AceOutputV1 role(String role) {
    this.role = role;
    return this;
  }

   /**
   * The role of a system managed ACE
   * @return role
  **/
  @Schema(description = "The role of a system managed ACE")
  public String getRole() {
    return role;
  }

  public void setRole(String role) {
    this.role = role;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AceOutputV1 aceOutputV1 = (AceOutputV1) o;
    return Objects.equals(this.id, aceOutputV1.id) &&
        Objects.equals(this.identity, aceOutputV1.identity) &&
        Objects.equals(this.origin, aceOutputV1.origin) &&
        Objects.equals(this.permissions, aceOutputV1.permissions) &&
        Objects.equals(this.role, aceOutputV1.role);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, identity, origin, permissions, role);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AceOutputV1 {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    identity: ").append(toIndentedString(identity)).append("\n");
    sb.append("    origin: ").append(toIndentedString(origin)).append("\n");
    sb.append("    permissions: ").append(toIndentedString(permissions)).append("\n");
    sb.append("    role: ").append(toIndentedString(role)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy