Class StreamingTrait
java.lang.Object
software.amazon.smithy.model.traits.AnnotationTrait
software.amazon.smithy.model.traits.StreamingTrait
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
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 Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEventStream
(Model model, MemberShape member) Determines whether a given member targets an event stream.static boolean
isEventStream
(Shape shape) Determines whether a given shape is an event stream.Methods inherited from class software.amazon.smithy.model.traits.AnnotationTrait
equals, getSourceLocation, hashCode, toNode, toShapeId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
Field Details
-
ID
-
-
Constructor Details
-
StreamingTrait
-
StreamingTrait
public StreamingTrait()
-
-
Method Details
-
isEventStream
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.
-
isEventStream
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.
-