public final class ClientEndpointDiscoveryTrait extends AbstractTrait implements ToSmithyBuilder<ClientEndpointDiscoveryTrait>
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientEndpointDiscoveryTrait.Builder
Builder for
ClientEndpointDiscoveryTrait. |
static class |
ClientEndpointDiscoveryTrait.Provider |
| Constructor and Description |
|---|
ClientEndpointDiscoveryTrait(ClientEndpointDiscoveryTrait.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
static ClientEndpointDiscoveryTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
ShapeId |
getError()
Deprecated.
|
ShapeId |
getOperation()
The operation used to discover endpoints for the service.
|
java.util.Optional<ShapeId> |
getOptionalError()
The error shape which indicates to a client that an endpoint they are
using is no longer valid.
|
ClientEndpointDiscoveryTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic static final ShapeId ID
public ClientEndpointDiscoveryTrait(ClientEndpointDiscoveryTrait.Builder builder)
public static ClientEndpointDiscoveryTrait.Builder builder()
ClientEndpointDiscoveryTraitpublic ShapeId getOperation()
The operation MUST be bound to the service.
public java.util.Optional<ShapeId> getOptionalError()
This error MUST be bound to every operation bound to the service
which is marked with an ClientDiscoveredEndpointTrait.
@Deprecated public ShapeId getError()
getOptionalError().protected Node createNode()
AbstractTraitcreateNode in class AbstractTraitpublic ClientEndpointDiscoveryTrait.Builder toBuilder()
ToSmithyBuildertoBuilder in interface ToSmithyBuilder<ClientEndpointDiscoveryTrait>