Class StreamingTrait
- java.lang.Object
- 
- software.amazon.smithy.model.traits.AnnotationTrait
- 
- software.amazon.smithy.model.traits.StreamingTrait
 
 
- 
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- ToShapeId,- Trait
 
 public final class StreamingTrait extends AnnotationTrait Indicates that the data stored in the shape is very large and should not be stored in memory, or that the size of the data stored in the shape is unknown at the start of a request.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classStreamingTrait.Provider
 - 
Constructor SummaryConstructors Constructor Description StreamingTrait()StreamingTrait(ObjectNode node)
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEventStream(Model model, MemberShape member)Determines whether a given member targets an event stream.static booleanisEventStream(Shape shape)Determines whether a given shape is an event stream.- 
Methods inherited from class software.amazon.smithy.model.traits.AnnotationTraitequals, getSourceLocation, hashCode, toNode, toShapeId
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface software.amazon.smithy.model.traits.TraitisSynthetic
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final ShapeId ID 
 
- 
 - 
Constructor Detail- 
StreamingTraitpublic StreamingTrait(ObjectNode node) 
 - 
StreamingTraitpublic StreamingTrait() 
 
- 
 - 
Method Detail- 
isEventStreampublic static boolean isEventStream(Shape shape) Determines whether a given shape is an event stream.- Parameters:
- shape- The shape to check.
- Returns:
- True if the shape is a union and has the streaming trait.
 
 - 
isEventStreampublic static boolean isEventStream(Model model, MemberShape member) Determines whether a given member targets an event stream.- Parameters:
- model- The model containing the member and its target.
- member- The member whose target should be checked.
- Returns:
- True if the member targets a union with the streaming trait.
 
 
- 
 
-