Enum Class TraitDefinition.ChangeType
java.lang.Object
java.lang.Enum<TraitDefinition.ChangeType>
software.amazon.smithy.model.traits.TraitDefinition.ChangeType
- All Implemented Interfaces:
Serializable
,Comparable<TraitDefinition.ChangeType>
,Constable
,ToNode
- Enclosing class:
- TraitDefinition
public static enum TraitDefinition.ChangeType
extends Enum<TraitDefinition.ChangeType>
implements ToNode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEmit when a trait or value is added that previously did not exist.Emit when any change occurs.Emit when a trait is added or removed.Emit when a trait or value is removed.Emit when a trait already existed, continues to exist, but it is modified. -
Method Summary
Modifier and TypeMethodDescriptionstatic TraitDefinition.ChangeType
Creates a ChangeType value from a node.toNode()
Converts a value to aNode
.toString()
static TraitDefinition.ChangeType
Returns the enum constant of this class with the specified name.static TraitDefinition.ChangeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
Emit when a trait or value is added that previously did not exist. -
REMOVE
Emit when a trait or value is removed. -
PRESENCE
Emit when a trait is added or removed. -
UPDATE
Emit when a trait already existed, continues to exist, but it is modified. -
ANY
Emit when any change occurs.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromNode
Creates a ChangeType value from a node.- Parameters:
node
- Node to parse.- Returns:
- Returns the parsed ChangeType.
- Throws:
ExpectationNotMetException
- if the node is invalid.
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
toString
- Overrides:
toString
in classEnum<TraitDefinition.ChangeType>
-