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

tech.deepdreams.worker.api.dtos.ConstantValueDTO 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 tech.deepdreams.worker.api.dtos.ConstantDTO;
import tech.deepdreams.worker.api.dtos.EmployeeDTO;
import tech.deepdreams.worker.api.dtos.PayPeriodDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * ConstantValueDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-12T20:34:13.781405-04:00[America/Toronto]")
public class ConstantValueDTO   {
  @JsonProperty("id")
  private Long id;

  @JsonProperty("constant")
  private ConstantDTO constant;

  @JsonProperty("value")
  private Double value;

  @JsonProperty("employee")
  private EmployeeDTO employee;

  @JsonProperty("payPeriod")
  private PayPeriodDTO payPeriod;

  @JsonProperty("description")
  private String description;

  public ConstantValueDTO 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 ConstantValueDTO constant(ConstantDTO constant) {
    this.constant = constant;
    return this;
  }

  /**
   * Get constant
   * @return constant
  */
  @ApiModelProperty(value = "")
  public ConstantDTO getConstant() {
    return constant;
  }

  public void setConstant(ConstantDTO constant) {
    this.constant = constant;
  }

  public ConstantValueDTO value(Double value) {
    this.value = value;
    return this;
  }

  /**
   * Get value
   * @return value
  */
  @ApiModelProperty(value = "")
  public Double getValue() {
    return value;
  }

  public void setValue(Double value) {
    this.value = value;
  }

  public ConstantValueDTO employee(EmployeeDTO employee) {
    this.employee = employee;
    return this;
  }

  /**
   * Get employee
   * @return employee
  */
  @ApiModelProperty(value = "")
  public EmployeeDTO getEmployee() {
    return employee;
  }

  public void setEmployee(EmployeeDTO employee) {
    this.employee = employee;
  }

  public ConstantValueDTO payPeriod(PayPeriodDTO payPeriod) {
    this.payPeriod = payPeriod;
    return this;
  }

  /**
   * Get payPeriod
   * @return payPeriod
  */
  @ApiModelProperty(value = "")
  public PayPeriodDTO getPayPeriod() {
    return payPeriod;
  }

  public void setPayPeriod(PayPeriodDTO payPeriod) {
    this.payPeriod = payPeriod;
  }

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

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

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


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConstantValueDTO constantValue = (ConstantValueDTO) o;
    return Objects.equals(this.id, constantValue.id) &&
        Objects.equals(this.constant, constantValue.constant) &&
        Objects.equals(this.value, constantValue.value) &&
        Objects.equals(this.employee, constantValue.employee) &&
        Objects.equals(this.payPeriod, constantValue.payPeriod) &&
        Objects.equals(this.description, constantValue.description);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, constant, value, employee, payPeriod, description);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConstantValueDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    constant: ").append(toIndentedString(constant)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
    sb.append("    employee: ").append(toIndentedString(employee)).append("\n");
    sb.append("    payPeriod: ").append(toIndentedString(payPeriod)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).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