{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.KinesisVideoSignaling.SendAlexaOfferToMaster
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- This API allows you to connect WebRTC-enabled devices with Alexa display
-- devices. When invoked, it sends the Alexa Session Description Protocol
-- (SDP) offer to the master peer. The offer is delivered as soon as the
-- master is connected to the specified signaling channel. This API returns
-- the SDP answer from the connected master. If the master is not connected
-- to the signaling channel, redelivery requests are made until the message
-- expires.
module Amazonka.KinesisVideoSignaling.SendAlexaOfferToMaster
  ( -- * Creating a Request
    SendAlexaOfferToMaster (..),
    newSendAlexaOfferToMaster,

    -- * Request Lenses
    sendAlexaOfferToMaster_channelARN,
    sendAlexaOfferToMaster_senderClientId,
    sendAlexaOfferToMaster_messagePayload,

    -- * Destructuring the Response
    SendAlexaOfferToMasterResponse (..),
    newSendAlexaOfferToMasterResponse,

    -- * Response Lenses
    sendAlexaOfferToMasterResponse_answer,
    sendAlexaOfferToMasterResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.KinesisVideoSignaling.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newSendAlexaOfferToMaster' smart constructor.
data SendAlexaOfferToMaster = SendAlexaOfferToMaster'
  { -- | The ARN of the signaling channel by which Alexa and the master peer
    -- communicate.
    SendAlexaOfferToMaster -> Text
channelARN :: Prelude.Text,
    -- | The unique identifier for the sender client.
    SendAlexaOfferToMaster -> Text
senderClientId :: Prelude.Text,
    -- | The base64-encoded SDP offer content.
    SendAlexaOfferToMaster -> Text
messagePayload :: Prelude.Text
  }
  deriving (SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool
(SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool)
-> (SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool)
-> Eq SendAlexaOfferToMaster
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool
$c/= :: SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool
== :: SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool
$c== :: SendAlexaOfferToMaster -> SendAlexaOfferToMaster -> Bool
Prelude.Eq, ReadPrec [SendAlexaOfferToMaster]
ReadPrec SendAlexaOfferToMaster
Int -> ReadS SendAlexaOfferToMaster
ReadS [SendAlexaOfferToMaster]
(Int -> ReadS SendAlexaOfferToMaster)
-> ReadS [SendAlexaOfferToMaster]
-> ReadPrec SendAlexaOfferToMaster
-> ReadPrec [SendAlexaOfferToMaster]
-> Read SendAlexaOfferToMaster
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SendAlexaOfferToMaster]
$creadListPrec :: ReadPrec [SendAlexaOfferToMaster]
readPrec :: ReadPrec SendAlexaOfferToMaster
$creadPrec :: ReadPrec SendAlexaOfferToMaster
readList :: ReadS [SendAlexaOfferToMaster]
$creadList :: ReadS [SendAlexaOfferToMaster]
readsPrec :: Int -> ReadS SendAlexaOfferToMaster
$creadsPrec :: Int -> ReadS SendAlexaOfferToMaster
Prelude.Read, Int -> SendAlexaOfferToMaster -> ShowS
[SendAlexaOfferToMaster] -> ShowS
SendAlexaOfferToMaster -> String
(Int -> SendAlexaOfferToMaster -> ShowS)
-> (SendAlexaOfferToMaster -> String)
-> ([SendAlexaOfferToMaster] -> ShowS)
-> Show SendAlexaOfferToMaster
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SendAlexaOfferToMaster] -> ShowS
$cshowList :: [SendAlexaOfferToMaster] -> ShowS
show :: SendAlexaOfferToMaster -> String
$cshow :: SendAlexaOfferToMaster -> String
showsPrec :: Int -> SendAlexaOfferToMaster -> ShowS
$cshowsPrec :: Int -> SendAlexaOfferToMaster -> ShowS
Prelude.Show, (forall x. SendAlexaOfferToMaster -> Rep SendAlexaOfferToMaster x)
-> (forall x.
    Rep SendAlexaOfferToMaster x -> SendAlexaOfferToMaster)
-> Generic SendAlexaOfferToMaster
forall x. Rep SendAlexaOfferToMaster x -> SendAlexaOfferToMaster
forall x. SendAlexaOfferToMaster -> Rep SendAlexaOfferToMaster x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SendAlexaOfferToMaster x -> SendAlexaOfferToMaster
$cfrom :: forall x. SendAlexaOfferToMaster -> Rep SendAlexaOfferToMaster x
Prelude.Generic)

