Class SubscribeToIoTCoreOperationContext
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.SubscribeToIoTCoreOperationContext
-
- All Implemented Interfaces:
OperationModelContext<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>
public class SubscribeToIoTCoreOperationContext extends Object implements OperationModelContext<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>
Subscribe to a topic in AWS IoT message broker.
-
-
Constructor Summary
Constructors Constructor Description SubscribeToIoTCoreOperationContext()
-
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<SubscribeToIoTCoreRequest>getRequestTypeClass()Returns the initial-request java class typeStringgetResponseApplicationModelType()Returns the application model type string for the initial response objectClass<SubscribeToIoTCoreResponse>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<IoTCoreMessage>>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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- 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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- Returns:
- the canonical operation name associated with this context across any client language.
-
getRequestTypeClass
public Class<SubscribeToIoTCoreRequest> getRequestTypeClass()
Description copied from interface:OperationModelContextReturns the initial-request java class type- Specified by:
getRequestTypeClassin interfaceOperationModelContext<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- Returns:
- the initial-request java class type
-
getResponseTypeClass
public Class<SubscribeToIoTCoreResponse> getResponseTypeClass()
Description copied from interface:OperationModelContextReturns the initial-response java class type- Specified by:
getResponseTypeClassin interfaceOperationModelContext<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- 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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- 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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- 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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- Returns:
- the streaming-request java class type
-
getStreamingResponseTypeClass
public Optional<Class<IoTCoreMessage>> getStreamingResponseTypeClass()
Description copied from interface:OperationModelContextReturns the streaming-response java class type- Specified by:
getStreamingResponseTypeClassin interfaceOperationModelContext<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- 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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- 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<SubscribeToIoTCoreRequest,SubscribeToIoTCoreResponse,EventStreamJsonMessage,IoTCoreMessage>- Returns:
- the streaming response application model string
-
-