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.JsonPropertyOrder;
  import jakarta.annotation.Generated;
  import java.io.Serializable;
  import java.util.Date;
  import java.util.HashMap;
  import java.util.Map;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "metadata_etag",
    "metadata_file_path",
    "metadata_bucket_name",
    "metadata_last_modified",
    "registry_entry_generated_at"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class SourceFileInfo implements Serializable {
  
    @JsonProperty("metadata_etag")
    private String metadataEtag;
    @JsonProperty("metadata_file_path")
    private String metadataFilePath;
    @JsonProperty("metadata_bucket_name")
    private String metadataBucketName;
    @JsonProperty("metadata_last_modified")
    private Date metadataLastModified;
    @JsonProperty("registry_entry_generated_at")
    private Date registryEntryGeneratedAt;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = 7258412035911555258L;
  
    @JsonProperty("metadata_etag")
    public String getMetadataEtag() {
      return metadataEtag;
    }
  
    @JsonProperty("metadata_etag")
    public void setMetadataEtag(String metadataEtag) {
      this.metadataEtag = metadataEtag;
    }
  
    public SourceFileInfo withMetadataEtag(String metadataEtag) {
      this.metadataEtag = metadataEtag;
      return this;
    }
  
    @JsonProperty("metadata_file_path")
    public String getMetadataFilePath() {
      return metadataFilePath;
    }
  
    @JsonProperty("metadata_file_path")
    public void setMetadataFilePath(String metadataFilePath) {
      this.metadataFilePath = metadataFilePath;
    }
  
    public SourceFileInfo withMetadataFilePath(String metadataFilePath) {
      this.metadataFilePath = metadataFilePath;
      return this;
    }
  
    @JsonProperty("metadata_bucket_name")
    public String getMetadataBucketName() {
      return metadataBucketName;
    }
  
    @JsonProperty("metadata_bucket_name")
    public void setMetadataBucketName(String metadataBucketName) {
      this.metadataBucketName = metadataBucketName;
    }
  
    public SourceFileInfo withMetadataBucketName(String metadataBucketName) {
      this.metadataBucketName = metadataBucketName;
      return this;
    }
  
    @JsonProperty("metadata_last_modified")
    public Date getMetadataLastModified() {
      return metadataLastModified;
    }
  
    @JsonProperty("metadata_last_modified")
    public void setMetadataLastModified(Date metadataLastModified) {
      this.metadataLastModified = metadataLastModified;
    }
  
    public SourceFileInfo withMetadataLastModified(Date metadataLastModified) {
      this.metadataLastModified = metadataLastModified;
      return this;
    }
  
    @JsonProperty("registry_entry_generated_at")
    public Date getRegistryEntryGeneratedAt() {
      return registryEntryGeneratedAt;
    }
  
    @JsonProperty("registry_entry_generated_at")
    public void setRegistryEntryGeneratedAt(Date registryEntryGeneratedAt) {
      this.registryEntryGeneratedAt = registryEntryGeneratedAt;
    }
  
    public SourceFileInfo withRegistryEntryGeneratedAt(Date registryEntryGeneratedAt) {
      this.registryEntryGeneratedAt = registryEntryGeneratedAt;
      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 SourceFileInfo withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(SourceFileInfo.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("metadataEtag");
      sb.append('=');
      sb.append(((this.metadataEtag == null) ? "<null>" : this.metadataEtag));
      sb.append(',');
      sb.append("metadataFilePath");
      sb.append('=');
      sb.append(((this.metadataFilePath == null) ? "<null>" : this.metadataFilePath));
      sb.append(',');
      sb.append("metadataBucketName");
      sb.append('=');
      sb.append(((this.metadataBucketName == null) ? "<null>" : this.metadataBucketName));
      sb.append(',');
      sb.append("metadataLastModified");
      sb.append('=');
      sb.append(((this.metadataLastModified == null) ? "<null>" : this.metadataLastModified));
      sb.append(',');
      sb.append("registryEntryGeneratedAt");
      sb.append('=');
      sb.append(((this.registryEntryGeneratedAt == null) ? "<null>" : this.registryEntryGeneratedAt));
      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.metadataEtag == null) ? 0 : this.metadataEtag.hashCode()));
      result = ((result * 31) + ((this.metadataFilePath == null) ? 0 : this.metadataFilePath.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      result = ((result * 31) + ((this.metadataLastModified == null) ? 0 : this.metadataLastModified.hashCode()));
      result = ((result * 31) + ((this.metadataBucketName == null) ? 0 : this.metadataBucketName.hashCode()));
      result = ((result * 31) + ((this.registryEntryGeneratedAt == null) ? 0 : this.registryEntryGeneratedAt.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof SourceFileInfo) == false) {
        return false;
      }
      SourceFileInfo rhs = ((SourceFileInfo) other);
      return (((((((this.metadataEtag == rhs.metadataEtag) || ((this.metadataEtag != null) && this.metadataEtag.equals(rhs.metadataEtag)))
          && ((this.metadataFilePath == rhs.metadataFilePath)
              || ((this.metadataFilePath != null) && this.metadataFilePath.equals(rhs.metadataFilePath))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))))
          && ((this.metadataLastModified == rhs.metadataLastModified)
              || ((this.metadataLastModified != null) && this.metadataLastModified.equals(rhs.metadataLastModified))))
          && ((this.metadataBucketName == rhs.metadataBucketName)
              || ((this.metadataBucketName != null) && this.metadataBucketName.equals(rhs.metadataBucketName))))
          && ((this.registryEntryGeneratedAt == rhs.registryEntryGeneratedAt)
              || ((this.registryEntryGeneratedAt != null) && this.registryEntryGeneratedAt.equals(rhs.registryEntryGeneratedAt))));
    }
  
  }
  