Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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;
/**
* UserInputV1
*/
public class UserInputV1 {
@JsonProperty("accessKeyValidityDuration")
private Long accessKeyValidityDuration = null;
@JsonProperty("dataId")
private String dataId = null;
@JsonProperty("datasourceClass")
private String datasourceClass = null;
@JsonProperty("datasourceId")
private String datasourceId = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("email")
private String email = null;
@JsonProperty("firstName")
private String firstName = null;
@JsonProperty("isAdmin")
private Boolean isAdmin = null;
@JsonProperty("isEnabled")
private Boolean isEnabled = null;
@JsonProperty("lastName")
private String lastName = null;
@JsonProperty("maxRequests")
private Long maxRequests = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("password")
private String password = null;
@JsonProperty("sessionDuration")
private Long sessionDuration = null;
@JsonProperty("username")
private String username = null;
@JsonProperty("workbench")
private String workbench = null;
public UserInputV1 accessKeyValidityDuration(Long accessKeyValidityDuration) {
this.accessKeyValidityDuration = accessKeyValidityDuration;
return this;
}
/**
* The duration, in minutes, to override the 'Authentication/AccessKey/ValidityWithoutUserLogin' configuration. After the last user activity, authentication is allowed with an access key for the period specified here. A value of 0 will effectively disable access keys for this user. A negative value removes the override, defaulting this user back to the system config.
* @return accessKeyValidityDuration
**/
@Schema(description = "The duration, in minutes, to override the 'Authentication/AccessKey/ValidityWithoutUserLogin' configuration. After the last user activity, authentication is allowed with an access key for the period specified here. A value of 0 will effectively disable access keys for this user. A negative value removes the override, defaulting this user back to the system config.")
public Long getAccessKeyValidityDuration() {
return accessKeyValidityDuration;
}
public void setAccessKeyValidityDuration(Long accessKeyValidityDuration) {
this.accessKeyValidityDuration = accessKeyValidityDuration;
}
public UserInputV1 dataId(String dataId) {
this.dataId = dataId;
return this;
}
/**
* The unique identifier of this user within the datasource. Leave null to use the username as the Data ID.
* @return dataId
**/
@Schema(description = "The unique identifier of this user within the datasource. Leave null to use the username as the Data ID.")
public String getDataId() {
return dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
}
public UserInputV1 datasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
return this;
}
/**
* The class of the auth provider for this user. Leave null to use the Seeq datasource.
* @return datasourceClass
**/
@Schema(description = "The class of the auth provider for this user. Leave null to use the Seeq datasource.")
public String getDatasourceClass() {
return datasourceClass;
}
public void setDatasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
}
public UserInputV1 datasourceId(String datasourceId) {
this.datasourceId = datasourceId;
return this;
}
/**
* Along with the Datasource Class, the Datasource ID uniquely identifies a datasource. For example, a datasource may be a particular instance of an Active Directory. Leave null to use the Seeq datasource.
* @return datasourceId
**/
@Schema(description = "Along with the Datasource Class, the Datasource ID uniquely identifies a datasource. For example, a datasource may be a particular instance of an Active Directory. Leave null to use the Seeq datasource.")
public String getDatasourceId() {
return datasourceId;
}
public void setDatasourceId(String datasourceId) {
this.datasourceId = datasourceId;
}
public UserInputV1 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 UserInputV1 email(String email) {
this.email = email;
return this;
}
/**
* The email address of the user
* @return email
**/
@Schema(required = true, description = "The email address of the user")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public UserInputV1 firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* The first name of the user
* @return firstName
**/
@Schema(required = true, description = "The first name of the user")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public UserInputV1 isAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin;
return this;
}
/**
* Whether or not the user is an administrator.
* @return isAdmin
**/
@Schema(description = "Whether or not the user is an administrator.")
public Boolean getIsAdmin() {
return isAdmin;
}
public void setIsAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin;
}
public UserInputV1 isEnabled(Boolean isEnabled) {
this.isEnabled = isEnabled;
return this;
}
/**
* Whether the user is enabled or disabled.
* @return isEnabled
**/
@Schema(description = "Whether the user is enabled or disabled.")
public Boolean getIsEnabled() {
return isEnabled;
}
public void setIsEnabled(Boolean isEnabled) {
this.isEnabled = isEnabled;
}
public UserInputV1 lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* The last name of the user
* @return lastName
**/
@Schema(required = true, description = "The last name of the user")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public UserInputV1 maxRequests(Long maxRequests) {
this.maxRequests = maxRequests;
return this;
}
/**
* The maximum allowed simultaneous requests for this user. Overrides the 'Threads/HttpServer/MaxRequestsPerUser' configuration. A negative value removes the override, defaulting this user back to the system config.
* @return maxRequests
**/
@Schema(description = "The maximum allowed simultaneous requests for this user. Overrides the 'Threads/HttpServer/MaxRequestsPerUser' configuration. A negative value removes the override, defaulting this user back to the system config.")
public Long getMaxRequests() {
return maxRequests;
}
public void setMaxRequests(Long maxRequests) {
this.maxRequests = maxRequests;
}
public UserInputV1 name(String name) {
this.name = name;
return this;
}
/**
* Human readable name. Null or whitespace names are not permitted. Defaults to a concatenation of the first and last name
* @return name
**/
@Schema(description = "Human readable name. Null or whitespace names are not permitted. Defaults to a concatenation of the first and last name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public UserInputV1 password(String password) {
this.password = password;
return this;
}
/**
* The password of the user. Required for users in the Seeq datasource.
* @return password
**/
@Schema(description = "The password of the user. Required for users in the Seeq datasource.")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public UserInputV1 sessionDuration(Long sessionDuration) {
this.sessionDuration = sessionDuration;
return this;
}
/**
* The session duration, in minutes, to override the 'Authentication/DefaultSessionDuration' configuration. This controls the maximum period of inactivity before the user must authenticate again. A value of 0 indicates the user does not have a session duration, effectively meaning their session will never expire. A negative value removes the override, defaulting this user back to the system config.
* @return sessionDuration
**/
@Schema(description = "The session duration, in minutes, to override the 'Authentication/DefaultSessionDuration' configuration. This controls the maximum period of inactivity before the user must authenticate again. A value of 0 indicates the user does not have a session duration, effectively meaning their session will never expire. A negative value removes the override, defaulting this user back to the system config.")
public Long getSessionDuration() {
return sessionDuration;
}
public void setSessionDuration(Long sessionDuration) {
this.sessionDuration = sessionDuration;
}
public UserInputV1 username(String username) {
this.username = username;
return this;
}
/**
* The username of the user. Required for users from an external directory such as LDAP or Windows Authentication.
* @return username
**/
@Schema(required = true, description = "The username of the user. Required for users from an external directory such as LDAP or Windows Authentication.")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public UserInputV1 workbench(String workbench) {
this.workbench = workbench;
return this;
}
/**
* The workbench configuration of this user.
* @return workbench
**/
@Schema(description = "The workbench configuration of this user.")
public String getWorkbench() {
return workbench;
}
public void setWorkbench(String workbench) {
this.workbench = workbench;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserInputV1 userInputV1 = (UserInputV1) o;
return Objects.equals(this.accessKeyValidityDuration, userInputV1.accessKeyValidityDuration) &&
Objects.equals(this.dataId, userInputV1.dataId) &&
Objects.equals(this.datasourceClass, userInputV1.datasourceClass) &&
Objects.equals(this.datasourceId, userInputV1.datasourceId) &&
Objects.equals(this.description, userInputV1.description) &&
Objects.equals(this.email, userInputV1.email) &&
Objects.equals(this.firstName, userInputV1.firstName) &&
Objects.equals(this.isAdmin, userInputV1.isAdmin) &&
Objects.equals(this.isEnabled, userInputV1.isEnabled) &&
Objects.equals(this.lastName, userInputV1.lastName) &&
Objects.equals(this.maxRequests, userInputV1.maxRequests) &&
Objects.equals(this.name, userInputV1.name) &&
Objects.equals(this.password, userInputV1.password) &&
Objects.equals(this.sessionDuration, userInputV1.sessionDuration) &&
Objects.equals(this.username, userInputV1.username) &&
Objects.equals(this.workbench, userInputV1.workbench);
}
@Override
public int hashCode() {
return Objects.hash(accessKeyValidityDuration, dataId, datasourceClass, datasourceId, description, email, firstName, isAdmin, isEnabled, lastName, maxRequests, name, password, sessionDuration, username, workbench);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserInputV1 {\n");
sb.append(" accessKeyValidityDuration: ").append(toIndentedString(accessKeyValidityDuration)).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(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n");
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" maxRequests: ").append(toIndentedString(maxRequests)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" sessionDuration: ").append(toIndentedString(sessionDuration)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" workbench: ").append(toIndentedString(workbench)).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 ");
}
}