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

com.aliyun.openservices.log.request.ListSavedSearchRequest Maven / Gradle / Ivy

package com.aliyun.openservices.log.request;

import com.aliyun.openservices.log.common.Consts;

public class ListSavedSearchRequest extends Request {

    private static final long serialVersionUID = 8075773886069792616L;

    public ListSavedSearchRequest(String project) {
        super(project);
        setSavedSearchName(Consts.DEFAULT_REQUEST_PARAM_SAVEDSEARCHNAME);
        setDisplayName("");
        setOffset(Consts.DEFAULT_REQUEST_PARAM_OFFSET);
        setSize(Consts.DEFAULT_REQUEST_PARAM_SIZE);
    }

    public ListSavedSearchRequest(String project, int offset, int size) {
        super(project);
        setSavedSearchName(Consts.DEFAULT_REQUEST_PARAM_SAVEDSEARCHNAME);
        setDisplayName("");
        setOffset(offset);
        setSize(size);
    }

    public ListSavedSearchRequest(String project, String savedSearchName, int offset, int size) {
        super(project);
        setSavedSearchName(savedSearchName);
        setOffset(offset);
        setSize(size);
    }

    public ListSavedSearchRequest(String project, String savedSearchName, String displayName, int offset, int size) {
        super(project);
        setSavedSearchName(savedSearchName);
        setDisplayName(displayName);
        setOffset(offset);
        setSize(size);
    }

    public String getSavedSearchName() {
        return GetParam(Consts.CONST_SAVEDSEARCH_NAME);
    }

    public void setSavedSearchName(String savedSearchName) {
        SetParam(Consts.CONST_SAVEDSEARCH_NAME, savedSearchName);
    }

    public String getDisplayName() {
        return GetParam(Consts.CONST_DISPLAY_NAME);
    }

    public void setDisplayName(String displayName) {
        SetParam(Consts.CONST_DISPLAY_NAME, displayName);
    }

    public int getOffset() {
        return Integer.parseInt(GetParam(Consts.CONST_OFFSET));
    }

    public void setOffset(int offset) {
        SetParam(Consts.CONST_OFFSET, String.valueOf(offset));
    }

    public int getSize() {
        return Integer.parseInt(GetParam(Consts.CONST_SIZE));
    }

    public void setSize(int size) {
        SetParam(Consts.CONST_SIZE, String.valueOf(size));
    }

    public void setLogstore(final String logstore) {
        SetParam(Consts.LOGSTORE_KEY, logstore);
    }

    public String getLogstore() {
        return GetParam(Consts.LOGSTORE_KEY);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy