Package software.amazon.smithy.waiters
Class Waiter
java.lang.Object
software.amazon.smithy.waiters.Waiter
- All Implemented Interfaces:
software.amazon.smithy.model.node.ToNode,software.amazon.smithy.utils.Tagged,software.amazon.smithy.utils.ToSmithyBuilder<Waiter>
public final class Waiter
extends Object
implements software.amazon.smithy.utils.Tagged, software.amazon.smithy.model.node.ToNode, software.amazon.smithy.utils.ToSmithyBuilder<Waiter>
Defines an individual operation waiter.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Waiter.Builderbuilder()booleanstatic WaiterfromNode(software.amazon.smithy.model.node.Node node) Create aWaiterfrom aNode.Gets the list ofAcceptors.Gets the documentation of the waiter.intGets the maximum amount of time allowed to wait between retries in seconds.intGets the minimum amount of time to wait between retries in seconds.getTags()inthashCode()booleanChecks if the waiter is deprecated.software.amazon.smithy.utils.SmithyBuilder<Waiter>software.amazon.smithy.model.node.NodetoNode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.utils.Tagged
hasTag
-
Method Details
-
builder
-
toBuilder
- Specified by:
toBuilderin interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<Waiter>
-
fromNode
Create aWaiterfrom aNode.- Parameters:
node-Nodeto create theWaiterfrom.- Returns:
- Returns the created
Waiter. - Throws:
software.amazon.smithy.model.node.ExpectationNotMetException- if the givennodeis invalid.
-
getDocumentation
Gets the documentation of the waiter.- Returns:
- Return the optional documentation.
-
getAcceptors
Gets the list ofAcceptors.- Returns:
- Returns the acceptors of the waiter.
-
getMinDelay
public int getMinDelay()Gets the minimum amount of time to wait between retries in seconds.- Returns:
- Gets the minimum retry wait time in seconds.
-
getMaxDelay
public int getMaxDelay()Gets the maximum amount of time allowed to wait between retries in seconds.- Returns:
- Gets the maximum retry wait time in seconds.
-
getTags
- Specified by:
getTagsin interfacesoftware.amazon.smithy.utils.Tagged
-
isDeprecated
public boolean isDeprecated()Checks if the waiter is deprecated.- Returns:
- Returns true if the waiter is deprecated.
-
toNode
public software.amazon.smithy.model.node.Node toNode()- Specified by:
toNodein interfacesoftware.amazon.smithy.model.node.ToNode
-
equals
-
hashCode
public int hashCode()
-