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 Summary
ConstructorsConstructorDescriptionBreakingChangeRule(NodePointer path, Severity severity, TraitDefinition.ChangeType change, String message)  - 
Method Summary
 
- 
Constructor Details
- 
BreakingChangeRule
public BreakingChangeRule(NodePointer path, Severity severity, TraitDefinition.ChangeType change, String message)  
 - 
 - 
Method Details
- 
getPath
 - 
getDefaultedPath
 - 
getSeverity
 - 
getDefaultedSeverity
 - 
getChange
 - 
getMessage
 - 
hashCode
public int hashCode() - 
equals
 - 
toString
 - 
toNode
Description copied from interface:ToNodeConverts a value to aNode. - 
fromNode
Creates a TraitDiffRule from a Node.- Parameters:
 node- Node to deserialize.- Returns:
 - Returns the created TraitDiffRule.
 - Throws:
 ExpectationNotMetException- if the node is invalid.
 
 -