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)
Deprecated.AuthTrait(java.util.List<ShapeId> values, FromSourceLocation sourceLocation)
Deprecated.AuthTrait(java.util.Set<ShapeId> values)
AuthTrait(java.util.Set<ShapeId> values, FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Node
createNode()
The result of toNode is used for hashCodes and equality.java.util.List<ShapeId>
getValues()
Deprecated.java.util.Set<ShapeId>
getValueSet()
Gets the auth scheme trait values.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
-
-
-
Field Detail
-
ID
public static final ShapeId ID
-
-
Constructor Detail
-
AuthTrait
@Deprecated public AuthTrait(java.util.List<ShapeId> values, FromSourceLocation sourceLocation)
Deprecated.
-
AuthTrait
@Deprecated public AuthTrait(java.util.List<ShapeId> values)
Deprecated.
-
AuthTrait
public AuthTrait(java.util.Set<ShapeId> values, FromSourceLocation sourceLocation)
-
AuthTrait
public AuthTrait(java.util.Set<ShapeId> values)
-
-
Method Detail
-
getValueSet
public java.util.Set<ShapeId> getValueSet()
Gets the auth scheme trait values.- Returns:
- Returns the supported auth schemes.
-
getValues
@Deprecated public java.util.List<ShapeId> getValues()
Deprecated.
-
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.
-
-