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

tech.deepdreams.worker.api.dtos.EmployeeConstantValueDTO 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.util.ArrayList;
import java.util.List;
import tech.deepdreams.worker.api.dtos.ConstantValueDTO;
import tech.deepdreams.worker.api.dtos.EmployeeDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * EmployeeConstantValueDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-24T04:57:07.737051-04:00[America/Toronto]")
public class EmployeeConstantValueDTO   {
  @JsonProperty("employee")
  private EmployeeDTO employee;

  @JsonProperty("constantValues")
  
  private List constantValues = null;

  public EmployeeConstantValueDTO 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 EmployeeConstantValueDTO constantValues(List constantValues) {
    this.constantValues = constantValues;
    return this;
  }

  public EmployeeConstantValueDTO addConstantValuesItem(ConstantValueDTO constantValuesItem) {
    if (this.constantValues == null) {
      this.constantValues = new ArrayList<>();
    }
    this.constantValues.add(constantValuesItem);
    return this;
  }

  /**
   * Get constantValues
   * @return constantValues
  */
  @ApiModelProperty(value = "")
  public List getConstantValues() {
    return constantValues;
  }

  public void setConstantValues(List constantValues) {
    this.constantValues = constantValues;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EmployeeConstantValueDTO employeeConstantValue = (EmployeeConstantValueDTO) o;
    return Objects.equals(this.employee, employeeConstantValue.employee) &&
        Objects.equals(this.constantValues, employeeConstantValue.constantValues);
  }

  @Override
  public int hashCode() {
    return Objects.hash(employee, constantValues);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EmployeeConstantValueDTO {\n");
    
    sb.append("    employee: ").append(toIndentedString(employee)).append("\n");
    sb.append("    constantValues: ").append(toIndentedString(constantValues)).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