/*
 * Copyright 2014 NAVER Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.navercorp.pinpoint.web.alarm.vo;

/**
 * @author minwoo.jung
 */
public class Rule {

    private String ruleId;
    private String applicationId;
    private String serviceType;
    private String checkerName;
    private Integer threshold;
    private String userGroupId;
    private boolean smsSend;
    private boolean emailSend;
    private String notes;

    public Rule() {
    }

    public Rule(String applicationId, String serviceType, String checkerName, Integer Threshold, String userGroupId, boolean smsSend, boolean emailSend, String notes) {
        this.applicationId = applicationId;
        this.serviceType = serviceType;
        this.checkerName = checkerName;
        this.threshold = Threshold;
        this.userGroupId = userGroupId;
        this.smsSend = smsSend;
        this.emailSend = emailSend;
        this.notes = notes;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }
    
    public String getCheckerName() {
        return checkerName;
    }

    public void setCheckerName(String checkerName) {
        this.checkerName = checkerName;
    }

    public Integer getThreshold() {
        return threshold;
    }

    public void setThreshold(Integer threshold) {
        this.threshold = threshold;
    }

    public String getUserGroupId() {
        return userGroupId;
    }

    public void setuserGroupId(String userGroupId) {
        this.userGroupId = userGroupId;
    }

    public boolean isSmsSend() {
        return smsSend;
    }

    public void setSmsSend(boolean smsSend) {
        this.smsSend = smsSend;
    }

    public boolean isEmailSend() {
        return emailSend;
    }

    public void setEmailSend(boolean emailSend) {
        this.emailSend = emailSend;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
}

@@ -3031,12 +3031,756 @@
 %0D%0A    %7D%0D
+%0A%0D%0A    @Override%0D%0A    public String toString() %7B%0D%0A        final StringBuilder sb = new StringBuilder(%22Rule%7B%22);%0D%0A        sb.append(%22ruleId='%22).append(ruleId).append('%5C'');%0D%0A        sb.append(%22, applicationId='%22).append(applicationId).append('%5C'');%0D%0A        sb.append(%22, serviceType='%22).append(serviceType).append('%5C'');%0D%0A        sb.append(%22, checkerName='%22).append(checkerName).append('%5C'');%0D%0A        sb.append(%22, threshold=%22).append(threshold);%0D%0A        sb.append(%22, userGroupId='%22).append(userGroupId).append('%5C'');%0D%0A        sb.append(%22, smsSend=%22).append(smsSend);%0D%0A        sb.append(%22, emailSend=%22).append(emailSend);%0D%0A        sb.append(%22, notes='%22).append(notes).append('%5C'');%0D%0A        sb.append('%7D');%0D%0A        return sb.toString();%0D%0A    %7D%0D
 %0A%7D%0D%0A

add toString method