Class CreateRuleItem

    • Constructor Detail

      • CreateRuleItem

        public CreateRuleItem()
      • CreateRuleItem

        public CreateRuleItem​(CreateRuleItem source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getSourceContent

        public String getSourceContent()
        Get 访问源示例: net:IP/CIDR(192.168.0.2)
        Returns:
        SourceContent 访问源示例: net:IP/CIDR(192.168.0.2)
      • setSourceContent

        public void setSourceContent​(String SourceContent)
        Set 访问源示例: net:IP/CIDR(192.168.0.2)
        Parameters:
        SourceContent - 访问源示例: net:IP/CIDR(192.168.0.2)
      • getSourceType

        public String getSourceType()
        Get 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
        Returns:
        SourceType 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
      • setSourceType

        public void setSourceType​(String SourceType)
        Set 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
        Parameters:
        SourceType - 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
      • getTargetContent

        public String getTargetContent()
        Get 访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
        Returns:
        TargetContent 访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
      • setTargetContent

        public void setTargetContent​(String TargetContent)
        Set 访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
        Parameters:
        TargetContent - 访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
      • getTargetType

        public String getTargetType()
        Get 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
        Returns:
        TargetType 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
      • setTargetType

        public void setTargetType​(String TargetType)
        Set 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
        Parameters:
        TargetType - 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
      • getProtocol

        public String getProtocol()
        Get 协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
        Returns:
        Protocol 协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
      • setProtocol

        public void setProtocol​(String Protocol)
        Set 协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
        Parameters:
        Protocol - 协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
      • getRuleAction

        public String getRuleAction()
        Get 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
        Returns:
        RuleAction 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
      • setRuleAction

        public void setRuleAction​(String RuleAction)
        Set 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
        Parameters:
        RuleAction - 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
      • getPort

        public String getPort()
        Get 访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
        Returns:
        Port 访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
      • setPort

        public void setPort​(String Port)
        Set 访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
        Parameters:
        Port - 访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
      • getDirection

        public Long getDirection()
        Get 规则方向:1,入站;0,出站
        Returns:
        Direction 规则方向:1,入站;0,出站
      • setDirection

        public void setDirection​(Long Direction)
        Set 规则方向:1,入站;0,出站
        Parameters:
        Direction - 规则方向:1,入站;0,出站
      • getOrderIndex

        public Long getOrderIndex()
        Get 规则序号
        Returns:
        OrderIndex 规则序号
      • setOrderIndex

        public void setOrderIndex​(Long OrderIndex)
        Set 规则序号
        Parameters:
        OrderIndex - 规则序号
      • getUuid

        public Long getUuid()
        Get 规则对应的唯一id,创建规则时无需填写
        Returns:
        Uuid 规则对应的唯一id,创建规则时无需填写
      • setUuid

        public void setUuid​(Long Uuid)
        Set 规则对应的唯一id,创建规则时无需填写
        Parameters:
        Uuid - 规则对应的唯一id,创建规则时无需填写
      • getEnable

        public String getEnable()
        Get 规则状态,true表示启用,false表示禁用
        Returns:
        Enable 规则状态,true表示启用,false表示禁用
      • setEnable

        public void setEnable​(String Enable)
        Set 规则状态,true表示启用,false表示禁用
        Parameters:
        Enable - 规则状态,true表示启用,false表示禁用
      • getDescription

        public String getDescription()
        Get 描述
        Returns:
        Description 描述
      • setDescription

        public void setDescription​(String Description)
        Set 描述
        Parameters:
        Description - 描述
      • getScope

        public String getScope()
        Get all
        Returns:
        Scope all
      • setScope

        public void setScope​(String Scope)
        Set all
        Parameters:
        Scope - all
      • getRuleSource

        public Long getRuleSource()
        Get 0,正常规则添加;1,入侵检测添加
        Returns:
        RuleSource 0,正常规则添加;1,入侵检测添加
      • setRuleSource

        public void setRuleSource​(Long RuleSource)
        Set 0,正常规则添加;1,入侵检测添加
        Parameters:
        RuleSource - 0,正常规则添加;1,入侵检测添加
      • getLogId

        public String getLogId()
        Get 告警Id
        Returns:
        LogId 告警Id
      • setLogId

        public void setLogId​(String LogId)
        Set 告警Id
        Parameters:
        LogId - 告警Id