Class ClientEndpointDiscoveryTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<ClientEndpointDiscoveryTrait,ClientEndpointDiscoveryTrait.Builder>
 
software.amazon.smithy.aws.traits.clientendpointdiscovery.ClientEndpointDiscoveryTrait.Builder
- All Implemented Interfaces:
 SmithyBuilder<ClientEndpointDiscoveryTrait>
- Enclosing class:
 - ClientEndpointDiscoveryTrait
 
public static final class ClientEndpointDiscoveryTrait.Builder
extends AbstractTraitBuilder<ClientEndpointDiscoveryTrait,ClientEndpointDiscoveryTrait.Builder> 
Builder for 
ClientEndpointDiscoveryTrait.- 
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutable object that is created from the properties that have been set on the builder.Set the error shape which indicates to a client that an endpoint they are using is no longer valid.Set the operation used to discover endpoints for the service.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation 
- 
Method Details
- 
build
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
 - an instance of T
 
 - 
operation
Set the operation used to discover endpoints for the service.The operation MUST be bound to the service.
- Parameters:
 operation- The ShapeId of the operation used to discover endpoints.- Returns:
 - Returns the builder.
 
 - 
error
Set the error shape which indicates to a client that an endpoint they are using is no longer valid.This error MUST be bound to every operation bound to the service which is marked with an
ClientDiscoveredEndpointTrait.- Parameters:
 error- The ShapeId of the invalid endpoint error.- Returns:
 - Returns the builder.
 
 
 -