Class NewClassificationRequestBody

  • All Implemented Interfaces:
    Serializable

    public class NewClassificationRequestBody
    extends Object
    implements Serializable
    NewClassificationRequestBody provides a structure for passing the properties for a new classification for a metadata element.
    See Also:
    Serialized Form
    • Constructor Detail

      • NewClassificationRequestBody

        public NewClassificationRequestBody()
        Default constructor
      • NewClassificationRequestBody

        public NewClassificationRequestBody​(NewClassificationRequestBody template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getEffectiveFrom

        public Date getEffectiveFrom()
        Return the date/time that this new classification becomes effective in the governance program (null means immediately).
        Returns:
        date object
      • setEffectiveFrom

        public void setEffectiveFrom​(Date effectiveFrom)
        Set up the date/time that this new classification becomes effective in the governance program (null means immediately).
        Parameters:
        effectiveFrom - date object
      • getEffectiveTo

        public Date getEffectiveTo()
        Return the date/time when the new classification is no longer effective in the governance program (null means until deleted).
        Returns:
        date object
      • setEffectiveTo

        public void setEffectiveTo​(Date effectiveTo)
        Set up the date/time when the new classification is no longer effective in the governance program (null means until deleted).
        Parameters:
        effectiveTo - date object
      • getProperties

        public ElementProperties getProperties()
        Return the properties for the new classification.
        Returns:
        list of properties
      • setProperties

        public void setProperties​(ElementProperties properties)
        Set up the properties for the new classification.
        Parameters:
        properties - list of properties
      • toString

        public String toString()
        JSON-style toString.
        Overrides:
        toString in class Object
        Returns:
        list of properties and their values.
      • equals

        public boolean equals​(Object objectToCompare)
        Equals method that returns true if containing properties are the same.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - object to compare
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return hash code for this object
        Overrides:
        hashCode in class Object
        Returns:
        int hash code