public static final class ClientEndpointDiscoveryTrait.Builder extends AbstractTraitBuilder<ClientEndpointDiscoveryTrait,ClientEndpointDiscoveryTrait.Builder>
ClientEndpointDiscoveryTrait.| Modifier and Type | Method and Description |
|---|---|
ClientEndpointDiscoveryTrait |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
ClientEndpointDiscoveryTrait.Builder |
error(ShapeId error)
Set the error shape which indicates to a client that an endpoint
they are using is no longer valid.
|
ClientEndpointDiscoveryTrait.Builder |
operation(ShapeId operation)
Set the operation used to discover endpoints for the service.
|
getSourceLocation, sourceLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequiredStatepublic ClientEndpointDiscoveryTrait build()
SmithyBuilderpublic ClientEndpointDiscoveryTrait.Builder operation(ShapeId operation)
The operation MUST be bound to the service.
operation - The ShapeId of the operation used to discover endpoints.public ClientEndpointDiscoveryTrait.Builder error(ShapeId error)
This error MUST be bound to every operation bound to the service
which is marked with an ClientDiscoveredEndpointTrait.
error - The ShapeId of the invalid endpoint error.