All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.osm.v2.model.IncidentTempV2 Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.osm.v2.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * IncidentTempV2
 */
public class IncidentTempV2 {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "incident_template_id")

    private String incidentTemplateId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "incident_template_name")

    private String incidentTemplateName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "incident_template_content")

    private String incidentTemplateContent;

    public IncidentTempV2 withIncidentTemplateId(String incidentTemplateId) {
        this.incidentTemplateId = incidentTemplateId;
        return this;
    }

    /**
     * 模板id
     * @return incidentTemplateId
     */
    public String getIncidentTemplateId() {
        return incidentTemplateId;
    }

    public void setIncidentTemplateId(String incidentTemplateId) {
        this.incidentTemplateId = incidentTemplateId;
    }

    public IncidentTempV2 withIncidentTemplateName(String incidentTemplateName) {
        this.incidentTemplateName = incidentTemplateName;
        return this;
    }

    /**
     * 模板名称
     * @return incidentTemplateName
     */
    public String getIncidentTemplateName() {
        return incidentTemplateName;
    }

    public void setIncidentTemplateName(String incidentTemplateName) {
        this.incidentTemplateName = incidentTemplateName;
    }

    public IncidentTempV2 withIncidentTemplateContent(String incidentTemplateContent) {
        this.incidentTemplateContent = incidentTemplateContent;
        return this;
    }

    /**
     * 模板内容
     * @return incidentTemplateContent
     */
    public String getIncidentTemplateContent() {
        return incidentTemplateContent;
    }

    public void setIncidentTemplateContent(String incidentTemplateContent) {
        this.incidentTemplateContent = incidentTemplateContent;
    }

    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        IncidentTempV2 incidentTempV2 = (IncidentTempV2) o;
        return Objects.equals(this.incidentTemplateId, incidentTempV2.incidentTemplateId)
            && Objects.equals(this.incidentTemplateName, incidentTempV2.incidentTemplateName)
            && Objects.equals(this.incidentTemplateContent, incidentTempV2.incidentTemplateContent);
    }

    @Override
    public int hashCode() {
        return Objects.hash(incidentTemplateId, incidentTemplateName, incidentTemplateContent);
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy