Class Matcher.UnknownMember

java.lang.Object
software.amazon.smithy.waiters.Matcher<software.amazon.smithy.model.node.Node>
software.amazon.smithy.waiters.Matcher.UnknownMember
All Implemented Interfaces:
software.amazon.smithy.model.node.ToNode
Enclosing class:
Matcher<T>

public static final class Matcher.UnknownMember extends Matcher<software.amazon.smithy.model.node.Node>
Represents an union value.
  • Constructor Details

    • UnknownMember

      public UnknownMember(String key, software.amazon.smithy.model.node.Node value)
  • Method Details

    • getMemberName

      public String getMemberName()
      Description copied from class: Matcher
      Gets the member name of the matcher.
      Specified by:
      getMemberName in class Matcher<software.amazon.smithy.model.node.Node>
      Returns:
      Returns the set member name.
    • getValue

      public software.amazon.smithy.model.node.Node getValue()
      Description copied from class: Matcher
      Gets the value of the set matcher variant.
      Specified by:
      getValue in class Matcher<software.amazon.smithy.model.node.Node>
      Returns:
      Returns the set variant's value.
    • toNode

      public software.amazon.smithy.model.node.Node toNode()
    • accept

      public <U> U accept(Matcher.Visitor<U> visitor)
      Description copied from class: Matcher
      Visits the Matcher union type.
      Specified by:
      accept in class Matcher<software.amazon.smithy.model.node.Node>
      Type Parameters:
      U - The type returned by the visitor.
      Parameters:
      visitor - Visitor to apply.
      Returns:
      Returns the return value of the visitor.