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

com.ifountain.opsgenie.client.model.alert.BaseAlertRequestWithParameters Maven / Gradle / Ivy

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

import com.ifountain.opsgenie.client.model.BaseResponse;

/**
 * @author Mehmet Mustafa Demir
 * @deprecated As of release 2.8.0, will not be supported
 */
@Deprecated
public abstract class BaseAlertRequestWithParameters extends BaseAlertRequestWithId {
    private String note;
    private String user;
    private String source;

    /**
     * The source of action.
     */
    public String getSource() {
        return source;
    }

    /**
     * Sets the source of action.
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * The note that will be added to alert.
     */
    public String getNote() {
        return note;
    }

    /**
     * Sets the note that will be added to alert.
     */
    public void setNote(String note) {
        this.note = note;
    }

    /**
     * The user who is performing the add note operation.
     */
    public String getUser() {
        return user;
    }

    /**
     * Sets the user who is performing the add note operation.
     */
    public void setUser(String user) {
        this.user = user;
    }

    public K withUser(String user) {
        this.user = user;
        return (K) this;
    }

    public K withNote(String note) {
        this.note = note;
        return (K) this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy