/*
 * 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;
import java.util.ArrayList;
import java.util.List;
import org.wso2.am.integration.clients.internal.api.dto.RevokedJWTConsumerKeyDTO;
import org.wso2.am.integration.clients.internal.api.dto.RevokedJWTDTO;
import org.wso2.am.integration.clients.internal.api.dto.RevokedJWTSubjectEntityDTO;

/**
 * RevokedEventsDTO
 */

public class RevokedEventsDTO {
  @SerializedName("revokedJWTList")
  private List<RevokedJWTDTO> revokedJWTList = null;

  @SerializedName("revokedJWTSubjectEntityList")
  private List<RevokedJWTSubjectEntityDTO> revokedJWTSubjectEntityList = null;

  @SerializedName("revokedJWTConsumerKeyList")
  private List<RevokedJWTConsumerKeyDTO> revokedJWTConsumerKeyList = null;

  public RevokedEventsDTO revokedJWTList(List<RevokedJWTDTO> revokedJWTList) {
    this.revokedJWTList = revokedJWTList;
    return this;
  }

  public RevokedEventsDTO addRevokedJWTListItem(RevokedJWTDTO revokedJWTListItem) {
    if (this.revokedJWTList == null) {
      this.revokedJWTList = new ArrayList<>();
    }
    this.revokedJWTList.add(revokedJWTListItem);
    return this;
  }

   /**
   * Get revokedJWTList
   * @return revokedJWTList
  **/
  @ApiModelProperty(value = "")
  public List<RevokedJWTDTO> getRevokedJWTList() {
    return revokedJWTList;
  }

  public void setRevokedJWTList(List<RevokedJWTDTO> revokedJWTList) {
    this.revokedJWTList = revokedJWTList;
  }

  public RevokedEventsDTO revokedJWTSubjectEntityList(List<RevokedJWTSubjectEntityDTO> revokedJWTSubjectEntityList) {
    this.revokedJWTSubjectEntityList = revokedJWTSubjectEntityList;
    return this;
  }

  public RevokedEventsDTO addRevokedJWTSubjectEntityListItem(RevokedJWTSubjectEntityDTO revokedJWTSubjectEntityListItem) {
    if (this.revokedJWTSubjectEntityList == null) {
      this.revokedJWTSubjectEntityList = new ArrayList<>();
    }
    this.revokedJWTSubjectEntityList.add(revokedJWTSubjectEntityListItem);
    return this;
  }

   /**
   * Get revokedJWTSubjectEntityList
   * @return revokedJWTSubjectEntityList
  **/
  @ApiModelProperty(value = "")
  public List<RevokedJWTSubjectEntityDTO> getRevokedJWTSubjectEntityList() {
    return revokedJWTSubjectEntityList;
  }

  public void setRevokedJWTSubjectEntityList(List<RevokedJWTSubjectEntityDTO> revokedJWTSubjectEntityList) {
    this.revokedJWTSubjectEntityList = revokedJWTSubjectEntityList;
  }

  public RevokedEventsDTO revokedJWTConsumerKeyList(List<RevokedJWTConsumerKeyDTO> revokedJWTConsumerKeyList) {
    this.revokedJWTConsumerKeyList = revokedJWTConsumerKeyList;
    return this;
  }

  public RevokedEventsDTO addRevokedJWTConsumerKeyListItem(RevokedJWTConsumerKeyDTO revokedJWTConsumerKeyListItem) {
    if (this.revokedJWTConsumerKeyList == null) {
      this.revokedJWTConsumerKeyList = new ArrayList<>();
    }
    this.revokedJWTConsumerKeyList.add(revokedJWTConsumerKeyListItem);
    return this;
  }

   /**
   * Get revokedJWTConsumerKeyList
   * @return revokedJWTConsumerKeyList
  **/
  @ApiModelProperty(value = "")
  public List<RevokedJWTConsumerKeyDTO> getRevokedJWTConsumerKeyList() {
    return revokedJWTConsumerKeyList;
  }

  public void setRevokedJWTConsumerKeyList(List<RevokedJWTConsumerKeyDTO> revokedJWTConsumerKeyList) {
    this.revokedJWTConsumerKeyList = revokedJWTConsumerKeyList;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RevokedEventsDTO revokedEvents = (RevokedEventsDTO) o;
    return Objects.equals(this.revokedJWTList, revokedEvents.revokedJWTList) &&
        Objects.equals(this.revokedJWTSubjectEntityList, revokedEvents.revokedJWTSubjectEntityList) &&
        Objects.equals(this.revokedJWTConsumerKeyList, revokedEvents.revokedJWTConsumerKeyList);
  }

  @Override
  public int hashCode() {
    return Objects.hash(revokedJWTList, revokedJWTSubjectEntityList, revokedJWTConsumerKeyList);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RevokedEventsDTO {\n");
    
    sb.append("    revokedJWTList: ").append(toIndentedString(revokedJWTList)).append("\n");
    sb.append("    revokedJWTSubjectEntityList: ").append(toIndentedString(revokedJWTSubjectEntityList)).append("\n");
    sb.append("    revokedJWTConsumerKeyList: ").append(toIndentedString(revokedJWTConsumerKeyList)).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    ");
  }

}

