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 forClientEndpointDiscoveryTrait.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientEndpointDiscoveryTraitbuild()Creates an immutable object that is created from the properties that have been set on the builder.ClientEndpointDiscoveryTrait.Buildererror(ShapeId error)Set the error shape which indicates to a client that an endpoint they are using is no longer valid.ClientEndpointDiscoveryTrait.Builderoperation(ShapeId operation)Set the operation used to discover endpoints for the service.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
build
public ClientEndpointDiscoveryTrait 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
public ClientEndpointDiscoveryTrait.Builder operation(ShapeId 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
public ClientEndpointDiscoveryTrait.Builder error(ShapeId 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.
-
-