Class PolicyRule

    • Constructor Detail

      • PolicyRule

        public PolicyRule()
      • PolicyRule

        public PolicyRule​(PolicyRule 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

      • getAction

        public String getAction()
        Get 策略,ACCEPT 或者 DROP
        Returns:
        Action 策略,ACCEPT 或者 DROP
      • setAction

        public void setAction​(String Action)
        Set 策略,ACCEPT 或者 DROP
        Parameters:
        Action - 策略,ACCEPT 或者 DROP
      • getCidrIp

        public String getCidrIp()
        Get 来源或目的 IP 或 IP 段,例如172.16.0.0/12
        Returns:
        CidrIp 来源或目的 IP 或 IP 段,例如172.16.0.0/12
      • setCidrIp

        public void setCidrIp​(String CidrIp)
        Set 来源或目的 IP 或 IP 段,例如172.16.0.0/12
        Parameters:
        CidrIp - 来源或目的 IP 或 IP 段,例如172.16.0.0/12
      • getPortRange

        public String getPortRange()
        Get 端口
        Returns:
        PortRange 端口
      • setPortRange

        public void setPortRange​(String PortRange)
        Set 端口
        Parameters:
        PortRange - 端口
      • getIpProtocol

        public String getIpProtocol()
        Get 网络协议,支持 UDP、TCP 等
        Returns:
        IpProtocol 网络协议,支持 UDP、TCP 等
      • setIpProtocol

        public void setIpProtocol​(String IpProtocol)
        Set 网络协议,支持 UDP、TCP 等
        Parameters:
        IpProtocol - 网络协议,支持 UDP、TCP 等
      • getDescription

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

        public void setDescription​(String Description)
        Set 规则描述
        Parameters:
        Description - 规则描述