Class AnnotationTrait
- java.lang.Object
-
- software.amazon.smithy.model.traits.AnnotationTrait
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
- Direct Known Subclasses:
AddedDefaultTrait
,AwsQueryCompatibleTrait
,AwsQueryTrait
,BoxTrait
,CfnAdditionalIdentifierTrait
,CfnDefaultValueTrait
,CfnExcludePropertyTrait
,ClientEndpointDiscoveryIdTrait
,ClientOptionalTrait
,ControlPlaneTrait
,DataPlaneTrait
,DisableConditionKeyInferenceTrait
,DualStackOnlyEndpointsTrait
,Ec2QueryTrait
,EndpointModifierTrait
,EventHeaderTrait
,EventPayloadTrait
,HostLabelTrait
,HttpBasicAuthTrait
,HttpBearerAuthTrait
,HttpChecksumRequiredTrait
,HttpDigestAuthTrait
,HttpLabelTrait
,HttpPayloadTrait
,HttpQueryParamsTrait
,HttpResponseCodeTrait
,IdempotencyTokenTrait
,IdempotentTrait
,InputTrait
,InternalTrait
,MqttJsonTrait
,NestedPropertiesTrait
,NoAuthTrait
,NoReplaceTrait
,NotPropertyTrait
,OptionalAuthTrait
,OutputTrait
,PrivateTrait
,ReadonlyTrait
,RequiredTrait
,RequiresLengthTrait
,RuleBasedEndpointsTrait
,S3UnwrappedXmlOutputTrait
,SensitiveTrait
,SparseTrait
,StreamingTrait
,TopicLabelTrait
,UniqueItemsTrait
,UnitTypeTrait
,UnsignedPayloadTrait
,UnstableTrait
,XmlAttributeTrait
,XmlFlattenedTrait
public abstract class AnnotationTrait extends java.lang.Object implements Trait
Trait implementation for traits that are an empty object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationTrait.Provider<T extends AnnotationTrait>
Trait provider that expects a boolean value of true.
-
Constructor Summary
Constructors Constructor Description AnnotationTrait(ShapeId id, ObjectNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
SourceLocation
getSourceLocation()
Gets the source location of a value.int
hashCode()
Node
toNode()
Converts a value to aNode
.ShapeId
toShapeId()
Gets the shape ID of the trait.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
-
-
-
Constructor Detail
-
AnnotationTrait
public AnnotationTrait(ShapeId id, ObjectNode node)
-
-
Method Detail
-
toShapeId
public final ShapeId toShapeId()
Description copied from interface:Trait
Gets the shape ID of the trait.
-
toNode
public final Node toNode()
Description copied from interface:ToNode
Converts a value to aNode
.
-
getSourceLocation
public final SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-