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;
  import java.util.UUID;
  
  /**
   * Organization
   * <p>
   * organization configuration
   *
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
    "organizationId",
    "userId",
    "name",
    "email",
    "ssoRealm"
  })
  @Generated(value = "Generated by jsonSchema2Pojo")
  public class Organization implements Serializable {
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("organizationId")
    private UUID organizationId;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("userId")
    private UUID userId;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("name")
    private String name;
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("email")
    private String email;
    /**
     * This organization's SSO realm, if set via an SsoConfig
     *
     */
    @JsonProperty("ssoRealm")
    @JsonPropertyDescription("This organization's SSO realm, if set via an SsoConfig")
    private String ssoRealm;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
    private final static long serialVersionUID = -1817663732780981577L;
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("organizationId")
    public UUID getOrganizationId() {
      return organizationId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("organizationId")
    public void setOrganizationId(UUID organizationId) {
      this.organizationId = organizationId;
    }
  
    public Organization withOrganizationId(UUID organizationId) {
      this.organizationId = organizationId;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("userId")
    public UUID getUserId() {
      return userId;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("userId")
    public void setUserId(UUID userId) {
      this.userId = userId;
    }
  
    public Organization withUserId(UUID userId) {
      this.userId = userId;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("name")
    public String getName() {
      return name;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("name")
    public void setName(String name) {
      this.name = name;
    }
  
    public Organization withName(String name) {
      this.name = name;
      return this;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("email")
    public String getEmail() {
      return email;
    }
  
    /**
     *
     * (Required)
     *
     */
    @JsonProperty("email")
    public void setEmail(String email) {
      this.email = email;
    }
  
    public Organization withEmail(String email) {
      this.email = email;
      return this;
    }
  
    /**
     * This organization's SSO realm, if set via an SsoConfig
     *
     */
    @JsonProperty("ssoRealm")
    public String getSsoRealm() {
      return ssoRealm;
    }
  
    /**
     * This organization's SSO realm, if set via an SsoConfig
     *
     */
    @JsonProperty("ssoRealm")
    public void setSsoRealm(String ssoRealm) {
      this.ssoRealm = ssoRealm;
    }
  
    public Organization withSsoRealm(String ssoRealm) {
      this.ssoRealm = ssoRealm;
      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 Organization withAdditionalProperty(String name, Object value) {
      this.additionalProperties.put(name, value);
      return this;
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(Organization.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
      sb.append("organizationId");
      sb.append('=');
      sb.append(((this.organizationId == null) ? "<null>" : this.organizationId));
      sb.append(',');
      sb.append("userId");
      sb.append('=');
      sb.append(((this.userId == null) ? "<null>" : this.userId));
      sb.append(',');
      sb.append("name");
      sb.append('=');
      sb.append(((this.name == null) ? "<null>" : this.name));
      sb.append(',');
      sb.append("email");
      sb.append('=');
      sb.append(((this.email == null) ? "<null>" : this.email));
      sb.append(',');
      sb.append("ssoRealm");
      sb.append('=');
      sb.append(((this.ssoRealm == null) ? "<null>" : this.ssoRealm));
      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.name == null) ? 0 : this.name.hashCode()));
      result = ((result * 31) + ((this.ssoRealm == null) ? 0 : this.ssoRealm.hashCode()));
      result = ((result * 31) + ((this.additionalProperties == null) ? 0 : this.additionalProperties.hashCode()));
      result = ((result * 31) + ((this.userId == null) ? 0 : this.userId.hashCode()));
      result = ((result * 31) + ((this.email == null) ? 0 : this.email.hashCode()));
      return result;
    }
  
    @Override
    public boolean equals(Object other) {
      if (other == this) {
        return true;
      }
      if ((other instanceof Organization) == false) {
        return false;
      }
      Organization rhs = ((Organization) other);
      return (((((((this.organizationId == rhs.organizationId) || ((this.organizationId != null) && this.organizationId.equals(rhs.organizationId)))
          && ((this.name == rhs.name) || ((this.name != null) && this.name.equals(rhs.name))))
          && ((this.ssoRealm == rhs.ssoRealm) || ((this.ssoRealm != null) && this.ssoRealm.equals(rhs.ssoRealm))))
          && ((this.additionalProperties == rhs.additionalProperties)
              || ((this.additionalProperties != null) && this.additionalProperties.equals(rhs.additionalProperties))))
          && ((this.userId == rhs.userId) || ((this.userId != null) && this.userId.equals(rhs.userId))))
          && ((this.email == rhs.email) || ((this.email != null) && this.email.equals(rhs.email))));
    }
  
  }
  