Class TraitDefinition.BreakingChangeRule
java.lang.Object
software.amazon.smithy.model.traits.TraitDefinition.BreakingChangeRule
- All Implemented Interfaces:
- ToNode
- Enclosing class:
- TraitDefinition
Represents an individual trait diff rule to define backward compatibility rules.
- 
Constructor SummaryConstructorsConstructorDescriptionBreakingChangeRule(NodePointer path, Severity severity, TraitDefinition.ChangeType change, String message) 
- 
Method Summary
- 
Constructor Details- 
BreakingChangeRulepublic BreakingChangeRule(NodePointer path, Severity severity, TraitDefinition.ChangeType change, String message) 
 
- 
- 
Method Details- 
getPath
- 
getDefaultedPath
- 
getSeverity
- 
getDefaultedSeverity
- 
getChange
- 
getMessage
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.
- 
fromNodeCreates a TraitDiffRule from a Node.- Parameters:
- node- Node to deserialize.
- Returns:
- Returns the created TraitDiffRule.
- Throws:
- ExpectationNotMetException- if the node is invalid.
 
 
-