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

com.seeq.model.UserGroupInputV1 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: 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.IdentityMappingListV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * UserGroupInputV1
 */
public class UserGroupInputV1 {
  @JsonProperty("description")
  private String description = null;

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

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

  @JsonProperty("mappings")
  private IdentityMappingListV1 mappings = null;

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

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

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

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

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

   /**
   * Clarifying information or other plain language description of this item. An input of just whitespace is equivalent to a null input.
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespace is equivalent to a null input.")
  public String getDescription() {
    return description;
  }

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

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

   /**
   * Whether the user group is enabled or disabled (default true).
   * @return isEnabled
  **/
  @Schema(description = "Whether the user group is enabled or disabled (default true).")
  public Boolean getIsEnabled() {
    return isEnabled;
  }

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

  public UserGroupInputV1 mapping(Boolean mapping) {
    this.mapping = mapping;
    return this;
  }

   /**
   * Whether the user group is a mapping (default false).
   * @return mapping
  **/
  @Schema(description = "Whether the user group is a mapping (default false).")
  public Boolean getMapping() {
    return mapping;
  }

  public void setMapping(Boolean mapping) {
    this.mapping = mapping;
  }

  public UserGroupInputV1 mappings(IdentityMappingListV1 mappings) {
    this.mappings = mappings;
    return this;
  }

   /**
   * Get mappings
   * @return mappings
  **/
  @Schema(description = "")
  public IdentityMappingListV1 getMappings() {
    return mappings;
  }

  public void setMappings(IdentityMappingListV1 mappings) {
    this.mappings = mappings;
  }

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

   /**
   * Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
   * @return name
  **/
  @Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
  public String getName() {
    return name;
  }

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

  public UserGroupInputV1 remoteGroupEditable(Boolean remoteGroupEditable) {
    this.remoteGroupEditable = remoteGroupEditable;
    return this;
  }

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

  public void setRemoteGroupEditable(Boolean remoteGroupEditable) {
    this.remoteGroupEditable = remoteGroupEditable;
  }

  public UserGroupInputV1 removePermissions(Boolean removePermissions) {
    this.removePermissions = removePermissions;
    return this;
  }

   /**
   * Whether permissions associated with the group should be removed when disabling the group (default false).
   * @return removePermissions
  **/
  @Schema(description = "Whether permissions associated with the group should be removed when disabling the group (default false).")
  public Boolean getRemovePermissions() {
    return removePermissions;
  }

  public void setRemovePermissions(Boolean removePermissions) {
    this.removePermissions = removePermissions;
  }

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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserGroupInputV1 userGroupInputV1 = (UserGroupInputV1) o;
    return Objects.equals(this.description, userGroupInputV1.description) &&
        Objects.equals(this.isEnabled, userGroupInputV1.isEnabled) &&
        Objects.equals(this.mapping, userGroupInputV1.mapping) &&
        Objects.equals(this.mappings, userGroupInputV1.mappings) &&
        Objects.equals(this.name, userGroupInputV1.name) &&
        Objects.equals(this.remoteGroupEditable, userGroupInputV1.remoteGroupEditable) &&
        Objects.equals(this.removePermissions, userGroupInputV1.removePermissions) &&
        Objects.equals(this.syncToken, userGroupInputV1.syncToken);
  }

  @Override
  public int hashCode() {
    return Objects.hash(description, isEnabled, mapping, mappings, name, remoteGroupEditable, removePermissions, syncToken);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserGroupInputV1 {\n");
    
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
    sb.append("    mapping: ").append(toIndentedString(mapping)).append("\n");
    sb.append("    mappings: ").append(toIndentedString(mappings)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    remoteGroupEditable: ").append(toIndentedString(remoteGroupEditable)).append("\n");
    sb.append("    removePermissions: ").append(toIndentedString(removePermissions)).append("\n");
    sb.append("    syncToken: ").append(toIndentedString(syncToken)).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