-- |
-- Create a value of 'SendAlexaOfferToMaster' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'channelARN', 'sendAlexaOfferToMaster_channelARN' - The ARN of the signaling channel by which Alexa and the master peer
-- communicate.
--
-- 'senderClientId', 'sendAlexaOfferToMaster_senderClientId' - The unique identifier for the sender client.
--
-- 'messagePayload', 'sendAlexaOfferToMaster_messagePayload' - The base64-encoded SDP offer content.
newSendAlexaOfferToMaster ::
  -- | 'channelARN'
  Prelude.Text ->
  -- | 'senderClientId'
  Prelude.Text ->
  -- | 'messagePayload'
  Prelude.Text ->
  SendAlexaOfferToMaster
newSendAlexaOfferToMaster :: Text -> Text -> Text -> SendAlexaOfferToMaster
newSendAlexaOfferToMaster
  Text
pChannelARN_
  Text
pSenderClientId_
  Text
pMessagePayload_ =
    SendAlexaOfferToMaster' :: Text -> Text -> Text -> SendAlexaOfferToMaster
SendAlexaOfferToMaster'
      { $sel:channelARN:SendAlexaOfferToMaster' :: Text
channelARN = Text
pChannelARN_,
        $sel:senderClientId:SendAlexaOfferToMaster' :: Text
senderClientId = Text
pSenderClientId_,
        $sel:messagePayload:SendAlexaOfferToMaster' :: Text
messagePayload = Text
pMessagePayload_
      }

-- | The ARN of the signaling channel by which Alexa and the master peer
-- communicate.
sendAlexaOfferToMaster_channelARN :: Lens.Lens' SendAlexaOfferToMaster Prelude.Text
sendAlexaOfferToMaster_channelARN :: (Text -> f Text)
-> SendAlexaOfferToMaster -> f SendAlexaOfferToMaster
sendAlexaOfferToMaster_channelARN = (SendAlexaOfferToMaster -> Text)
-> (SendAlexaOfferToMaster -> Text -> SendAlexaOfferToMaster)
-> Lens SendAlexaOfferToMaster SendAlexaOfferToMaster Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendAlexaOfferToMaster' {Text
channelARN :: Text
$sel:channelARN:SendAlexaOfferToMaster' :: SendAlexaOfferToMaster -> Text
channelARN} -> Text
channelARN) (\s :: SendAlexaOfferToMaster
s@SendAlexaOfferToMaster' {} Text
a -> SendAlexaOfferToMaster
s {$sel:channelARN:SendAlexaOfferToMaster' :: Text
channelARN = Text
a} :: SendAlexaOfferToMaster)

-- | The unique identifier for the sender client.
sendAlexaOfferToMaster_senderClientId :: Lens.Lens' SendAlexaOfferToMaster Prelude.Text
sendAlexaOfferToMaster_senderClientId :: (Text -> f Text)
-> SendAlexaOfferToMaster -> f SendAlexaOfferToMaster
sendAlexaOfferToMaster_senderClientId = (SendAlexaOfferToMaster -> Text)
-> (SendAlexaOfferToMaster -> Text -> SendAlexaOfferToMaster)
-> Lens SendAlexaOfferToMaster SendAlexaOfferToMaster Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendAlexaOfferToMaster' {Text
senderClientId :: Text
$sel:senderClientId:SendAlexaOfferToMaster' :: SendAlexaOfferToMaster -> Text
senderClientId} -> Text
senderClientId) (\s :: SendAlexaOfferToMaster
s@SendAlexaOfferToMaster' {} Text
a -> SendAlexaOfferToMaster
s {$sel:senderClientId:SendAlexaOfferToMaster' :: Text
senderClientId = Text
a} :: SendAlexaOfferToMaster)

-- | The base64-encoded SDP offer content.
sendAlexaOfferToMaster_messagePayload :: Lens.Lens' SendAlexaOfferToMaster Prelude.Text
sendAlexaOfferToMaster_messagePayload :: (Text -> f Text)
-> SendAlexaOfferToMaster -> f SendAlexaOfferToMaster
sendAlexaOfferToMaster_messagePayload = (SendAlexaOfferToMaster -> Text)
-> (SendAlexaOfferToMaster -> Text -> SendAlexaOfferToMaster)
-> Lens SendAlexaOfferToMaster SendAlexaOfferToMaster Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendAlexaOfferToMaster' {Text
messagePayload :: Text
$sel:messagePayload:SendAlexaOfferToMaster' :: SendAlexaOfferToMaster -> Text
messagePayload} -> Text
messagePayload) (\s :: SendAlexaOfferToMaster
s@SendAlexaOfferToMaster' {} Text
a -> SendAlexaOfferToMaster
s {$sel:messagePayload:SendAlexaOfferToMaster' :: Text
messagePayload = Text
a} :: SendAlexaOfferToMaster)

instance Core.AWSRequest SendAlexaOfferToMaster where
  type
    AWSResponse SendAlexaOfferToMaster =
      SendAlexaOfferToMasterResponse
  request :: SendAlexaOfferToMaster -> Request SendAlexaOfferToMaster
