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

public class PolicyAdherenceListDTO {
        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<PolicyAdherenceStatusDTO> list = null;

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


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

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


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


        public PolicyAdherenceListDTO list(List<PolicyAdherenceStatusDTO> list) {
        
        this.list = list;
        return this;
        }

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


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


        public PolicyAdherenceListDTO 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;
        }
            PolicyAdherenceListDTO policyAdherenceList = (PolicyAdherenceListDTO) o;
            return Objects.equals(this.count, policyAdherenceList.count) &&
            Objects.equals(this.list, policyAdherenceList.list) &&
            Objects.equals(this.pagination, policyAdherenceList.pagination);
    }

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


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

}

