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
,CfnResourceTrait.Provider
,ClientDiscoveredEndpointTrait.Provider
,ClientEndpointDiscoveryTrait.Provider
,CognitoUserPoolsTrait.Provider
,DefineConditionKeysTrait.Provider
,DeprecatedTrait.Provider
,EndpointTrait.Provider
,HttpApiKeyAuthTrait.Provider
,HttpErrorTrait.Provider
,HttpRequestTestsTrait.Provider
,HttpResponseTestsTrait.Provider
,HttpTrait.Provider
,IntegrationTrait.Provider
,MockIntegrationTrait.Provider
,ProtocolDefinitionTrait.Provider
,RestJson1Trait.Provider
,RestXmlTrait.Provider
,ServiceTrait.Provider
,SigV4Trait.Provider
,StringListTrait.Provider
,StringTrait.Provider
- Enclosing class:
- AbstractTrait
public abstract static class AbstractTrait.Provider extends java.lang.Object implements TraitService
Basic provider implementation that returns the name of the provided trait.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeId
getShapeId()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.TraitService
createTrait
-
-
-
-
Constructor Detail
-
Provider
public Provider(ShapeId id)
- Parameters:
id
- ID of the trait that the provider creates.
-
-
Method Detail
-
getShapeId
public ShapeId getShapeId()
- Specified by:
getShapeId
in interfaceTraitService
- Returns:
- Gets the shape ID of the trait that this provider created.
-
-