Package software.amazon.smithy.waiters
Class Waiter
- java.lang.Object
-
- software.amazon.smithy.waiters.Waiter
-
- All Implemented Interfaces:
ToNode
,Tagged
,ToSmithyBuilder<Waiter>
public final class Waiter extends java.lang.Object implements Tagged, ToNode, ToSmithyBuilder<Waiter>
Defines an individual operation waiter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Waiter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Waiter.Builder
builder()
boolean
equals(java.lang.Object o)
static Waiter
fromNode(Node node)
Create aWaiter
from aNode
.java.util.List<Acceptor>
getAcceptors()
Gets the list ofAcceptor
s.java.util.Optional<java.lang.String>
getDocumentation()
Gets the documentation of the waiter.int
getMaxDelay()
Gets the maximum amount of time allowed to wait between retries in seconds.int
getMinDelay()
Gets the minimum amount of time to wait between retries in seconds.java.util.List<java.lang.String>
getTags()
Gets the tags applied to an object.int
hashCode()
boolean
isDeprecated()
Checks if the waiter is deprecated.Waiter.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.
-
-
-
Method Detail
-
builder
public static Waiter.Builder builder()
-
toBuilder
public Waiter.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<Waiter>
- Returns:
- a builder for type T
-
fromNode
public static Waiter fromNode(Node node)
Create aWaiter
from aNode
.- Parameters:
node
-Node
to create theWaiter
from.- Returns:
- Returns the created
Waiter
. - Throws:
ExpectationNotMetException
- if the givennode
is invalid.
-
getDocumentation
public java.util.Optional<java.lang.String> getDocumentation()
Gets the documentation of the waiter.- Returns:
- Return the optional documentation.
-
getAcceptors
public java.util.List<Acceptor> getAcceptors()
Gets the list ofAcceptor
s.- 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
public java.util.List<java.lang.String> getTags()
Description copied from interface:Tagged
Gets the tags applied to an object.
-
isDeprecated
public boolean isDeprecated()
Checks if the waiter is deprecated.- Returns:
- Returns true if the waiter is deprecated.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-