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

tech.deepdreams.worker.api.dtos.SubscriberDTO Maven / Gradle / Ivy

There is a newer version: 0.1.1-RELEASE
Show newest version
package tech.deepdreams.worker.api.dtos;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import tech.deepdreams.worker.api.dtos.BranchDTO;
import tech.deepdreams.worker.api.dtos.CountryDTO;
import tech.deepdreams.worker.api.dtos.LocalityDTO;
import tech.deepdreams.worker.api.dtos.StateDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * SubscriberDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class SubscriberDTO   {
  @JsonProperty("id")
  private Long id;

  @JsonProperty("lastName")
  private String lastName;

  @JsonProperty("firstName")
  private String firstName;

  @JsonProperty("label")
  private String label;

  @JsonProperty("socialRegistrationNumber")
  private String socialRegistrationNumber;

  @JsonProperty("creationDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate creationDate;

  @JsonProperty("branch")
  private BranchDTO branch;

  @JsonProperty("country")
  private CountryDTO country;

  @JsonProperty("state")
  private StateDTO state;

  @JsonProperty("locality")
  private LocalityDTO locality;

  @JsonProperty("address")
  private String address;

  @JsonProperty("phoneNumber")
  private String phoneNumber;

  @JsonProperty("emailAddress")
  private String emailAddress;

  @JsonProperty("secretId")
  private String secretId;

  @JsonProperty("status")
  private String status;

  public SubscriberDTO id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  */
  @ApiModelProperty(value = "")
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public SubscriberDTO lastName(String lastName) {
    this.lastName = lastName;
    return this;
  }

  /**
   * Get lastName
   * @return lastName
  */
  @ApiModelProperty(value = "")
  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public SubscriberDTO firstName(String firstName) {
    this.firstName = firstName;
    return this;
  }

  /**
   * Get firstName
   * @return firstName
  */
  @ApiModelProperty(value = "")
  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public SubscriberDTO label(String label) {
    this.label = label;
    return this;
  }

  /**
   * Get label
   * @return label
  */
  @ApiModelProperty(value = "")
  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public SubscriberDTO socialRegistrationNumber(String socialRegistrationNumber) {
    this.socialRegistrationNumber = socialRegistrationNumber;
    return this;
  }

  /**
   * Get socialRegistrationNumber
   * @return socialRegistrationNumber
  */
  @ApiModelProperty(value = "")
  public String getSocialRegistrationNumber() {
    return socialRegistrationNumber;
  }

  public void setSocialRegistrationNumber(String socialRegistrationNumber) {
    this.socialRegistrationNumber = socialRegistrationNumber;
  }

  public SubscriberDTO creationDate(LocalDate creationDate) {
    this.creationDate = creationDate;
    return this;
  }

  /**
   * Get creationDate
   * @return creationDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getCreationDate() {
    return creationDate;
  }

  public void setCreationDate(LocalDate creationDate) {
    this.creationDate = creationDate;
  }

  public SubscriberDTO branch(BranchDTO branch) {
    this.branch = branch;
    return this;
  }

  /**
   * Get branch
   * @return branch
  */
  @ApiModelProperty(value = "")
  public BranchDTO getBranch() {
    return branch;
  }

  public void setBranch(BranchDTO branch) {
    this.branch = branch;
  }

  public SubscriberDTO country(CountryDTO country) {
    this.country = country;
    return this;
  }

  /**
   * Get country
   * @return country
  */
  @ApiModelProperty(value = "")
  public CountryDTO getCountry() {
    return country;
  }

  public void setCountry(CountryDTO country) {
    this.country = country;
  }

  public SubscriberDTO state(StateDTO state) {
    this.state = state;
    return this;
  }

  /**
   * Get state
   * @return state
  */
  @ApiModelProperty(value = "")
  public StateDTO getState() {
    return state;
  }

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

  public SubscriberDTO locality(LocalityDTO locality) {
    this.locality = locality;
    return this;
  }

  /**
   * Get locality
   * @return locality
  */
  @ApiModelProperty(value = "")
  public LocalityDTO getLocality() {
    return locality;
  }

  public void setLocality(LocalityDTO locality) {
    this.locality = locality;
  }

  public SubscriberDTO address(String address) {
    this.address = address;
    return this;
  }

  /**
   * Get address
   * @return address
  */
  @ApiModelProperty(value = "")
  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public SubscriberDTO phoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
    return this;
  }

  /**
   * Get phoneNumber
   * @return phoneNumber
  */
  @ApiModelProperty(value = "")
  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }

  public SubscriberDTO emailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
    return this;
  }

  /**
   * Get emailAddress
   * @return emailAddress
  */
  @ApiModelProperty(value = "")
  public String getEmailAddress() {
    return emailAddress;
  }

  public void setEmailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
  }

  public SubscriberDTO secretId(String secretId) {
    this.secretId = secretId;
    return this;
  }

  /**
   * Get secretId
   * @return secretId
  */
  @ApiModelProperty(value = "")
  public String getSecretId() {
    return secretId;
  }

  public void setSecretId(String secretId) {
    this.secretId = secretId;
  }

  public SubscriberDTO status(String status) {
    this.status = status;
    return this;
  }

  /**
   * Get status
   * @return status
  */
  @ApiModelProperty(value = "")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SubscriberDTO subscriber = (SubscriberDTO) o;
    return Objects.equals(this.id, subscriber.id) &&
        Objects.equals(this.lastName, subscriber.lastName) &&
        Objects.equals(this.firstName, subscriber.firstName) &&
        Objects.equals(this.label, subscriber.label) &&
        Objects.equals(this.socialRegistrationNumber, subscriber.socialRegistrationNumber) &&
        Objects.equals(this.creationDate, subscriber.creationDate) &&
        Objects.equals(this.branch, subscriber.branch) &&
        Objects.equals(this.country, subscriber.country) &&
        Objects.equals(this.state, subscriber.state) &&
        Objects.equals(this.locality, subscriber.locality) &&
        Objects.equals(this.address, subscriber.address) &&
        Objects.equals(this.phoneNumber, subscriber.phoneNumber) &&
        Objects.equals(this.emailAddress, subscriber.emailAddress) &&
        Objects.equals(this.secretId, subscriber.secretId) &&
        Objects.equals(this.status, subscriber.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, lastName, firstName, label, socialRegistrationNumber, creationDate, branch, country, state, locality, address, phoneNumber, emailAddress, secretId, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SubscriberDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
    sb.append("    socialRegistrationNumber: ").append(toIndentedString(socialRegistrationNumber)).append("\n");
    sb.append("    creationDate: ").append(toIndentedString(creationDate)).append("\n");
    sb.append("    branch: ").append(toIndentedString(branch)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    locality: ").append(toIndentedString(locality)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
    sb.append("    emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
    sb.append("    secretId: ").append(toIndentedString(secretId)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy