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

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

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

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

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

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

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

  public AuthInputV1 authProviderClass(String authProviderClass) {
    this.authProviderClass = authProviderClass;
    return this;
  }

   /**
   * The class of the auth provider for this user. Leave blank to use the Seeq directory.
   * @return authProviderClass
  **/
  @Schema(description = "The class of the auth provider for this user. Leave blank to use the Seeq directory.")
  public String getAuthProviderClass() {
    return authProviderClass;
  }

  public void setAuthProviderClass(String authProviderClass) {
    this.authProviderClass = authProviderClass;
  }

  public AuthInputV1 authProviderId(String authProviderId) {
    this.authProviderId = authProviderId;
    return this;
  }

   /**
   * The id of the auth provider for this user. Leave blank to use the Seeq directory.
   * @return authProviderId
  **/
  @Schema(description = "The id of the auth provider for this user. Leave blank to use the Seeq directory.")
  public String getAuthProviderId() {
    return authProviderId;
  }

  public void setAuthProviderId(String authProviderId) {
    this.authProviderId = authProviderId;
  }

  public AuthInputV1 code(String code) {
    this.code = code;
    return this;
  }

   /**
   * The authorization code for OAuth2 authentication.
   * @return code
  **/
  @Schema(description = "The authorization code for OAuth2 authentication.")
  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public AuthInputV1 password(String password) {
    this.password = password;
    return this;
  }

   /**
   * The password of the user
   * @return password
  **/
  @Schema(description = "The password of the user")
  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public AuthInputV1 state(String state) {
    this.state = state;
    return this;
  }

   /**
   * The state for OAuth2 authentication
   * @return state
  **/
  @Schema(description = "The state for OAuth2 authentication")
  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }

  public AuthInputV1 username(String username) {
    this.username = username;
    return this;
  }

   /**
   * The username of the user
   * @return username
  **/
  @Schema(description = "The username of the user")
  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AuthInputV1 authInputV1 = (AuthInputV1) o;
    return Objects.equals(this.authProviderClass, authInputV1.authProviderClass) &&
        Objects.equals(this.authProviderId, authInputV1.authProviderId) &&
        Objects.equals(this.code, authInputV1.code) &&
        Objects.equals(this.password, authInputV1.password) &&
        Objects.equals(this.state, authInputV1.state) &&
        Objects.equals(this.username, authInputV1.username);
  }

  @Override
  public int hashCode() {
    return Objects.hash(authProviderClass, authProviderId, code, password, state, username);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AuthInputV1 {\n");
    
    sb.append("    authProviderClass: ").append(toIndentedString(authProviderClass)).append("\n");
    sb.append("    authProviderId: ").append(toIndentedString(authProviderId)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    password: ").append(toIndentedString(password)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    username: ").append(toIndentedString(username)).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