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.HashMap;
  import java.util.Map;
  
  /**
   * AwsAccessKeySecretPersistenceConfig
   * <p>
   * AWS SecretPersistenceConfig to be passed into the RuntimeSecretPersistence class.
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "awsAccessKey",
    "awsSecretAccessKey",
    "awsRegion"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class AwsAccessKeySecretPersistenceConfig implements Serializable {
  
    /**
     * AWS access key
     *
     */
    @JsonProperty("awsAccessKey")
    @JsonPropertyDescription("AWS access key")
    private String awsAccessKey;
    /**
     * AWS secret access key
     *
     */
    @JsonProperty("awsSecretAccessKey")
    @JsonPropertyDescription("AWS secret access key")
    private String awsSecretAccessKey;
    /**
     * AWS region
     *
     */
    @JsonProperty("awsRegion")
    @JsonPropertyDescription("AWS region")
    private String awsRegion;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = 5486176250734122357L;
  
    /**
     * AWS access key
     *
     */
    @JsonProperty("awsAccessKey")
    public String getAwsAccessKey() {
      return awsAccessKey;
    }
  
    /**
     * AWS access key
     *
     */
    @JsonProperty("awsAccessKey")
    public void setAwsAccessKey(String awsAccessKey) {
      this.awsAccessKey = awsAccessKey;
    }
  
    public AwsAccessKeySecretPersistenceConfig withAwsAccessKey(String awsAccessKey) {
      this.awsAccessKey = awsAccessKey;
      return this;
    }
  
    /**
     * AWS secret access key
     *
     */
    @JsonProperty("awsSecretAccessKey")
    public String getAwsSecretAccessKey() {
      return awsSecretAccessKey;
    }
  
    /**
     * AWS secret access key
     *
     */
    @JsonProperty("awsSecretAccessKey")
    public void setAwsSecretAccessKey(String awsSecretAccessKey) {
      this.awsSecretAccessKey = awsSecretAccessKey;
    }
  
    public AwsAccessKeySecretPersistenceConfig withAwsSecretAccessKey(String awsSecretAccessKey) {
      this.awsSecretAccessKey = awsSecretAccessKey;
      return this;
    }
  
    /**
     * AWS region
     *
     */
    @JsonProperty("awsRegion")
    public String getAwsRegion() {
      return awsRegion;
    }
  
    /**
     * AWS region
     *
     */
    @JsonProperty("awsRegion")
    public void setAwsRegion(String awsRegion) {
      this.awsRegion = awsRegion;
    }
  
    public AwsAccessKeySecretPersistenceConfig withAwsRegion(String awsRegion) {
      this.awsRegion = awsRegion;
      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 AwsAccessKeySecretPersistenceConfig withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(AwsAccessKeySecretPersistenceConfig.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("awsAccessKey");
      sb.append('=');
      sb.append(((this.awsAccessKey == null) ? "<null>" : this.awsAccessKey));
      sb.append(',');
      sb.append("awsSecretAccessKey");
      sb.append('=');
      sb.append(((this.awsSecretAccessKey == null) ? "<null>" : this.awsSecretAccessKey));
      sb.append(',');
      sb.append("awsRegion");
      sb.append('=');
      sb.append(((this.awsRegion == null) ? "<null>" : this.awsRegion));
      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.awsRegion == null) ? 0 : this.awsRegion.hashCode()));
      result = ((result * 31) + ((this.awsAccessKey == null) ? 0 : this.awsAccessKey.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      result = ((result * 31) + ((this.awsSecretAccessKey == null) ? 0 : this.awsSecretAccessKey.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof AwsAccessKeySecretPersistenceConfig) == false) {
        return false;
      }
      AwsAccessKeySecretPersistenceConfig rhs = ((AwsAccessKeySecretPersistenceConfig) other);
      return (((((this.awsRegion == rhs.awsRegion) || ((this.awsRegion != null) && this.awsRegion.equals(rhs.awsRegion)))
          && ((this.awsAccessKey == rhs.awsAccessKey) || ((this.awsAccessKey != null) && this.awsAccessKey.equals(rhs.awsAccessKey))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))))
          && ((this.awsSecretAccessKey == rhs.awsSecretAccessKey)
              || ((this.awsSecretAccessKey != null) && this.awsSecretAccessKey.equals(rhs.awsSecretAccessKey))));
    }
  
  }
  