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 com.fasterxml.jackson.databind.JsonNode;
  import jakarta.annotation.Generated;
  import java.io.Serializable;
  import java.util.HashMap;
  import java.util.Map;
  import java.util.UUID;
  
  /**
   * WorkerSourceConfig
   * <p>
   * WorkerSourceConfig
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "sourceId",
    "sourceConnectionConfiguration",
    "catalog",
    "state"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class WorkerSourceConfig implements Serializable {
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("sourceId")
    private UUID sourceId;
    /**
     * Integration specific blob. Must be a valid JSON string. (Required)
     *
     */
    @JsonProperty("sourceConnectionConfiguration")
    @JsonPropertyDescription("Integration specific blob. Must be a valid JSON string.")
    private JsonNode sourceConnectionConfiguration;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("catalog")
    private ConfiguredAirbyteCatalog catalog;
    /**
     * State
     * <p>
     * information output by the connection.
     *
     */
    @JsonProperty("state")
    @JsonPropertyDescription("information output by the connection.")
    private State state;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = 3249895945520927228L;
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("sourceId")
    public UUID getSourceId() {
      return sourceId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("sourceId")
    public void setSourceId(UUID sourceId) {
      this.sourceId = sourceId;
    }
  
    public WorkerSourceConfig withSourceId(UUID sourceId) {
      this.sourceId = sourceId;
      return this;
    }
  
    /**
     * Integration specific blob. Must be a valid JSON string. (Required)
     *
     */
    @JsonProperty("sourceConnectionConfiguration")
    public JsonNode getSourceConnectionConfiguration() {
      return sourceConnectionConfiguration;
    }
  
    /**
     * Integration specific blob. Must be a valid JSON string. (Required)
     *
     */
    @JsonProperty("sourceConnectionConfiguration")
    public void setSourceConnectionConfiguration(JsonNode sourceConnectionConfiguration) {
      this.sourceConnectionConfiguration = sourceConnectionConfiguration;
    }
  
    public WorkerSourceConfig withSourceConnectionConfiguration(JsonNode sourceConnectionConfiguration) {
      this.sourceConnectionConfiguration = sourceConnectionConfiguration;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("catalog")
    public ConfiguredAirbyteCatalog getCatalog() {
      return catalog;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("catalog")
    public void setCatalog(ConfiguredAirbyteCatalog catalog) {
      this.catalog = catalog;
    }
  
    public WorkerSourceConfig withCatalog(ConfiguredAirbyteCatalog catalog) {
      this.catalog = catalog;
      return this;
    }
  
    /**
     * State
     * <p>
     * information output by the connection.
     *
     */
    @JsonProperty("state")
    public State getState() {
      return state;
    }
  
    /**
     * State
     * <p>
     * information output by the connection.
     *
     */
    @JsonProperty("state")
    public void setState(State state) {
      this.state = state;
    }
  
    public WorkerSourceConfig withState(State state) {
      this.state = state;
      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 WorkerSourceConfig withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(WorkerSourceConfig.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("sourceId");
      sb.append('=');
      sb.append(((this.sourceId == null) ? "<null>" : this.sourceId));
      sb.append(',');
      sb.append("sourceConnectionConfiguration");
      sb.append('=');
      sb.append(((this.sourceConnectionConfiguration == null) ? "<null>" : this.sourceConnectionConfiguration));
      sb.append(',');
      sb.append("catalog");
      sb.append('=');
      sb.append(((this.catalog == null) ? "<null>" : this.catalog));
      sb.append(',');
      sb.append("state");
      sb.append('=');
      sb.append(((this.state == null) ? "<null>" : this.state));
      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.sourceId == null) ? 0 : this.sourceId.hashCode()));
      result = ((result * 31) + ((this.state == null) ? 0 : this.state.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      result = ((result * 31) + ((this.sourceConnectionConfiguration == null) ? 0 : this.sourceConnectionConfiguration.hashCode()));
      result = ((result * 31) + ((this.catalog == null) ? 0 : this.catalog.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof WorkerSourceConfig) == false) {
        return false;
      }
      WorkerSourceConfig rhs = ((WorkerSourceConfig) other);
      return ((((((this.sourceId == rhs.sourceId) || ((this.sourceId != null) && this.sourceId.equals(rhs.sourceId)))
          && ((this.state == rhs.state) || ((this.state != null) && this.state.equals(rhs.state))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))))
          && ((this.sourceConnectionConfiguration == rhs.sourceConnectionConfiguration)
              || ((this.sourceConnectionConfiguration != null) && this.sourceConnectionConfiguration.equals(rhs.sourceConnectionConfiguration))))
          && ((this.catalog == rhs.catalog) || ((this.catalog != null) && this.catalog.equals(rhs.catalog))));
    }
  
  }
  