Class AuthTrait
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTrait
-
- software.amazon.smithy.model.traits.AuthTrait
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
public final class AuthTrait extends AbstractTrait
Specifies the auth schemes supported by default for operations bound to a service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthTrait.Provider
-
Constructor Summary
Constructors Constructor Description AuthTrait(java.util.List<ShapeId> values)
AuthTrait(java.util.List<ShapeId> values, FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Node
createNode()
The result of toNode is used for hashCodes and equality.java.util.List<ShapeId>
getValues()
Gets the auth scheme trait values.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, toNode, toShapeId, toString
-
-
-
-
Field Detail
-
ID
public static final ShapeId ID
-
-
Constructor Detail
-
AuthTrait
public AuthTrait(java.util.List<ShapeId> values, FromSourceLocation sourceLocation)
-
AuthTrait
public AuthTrait(java.util.List<ShapeId> values)
-
-
Method Detail
-
getValues
public java.util.List<ShapeId> getValues()
Gets the auth scheme trait values.- Returns:
- Returns the supported auth schemes.
-
createNode
protected Node createNode()
Description copied from class:AbstractTrait
The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.- Specified by:
createNode
in classAbstractTrait
- Returns:
- Returns the trait as a node.
-
-