Interface EventStreamJsonMessage
-
- All Known Implementing Classes:
AccessDeniedException
,AuthorizeClientDeviceActionRequest
,AuthorizeClientDeviceActionResponse
,BinaryMessage
,CancelLocalDeploymentRequest
,CancelLocalDeploymentResponse
,CertificateOptions
,CertificateType
,CertificateUpdate
,CertificateUpdateEvent
,ClientDeviceCredential
,ComponentDetails
,ComponentNotFoundError
,ComponentUpdatePolicyEvents
,ConfigurationUpdateEvent
,ConfigurationUpdateEvents
,ConfigurationValidityReport
,ConfigurationValidityStatus
,ConflictError
,CreateDebugPasswordRequest
,CreateDebugPasswordResponse
,CreateLocalDeploymentRequest
,CreateLocalDeploymentResponse
,CredentialDocument
,DeferComponentUpdateRequest
,DeferComponentUpdateResponse
,DeleteThingShadowRequest
,DeleteThingShadowResponse
,DeploymentStatus
,DeploymentStatusDetails
,DetailedDeploymentStatus
,EventStreamOperationError
,FailedUpdateConditionCheckError
,FailureHandlingPolicy
,GetClientDeviceAuthTokenRequest
,GetClientDeviceAuthTokenResponse
,GetComponentDetailsRequest
,GetComponentDetailsResponse
,GetConfigurationRequest
,GetConfigurationResponse
,GetLocalDeploymentStatusRequest
,GetLocalDeploymentStatusResponse
,GetSecretValueRequest
,GetSecretValueResponse
,GetThingShadowRequest
,GetThingShadowResponse
,GreengrassCoreIPCError
,InternalServerException
,InvalidArgumentsError
,InvalidArtifactsDirectoryPathError
,InvalidClientDeviceAuthTokenError
,InvalidCredentialError
,InvalidRecipeDirectoryPathError
,InvalidTokenError
,IoTCoreMessage
,JsonMessage
,LifecycleState
,ListComponentsRequest
,ListComponentsResponse
,ListLocalDeploymentsRequest
,ListLocalDeploymentsResponse
,ListNamedShadowsForThingRequest
,ListNamedShadowsForThingResponse
,LocalDeployment
,MessageContext
,Metric
,MetricUnitType
,MQTTCredential
,MQTTMessage
,PauseComponentRequest
,PauseComponentResponse
,PayloadFormat
,PostComponentUpdateEvent
,PreComponentUpdateEvent
,PublishMessage
,PublishToIoTCoreRequest
,PublishToIoTCoreResponse
,PublishToTopicRequest
,PublishToTopicResponse
,PutComponentMetricRequest
,PutComponentMetricResponse
,QOS
,ReceiveMode
,ReportedLifecycleState
,RequestStatus
,ResourceNotFoundError
,RestartComponentRequest
,RestartComponentResponse
,ResumeComponentRequest
,ResumeComponentResponse
,RunWithInfo
,SecretValue
,SendConfigurationValidityReportRequest
,SendConfigurationValidityReportResponse
,ServiceError
,StopComponentRequest
,StopComponentResponse
,SubscribeToCertificateUpdatesRequest
,SubscribeToCertificateUpdatesResponse
,SubscribeToComponentUpdatesRequest
,SubscribeToComponentUpdatesResponse
,SubscribeToConfigurationUpdateRequest
,SubscribeToConfigurationUpdateResponse
,SubscribeToIoTCoreRequest
,SubscribeToIoTCoreResponse
,SubscribeToTopicRequest
,SubscribeToTopicResponse
,SubscribeToValidateConfigurationUpdatesRequest
,SubscribeToValidateConfigurationUpdatesResponse
,SubscriptionResponseMessage
,SystemResourceLimits
,UnauthorizedError
,UnsupportedOperationException
,UpdateConfigurationRequest
,UpdateConfigurationResponse
,UpdateStateRequest
,UpdateStateResponse
,UpdateThingShadowRequest
,UpdateThingShadowResponse
,UserProperty
,ValidateAuthorizationTokenRequest
,ValidateAuthorizationTokenResponse
,ValidateConfigurationUpdateEvent
,ValidateConfigurationUpdateEvents
,ValidationException
,VerifyClientDeviceIdentityRequest
,VerifyClientDeviceIdentityResponse
public interface EventStreamJsonMessage
All generated model types implement this interface, including errors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EventStreamJsonMessage
fromJson(com.google.gson.Gson gson, byte[] payload)
Converts the given GSON and payload into a EventStreamJsonMessageString
getApplicationModelType()
Returns the named model type.default boolean
isVoid()
Returns whether the EventStreamJsonMessage is voiddefault void
postFromJson()
If anything needs to be done in memory after parsing from JSON, override and perform it heredefault byte[]
toPayload(com.google.gson.Gson gson)
Serialize this object into a JSON payload.
-
-
-
Method Detail
-
toPayload
default byte[] toPayload(com.google.gson.Gson gson)
Serialize this object into a JSON payload. Does not validate object being serialized WARNING: implementers should not override this method. This could be an abstract class with final implementations for serialization/deserialization. Or better yet, rework how it works- Parameters:
gson
- The GSON to convert to a JSON payload- Returns:
- The GSON converted to a JSON payload
-
fromJson
default EventStreamJsonMessage fromJson(com.google.gson.Gson gson, byte[] payload)
Converts the given GSON and payload into a EventStreamJsonMessage- Parameters:
gson
- The GSON to convertpayload
- The payload to convert- Returns:
- A EventStreamJsonMessage
-
postFromJson
default void postFromJson()
If anything needs to be done in memory after parsing from JSON, override and perform it here
-
getApplicationModelType
String getApplicationModelType()
Returns the named model type. May be used for a header.- Returns:
- the named model type
-
isVoid
default boolean isVoid()
Returns whether the EventStreamJsonMessage is void- Returns:
- True if the EventStreamJsonMessage is void
-
-