TopicAuthorizedAppVO.java 3.1 KB
Newer Older
Z
zengqiao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
package com.xiaojukeji.kafka.manager.common.entity.vo.normal.topic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author zhongyuankai
 * @date 20/4/8
 */
@ApiModel(value = "TopicApp信息")
public class TopicAuthorizedAppVO {
    @ApiModelProperty(value = "Topic名称")
    private String topicName;

    @ApiModelProperty(value = "应用id")
    private String appId;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "负责人")
    private String appPrincipals;

    @ApiModelProperty(value = "发送Quota(B/s)")
    private Long produceQuota;

    @ApiModelProperty(value = "消费Quota(B/s)")
    private Long consumerQuota;

    @ApiModelProperty(value = "生产被限流")
    private Boolean produceThrottled;

    @ApiModelProperty(value = "消费被限流")
    private Boolean fetchThrottled;

    @ApiModelProperty(value = "权限, 0:无权限, 1:可消费, 2:可发送, 3:可消费发送, 4:可管理")
    private Integer access;

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppPrincipals() {
        return appPrincipals;
    }

    public void setAppPrincipals(String appPrincipals) {
        this.appPrincipals = appPrincipals;
    }

    public Long getProduceQuota() {
        return produceQuota;
    }

    public void setProduceQuota(Long produceQuota) {
        this.produceQuota = produceQuota;
    }

    public Long getConsumerQuota() {
        return consumerQuota;
    }

    public void setConsumerQuota(Long consumerQuota) {
        this.consumerQuota = consumerQuota;
    }

    public Boolean getProduceThrottled() {
        return produceThrottled;
    }

    public void setProduceThrottled(Boolean produceThrottled) {
        this.produceThrottled = produceThrottled;
    }

    public Boolean getFetchThrottled() {
        return fetchThrottled;
    }

    public void setFetchThrottled(Boolean fetchThrottled) {
        this.fetchThrottled = fetchThrottled;
    }

    public Integer getAccess() {
        return access;
    }

    public void setAccess(Integer access) {
        this.access = access;
    }

    @Override
    public String toString() {
        return "TopicAppVO{" +
                "topicName='" + topicName + '\'' +
                ", appId='" + appId + '\'' +
                ", appName='" + appName + '\'' +
                ", appPrincipals='" + appPrincipals + '\'' +
                ", produceQuota=" + produceQuota +
                ", consumerQuota=" + consumerQuota +
                ", produceThrottled=" + produceThrottled +
                ", fetchThrottled=" + fetchThrottled +
                ", access=" + access +
                '}';
    }
}