/*
 * 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;
/**
* Path in the artifact where the rule is violated.
*/
    @ApiModel(description = "Path in the artifact where the rule is violated.")

public class RuleValidationResultViolatedPathDTO {
        public static final String SERIALIZED_NAME_PATH = "path";
        @SerializedName(SERIALIZED_NAME_PATH)
            private String path;

        public static final String SERIALIZED_NAME_DESCRIPTION = "description";
        @SerializedName(SERIALIZED_NAME_DESCRIPTION)
            private String description;


        public RuleValidationResultViolatedPathDTO path(String path) {
        
        this.path = path;
        return this;
        }

    /**
        * Path in the artifact where the rule is violated.
    * @return path
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(example = "info.title", value = "Path in the artifact where the rule is violated.")
    
    public String getPath() {
        return path;
    }


    public void setPath(String path) {
        this.path = path;
    }


        public RuleValidationResultViolatedPathDTO description(String description) {
        
        this.description = description;
        return this;
        }

    /**
        * Description of the path.
    * @return description
    **/
        @javax.annotation.Nullable
      @ApiModelProperty(example = "API name", value = "Description of the path.")
    
    public String getDescription() {
        return description;
    }


    public void setDescription(String description) {
        this.description = description;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) {
        return true;
        }
        if (o == null || getClass() != o.getClass()) {
        return false;
        }
            RuleValidationResultViolatedPathDTO ruleValidationResultViolatedPath = (RuleValidationResultViolatedPathDTO) o;
            return Objects.equals(this.path, ruleValidationResultViolatedPath.path) &&
            Objects.equals(this.description, ruleValidationResultViolatedPath.description);
    }

    @Override
    public int hashCode() {
        return Objects.hash(path, description);
    }


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

}

