Class PolicyAttribute

    • Constructor Detail

      • PolicyAttribute

        public PolicyAttribute()
        Default constructor for PolicyAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • PolicyAttribute

        public PolicyAttribute​(String attributeName,
                               String attributeValue)
        Constructs a new PolicyAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        attributeName - The name of the attribute.
        attributeValue - The value of the attribute.
    • Method Detail

      • setAttributeName

        public void setAttributeName​(String attributeName)

        The name of the attribute.

        Parameters:
        attributeName - The name of the attribute.
      • getAttributeName

        public String getAttributeName()

        The name of the attribute.

        Returns:
        The name of the attribute.
      • withAttributeName

        public PolicyAttribute withAttributeName​(String attributeName)

        The name of the attribute.

        Parameters:
        attributeName - The name of the attribute.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAttributeValue

        public void setAttributeValue​(String attributeValue)

        The value of the attribute.

        Parameters:
        attributeValue - The value of the attribute.
      • getAttributeValue

        public String getAttributeValue()

        The value of the attribute.

        Returns:
        The value of the attribute.
      • withAttributeValue

        public PolicyAttribute withAttributeValue​(String attributeValue)

        The value of the attribute.

        Parameters:
        attributeValue - The value of the attribute.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object