Class Matcher.SuccessMember

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

public static final class Matcher.SuccessMember extends Matcher<Boolean>
When set to true, matches when a call returns a success response. When set to false, matches when a call fails with any error.
  • Constructor Details

    • SuccessMember

      public SuccessMember(boolean 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<Boolean>
      Returns:
      Returns the set member name.
    • getValue

      public Boolean getValue()
      Description copied from class: Matcher
      Gets the value of the set matcher variant.
      Specified by:
      getValue in class Matcher<Boolean>
      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<Boolean>
      Type Parameters:
      U - The type returned by the visitor.
      Parameters:
      visitor - Visitor to apply.
      Returns:
      Returns the return value of the visitor.