amazonka-pinpoint-2.0: Amazon Pinpoint SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Pinpoint.Types.MessageResponse

Description

 
Synopsis

Documentation

data MessageResponse Source #

Provides information about the results of a request to send a message to an endpoint address.

See: newMessageResponse smart constructor.

Constructors

MessageResponse' 

Fields

  • endpointResult :: Maybe (HashMap Text EndpointMessageResult)

    A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

  • requestId :: Maybe Text

    The identifier for the original request that the message was delivered for.

  • result :: Maybe (HashMap Text MessageResult)

    A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

  • applicationId :: Text

    The unique identifier for the application that was used to send the message.

Instances

Instances details
FromJSON MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Generic MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Associated Types

type Rep MessageResponse :: Type -> Type #

Read MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Show MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

NFData MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Methods

rnf :: MessageResponse -> () #

Eq MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Hashable MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

type Rep MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

type Rep MessageResponse = D1 ('MetaData "MessageResponse" "Amazonka.Pinpoint.Types.MessageResponse" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "MessageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "endpointResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text EndpointMessageResult))) :*: S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "result") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text MessageResult))) :*: S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMessageResponse Source #

Create a value of MessageResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:endpointResult:MessageResponse', messageResponse_endpointResult - A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

$sel:requestId:MessageResponse', messageResponse_requestId - The identifier for the original request that the message was delivered for.

$sel:result:MessageResponse', messageResponse_result - A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

$sel:applicationId:MessageResponse', messageResponse_applicationId - The unique identifier for the application that was used to send the message.

messageResponse_endpointResult :: Lens' MessageResponse (Maybe (HashMap Text EndpointMessageResult)) Source #

A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

messageResponse_requestId :: Lens' MessageResponse (Maybe Text) Source #

The identifier for the original request that the message was delivered for.

messageResponse_result :: Lens' MessageResponse (Maybe (HashMap Text MessageResult)) Source #

A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

messageResponse_applicationId :: Lens' MessageResponse Text Source #

The unique identifier for the application that was used to send the message.