/*
 * WSO2 API Manager - Governance
 * This document specifies a **RESTful API** for WSO2 **API Manager** - Governance. 
 *
 * The version of the OpenAPI document: v1.1
 * Contact: architecture@wso2.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.wso2.am.integration.clients.governance.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.governance.api.dto.ArtifactComplianceStatusDTO;
import org.wso2.am.integration.clients.governance.api.dto.PaginationDTO;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* Compliance status of a list of artifacts.
*/
    @ApiModel(description = "Compliance status of a list of artifacts.")

public class ArtifactComplianceListDTO {
        public static final String SERIALIZED_NAME_COUNT = "count";
        @SerializedName(SERIALIZED_NAME_COUNT)
            private Integer count;

        public static final String SERIALIZED_NAME_LIST = "list";
        @SerializedName(SERIALIZED_NAME_LIST)
            private List<ArtifactComplianceStatusDTO> list = null;

        public static final String SERIALIZED_NAME_PAGINATION = "pagination";
        @SerializedName(SERIALIZED_NAME_PAGINATION)
            private PaginationDTO pagination;


        public ArtifactComplianceListDTO count(Integer count) {
        
        this.count = count;
        return this;
        }

    /**
        * Number of artifact returned.
    * @return count
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(example = "10", value = "Number of artifact returned.")
    
    public Integer getCount() {
        return count;
    }


    public void setCount(Integer count) {
        this.count = count;
    }


        public ArtifactComplianceListDTO list(List<ArtifactComplianceStatusDTO> list) {
        
        this.list = list;
        return this;
        }

    /**
        * Get list
    * @return list
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(value = "")
    
    public List<ArtifactComplianceStatusDTO> getList() {
        return list;
    }


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


        public ArtifactComplianceListDTO pagination(PaginationDTO pagination) {
        
        this.pagination = pagination;
        return this;
        }

    /**
        * Get pagination
    * @return pagination
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(value = "")
    
    public PaginationDTO getPagination() {
        return pagination;
    }


    public void setPagination(PaginationDTO pagination) {
        this.pagination = pagination;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) {
        return true;
        }
        if (o == null || getClass() != o.getClass()) {
        return false;
        }
            ArtifactComplianceListDTO artifactComplianceList = (ArtifactComplianceListDTO) o;
            return Objects.equals(this.count, artifactComplianceList.count) &&
            Objects.equals(this.list, artifactComplianceList.list) &&
            Objects.equals(this.pagination, artifactComplianceList.pagination);
    }

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


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ArtifactComplianceListDTO {\n");
    sb.append("    count: ").append(toIndentedString(count)).append("\n");
    sb.append("    list: ").append(toIndentedString(list)).append("\n");
    sb.append("    pagination: ").append(toIndentedString(pagination)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n    ");
}

}