request = Service -> SendAlexaOfferToMaster -> Request SendAlexaOfferToMaster
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy SendAlexaOfferToMaster
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse SendAlexaOfferToMaster)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse SendAlexaOfferToMaster))
-> Logger
-> Service
-> Proxy SendAlexaOfferToMaster
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse SendAlexaOfferToMaster)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Int -> SendAlexaOfferToMasterResponse
SendAlexaOfferToMasterResponse'
            (Maybe Text -> Int -> SendAlexaOfferToMasterResponse)
-> Either String (Maybe Text)
-> Either String (Int -> SendAlexaOfferToMasterResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Answer")
            Either String (Int -> SendAlexaOfferToMasterResponse)
-> Either String Int
-> Either String SendAlexaOfferToMasterResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable SendAlexaOfferToMaster

instance Prelude.NFData SendAlexaOfferToMaster

instance Core.ToHeaders SendAlexaOfferToMaster where
  toHeaders :: SendAlexaOfferToMaster -> ResponseHeaders
toHeaders = ResponseHeaders -> SendAlexaOfferToMaster -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON SendAlexaOfferToMaster where
  toJSON :: SendAlexaOfferToMaster -> Value
toJSON SendAlexaOfferToMaster' {Text
messagePayload :: Text
senderClientId :: Text
channelARN :: Text
$sel:messagePayload:SendAlexaOfferToMaster' :: SendAlexaOfferToMaster -> Text
$sel:senderClientId:SendAlexaOfferToMaster' :: SendAlexaOfferToMaster -> Text
$sel:channelARN:SendAlexaOfferToMaster' :: SendAlexaOfferToMaster -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ChannelARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
channelARN),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"SenderClientId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
senderClientId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"MessagePayload" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
messagePayload)
          ]
      )

instance Core.ToPath SendAlexaOfferToMaster where
  toPath :: SendAlexaOfferToMaster -> ByteString
toPath =
    ByteString -> SendAlexaOfferToMaster -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/send-alexa-offer-to-master"

instance Core.ToQuery SendAlexaOfferToMaster where
  toQuery :: SendAlexaOfferToMaster -> QueryString
toQuery = QueryString -> SendAlexaOfferToMaster -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newSendAlexaOfferToMasterResponse' smart constructor.
data SendAlexaOfferToMasterResponse = SendAlexaOfferToMasterResponse'
  { -- | The base64-encoded SDP answer content.
    SendAlexaOfferToMasterResponse -> Maybe Text
answer :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    SendAlexaOfferToMasterResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (SendAlexaOfferToMasterResponse
-> SendAlexaOfferToMasterResponse -> Bool
(SendAlexaOfferToMasterResponse
 -> SendAlexaOfferToMasterResponse -> Bool)
-> (SendAlexaOfferToMasterResponse
    -> SendAlexaOfferToMasterResponse -> Bool)
-> Eq SendAlexaOfferToMasterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SendAlexaOfferToMasterResponse
-> SendAlexaOfferToMasterResponse -> Bool
$c/= :: SendAlexaOfferToMasterResponse
-> SendAlexaOfferToMasterResponse -> Bool
== :: SendAlexaOfferToMasterResponse
-> SendAlexaOfferToMasterResponse -> Bool
$c== :: SendAlexaOfferToMasterResponse
-> SendAlexaOfferToMasterResponse -> Bool
Prelude.Eq, ReadPrec [SendAlexaOfferToMasterResponse]
ReadPrec SendAlexaOfferToMasterResponse
Int -> ReadS SendAlexaOfferToMasterResponse
ReadS [SendAlexaOfferToMasterResponse]
(Int -> ReadS SendAlexaOfferToMasterResponse)
-> ReadS [SendAlexaOfferToMasterResponse]
-> ReadPrec SendAlexaOfferToMasterResponse
-> ReadPrec [SendAlexaOfferToMasterResponse]
-> Read SendAlexaOfferToMasterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SendAlexaOfferToMasterResponse]
$creadListPrec :: ReadPrec [SendAlexaOfferToMasterResponse]
readPrec :: ReadPrec SendAlexaOfferToMasterResponse
$creadPrec :: ReadPrec SendAlexaOfferToMasterResponse
readList :: ReadS [SendAlexaOfferToMasterResponse]
$creadList :: ReadS [SendAlexaOfferToMasterResponse]
readsPrec :: Int -> ReadS SendAlexaOfferToMasterResponse
$creadsPrec :: Int -> ReadS SendAlexaOfferToMasterResponse
Prelude.Read, Int -> SendAlexaOfferToMasterResponse -> ShowS
[SendAlexaOfferToMasterResponse] -> ShowS
SendAlexaOfferToMasterResponse -> String
(Int -> SendAlexaOfferToMasterResponse -> ShowS)
-> (SendAlexaOfferToMasterResponse -> String)
-> ([SendAlexaOfferToMasterResponse] -> ShowS)
-> Show SendAlexaOfferToMasterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SendAlexaOfferToMasterResponse] -> ShowS
$cshowList :: [SendAlexaOfferToMasterResponse] -> ShowS
show :: SendAlexaOfferToMasterResponse -> String
$cshow :: SendAlexaOfferToMasterResponse -> String
showsPrec :: Int -> SendAlexaOfferToMasterResponse -> ShowS
$cshowsPrec :: Int -> SendAlexaOfferToMasterResponse -> ShowS
Prelude.Show, (forall x.
 SendAlexaOfferToMasterResponse
 -> Rep SendAlexaOfferToMasterResponse x)
