content: /*
   * Copyright (c) 2020-2025 Airbyte, Inc., all rights reserved.
   */
  
  package io.airbyte.persistence.job.models;
  
  import com.fasterxml.jackson.annotation.JsonAnyGetter;
  import com.fasterxml.jackson.annotation.JsonAnySetter;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  import jakarta.annotation.Generated;
  import java.util.HashMap;
  import java.util.Map;
  import java.util.Objects;
  
  /**
   * JobRunConfig
   * <p>
   * job run config
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "jobId",
    "attemptId"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class JobRunConfig {
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("jobId")
    private String jobId;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("attemptId")
    private Long attemptId;
    @JsonIgnore
    private final Map<String, Object> additionalProperties = new HashMap<>();
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("jobId")
    public String getJobId() {
      return jobId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("jobId")
    public void setJobId(String jobId) {
      this.jobId = jobId;
    }
  
    public JobRunConfig withJobId(String jobId) {
      this.jobId = jobId;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("attemptId")
    public Long getAttemptId() {
      return attemptId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("attemptId")
    public void setAttemptId(Long attemptId) {
      this.attemptId = attemptId;
    }
  
    public JobRunConfig withAttemptId(Long attemptId) {
      this.attemptId = attemptId;
      return this;
    }
  
    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
      return this.additionalProperties;
    }
  
    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
    }
  
    public JobRunConfig withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(JobRunConfig.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("jobId");
      sb.append('=');
      sb.append(((this.jobId == null) ? "<null>" : this.jobId));
      sb.append(',');
      sb.append("attemptId");
      sb.append('=');
      sb.append(((this.attemptId == null) ? "<null>" : this.attemptId));
      sb.append(',');
      sb.append("additionalProperties");
      sb.append('=');
      sb.append(this.additionalProperties);
      sb.append(',');
      if (sb.charAt((sb.length() - 1)) == ',') {
        sb.setCharAt((sb.length() - 1), ']');
      } else {
        sb.append(']');
      }
      return sb.toString();
    }
  
    @Override
    public int hashCode() {
      int result = 1;
      result = ((result * 31) + ((this.jobId == null) ? 0 : this.jobId.hashCode()));
      result = ((result * 31) + ((this.attemptId == null) ? 0 : this.attemptId.hashCode()));
      result = result * 31 + this.additionalProperties.hashCode();
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if (!(other instanceof JobRunConfig rhs)) {
        return false;
      }
      return Objects.equals(this.jobId, rhs.jobId) && Objects.equals(this.attemptId, rhs.attemptId)
          && (this.additionalProperties == rhs.additionalProperties || this.additionalProperties.equals(rhs.additionalProperties));
    }
  
  }
  