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>
  • Method Details

    • build

      Description copied from interface: SmithyBuilder
      Creates 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

      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.