Class PutComponentMetricOperationContext
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.PutComponentMetricOperationContext
-
- All Implemented Interfaces:
OperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
public class PutComponentMetricOperationContext extends Object implements OperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
Send component metrics NOTE Only usable by AWS components
-
-
Constructor Summary
Constructors Constructor Description PutComponentMetricOperationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOperationName()
Returns the canonical operation name associated with this context across any client language.String
getRequestApplicationModelType()
Returns the application model type string for the initial-request objectClass<PutComponentMetricRequest>
getRequestTypeClass()
Returns the initial-request java class typeString
getResponseApplicationModelType()
Returns the application model type string for the initial response objectClass<PutComponentMetricResponse>
getResponseTypeClass()
Returns the initial-response java class typeEventStreamRPCServiceModel
getServiceModel()
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:OperationModelContext
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- Specified by:
getServiceModel
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,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:OperationModelContext
Returns the canonical operation name associated with this context across any client language. Namespace included Example: aws.greengrass#SubscribeToTopic- Specified by:
getOperationName
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the canonical operation name associated with this context across any client language.
-
getRequestTypeClass
public Class<PutComponentMetricRequest> getRequestTypeClass()
Description copied from interface:OperationModelContext
Returns the initial-request java class type- Specified by:
getRequestTypeClass
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the initial-request java class type
-
getResponseTypeClass
public Class<PutComponentMetricResponse> getResponseTypeClass()
Description copied from interface:OperationModelContext
Returns the initial-response java class type- Specified by:
getResponseTypeClass
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the initial-response java class type
-
getRequestApplicationModelType
public String getRequestApplicationModelType()
Description copied from interface:OperationModelContext
Returns the application model type string for the initial-request object- Specified by:
getRequestApplicationModelType
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the application model type string for the initial-request object
-
getResponseApplicationModelType
public String getResponseApplicationModelType()
Description copied from interface:OperationModelContext
Returns the application model type string for the initial response object- Specified by:
getResponseApplicationModelType
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the application model type string for the initial response object
-
getStreamingRequestTypeClass
public Optional<Class<EventStreamJsonMessage>> getStreamingRequestTypeClass()
Description copied from interface:OperationModelContext
Returns the streaming-request java class type- Specified by:
getStreamingRequestTypeClass
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the streaming-request java class type
-
getStreamingResponseTypeClass
public Optional<Class<EventStreamJsonMessage>> getStreamingResponseTypeClass()
Description copied from interface:OperationModelContext
Returns the streaming-response java class type- Specified by:
getStreamingResponseTypeClass
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the streaming-response java class type
-
getStreamingRequestApplicationModelType
public Optional<String> getStreamingRequestApplicationModelType()
Description copied from interface:OperationModelContext
Returns the application model type of- Specified by:
getStreamingRequestApplicationModelType
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the application model type of
-
getStreamingResponseApplicationModelType
public Optional<String> getStreamingResponseApplicationModelType()
Description copied from interface:OperationModelContext
Returns the streaming response application model string- Specified by:
getStreamingResponseApplicationModelType
in interfaceOperationModelContext<PutComponentMetricRequest,PutComponentMetricResponse,EventStreamJsonMessage,EventStreamJsonMessage>
- Returns:
- the streaming response application model string
-
-