-> (forall x.
    Rep SendAlexaOfferToMasterResponse x
    -> SendAlexaOfferToMasterResponse)
-> Generic SendAlexaOfferToMasterResponse
forall x.
Rep SendAlexaOfferToMasterResponse x
-> SendAlexaOfferToMasterResponse
forall x.
SendAlexaOfferToMasterResponse
-> Rep SendAlexaOfferToMasterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SendAlexaOfferToMasterResponse x
-> SendAlexaOfferToMasterResponse
$cfrom :: forall x.
SendAlexaOfferToMasterResponse
-> Rep SendAlexaOfferToMasterResponse x
Prelude.Generic)

-- |
-- Create a value of 'SendAlexaOfferToMasterResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'answer', 'sendAlexaOfferToMasterResponse_answer' - The base64-encoded SDP answer content.
--
-- 'httpStatus', 'sendAlexaOfferToMasterResponse_httpStatus' - The response's http status code.
newSendAlexaOfferToMasterResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  SendAlexaOfferToMasterResponse
newSendAlexaOfferToMasterResponse :: Int -> SendAlexaOfferToMasterResponse
newSendAlexaOfferToMasterResponse Int
pHttpStatus_ =
  SendAlexaOfferToMasterResponse' :: Maybe Text -> Int -> SendAlexaOfferToMasterResponse
SendAlexaOfferToMasterResponse'
    { $sel:answer:SendAlexaOfferToMasterResponse' :: Maybe Text
answer =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:SendAlexaOfferToMasterResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The base64-encoded SDP answer content.
sendAlexaOfferToMasterResponse_answer :: Lens.Lens' SendAlexaOfferToMasterResponse (Prelude.Maybe Prelude.Text)
sendAlexaOfferToMasterResponse_answer :: (Maybe Text -> f (Maybe Text))
-> SendAlexaOfferToMasterResponse
-> f SendAlexaOfferToMasterResponse
sendAlexaOfferToMasterResponse_answer = (SendAlexaOfferToMasterResponse -> Maybe Text)
-> (SendAlexaOfferToMasterResponse
    -> Maybe Text -> SendAlexaOfferToMasterResponse)
-> Lens
     SendAlexaOfferToMasterResponse
     SendAlexaOfferToMasterResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendAlexaOfferToMasterResponse' {Maybe Text
answer :: Maybe Text
$sel:answer:SendAlexaOfferToMasterResponse' :: SendAlexaOfferToMasterResponse -> Maybe Text
answer} -> Maybe Text
answer) (\s :: SendAlexaOfferToMasterResponse
s@SendAlexaOfferToMasterResponse' {} Maybe Text
a -> SendAlexaOfferToMasterResponse
s {$sel:answer:SendAlexaOfferToMasterResponse' :: Maybe Text
answer = Maybe Text
a} :: SendAlexaOfferToMasterResponse)

-- | The response's http status code.
sendAlexaOfferToMasterResponse_httpStatus :: Lens.Lens' SendAlexaOfferToMasterResponse Prelude.Int
sendAlexaOfferToMasterResponse_httpStatus :: (Int -> f Int)
-> SendAlexaOfferToMasterResponse
-> f SendAlexaOfferToMasterResponse
sendAlexaOfferToMasterResponse_httpStatus = (SendAlexaOfferToMasterResponse -> Int)
-> (SendAlexaOfferToMasterResponse
    -> Int -> SendAlexaOfferToMasterResponse)
-> Lens
     SendAlexaOfferToMasterResponse
     SendAlexaOfferToMasterResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendAlexaOfferToMasterResponse' {Int
httpStatus :: Int
$sel:httpStatus:SendAlexaOfferToMasterResponse' :: SendAlexaOfferToMasterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: SendAlexaOfferToMasterResponse
s@SendAlexaOfferToMasterResponse' {} Int
a -> SendAlexaOfferToMasterResponse
s {$sel:httpStatus:SendAlexaOfferToMasterResponse' :: Int
httpStatus = Int
a} :: SendAlexaOfferToMasterResponse)

instance
  Prelude.NFData
    SendAlexaOfferToMasterResponse