001package com.box.sdkgen.box.jwtauth;
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 JwtConfigAppSettings extends SerializableObject {
010
011  /** App client ID */
012  @JsonProperty("clientID")
013  protected final String clientId;
014
015  /** App client secret */
016  protected final String clientSecret;
017
018  /** App auth settings */
019  protected final JwtConfigAppSettingsAppAuth appAuth;
020
021  public JwtConfigAppSettings(
022      @JsonProperty("clientID") String clientId,
023      @JsonProperty("clientSecret") String clientSecret,
024      @JsonProperty("appAuth") JwtConfigAppSettingsAppAuth appAuth) {
025    super();
026    this.clientId = clientId;
027    this.clientSecret = clientSecret;
028    this.appAuth = appAuth;
029  }
030
031  public String getClientId() {
032    return clientId;
033  }
034
035  public String getClientSecret() {
036    return clientSecret;
037  }
038
039  public JwtConfigAppSettingsAppAuth getAppAuth() {
040    return appAuth;
041  }
042
043  @Override
044  public boolean equals(Object o) {
045    if (this == o) {
046      return true;
047    }
048    if (o == null || getClass() != o.getClass()) {
049      return false;
050    }
051    JwtConfigAppSettings casted = (JwtConfigAppSettings) o;
052    return Objects.equals(clientId, casted.clientId)
053        && Objects.equals(clientSecret, casted.clientSecret)
054        && Objects.equals(appAuth, casted.appAuth);
055  }
056
057  @Override
058  public int hashCode() {
059    return Objects.hash(clientId, clientSecret, appAuth);
060  }
061
062  @Override
063  public String toString() {
064    return "JwtConfigAppSettings{"
065        + "clientId='"
066        + clientId
067        + '\''
068        + ", "
069        + "clientSecret='"
070        + clientSecret
071        + '\''
072        + ", "
073        + "appAuth='"
074        + appAuth
075        + '\''
076        + "}";
077  }
078}