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 classAnnotationTrait.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 booleanequals(java.lang.Object other)SourceLocationgetSourceLocation()Gets the source location of a value.inthashCode()NodetoNode()Converts a value to aNode.ShapeIdtoShapeId()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:TraitGets the shape ID of the trait. 
- 
toNode
public final Node toNode()
Description copied from interface:ToNodeConverts a value to aNode. 
- 
getSourceLocation
public final SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
 getSourceLocationin interfaceFromSourceLocation- Returns:
 - Returns the source location of the value.
 
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object other)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -