001package com.box.sdkgen.managers.emailaliases;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.fasterxml.jackson.annotation.JsonFilter;
005import com.fasterxml.jackson.annotation.JsonProperty;
006import java.util.Objects;
007
008@JsonFilter("nullablePropertyFilter")
009public class CreateUserEmailAliasRequestBody extends SerializableObject {
010
011  /**
012   * The email address to add to the account as an alias.
013   *
014   * <p>Note: The domain of the email alias needs to be registered to your enterprise. See the
015   * [domain verification guide](
016   * https://support.box.com/hc/en-us/articles/4408619650579-Domain-Verification ) for steps to add
017   * a new domain.
018   */
019  protected final String email;
020
021  public CreateUserEmailAliasRequestBody(@JsonProperty("email") String email) {
022    super();
023    this.email = email;
024  }
025
026  public String getEmail() {
027    return email;
028  }
029
030  @Override
031  public boolean equals(Object o) {
032    if (this == o) {
033      return true;
034    }
035    if (o == null || getClass() != o.getClass()) {
036      return false;
037    }
038    CreateUserEmailAliasRequestBody casted = (CreateUserEmailAliasRequestBody) o;
039    return Objects.equals(email, casted.email);
040  }
041
042  @Override
043  public int hashCode() {
044    return Objects.hash(email);
045  }
046
047  @Override
048  public String toString() {
049    return "CreateUserEmailAliasRequestBody{" + "email='" + email + '\'' + "}";
050  }
051}