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.HashMap;
  import java.util.Map;
  import java.util.UUID;
  
  /**
   * OrganizationEmailDomain
   * <p>
   * organization email domain
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "id",
    "organizationId",
    "emailDomain"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class OrganizationEmailDomain implements Serializable {
  
    @JsonProperty("id")
    private UUID id;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("organizationId")
    private UUID organizationId;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("emailDomain")
    private String emailDomain;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = 8117704421151072486L;
  
    @JsonProperty("id")
    public UUID getId() {
      return id;
    }
  
    @JsonProperty("id")
    public void setId(UUID id) {
      this.id = id;
    }
  
    public OrganizationEmailDomain withId(UUID id) {
      this.id = id;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("organizationId")
    public UUID getOrganizationId() {
      return organizationId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("organizationId")
    public void setOrganizationId(UUID organizationId) {
      this.organizationId = organizationId;
    }
  
    public OrganizationEmailDomain withOrganizationId(UUID organizationId) {
      this.organizationId = organizationId;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("emailDomain")
    public String getEmailDomain() {
      return emailDomain;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("emailDomain")
    public void setEmailDomain(String emailDomain) {
      this.emailDomain = emailDomain;
    }
  
    public OrganizationEmailDomain withEmailDomain(String emailDomain) {
      this.emailDomain = emailDomain;
      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 OrganizationEmailDomain withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(OrganizationEmailDomain.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("id");
      sb.append('=');
      sb.append(((this.id == null) ? "<null>" : this.id));
      sb.append(',');
      sb.append("organizationId");
      sb.append('=');
      sb.append(((this.organizationId == null) ? "<null>" : this.organizationId));
      sb.append(',');
      sb.append("emailDomain");
      sb.append('=');
      sb.append(((this.emailDomain == null) ? "<null>" : this.emailDomain));
      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.organizationId == null) ? 0 : this.organizationId.hashCode()));
      result = ((result * 31) + ((this.emailDomain == null) ? 0 : this.emailDomain.hashCode()));
      result = ((result * 31) + ((this.id == null) ? 0 : this.id.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 OrganizationEmailDomain) == false) {
        return false;
      }
      OrganizationEmailDomain rhs = ((OrganizationEmailDomain) other);
      return (((((this.organizationId == rhs.organizationId) || ((this.organizationId != null) && this.organizationId.equals(rhs.organizationId)))
          && ((this.emailDomain == rhs.emailDomain) || ((this.emailDomain != null) && this.emailDomain.equals(rhs.emailDomain))))
          && ((this.id == rhs.id) || ((this.id != null) && this.id.equals(rhs.id))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))));
    }
  
  }
  