Class ClientEndpointDiscoveryTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.clientendpointdiscovery.ClientEndpointDiscoveryTrait
- All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation,software.amazon.smithy.model.node.ToNode,software.amazon.smithy.model.shapes.ToShapeId,software.amazon.smithy.model.traits.Trait,software.amazon.smithy.utils.ToSmithyBuilder<ClientEndpointDiscoveryTrait>
public final class ClientEndpointDiscoveryTrait
extends software.amazon.smithy.model.traits.AbstractTrait
implements software.amazon.smithy.utils.ToSmithyBuilder<ClientEndpointDiscoveryTrait>
Configures endpoint discovery for the targeted service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forClientEndpointDiscoveryTrait.static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected software.amazon.smithy.model.node.Nodesoftware.amazon.smithy.model.shapes.ShapeIdgetError()Deprecated.software.amazon.smithy.model.shapes.ShapeIdThe operation used to discover endpoints for the service.Optional<software.amazon.smithy.model.shapes.ShapeId>The error shape which indicates to a client that an endpoint they are using is no longer valid.Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
Field Details
-
ID
public static final software.amazon.smithy.model.shapes.ShapeId ID
-
-
Constructor Details
-
ClientEndpointDiscoveryTrait
-
-
Method Details
-
builder
- Returns:
- Returns a builder used to create
ClientEndpointDiscoveryTrait
-
getOperation
public software.amazon.smithy.model.shapes.ShapeId getOperation()The operation used to discover endpoints for the service.The operation MUST be bound to the service.
- Returns:
- The ShapeId of the operation used to discover endpoints.
-
getOptionalError
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.- Returns:
- The ShapeId of the invalid endpoint error.
-
getError
Deprecated.Deprecated in favor ofgetOptionalError(). -
createNode
protected software.amazon.smithy.model.node.Node createNode()- Specified by:
createNodein classsoftware.amazon.smithy.model.traits.AbstractTrait
-
toBuilder
- Specified by:
toBuilderin interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<ClientEndpointDiscoveryTrait>
-