Class ChangedMetadata

  • All Implemented Interfaces:
    software.amazon.smithy.model.FromSourceLocation

    public final class ChangedMetadata
    extends java.lang.Object
    implements software.amazon.smithy.model.FromSourceLocation
    Represents a change in metadata.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getKey()
      Gets the key of the metadata that changed.
      software.amazon.smithy.model.node.Node getNewValue()
      Gets the new metadata value for this key.
      software.amazon.smithy.model.node.Node getOldValue()
      Gets the old metadata value for this key.
      software.amazon.smithy.model.SourceLocation getSourceLocation()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Gets the key of the metadata that changed.
        Returns:
        Returns the changed key.
      • getOldValue

        public software.amazon.smithy.model.node.Node getOldValue()
        Gets the old metadata value for this key.
        Returns:
        Returns the value in the old model.
      • getNewValue

        public software.amazon.smithy.model.node.Node getNewValue()
        Gets the new metadata value for this key.
        Returns:
        Returns the value in the new model.
      • getSourceLocation

        public software.amazon.smithy.model.SourceLocation getSourceLocation()
        Specified by:
        getSourceLocation in interface software.amazon.smithy.model.FromSourceLocation
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object