Class NoAuthTrait
java.lang.Object
software.amazon.smithy.model.traits.AnnotationTrait
software.amazon.smithy.model.traits.synthetic.NoAuthTrait
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
An auth scheme trait for
smithy.api#noAuth
which indicates no authentication. This is not a real trait
in the semantic model, but a valid auth scheme for use in ServiceIndex.getEffectiveAuthSchemes(software.amazon.smithy.model.shapes.ToShapeId)
with
ServiceIndex.AuthSchemeMode.NO_AUTH_AWARE
.-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.smithy.model.traits.AnnotationTrait
AnnotationTrait.Provider<T extends AnnotationTrait>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this trait is persisted with the shape, or if it is a synthetic, or transient trait, only meant to temporarily aid in some kind of in-memory model transformation.Methods inherited from class software.amazon.smithy.model.traits.AnnotationTrait
equals, getSourceLocation, hashCode, toNode, toShapeId
-
Field Details
-
ID
-
-
Constructor Details
-
NoAuthTrait
public NoAuthTrait()
-
-
Method Details
-
isSynthetic
public boolean isSynthetic()Description copied from interface:Trait
Checks if this trait is persisted with the shape, or if it is a synthetic, or transient trait, only meant to temporarily aid in some kind of in-memory model transformation.Because synthetic traits are not persisted with shapes, they also do not need to be defined in Smithy's semantic model before they can be used in the model.
- Returns:
- Returns true if the trait is not persisted on the shape.
-