public final class EventStreamInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,StructureShape> |
getEvents()
Gets all of the event stream events of the event stream.
|
MemberShape |
getEventStreamMember()
Gets the top-level input or output member that targets the
event stream.
|
Shape |
getEventStreamTarget()
Gets the shape that is streamed over the event stream.
|
java.util.Map<java.lang.String,MemberShape> |
getInitialMessageMembers()
Gets the initial message members that form the initial-request
or initial-response of the event stream.
|
java.util.Map<java.lang.String,Shape> |
getInitialMessageTargets()
Gets the shapes targeted by the initial message members that are
not the target of an event stream.
|
OperationShape |
getOperation()
Gets the operation associated with this data.
|
StreamingTrait |
getStreamingTrait()
Gets the event stream trait.
|
StructureShape |
getStructure()
Gets the input or output structure of the data.
|
int |
hashCode() |
boolean |
hasInitialMessage()
Returns true if the event stream has an initial-message, meaning
there are top-level members of the input or output of the operation
that are not the event stream member.
|
public OperationShape getOperation()
public StreamingTrait getStreamingTrait()
public StructureShape getStructure()
public MemberShape getEventStreamMember()
public Shape getEventStreamTarget()
If the target shape is a structure, then the event stream is a single-event event stream that streams events of a single shape. If the target shape is a union, then the event stream is a multi-event event stream that streams one or more named events of various structure shapes.
public java.util.Map<java.lang.String,MemberShape> getInitialMessageMembers()
The initial message members are the members of the input or output of an operation that are not the target of an event stream.
The returned map is a map of member names to
MemberShape
s. Use getInitialMessageTargets()
to get
a mapping of member names to the shapes targeted by a member.
EventStreamIndex index = EventStreamIndex.of(model);
EventStreamInfo info = index.getInputInfo(myShapeId);
for (MemberShape member : info.getInitialMessageMembers()) {
System.out.println("Initial message member: " + member);
}
public java.util.Map<java.lang.String,Shape> getInitialMessageTargets()
The returned map contains the same information as
getInitialMessageMembers()
except each value is the shape
targeted by the member.
getInitialMessageMembers()
public boolean hasInitialMessage()
public java.util.Map<java.lang.String,StructureShape> getEvents()
The returned map is a mapping of the event name to the event. For multi-event event streams, the name of hte event is the member name of the multi-event union. For single-event event streams, the name of the event is the name of the input or output structure member referenced by the event stream trait.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object