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 SummaryNested Classes Modifier and Type Class Description static classAuthTrait.Provider
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected NodecreateNode()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.AbstractTraitequals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface software.amazon.smithy.model.traits.TraitisSynthetic
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic 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.
 - 
AuthTraitpublic AuthTrait(java.util.Set<ShapeId> values, FromSourceLocation sourceLocation) 
 - 
AuthTraitpublic AuthTrait(java.util.Set<ShapeId> values) 
 
- 
 - 
Method Detail- 
getValueSetpublic 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.
 - 
createNodeprotected Node createNode() Description copied from class:AbstractTraitThe 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:
- createNodein class- AbstractTrait
- Returns:
- Returns the trait as a node.
 
 
- 
 
-