package org.wso2.analytics.apim.rest.api.proxy.dto;


import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.wso2.analytics.apim.rest.api.proxy.dto.ApplicationInfoDTO;
import java.util.Objects;

/**
 * ApplicationListDTO
 */
public class ApplicationListDTO   {
  @SerializedName("list")
  private List<ApplicationInfoDTO> list = new ArrayList<ApplicationInfoDTO>();

  public ApplicationListDTO list(List<ApplicationInfoDTO> list) {
    this.list = list;
    return this;
  }

  public ApplicationListDTO addListItem(ApplicationInfoDTO listItem) {
    this.list.add(listItem);
    return this;
  }

   /**
   * Get list
   * @return list
  **/
  @ApiModelProperty(value = "")
  public List<ApplicationInfoDTO> getList() {
    return list;
  }

  public void setList(List<ApplicationInfoDTO> list) {
    this.list = list;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApplicationListDTO applicationList = (ApplicationListDTO) o;
    return Objects.equals(this.list, applicationList.list);
  }

  @Override
  public int hashCode() {
    return Objects.hash(list);
  }

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

