001package com.box.sdkgen.managers.termsofserviceuserstatuses;
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 UpdateTermsOfServiceStatusForUserByIdRequestBody extends SerializableObject {
010
011  /** Whether the user has accepted the terms. */
012  @JsonProperty("is_accepted")
013  protected final boolean isAccepted;
014
015  public UpdateTermsOfServiceStatusForUserByIdRequestBody(
016      @JsonProperty("is_accepted") boolean isAccepted) {
017    super();
018    this.isAccepted = isAccepted;
019  }
020
021  public boolean getIsAccepted() {
022    return isAccepted;
023  }
024
025  @Override
026  public boolean equals(Object o) {
027    if (this == o) {
028      return true;
029    }
030    if (o == null || getClass() != o.getClass()) {
031      return false;
032    }
033    UpdateTermsOfServiceStatusForUserByIdRequestBody casted =
034        (UpdateTermsOfServiceStatusForUserByIdRequestBody) o;
035    return Objects.equals(isAccepted, casted.isAccepted);
036  }
037
038  @Override
039  public int hashCode() {
040    return Objects.hash(isAccepted);
041  }
042
043  @Override
044  public String toString() {
045    return "UpdateTermsOfServiceStatusForUserByIdRequestBody{"
046        + "isAccepted='"
047        + isAccepted
048        + '\''
049        + "}";
050  }
051}