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

com.ifountain.opsgenie.client.swagger.model.BaseAlert Maven / Gradle / Ivy

/*
 * OpsGenie REST API
 * OpsGenie API Description
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ifountain.opsgenie.client.swagger.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.ObjectUtils;
import org.joda.time.DateTime;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * BaseAlert
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-07-13T16:12:27.505+03:00")
public class BaseAlert {
    @JsonProperty("id")
    private String id = null;

    @JsonProperty("tinyId")
    private String tinyId = null;

    @JsonProperty("alias")
    private String alias = null;

    @JsonProperty("message")
    private String message = null;

    @JsonProperty("status")
    private String status = null;

    @JsonProperty("acknowledged")
    private Boolean acknowledged = null;

    @JsonProperty("isSeen")
    private Boolean isSeen = null;

    @JsonProperty("tags")
    private List tags = new ArrayList();

    @JsonProperty("snoozed")
    private Boolean snoozed = null;

    @JsonProperty("snoozedUntil")
    private DateTime snoozedUntil = null;

    @JsonProperty("count")
    private Integer count = null;

    @JsonProperty("lastOccurredAt")
    private DateTime lastOccurredAt = null;

    @JsonProperty("createdAt")
    private DateTime createdAt = null;

    @JsonProperty("updatedAt")
    private DateTime updatedAt = null;

    @JsonProperty("source")
    private String source = null;

    @JsonProperty("owner")
    private String owner = null;

    @JsonProperty("priority")
    private String priority = null;

    @JsonProperty("teams")
    private List teams = new ArrayList();

    @JsonProperty("integration")
    private AlertIntegration integration = null;

    @JsonProperty("report")
    private AlertReport report = null;

    public BaseAlert id(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get id
     *
     * @return id
     **/
    @NotNull
    @ApiModelProperty(required = true, value = "")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BaseAlert tinyId(String tinyId) {
        this.tinyId = tinyId;
        return this;
    }

    /**
     * Get tinyId
     *
     * @return tinyId
     **/
    @ApiModelProperty(value = "")
    public String getTinyId() {
        return tinyId;
    }

    public void setTinyId(String tinyId) {
        this.tinyId = tinyId;
    }

    public BaseAlert alias(String alias) {
        this.alias = alias;
        return this;
    }

    /**
     * Get alias
     *
     * @return alias
     **/
    @ApiModelProperty(value = "")
    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public BaseAlert message(String message) {
        this.message = message;
        return this;
    }

    /**
     * Get message
     *
     * @return message
     **/
    @ApiModelProperty(value = "")
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public BaseAlert status(String status) {
        this.status = status;
        return this;
    }

    /**
     * Get status
     *
     * @return status
     **/
    @ApiModelProperty(value = "")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BaseAlert acknowledged(Boolean acknowledged) {
        this.acknowledged = acknowledged;
        return this;
    }

    /**
     * Get acknowledged
     *
     * @return acknowledged
     **/
    @ApiModelProperty(value = "")
    public Boolean getAcknowledged() {
        return acknowledged;
    }

    public void setAcknowledged(Boolean acknowledged) {
        this.acknowledged = acknowledged;
    }

    public BaseAlert isSeen(Boolean isSeen) {
        this.isSeen = isSeen;
        return this;
    }

    /**
     * Get isSeen
     *
     * @return isSeen
     **/
    @ApiModelProperty(value = "")
    public Boolean getIsSeen() {
        return isSeen;
    }

    public void setIsSeen(Boolean isSeen) {
        this.isSeen = isSeen;
    }

    public BaseAlert tags(List tags) {
        this.tags = tags;
        return this;
    }

    public BaseAlert addTagsItem(String tagsItem) {
        this.tags.add(tagsItem);
        return this;
    }

    /**
     * Get tags
     * @return tags
     **/
    @ApiModelProperty(value = "")
    public List getTags() {
        return tags;
    }

    public void setTags(List tags) {
        this.tags = tags;
    }

    public BaseAlert snoozed(Boolean snoozed) {
        this.snoozed = snoozed;
        return this;
    }

    /**
     * Get snoozed
     * @return snoozed
     **/
    @ApiModelProperty(value = "")
    public Boolean getSnoozed() {
        return snoozed;
    }

    public void setSnoozed(Boolean snoozed) {
        this.snoozed = snoozed;
    }

    public BaseAlert snoozedUntil(DateTime snoozedUntil) {
        this.snoozedUntil = snoozedUntil;
        return this;
    }

    /**
     * Get snoozedUntil
     *
     * @return snoozedUntil
     **/
    @ApiModelProperty(value = "")
    public DateTime getSnoozedUntil() {
        return snoozedUntil;
    }

    public void setSnoozedUntil(DateTime snoozedUntil) {
        this.snoozedUntil = snoozedUntil;
    }

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

    /**
     * Get count
     * @return count
     **/
    @ApiModelProperty(value = "")
    public Integer getCount() {
        return count;
    }

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

    public BaseAlert lastOccurredAt(DateTime lastOccurredAt) {
        this.lastOccurredAt = lastOccurredAt;
        return this;
    }

    /**
     * Get lastOccurredAt
     * @return lastOccurredAt
     **/
    @ApiModelProperty(value = "")
    public DateTime getLastOccurredAt() {
        return lastOccurredAt;
    }

    public void setLastOccurredAt(DateTime lastOccurredAt) {
        this.lastOccurredAt = lastOccurredAt;
    }

    public BaseAlert createdAt(DateTime createdAt) {
        this.createdAt = createdAt;
        return this;
    }

    /**
     * Get createdAt
     * @return createdAt
     **/
    @ApiModelProperty(value = "")
    public DateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(DateTime createdAt) {
        this.createdAt = createdAt;
    }

    public BaseAlert updatedAt(DateTime updatedAt) {
        this.updatedAt = updatedAt;
        return this;
    }

    /**
     * Get updatedAt
     * @return updatedAt
     **/
    @ApiModelProperty(value = "")
    public DateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(DateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public BaseAlert source(String source) {
        this.source = source;
        return this;
    }

    /**
     * Get source
     * @return source
     **/
    @ApiModelProperty(value = "")
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public BaseAlert owner(String owner) {
        this.owner = owner;
        return this;
    }

    /**
     * Get owner
     * @return owner
     **/
    @ApiModelProperty(value = "")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public BaseAlert priority(String priority) {
        this.priority = priority;
        return this;
    }

    /**
     * Get priority
     * @return priority
     **/
    @ApiModelProperty(value = "")
    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public BaseAlert teams(List teams) {
        this.teams = teams;
        return this;
    }

    public BaseAlert addTeamsItem(TeamMeta teamsItem) {
        this.teams.add(teamsItem);
        return this;
    }

    /**
     * Get teams
     * @return teams
     **/
    @ApiModelProperty(value = "")
    public List getTeams() {
        return teams;
    }

    public void setTeams(List teams) {
        this.teams = teams;
    }

    public BaseAlert integration(AlertIntegration integration) {
        this.integration = integration;
        return this;
    }

    /**
     * Get integration
     * @return integration
     **/
    @ApiModelProperty(value = "")
    public AlertIntegration getIntegration() {
        return integration;
    }

    public void setIntegration(AlertIntegration integration) {
        this.integration = integration;
    }

    public BaseAlert report(AlertReport report) {
        this.report = report;
        return this;
    }

    /**
     * Get report
     * @return report
     **/
    @ApiModelProperty(value = "")
    public AlertReport getReport() {
        return report;
    }

    public void setReport(AlertReport report) {
        this.report = report;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        BaseAlert baseAlert = (BaseAlert) o;
        return ObjectUtils.equals(this.id, baseAlert.id) &&
                ObjectUtils.equals(this.tinyId, baseAlert.tinyId) &&
                ObjectUtils.equals(this.alias, baseAlert.alias) &&
                ObjectUtils.equals(this.message, baseAlert.message) &&
                ObjectUtils.equals(this.status, baseAlert.status) &&
                ObjectUtils.equals(this.acknowledged, baseAlert.acknowledged) &&
                ObjectUtils.equals(this.isSeen, baseAlert.isSeen) &&
                ObjectUtils.equals(this.tags, baseAlert.tags) &&
                ObjectUtils.equals(this.snoozed, baseAlert.snoozed) &&
                ObjectUtils.equals(this.snoozedUntil, baseAlert.snoozedUntil) &&
                ObjectUtils.equals(this.count, baseAlert.count) &&
                ObjectUtils.equals(this.lastOccurredAt, baseAlert.lastOccurredAt) &&
                ObjectUtils.equals(this.createdAt, baseAlert.createdAt) &&
                ObjectUtils.equals(this.updatedAt, baseAlert.updatedAt) &&
                ObjectUtils.equals(this.source, baseAlert.source) &&
                ObjectUtils.equals(this.owner, baseAlert.owner) &&
                ObjectUtils.equals(this.priority, baseAlert.priority) &&
                ObjectUtils.equals(this.teams, baseAlert.teams) &&
                ObjectUtils.equals(this.integration, baseAlert.integration) &&
                ObjectUtils.equals(this.report, baseAlert.report);
    }

    @Override
    public int hashCode() {
        return ObjectUtils.hashCodeMulti(id, tinyId, alias, message, status, acknowledged, isSeen, tags, snoozed, snoozedUntil, count, lastOccurredAt, createdAt, updatedAt, source, owner, priority, teams, integration, report);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class BaseAlert {\n");

        sb.append("    id: ").append(toIndentedString(id)).append("\n");
        sb.append("    tinyId: ").append(toIndentedString(tinyId)).append("\n");
        sb.append("    alias: ").append(toIndentedString(alias)).append("\n");
        sb.append("    message: ").append(toIndentedString(message)).append("\n");
        sb.append("    status: ").append(toIndentedString(status)).append("\n");
        sb.append("    acknowledged: ").append(toIndentedString(acknowledged)).append("\n");
        sb.append("    isSeen: ").append(toIndentedString(isSeen)).append("\n");
        sb.append("    tags: ").append(toIndentedString(tags)).append("\n");
        sb.append("    snoozed: ").append(toIndentedString(snoozed)).append("\n");
        sb.append("    snoozedUntil: ").append(toIndentedString(snoozedUntil)).append("\n");
        sb.append("    count: ").append(toIndentedString(count)).append("\n");
        sb.append("    lastOccurredAt: ").append(toIndentedString(lastOccurredAt)).append("\n");
        sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
        sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
        sb.append("    source: ").append(toIndentedString(source)).append("\n");
        sb.append("    owner: ").append(toIndentedString(owner)).append("\n");
        sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
        sb.append("    teams: ").append(toIndentedString(teams)).append("\n");
        sb.append("    integration: ").append(toIndentedString(integration)).append("\n");
        sb.append("    report: ").append(toIndentedString(report)).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