content: /*
   * Copyright (c) 2020-2025 Airbyte, Inc., all rights reserved.
   */
  
  package io.airbyte.config;
  
  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.JsonPropertyDescription;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  import jakarta.annotation.Generated;
  import java.io.Serializable;
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
  /**
   * ScopedResourceRequirements
   * <p>
   * actor or actor definition specific resource requirements
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "default",
    "jobSpecific"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class ScopedResourceRequirements implements Serializable {
  
    /**
     * ResourceRequirements
     * <p>
     * generic configuration for pod source requirements
     *
     */
    @JsonProperty("default")
    @JsonPropertyDescription("generic configuration for pod source requirements")
    private ResourceRequirements _default;
    @JsonProperty("jobSpecific")
    private List<JobTypeResourceLimit> jobSpecific = new ArrayList<JobTypeResourceLimit>();
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = 7371622685756054814L;
  
    /**
     * ResourceRequirements
     * <p>
     * generic configuration for pod source requirements
     *
     */
    @JsonProperty("default")
    public ResourceRequirements getDefault() {
      return _default;
    }
  
    /**
     * ResourceRequirements
     * <p>
     * generic configuration for pod source requirements
     *
     */
    @JsonProperty("default")
    public void setDefault(ResourceRequirements _default) {
      this._default = _default;
    }
  
    public ScopedResourceRequirements withDefault(ResourceRequirements _default) {
      this._default = _default;
      return this;
    }
  
    @JsonProperty("jobSpecific")
    public List<JobTypeResourceLimit> getJobSpecific() {
      return jobSpecific;
    }
  
    @JsonProperty("jobSpecific")
    public void setJobSpecific(List<JobTypeResourceLimit> jobSpecific) {
      this.jobSpecific = jobSpecific;
    }
  
    public ScopedResourceRequirements withJobSpecific(List<JobTypeResourceLimit> jobSpecific) {
      this.jobSpecific = jobSpecific;
      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 ScopedResourceRequirements withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(ScopedResourceRequirements.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("_default");
      sb.append('=');
      sb.append(((this._default == null) ? "<null>" : this._default));
      sb.append(',');
      sb.append("jobSpecific");
      sb.append('=');
      sb.append(((this.jobSpecific == null) ? "<null>" : this.jobSpecific));
      sb.append(',');
      sb.append("additionalProperties");
      sb.append('=');
      sb.append(((this.additionalProperties == null) ? "<null>" : 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._default == null) ? 0 : this._default.hashCode()));
      result = ((result * 31) + ((this.jobSpecific == null) ? 0 : this.jobSpecific.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof ScopedResourceRequirements) == false) {
        return false;
      }
      ScopedResourceRequirements rhs = ((ScopedResourceRequirements) other);
      return ((((this._default == rhs._default) || ((this._default != null) && this._default.equals(rhs._default)))
          && ((this.jobSpecific == rhs.jobSpecific) || ((this.jobSpecific != null) && this.jobSpecific.equals(rhs.jobSpecific))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))));
    }
  
  }
  