io.logicdrop.openapi.models.UserRegistration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparks-openapi-models Show documentation
Show all versions of sparks-openapi-models Show documentation
Logicdrop Sparks OpenAPI client
/*
* Sparks OpenAPI
* Generated documentation for the Logicdrop Sparks API and OpenAPI clients. Logicdrop Sparks lets users build rules, analyze data, and automate documents. Use it to make decisions faster, generate documents better, and learn from your data. ### Documentation - [User Documentation](https://docs.logicdrop.com) ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction) ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients) ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization)
*
* The version of the OpenAPI document: v_VERSION_, build# _BUILD_
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.logicdrop.openapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* UserRegistration
*/
@JsonPropertyOrder({
UserRegistration.JSON_PROPERTY_EMAIL,
UserRegistration.JSON_PROPERTY_PASSWORD,
UserRegistration.JSON_PROPERTY_FIRST_NAME,
UserRegistration.JSON_PROPERTY_LAST_NAME,
UserRegistration.JSON_PROPERTY_REFERRER,
UserRegistration.JSON_PROPERTY_CAMPAIGN,
UserRegistration.JSON_PROPERTY_PLAN
})
public class UserRegistration {
public static final String JSON_PROPERTY_EMAIL = "email";
private String email;
public static final String JSON_PROPERTY_PASSWORD = "password";
private String password;
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
private String firstName;
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
private String lastName;
public static final String JSON_PROPERTY_REFERRER = "referrer";
private String referrer;
public static final String JSON_PROPERTY_CAMPAIGN = "campaign";
private String campaign;
public static final String JSON_PROPERTY_PLAN = "plan";
private String plan;
public UserRegistration email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public UserRegistration password(String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public UserRegistration firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get firstName
* @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public UserRegistration lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get lastName
* @return lastName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public UserRegistration referrer(String referrer) {
this.referrer = referrer;
return this;
}
/**
* Get referrer
* @return referrer
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_REFERRER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getReferrer() {
return referrer;
}
public void setReferrer(String referrer) {
this.referrer = referrer;
}
public UserRegistration campaign(String campaign) {
this.campaign = campaign;
return this;
}
/**
* Get campaign
* @return campaign
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAMPAIGN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCampaign() {
return campaign;
}
public void setCampaign(String campaign) {
this.campaign = campaign;
}
public UserRegistration plan(String plan) {
this.plan = plan;
return this;
}
/**
* Get plan
* @return plan
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PLAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPlan() {
return plan;
}
public void setPlan(String plan) {
this.plan = plan;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserRegistration userRegistration = (UserRegistration) o;
return Objects.equals(this.email, userRegistration.email) &&
Objects.equals(this.password, userRegistration.password) &&
Objects.equals(this.firstName, userRegistration.firstName) &&
Objects.equals(this.lastName, userRegistration.lastName) &&
Objects.equals(this.referrer, userRegistration.referrer) &&
Objects.equals(this.campaign, userRegistration.campaign) &&
Objects.equals(this.plan, userRegistration.plan);
}
@Override
public int hashCode() {
return Objects.hash(email, password, firstName, lastName, referrer, campaign, plan);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserRegistration {\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" referrer: ").append(toIndentedString(referrer)).append("\n");
sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n");
sb.append(" plan: ").append(toIndentedString(plan)).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 ");
}
}