/*
 * Internal Utility API
 * This API allows you to access internal data.
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package org.wso2.am.integration.clients.internal.api.dto;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * RevokeAPIKeyDTO
 */

public class RevokeAPIKeyDTO {
  @SerializedName("apiKey")
  private String apiKey = null;

  @SerializedName("expiryTime")
  private Long expiryTime = null;

  @SerializedName("tenantId")
  private Long tenantId = null;

  public RevokeAPIKeyDTO apiKey(String apiKey) {
    this.apiKey = apiKey;
    return this;
  }

   /**
   * API Key token.
   * @return apiKey
  **/
  @ApiModelProperty(value = "API Key token.")
  public String getApiKey() {
    return apiKey;
  }

  public void setApiKey(String apiKey) {
    this.apiKey = apiKey;
  }

  public RevokeAPIKeyDTO expiryTime(Long expiryTime) {
    this.expiryTime = expiryTime;
    return this;
  }

   /**
   * expiry timestamp.
   * @return expiryTime
  **/
  @ApiModelProperty(value = "expiry timestamp.")
  public Long getExpiryTime() {
    return expiryTime;
  }

  public void setExpiryTime(Long expiryTime) {
    this.expiryTime = expiryTime;
  }

  public RevokeAPIKeyDTO tenantId(Long tenantId) {
    this.tenantId = tenantId;
    return this;
  }

   /**
   * expiry timestamp.
   * @return tenantId
  **/
  @ApiModelProperty(value = "expiry timestamp.")
  public Long getTenantId() {
    return tenantId;
  }

  public void setTenantId(Long tenantId) {
    this.tenantId = tenantId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RevokeAPIKeyDTO revokeAPIKey = (RevokeAPIKeyDTO) o;
    return Objects.equals(this.apiKey, revokeAPIKey.apiKey) &&
        Objects.equals(this.expiryTime, revokeAPIKey.expiryTime) &&
        Objects.equals(this.tenantId, revokeAPIKey.tenantId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(apiKey, expiryTime, tenantId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RevokeAPIKeyDTO {\n");
    
    sb.append("    apiKey: ").append(toIndentedString(apiKey)).append("\n");
    sb.append("    expiryTime: ").append(toIndentedString(expiryTime)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

