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
public final class NoAuthTrait extends AnnotationTrait
An auth scheme trait forsmithy.api#noAuth
which indicates no authentication. This is not a real trait in the semantic model, but a valid auth scheme for use inServiceIndex.getEffectiveAuthSchemes(software.amazon.smithy.model.shapes.ToShapeId)
withServiceIndex.AuthSchemeMode.NO_AUTH_AWARE
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.smithy.model.traits.AnnotationTrait
AnnotationTrait.Provider<T extends AnnotationTrait>
-
-
Constructor Summary
Constructors Constructor Description NoAuthTrait()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSynthetic()
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 Detail
-
ID
public static final ShapeId ID
-
-
Method Detail
-
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.
-
-