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.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
  /**
   * StandardDiscoverCatalogInput
   * <p>
   * information required for connection.
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "connectionConfiguration",
    "sourceId",
    "connectorVersion",
    "configHash",
    "resourceRequirements",
    "actorContext",
    "manual",
    "networkSecurityTokens"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class StandardDiscoverCatalogInput implements Serializable {
  
    /**
     * Integration specific blob. Must be a valid JSON string. (Required)
     *
     */
    @JsonProperty("connectionConfiguration")
    @JsonPropertyDescription("Integration specific blob. Must be a valid JSON string.")
    private JsonNode connectionConfiguration;
    /**
     * The ID of the source being discovered, so we can persist the result (Required)
     *
     */
    @JsonProperty("sourceId")
    @JsonPropertyDescription("The ID of the source being discovered, so we can persist the result")
    private String sourceId;
    /**
     * Connector version, so we can persist the result (Required)
     *
     */
    @JsonProperty("connectorVersion")
    @JsonPropertyDescription("Connector version, so we can persist the result")
    private String connectorVersion;
    /**
     * Config hash, so we can persist the result (Required)
     *
     */
    @JsonProperty("configHash")
    @JsonPropertyDescription("Config hash, so we can persist the result")
    private String configHash;
    /**
     * ResourceRequirements
     * <p>
     * generic configuration for pod source requirements
     *
     */
    @JsonProperty("resourceRequirements")
    @JsonPropertyDescription("generic configuration for pod source requirements")
    private ResourceRequirements resourceRequirements;
    /**
     * ActorContext
     * <p>
     * Actor context to be passed to a temporal workflow and its activities/child workflows.
     *
     */
    @JsonProperty("actorContext")
    @JsonPropertyDescription("Actor context to be passed to a temporal workflow and its activities/child workflows.")
    private ActorContext actorContext;
    /**
     * True if the discover catalog was not part of a sync
     *
     */
    @JsonProperty("manual")
    @JsonPropertyDescription("True if the discover catalog was not part of a sync")
    private Boolean manual = true;
    /**
     * Workload launcher will use these to grant pods additional network access
     *
     */
    @JsonProperty("networkSecurityTokens")
    @JsonPropertyDescription("Workload launcher will use these to grant pods additional network access")
    private List<String> networkSecurityTokens = new ArrayList<String>();
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = -1784127532577696435L;
  
    /**
     * Integration specific blob. Must be a valid JSON string. (Required)
     *
     */
    @JsonProperty("connectionConfiguration")
    public JsonNode getConnectionConfiguration() {
      return connectionConfiguration;
    }
  
    /**
     * Integration specific blob. Must be a valid JSON string. (Required)
     *
     */
    @JsonProperty("connectionConfiguration")
    public void setConnectionConfiguration(JsonNode connectionConfiguration) {
      this.connectionConfiguration = connectionConfiguration;
    }
  
    public StandardDiscoverCatalogInput withConnectionConfiguration(JsonNode connectionConfiguration) {
      this.connectionConfiguration = connectionConfiguration;
      return this;
    }
  
    /**
     * The ID of the source being discovered, so we can persist the result (Required)
     *
     */
    @JsonProperty("sourceId")
    public String getSourceId() {
      return sourceId;
    }
  
    /**
     * The ID of the source being discovered, so we can persist the result (Required)
     *
     */
    @JsonProperty("sourceId")
    public void setSourceId(String sourceId) {
      this.sourceId = sourceId;
    }
  
    public StandardDiscoverCatalogInput withSourceId(String sourceId) {
      this.sourceId = sourceId;
      return this;
    }
  
    /**
     * Connector version, so we can persist the result (Required)
     *
     */
    @JsonProperty("connectorVersion")
    public String getConnectorVersion() {
      return connectorVersion;
    }
  
    /**
     * Connector version, so we can persist the result (Required)
     *
     */
    @JsonProperty("connectorVersion")
    public void setConnectorVersion(String connectorVersion) {
      this.connectorVersion = connectorVersion;
    }
  
    public StandardDiscoverCatalogInput withConnectorVersion(String connectorVersion) {
      this.connectorVersion = connectorVersion;
      return this;
    }
  
    /**
     * Config hash, so we can persist the result (Required)
     *
     */
    @JsonProperty("configHash")
    public String getConfigHash() {
      return configHash;
    }
  
    /**
     * Config hash, so we can persist the result (Required)
     *
     */
    @JsonProperty("configHash")
    public void setConfigHash(String configHash) {
      this.configHash = configHash;
    }
  
    public StandardDiscoverCatalogInput withConfigHash(String configHash) {
      this.configHash = configHash;
      return this;
    }
  
    /**
     * ResourceRequirements
     * <p>
     * generic configuration for pod source requirements
     *
     */
    @JsonProperty("resourceRequirements")
    public ResourceRequirements getResourceRequirements() {
      return resourceRequirements;
    }
  
    /**
     * ResourceRequirements
     * <p>
     * generic configuration for pod source requirements
     *
     */
    @JsonProperty("resourceRequirements")
    public void setResourceRequirements(ResourceRequirements resourceRequirements) {
      this.resourceRequirements = resourceRequirements;
    }
  
    public StandardDiscoverCatalogInput withResourceRequirements(ResourceRequirements resourceRequirements) {
      this.resourceRequirements = resourceRequirements;
      return this;
    }
  
    /**
     * ActorContext
     * <p>
     * Actor context to be passed to a temporal workflow and its activities/child workflows.
     *
     */
    @JsonProperty("actorContext")
    public ActorContext getActorContext() {
      return actorContext;
    }
  
    /**
     * ActorContext
     * <p>
     * Actor context to be passed to a temporal workflow and its activities/child workflows.
     *
     */
    @JsonProperty("actorContext")
    public void setActorContext(ActorContext actorContext) {
      this.actorContext = actorContext;
    }
  
    public StandardDiscoverCatalogInput withActorContext(ActorContext actorContext) {
      this.actorContext = actorContext;
      return this;
    }
  
    /**
     * True if the discover catalog was not part of a sync
     *
     */
    @JsonProperty("manual")
    public Boolean getManual() {
      return manual;
    }
  
    /**
     * True if the discover catalog was not part of a sync
     *
     */
    @JsonProperty("manual")
    public void setManual(Boolean manual) {
      this.manual = manual;
    }
  
    public StandardDiscoverCatalogInput withManual(Boolean manual) {
      this.manual = manual;
      return this;
    }
  
    /**
     * Workload launcher will use these to grant pods additional network access
     *
     */
    @JsonProperty("networkSecurityTokens")
    public List<String> getNetworkSecurityTokens() {
      return networkSecurityTokens;
    }
  
    /**
     * Workload launcher will use these to grant pods additional network access
     *
     */
    @JsonProperty("networkSecurityTokens")
    public void setNetworkSecurityTokens(List<String> networkSecurityTokens) {
      this.networkSecurityTokens = networkSecurityTokens;
    }
  
    public StandardDiscoverCatalogInput withNetworkSecurityTokens(List<String> networkSecurityTokens) {
      this.networkSecurityTokens = networkSecurityTokens;
      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 StandardDiscoverCatalogInput withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(StandardDiscoverCatalogInput.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("connectionConfiguration");
      sb.append('=');
      sb.append(((this.connectionConfiguration == null) ? "<null>" : this.connectionConfiguration));
      sb.append(',');
      sb.append("sourceId");
      sb.append('=');
      sb.append(((this.sourceId == null) ? "<null>" : this.sourceId));
      sb.append(',');
      sb.append("connectorVersion");
      sb.append('=');
      sb.append(((this.connectorVersion == null) ? "<null>" : this.connectorVersion));
      sb.append(',');
      sb.append("configHash");
      sb.append('=');
      sb.append(((this.configHash == null) ? "<null>" : this.configHash));
      sb.append(',');
      sb.append("resourceRequirements");
      sb.append('=');
      sb.append(((this.resourceRequirements == null) ? "<null>" : this.resourceRequirements));
      sb.append(',');
      sb.append("actorContext");
      sb.append('=');
      sb.append(((this.actorContext == null) ? "<null>" : this.actorContext));
      sb.append(',');
      sb.append("manual");
      sb.append('=');
      sb.append(((this.manual == null) ? "<null>" : this.manual));
      sb.append(',');
      sb.append("networkSecurityTokens");
      sb.append('=');
      sb.append(((this.networkSecurityTokens == null) ? "<null>" : this.networkSecurityTokens));
      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.resourceRequirements == null) ? 0 : this.resourceRequirements.hashCode()));
      result = ((result * 31) + ((this.actorContext == null) ? 0 : this.actorContext.hashCode()));
      result = ((result * 31) + ((this.connectionConfiguration == null) ? 0 : this.connectionConfiguration.hashCode()));
      result = ((result * 31) + ((this.connectorVersion == null) ? 0 : this.connectorVersion.hashCode()));
      result = ((result * 31) + ((this.networkSecurityTokens == null) ? 0 : this.networkSecurityTokens.hashCode()));
      result = ((result * 31) + ((this.configHash == null) ? 0 : this.configHash.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      result = ((result * 31) + ((this.manual == null) ? 0 : this.manual.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof StandardDiscoverCatalogInput) == false) {
        return false;
      }
      StandardDiscoverCatalogInput rhs = ((StandardDiscoverCatalogInput) other);
      return ((((((((((this.sourceId == rhs.sourceId) || ((this.sourceId != null) && this.sourceId.equals(rhs.sourceId)))
          && ((this.resourceRequirements == rhs.resourceRequirements)
              || ((this.resourceRequirements != null) && this.resourceRequirements.equals(rhs.resourceRequirements))))
          && ((this.actorContext == rhs.actorContext) || ((this.actorContext != null) && this.actorContext.equals(rhs.actorContext))))
          && ((this.connectionConfiguration == rhs.connectionConfiguration)
              || ((this.connectionConfiguration != null) && this.connectionConfiguration.equals(rhs.connectionConfiguration))))
          && ((this.connectorVersion == rhs.connectorVersion)
              || ((this.connectorVersion != null) && this.connectorVersion.equals(rhs.connectorVersion))))
          && ((this.networkSecurityTokens == rhs.networkSecurityTokens)
              || ((this.networkSecurityTokens != null) && this.networkSecurityTokens.equals(rhs.networkSecurityTokens))))
          && ((this.configHash == rhs.configHash) || ((this.configHash != null) && this.configHash.equals(rhs.configHash))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))))
          && ((this.manual == rhs.manual) || ((this.manual != null) && this.manual.equals(rhs.manual))));
    }
  
  }
  