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

tech.deepdreams.worker.api.dtos.OvertimeHoursDTO 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 org.openapitools.jackson.nullable.JsonNullable;

/**
 * OvertimeHoursDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-27T12:27:26.661192300-04:00[America/Toronto]")
public class OvertimeHoursDTO   {
  @JsonProperty("index")
  private Integer index;

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

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

  @JsonProperty("dailyBusinessDayHours")
  private Double dailyBusinessDayHours;

  @JsonProperty("nightBusinessDayHours")
  private Double nightBusinessDayHours;

  @JsonProperty("dailyHolidayHours")
  private Double dailyHolidayHours;

  @JsonProperty("nightHolidayHours")
  private Double nightHolidayHours;

  public OvertimeHoursDTO index(Integer index) {
    this.index = index;
    return this;
  }

  /**
   * Get index
   * @return index
  */
  @ApiModelProperty(value = "")
  public Integer getIndex() {
    return index;
  }

  public void setIndex(Integer index) {
    this.index = index;
  }

  public OvertimeHoursDTO startDate(LocalDate startDate) {
    this.startDate = startDate;
    return this;
  }

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

  public void setStartDate(LocalDate startDate) {
    this.startDate = startDate;
  }

  public OvertimeHoursDTO endDate(LocalDate endDate) {
    this.endDate = endDate;
    return this;
  }

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

  public void setEndDate(LocalDate endDate) {
    this.endDate = endDate;
  }

  public OvertimeHoursDTO dailyBusinessDayHours(Double dailyBusinessDayHours) {
    this.dailyBusinessDayHours = dailyBusinessDayHours;
    return this;
  }

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

  public void setDailyBusinessDayHours(Double dailyBusinessDayHours) {
    this.dailyBusinessDayHours = dailyBusinessDayHours;
  }

  public OvertimeHoursDTO nightBusinessDayHours(Double nightBusinessDayHours) {
    this.nightBusinessDayHours = nightBusinessDayHours;
    return this;
  }

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

  public void setNightBusinessDayHours(Double nightBusinessDayHours) {
    this.nightBusinessDayHours = nightBusinessDayHours;
  }

  public OvertimeHoursDTO dailyHolidayHours(Double dailyHolidayHours) {
    this.dailyHolidayHours = dailyHolidayHours;
    return this;
  }

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

  public void setDailyHolidayHours(Double dailyHolidayHours) {
    this.dailyHolidayHours = dailyHolidayHours;
  }

  public OvertimeHoursDTO nightHolidayHours(Double nightHolidayHours) {
    this.nightHolidayHours = nightHolidayHours;
    return this;
  }

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

  public void setNightHolidayHours(Double nightHolidayHours) {
    this.nightHolidayHours = nightHolidayHours;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OvertimeHoursDTO overtimeHours = (OvertimeHoursDTO) o;
    return Objects.equals(this.index, overtimeHours.index) &&
        Objects.equals(this.startDate, overtimeHours.startDate) &&
        Objects.equals(this.endDate, overtimeHours.endDate) &&
        Objects.equals(this.dailyBusinessDayHours, overtimeHours.dailyBusinessDayHours) &&
        Objects.equals(this.nightBusinessDayHours, overtimeHours.nightBusinessDayHours) &&
        Objects.equals(this.dailyHolidayHours, overtimeHours.dailyHolidayHours) &&
        Objects.equals(this.nightHolidayHours, overtimeHours.nightHolidayHours);
  }

  @Override
  public int hashCode() {
    return Objects.hash(index, startDate, endDate, dailyBusinessDayHours, nightBusinessDayHours, dailyHolidayHours, nightHolidayHours);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OvertimeHoursDTO {\n");
    
    sb.append("    index: ").append(toIndentedString(index)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    dailyBusinessDayHours: ").append(toIndentedString(dailyBusinessDayHours)).append("\n");
    sb.append("    nightBusinessDayHours: ").append(toIndentedString(nightBusinessDayHours)).append("\n");
    sb.append("    dailyHolidayHours: ").append(toIndentedString(dailyHolidayHours)).append("\n");
    sb.append("    nightHolidayHours: ").append(toIndentedString(nightHolidayHours)).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