Class EnumDefinition
- java.lang.Object
-
- software.amazon.smithy.model.traits.EnumDefinition
-
- All Implemented Interfaces:
ToNode
,Tagged
,ToSmithyBuilder<EnumDefinition>
public final class EnumDefinition extends java.lang.Object implements ToNode, ToSmithyBuilder<EnumDefinition>, Tagged
An enum definition for the enum trait.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnumDefinition.Builder
Builds aEnumDefinition
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumDefinition.Builder
builder()
boolean
equals(java.lang.Object other)
static EnumDefinition
fromNode(Node node)
java.util.Optional<java.lang.String>
getDocumentation()
java.util.Optional<java.lang.String>
getName()
java.util.List<java.lang.String>
getTags()
Gets the tags applied to an object.java.lang.String
getValue()
int
hashCode()
boolean
isDeprecated()
EnumDefinition.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.
-
-
-
Method Detail
-
builder
public static EnumDefinition.Builder builder()
-
getValue
public java.lang.String getValue()
-
getName
public java.util.Optional<java.lang.String> getName()
-
getDocumentation
public java.util.Optional<java.lang.String> getDocumentation()
-
isDeprecated
public boolean isDeprecated()
-
fromNode
public static EnumDefinition fromNode(Node node)
-
getTags
public java.util.List<java.lang.String> getTags()
Description copied from interface:Tagged
Gets the tags applied to an object.
-
toBuilder
public EnumDefinition.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<EnumDefinition>
- Returns:
- a builder for type T
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-