001package com.box.sdkgen.managers.shieldinformationbarriers;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.box.sdkgen.schemas.enterprisebase.EnterpriseBase;
005import com.fasterxml.jackson.annotation.JsonFilter;
006import com.fasterxml.jackson.annotation.JsonProperty;
007import java.util.Objects;
008
009@JsonFilter("nullablePropertyFilter")
010public class CreateShieldInformationBarrierRequestBody extends SerializableObject {
011
012  /** The `type` and `id` of enterprise this barrier is under. */
013  protected final EnterpriseBase enterprise;
014
015  public CreateShieldInformationBarrierRequestBody(
016      @JsonProperty("enterprise") EnterpriseBase enterprise) {
017    super();
018    this.enterprise = enterprise;
019  }
020
021  public EnterpriseBase getEnterprise() {
022    return enterprise;
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    CreateShieldInformationBarrierRequestBody casted =
034        (CreateShieldInformationBarrierRequestBody) o;
035    return Objects.equals(enterprise, casted.enterprise);
036  }
037
038  @Override
039  public int hashCode() {
040    return Objects.hash(enterprise);
041  }
042
043  @Override
044  public String toString() {
045    return "CreateShieldInformationBarrierRequestBody{" + "enterprise='" + enterprise + '\'' + "}";
046  }
047}