Package software.amazon.smithy.waiters
Class Matcher.SuccessMember
java.lang.Object
software.amazon.smithy.waiters.Matcher<Boolean>
software.amazon.smithy.waiters.Matcher.SuccessMember
- All Implemented Interfaces:
ToNode
When set to true, matches when a call returns a success response.
When set to false, matches when a call fails with any error.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.smithy.waiters.Matcher
Matcher.ErrorTypeMember, Matcher.InputOutputMember, Matcher.OutputMember, Matcher.SuccessMember, Matcher.UnknownMember, Matcher.Visitor<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<U> U
accept
(Matcher.Visitor<U> visitor) Visits the Matcher union type.Gets the member name of the matcher.getValue()
Gets the value of the set matcher variant.toNode()
Converts a value to aNode
.
-
Constructor Details
-
SuccessMember
public SuccessMember(boolean value)
-
-
Method Details
-
getMemberName
Description copied from class:Matcher
Gets the member name of the matcher.- Specified by:
getMemberName
in classMatcher<Boolean>
- Returns:
- Returns the set member name.
-
getValue
Description copied from class:Matcher
Gets the value of the set matcher variant. -
toNode
Description copied from interface:ToNode
Converts a value to aNode
.- Returns:
- Returns the creates Node.
-
accept
Description copied from class:Matcher
Visits the Matcher union type.
-