Class PublishToTopicOperationContext
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.PublishToTopicOperationContext
-
- All Implemented Interfaces:
OperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>
public class PublishToTopicOperationContext extends Object implements OperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>
Publish to a custom topic.
-
-
Constructor Summary
Constructors Constructor Description PublishToTopicOperationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOperationName()Returns the canonical operation name associated with this context across any client language.StringgetRequestApplicationModelType()Returns the application model type string for the initial-request objectClass<PublishToTopicRequest>getRequestTypeClass()Returns the initial-request java class typeStringgetResponseApplicationModelType()Returns the application model type string for the initial response objectClass<PublishToTopicResponse>getResponseTypeClass()Returns the initial-response java class typeEventStreamRPCServiceModelgetServiceModel()Returns the service model which can look up all/any Java error class types if an operation throws it so the handling has a chanceOptional<String>getStreamingRequestApplicationModelType()Returns the application model type ofOptional<Class<EventStreamJsonMessage>>getStreamingRequestTypeClass()Returns the streaming-request java class typeOptional<String>getStreamingResponseApplicationModelType()Returns the streaming response application model stringOptional<Class<EventStreamJsonMessage>>getStreamingResponseTypeClass()Returns the streaming-response java class type-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.OperationModelContext
isStreamingOperation
-
-
-
-
Method Detail
-
getServiceModel
public EventStreamRPCServiceModel getServiceModel()
Description copied from interface:OperationModelContextReturns the service model which can look up all/any Java error class types if an operation throws it so the handling has a chance- Specified by:
getServiceModelin interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the service model which can look up all/any Java error class types if an operation throws it so the handling has a chance
-
getOperationName
public String getOperationName()
Description copied from interface:OperationModelContextReturns the canonical operation name associated with this context across any client language. Namespace included Example: aws.greengrass#SubscribeToTopic- Specified by:
getOperationNamein interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the canonical operation name associated with this context across any client language.
-
getRequestTypeClass
public Class<PublishToTopicRequest> getRequestTypeClass()
Description copied from interface:OperationModelContextReturns the initial-request java class type- Specified by:
getRequestTypeClassin interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the initial-request java class type
-
getResponseTypeClass
public Class<PublishToTopicResponse> getResponseTypeClass()
Description copied from interface:OperationModelContextReturns the initial-response java class type- Specified by:
getResponseTypeClassin interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the initial-response java class type
-
getRequestApplicationModelType
public String getRequestApplicationModelType()
Description copied from interface:OperationModelContextReturns the application model type string for the initial-request object- Specified by:
getRequestApplicationModelTypein interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the application model type string for the initial-request object
-
getResponseApplicationModelType
public String getResponseApplicationModelType()
Description copied from interface:OperationModelContextReturns the application model type string for the initial response object- Specified by:
getResponseApplicationModelTypein interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the application model type string for the initial response object
-
getStreamingRequestTypeClass
public Optional<Class<EventStreamJsonMessage>> getStreamingRequestTypeClass()
Description copied from interface:OperationModelContextReturns the streaming-request java class type- Specified by:
getStreamingRequestTypeClassin interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the streaming-request java class type
-
getStreamingResponseTypeClass
public Optional<Class<EventStreamJsonMessage>> getStreamingResponseTypeClass()
Description copied from interface:OperationModelContextReturns the streaming-response java class type- Specified by:
getStreamingResponseTypeClassin interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the streaming-response java class type
-
getStreamingRequestApplicationModelType
public Optional<String> getStreamingRequestApplicationModelType()
Description copied from interface:OperationModelContextReturns the application model type of- Specified by:
getStreamingRequestApplicationModelTypein interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the application model type of
-
getStreamingResponseApplicationModelType
public Optional<String> getStreamingResponseApplicationModelType()
Description copied from interface:OperationModelContextReturns the streaming response application model string- Specified by:
getStreamingResponseApplicationModelTypein interfaceOperationModelContext<PublishToTopicRequest,PublishToTopicResponse,EventStreamJsonMessage,EventStreamJsonMessage>- Returns:
- the streaming response application model string
-
-