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 boolean
equals(java.lang.Object obj)
static Deprecated
fromNode(ObjectNode objectNode)
Creates aDeprecated
of 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.int
hashCode()
Node
toNode()
Converts a value to aNode
.java.lang.String
toString()
-
-
-
Method Detail
-
fromNode
public static Deprecated fromNode(ObjectNode objectNode)
Creates aDeprecated
of 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-