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

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

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * 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.ItemPreviewV1;
import com.seeq.model.PermissionsV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * UserGroupOutputV1
 */
public class UserGroupOutputV1 {
  @JsonProperty("createdAt")
  private String createdAt = null;

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

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

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

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

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

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

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

  @JsonProperty("isArchived")
  private Boolean isArchived = false;

  @JsonProperty("isEnabled")
  private Boolean isEnabled = false;

  @JsonProperty("isRedacted")
  private Boolean isRedacted = false;

  @JsonProperty("isRemoteGroupEditable")
  private Boolean isRemoteGroupEditable = false;

  @JsonProperty("isUsedInAccessControlEntries")
  private Boolean isUsedInAccessControlEntries = false;

  @JsonProperty("members")
  private List members = new ArrayList();

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

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

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

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

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

  public UserGroupOutputV1 createdAt(String createdAt) {
    this.createdAt = createdAt;
    return this;
  }

   /**
   * The ISO 8601 date of when the user was created (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
   * @return createdAt
  **/
  @Schema(description = "The ISO 8601 date of when the user was created (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
  public String getCreatedAt() {
    return createdAt;
  }

  public void setCreatedAt(String createdAt) {
    this.createdAt = createdAt;
  }

  public UserGroupOutputV1 dataId(String dataId) {
    this.dataId = dataId;
    return this;
  }

   /**
   * The data ID of this item. Note: This is not the Seeq ID, but the unique identifier that the remote datasource uses.
   * @return dataId
  **/
  @Schema(description = "The data ID of this item. Note: This is not the Seeq ID, but the unique identifier that the remote datasource uses.")
  public String getDataId() {
    return dataId;
  }

  public void setDataId(String dataId) {
    this.dataId = dataId;
  }

  public UserGroupOutputV1 datasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
    return this;
  }

   /**
   * The datasource class, which is the type of system holding the item, such as OSIsoft PI
   * @return datasourceClass
  **/
  @Schema(description = "The datasource class, which is the type of system holding the item, such as OSIsoft PI")
  public String getDatasourceClass() {
    return datasourceClass;
  }

