Class Deprecated
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.parameters.Deprecated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static DeprecatedfromNode(ObjectNode objectNode)Creates aDeprecatedof a specific type from the given Node information.java.util.Optional<java.lang.String>getMessage()Gets the deprecation message value.java.util.Optional<java.lang.String>getSince()Gets the deprecated since value.inthashCode()NodetoNode()Converts a value to aNode.java.lang.StringtoString()
-
-
-
Method Detail
-
fromNode
public static Deprecated fromNode(ObjectNode objectNode)
Creates aDeprecatedof a specific type from the given Node information.- Parameters:
objectNode- the node to deserialize.- Returns:
- the created Deprecated.
-
getMessage
public java.util.Optional<java.lang.String> getMessage()
Gets the deprecation message value.- Returns:
- returns the optional deprecation message value.
-
getSince
public java.util.Optional<java.lang.String> getSince()
Gets the deprecated since value.- Returns:
- returns the optional deprecated since value.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-