Class Matcher.ErrorTypeMember

java.lang.Object
software.amazon.smithy.waiters.Matcher<String>
software.amazon.smithy.waiters.Matcher.ErrorTypeMember
All Implemented Interfaces:
ToNode
Enclosing class:
Matcher<T>

public static final class Matcher.ErrorTypeMember extends Matcher<String>
Matches if an operation returns an error, and the error matches the expected error type.
  • Constructor Details

    • ErrorTypeMember

      public ErrorTypeMember(String 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<String>
      Returns:
      Returns the set member name.
    • getValue

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

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Returns:
      Returns the creates Node.
    • 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<String>
      Type Parameters:
      U - The type returned by the visitor.
      Parameters:
      visitor - Visitor to apply.
      Returns:
      Returns the return value of the visitor.