Class AclPolicy

    • Constructor Detail

      • AclPolicy

        public AclPolicy()
      • AclPolicy

        public AclPolicy​(JsonObject json)
    • Method Detail

      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • getRules

        public String getRules()
      • getDatacenters

        public List<String> getDatacenters()
      • getNamespace

        public String getNamespace()
      • getId

        public String getId()
      • setName

        public AclPolicy setName​(String name)
        Sets a name. Must be unique
        Parameters:
        name - can contain alphanumeric characters, dashes -, and underscores _
        See Also:
        name
      • setDescription

        public AclPolicy setDescription​(String description)
        Sets an optional free-form description that is human-readable.
        Parameters:
        description -
        See Also:
        description
      • setRules

        public AclPolicy setRules​(String rules)
        Sets a rules. The format of the Rules property is detailed in the ACL Rules documentation
        Parameters:
        rules - rules in specified format
        See Also:
        rules, ACL Rules documentation
      • setDatacenters

        public AclPolicy setDatacenters​(List<String> datacenters)
        Sets an optional datacenters. By default, the policy is valid in all datacenters
        Parameters:
        datacenters - list of datacenters
        See Also:
        datacenters
      • setNamespace

        public AclPolicy setNamespace​(String namespace)
        Sets an optional namespace. Default value is ns URL query parameter or in the X-Consul-Namespace header, or 'default' namespace.
        Parameters:
        namespace -
        See Also:
        namespace