java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.parameters.Deprecated
All Implemented Interfaces:
ToNode

public final class Deprecated extends Object implements ToNode
Container for information on a deprecated parameter.
  • Method Details

    • fromNode

      public static Deprecated fromNode(ObjectNode objectNode)
      Creates a Deprecated of a specific type from the given Node information.
      Parameters:
      objectNode - the node to deserialize.
      Returns:
      the created Deprecated.
    • getMessage

      public Optional<String> getMessage()
      Gets the deprecation message value.
      Returns:
      returns the optional deprecation message value.
    • getSince

      public Optional<String> getSince()
      Gets the deprecated since value.
      Returns:
      returns the optional deprecated since value.
    • toNode

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Specified by:
      toNode in interface ToNode
      Returns:
      Returns the creates Node.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object