Class AbstractTrait.Provider

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait.Provider
All Implemented Interfaces:
TraitService
Direct Known Subclasses:
AnnotationTrait.Provider, ArnReferenceTrait.Provider, ArnTrait.Provider, AuthDefinitionTrait.Provider, AuthorizersTrait.Provider, AuthTrait.Provider, AwsJson1_0Trait.Provider, AwsJson1_1Trait.Provider, AwsQueryErrorTrait.Provider, CfnResourceTrait.Provider, ClientContextParamsTrait.Provider, ClientDiscoveredEndpointTrait.Provider, ClientEndpointDiscoveryTrait.Provider, CognitoUserPoolsTrait.Provider, ContextParamTrait.Provider, DefaultTrait.Provider, DefineConditionKeysTrait.Provider, DeprecatedTrait.Provider, EndpointRuleSetTrait.Provider, EndpointTestsTrait.Provider, EndpointTrait.Provider, EnumValueTrait.Provider, HttpApiKeyAuthTrait.Provider, HttpChecksumTrait.Provider, HttpErrorTrait.Provider, HttpMalformedRequestTestsTrait.Provider, HttpRequestTestsTrait.Provider, HttpResponseTestsTrait.Provider, HttpTrait.Provider, IamResourceTrait.Provider, IntegrationTrait.Provider, MockIntegrationTrait.Provider, ProtocolDefinitionTrait.Provider, RestJson1Trait.Provider, RestXmlTrait.Provider, ServiceTrait.Provider, SigV4Trait.Provider, StaticContextParamsTrait.Provider, StringListTrait.Provider, StringTrait.Provider
Enclosing class:
AbstractTrait

public abstract static class AbstractTrait.Provider extends Object implements TraitService
Basic provider implementation that returns the name of the provided trait.
  • Constructor Details

    • Provider

      public Provider(ShapeId id)
      Parameters:
      id - ID of the trait that the provider creates.
  • Method Details

    • getShapeId

      public ShapeId getShapeId()
      Specified by:
      getShapeId in interface TraitService
      Returns:
      Gets the shape ID of the trait that this provider created.