  public void setDatasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
  }

  public UserGroupOutputV1 datasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
    return this;
  }

   /**
   * The datasource identifier, which is how the datasource holding this item identifies itself
   * @return datasourceId
  **/
  @Schema(description = "The datasource identifier, which is how the datasource holding this item identifies itself")
  public String getDatasourceId() {
    return datasourceId;
  }

  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }

  public UserGroupOutputV1 datasourceName(String datasourceName) {
    this.datasourceName = datasourceName;
    return this;
  }

   /**
   * The name of the data source (authentication directory) containing the group
   * @return datasourceName
  **/
  @Schema(description = "The name of the data source (authentication directory) containing the group")
  public String getDatasourceName() {
    return datasourceName;
  }

  public void setDatasourceName(String datasourceName) {
    this.datasourceName = datasourceName;
  }

  public UserGroupOutputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public UserGroupOutputV1 effectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
    return this;
  }

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

  public void setEffectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
  }

  public UserGroupOutputV1 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 UserGroupOutputV1 isArchived(Boolean isArchived) {
    this.isArchived = isArchived;
    return this;
  }

   /**
   * Whether item is archived
   * @return isArchived
  **/
  @Schema(description = "Whether item is archived")
  public Boolean getIsArchived() {
    return isArchived;
  }

  public void setIsArchived(Boolean isArchived) {
    this.isArchived = isArchived;
  }

  public UserGroupOutputV1 isEnabled(Boolean isEnabled) {
    this.isEnabled = isEnabled;
    return this;
  }

   /**
   * Whether the group is enabled
   * @return isEnabled
  **/
  @Schema(description = "Whether the group is enabled")
  public Boolean getIsEnabled() {
    return isEnabled;
  }

  public void setIsEnabled(Boolean isEnabled) {
    this.isEnabled = isEnabled;
  }

  public UserGroupOutputV1 isRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
    return this;
  }

   /**
   * Whether item is redacted
   * @return isRedacted
  **/
  @Schema(description = "Whether item is redacted")
  public Boolean getIsRedacted() {
    return isRedacted;
  }

  public void setIsRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
  }

  public UserGroupOutputV1 isRemoteGroupEditable(Boolean isRemoteGroupEditable) {
    this.isRemoteGroupEditable = isRemoteGroupEditable;
    return this;
  }

   /**
   * Whether the user group remains editable in Seeq even when sourced from a remote system.
   * @return isRemoteGroupEditable
  **/
  @Schema(description = "Whether the user group remains editable in Seeq even when sourced from a remote system.")
  public Boolean getIsRemoteGroupEditable() {
    return isRemoteGroupEditable;
  }

  public void setIsRemoteGroupEditable(Boolean isRemoteGroupEditable) {
    this.isRemoteGroupEditable = isRemoteGroupEditable;
  }

  public UserGroupOutputV1 isUsedInAccessControlEntries(Boolean isUsedInAccessControlEntries) {
    this.isUsedInAccessControlEntries = isUsedInAccessControlEntries;
    return this;
  }

   /**
   * Whether the group is used in any access control entries
   * @return isUsedInAccessControlEntries
  **/
  @Schema(description = "Whether the group is used in any access control entries")
  public Boolean getIsUsedInAccessControlEntries() {
    return isUsedInAccessControlEntries;
  }

  public void setIsUsedInAccessControlEntries(Boolean isUsedInAccessControlEntries) {
    this.isUsedInAccessControlEntries = isUsedInAccessControlEntries;
  }

  public UserGroupOutputV1 members(List members) {
    this.members = members;
    return this;
  }

  public UserGroupOutputV1 addMembersItem(ItemPreviewV1 membersItem) {
    if (this.members == null) {
      this.members = new ArrayList();
    }
    this.members.add(membersItem);
    return this;
  }

   /**
   * The members of the group
   * @return members
  **/
  @Schema(description = "The members of the group")
  public List getMembers() {
    return members;
  }

  public void setMembers(List members) {
    this.members = members;
  }

  public UserGroupOutputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The human readable name
   * @return name
  **/
  @Schema(required = true, description = "The human readable name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public UserGroupOutputV1 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;
  }

  public UserGroupOutputV1 syncToken(String syncToken) {
    this.syncToken = syncToken;
    return this;
  }

   /**
   * An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be  archived using the Datasources clean-up API.
   * @return syncToken
  **/
  @Schema(description = "An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be  archived using the Datasources clean-up API.")
  public String getSyncToken() {
    return syncToken;
  }

  public void setSyncToken(String syncToken) {
    this.syncToken = syncToken;
  }

  public UserGroupOutputV1 translationKey(String translationKey) {
    this.translationKey = translationKey;
    return this;
  }

   /**
   * The item's translation key, if any
   * @return translationKey
  **/
  @Schema(description = "The item's translation key, if any")
  public String getTranslationKey() {
    return translationKey;
  }

  public void setTranslationKey(String translationKey) {
    this.translationKey = translationKey;
  }

  public UserGroupOutputV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The type of the item
   * @return type
  **/
  @Schema(required = true, description = "The type of the item")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserGroupOutputV1 userGroupOutputV1 = (UserGroupOutputV1) o;
    return Objects.equals(this.createdAt, userGroupOutputV1.createdAt) &&
        Objects.equals(this.dataId, userGroupOutputV1.dataId) &&
        Objects.equals(this.datasourceClass, userGroupOutputV1.datasourceClass) &&
        Objects.equals(this.datasourceId, userGroupOutputV1.datasourceId) &&
        Objects.equals(this.datasourceName, userGroupOutputV1.datasourceName) &&
        Objects.equals(this.description, userGroupOutputV1.description) &&
        Objects.equals(this.effectivePermissions, userGroupOutputV1.effectivePermissions) &&
        Objects.equals(this.id, userGroupOutputV1.id) &&
        Objects.equals(this.isArchived, userGroupOutputV1.isArchived) &&
        Objects.equals(this.isEnabled, userGroupOutputV1.isEnabled) &&
        Objects.equals(this.isRedacted, userGroupOutputV1.isRedacted) &&
        Objects.equals(this.isRemoteGroupEditable, userGroupOutputV1.isRemoteGroupEditable) &&
        Objects.equals(this.isUsedInAccessControlEntries, userGroupOutputV1.isUsedInAccessControlEntries) &&
        Objects.equals(this.members, userGroupOutputV1.members) &&
        Objects.equals(this.name, userGroupOutputV1.name) &&
        Objects.equals(this.statusMessage, userGroupOutputV1.statusMessage) &&
        Objects.equals(this.syncToken, userGroupOutputV1.syncToken) &&
        Objects.equals(this.translationKey, userGroupOutputV1.translationKey) &&
        Objects.equals(this.type, userGroupOutputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(createdAt, dataId, datasourceClass, datasourceId, datasourceName, description, effectivePermissions, id, isArchived, isEnabled, isRedacted, isRemoteGroupEditable, isUsedInAccessControlEntries, members, name, statusMessage, syncToken, translationKey, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserGroupOutputV1 {\n");
    
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    dataId: ").append(toIndentedString(dataId)).append("\n");
    sb.append("    datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    datasourceName: ").append(toIndentedString(datasourceName)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    effectivePermissions: ").append(toIndentedString(effectivePermissions)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    isArchived: ").append(toIndentedString(isArchived)).append("\n");
    sb.append("    isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
    sb.append("    isRedacted: ").append(toIndentedString(isRedacted)).append("\n");
    sb.append("    isRemoteGroupEditable: ").append(toIndentedString(isRemoteGroupEditable)).append("\n");
    sb.append("    isUsedInAccessControlEntries: ").append(toIndentedString(isUsedInAccessControlEntries)).append("\n");
    sb.append("    members: ").append(toIndentedString(members)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    syncToken: ").append(toIndentedString(syncToken)).append("\n");
    sb.append("    translationKey: ").append(toIndentedString(translationKey)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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