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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public ClientEndpointDiscoveryTrait(ClientEndpointDiscoveryTrait.Builder builder)
public static ClientEndpointDiscoveryTrait.Builder builder()
ClientEndpointDiscoveryTrait
public 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()
AbstractTrait
createNode
in class AbstractTrait
public ClientEndpointDiscoveryTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<ClientEndpointDiscoveryTrait>