/*
 * 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 com.fasterxml.jackson.annotation.JsonCreator;
/**
* Summary of compliance of artifacts evaluated against a specific policy.
*/
    @ApiModel(description = "Summary of compliance of artifacts evaluated against a specific policy.")

public class ArtifactComplianceSummaryForPolicyDTO {
        public static final String SERIALIZED_NAME_COMPLIANT = "compliant";
        @SerializedName(SERIALIZED_NAME_COMPLIANT)
            private Integer compliant;

        public static final String SERIALIZED_NAME_NON_COMPLIANT = "nonCompliant";
        @SerializedName(SERIALIZED_NAME_NON_COMPLIANT)
            private Integer nonCompliant;


        public ArtifactComplianceSummaryForPolicyDTO compliant(Integer compliant) {
        
        this.compliant = compliant;
        return this;
        }

    /**
        * Number of compliant artifacts.
    * @return compliant
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(example = "6", value = "Number of compliant artifacts.")
    
    public Integer getCompliant() {
        return compliant;
    }


    public void setCompliant(Integer compliant) {
        this.compliant = compliant;
    }


        public ArtifactComplianceSummaryForPolicyDTO nonCompliant(Integer nonCompliant) {
        
        this.nonCompliant = nonCompliant;
        return this;
        }

    /**
        * Number of non-compliant artifacts.
    * @return nonCompliant
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(example = "4", value = "Number of non-compliant artifacts.")
    
    public Integer getNonCompliant() {
        return nonCompliant;
    }


    public void setNonCompliant(Integer nonCompliant) {
        this.nonCompliant = nonCompliant;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) {
        return true;
        }
        if (o == null || getClass() != o.getClass()) {
        return false;
        }
            ArtifactComplianceSummaryForPolicyDTO artifactComplianceSummaryForPolicy = (ArtifactComplianceSummaryForPolicyDTO) o;
            return Objects.equals(this.compliant, artifactComplianceSummaryForPolicy.compliant) &&
            Objects.equals(this.nonCompliant, artifactComplianceSummaryForPolicy.nonCompliant);
    }

    @Override
    public int hashCode() {
        return Objects.hash(compliant, nonCompliant);
    }


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

}

