{-# 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.Chime.CreateMeetingDialOut
-- 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)
--
-- Uses the join token and call metadata in a meeting request (From number,
-- To number, and so forth) to initiate an outbound call to a public
-- switched telephone network (PSTN) and join them into a Chime meeting.
-- Also ensures that the From number belongs to the customer.
--
-- To play welcome audio or implement an interactive voice response (IVR),
-- use the @CreateSipMediaApplicationCall@ action with the corresponding
-- SIP media application ID.
module Amazonka.Chime.CreateMeetingDialOut
  ( -- * Creating a Request
    CreateMeetingDialOut (..),
    newCreateMeetingDialOut,

    -- * Request Lenses
    createMeetingDialOut_meetingId,
    createMeetingDialOut_fromPhoneNumber,
    createMeetingDialOut_toPhoneNumber,
    createMeetingDialOut_joinToken,

    -- * Destructuring the Response
    CreateMeetingDialOutResponse (..),
    newCreateMeetingDialOutResponse,

    -- * Response Lenses
    createMeetingDialOutResponse_transactionId,
    createMeetingDialOutResponse_httpStatus,
  )
where

import Amazonka.Chime.Types
import qualified Amazonka.Core as Core
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:/ 'newCreateMeetingDialOut' smart constructor.
data CreateMeetingDialOut = CreateMeetingDialOut'
  { -- | The Amazon Chime SDK meeting ID.
    CreateMeetingDialOut -> Text
meetingId :: Prelude.Text,
    -- | Phone number used as the caller ID when the remote party receives a
    -- call.
    CreateMeetingDialOut -> Sensitive Text
fromPhoneNumber :: Core.Sensitive Prelude.Text,
    -- | Phone number called when inviting someone to a meeting.
    CreateMeetingDialOut -> Sensitive Text
toPhoneNumber :: Core.Sensitive Prelude.Text,
    -- | Token used by the Amazon Chime SDK attendee. Call the
    -- <https://docs.aws.amazon.com/chime/latest/APIReference/API_CreateAttendee.html CreateAttendee>
    -- action to get a join token.
    CreateMeetingDialOut -> Sensitive Text
joinToken :: Core.Sensitive Prelude.Text
  }
  deriving (CreateMeetingDialOut -> CreateMeetingDialOut -> Bool
(CreateMeetingDialOut -> CreateMeetingDialOut -> Bool)
-> (CreateMeetingDialOut -> CreateMeetingDialOut -> Bool)
-> Eq CreateMeetingDialOut
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateMeetingDialOut -> CreateMeetingDialOut -> Bool
$c/= :: CreateMeetingDialOut -> CreateMeetingDialOut -> Bool
== :: CreateMeetingDialOut -> CreateMeetingDialOut -> Bool
$c== :: CreateMeetingDialOut -> CreateMeetingDialOut -> Bool
Prelude.Eq, Int -> CreateMeetingDialOut -> ShowS
[CreateMeetingDialOut] -> ShowS
CreateMeetingDialOut -> String
(Int -> CreateMeetingDialOut -> ShowS)
-> (CreateMeetingDialOut -> String)
-> ([CreateMeetingDialOut] -> ShowS)
-> Show CreateMeetingDialOut
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateMeetingDialOut] -> ShowS
$cshowList :: [CreateMeetingDialOut] -> ShowS
show :: CreateMeetingDialOut -> String
$cshow :: CreateMeetingDialOut -> String
showsPrec :: Int -> CreateMeetingDialOut -> ShowS
$cshowsPrec :: Int -> CreateMeetingDialOut -> ShowS
Prelude.Show, (forall x. CreateMeetingDialOut -> Rep CreateMeetingDialOut x)
-> (forall x. Rep CreateMeetingDialOut x -> CreateMeetingDialOut)
-> Generic CreateMeetingDialOut
forall x. Rep CreateMeetingDialOut x -> CreateMeetingDialOut
forall x. CreateMeetingDialOut -> Rep CreateMeetingDialOut x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateMeetingDialOut x -> CreateMeetingDialOut
$cfrom :: forall x. CreateMeetingDialOut -> Rep CreateMeetingDialOut x
Prelude.Generic)

-- |
-- Create a value of 'CreateMeetingDialOut' 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:
--
-- 'meetingId', 'createMeetingDialOut_meetingId' - The Amazon Chime SDK meeting ID.
--
-- 'fromPhoneNumber', 'createMeetingDialOut_fromPhoneNumber' - Phone number used as the caller ID when the remote party receives a
-- call.
--
-- 'toPhoneNumber', 'createMeetingDialOut_toPhoneNumber' - Phone number called when inviting someone to a meeting.
--
-- 'joinToken', 'createMeetingDialOut_joinToken' - Token used by the Amazon Chime SDK attendee. Call the
-- <https://docs.aws.amazon.com/chime/latest/APIReference/API_CreateAttendee.html CreateAttendee>
-- action to get a join token.
newCreateMeetingDialOut ::
  -- | 'meetingId'
  Prelude.Text ->
  -- | 'fromPhoneNumber'
  Prelude.Text ->
  -- | 'toPhoneNumber'
  Prelude.Text ->
  -- | 'joinToken'
  Prelude.Text ->
  CreateMeetingDialOut
newCreateMeetingDialOut :: Text -> Text -> Text -> Text -> CreateMeetingDialOut
newCreateMeetingDialOut
  Text
pMeetingId_
  Text
pFromPhoneNumber_
  Text
pToPhoneNumber_
  Text
pJoinToken_ =
    CreateMeetingDialOut' :: Text
-> Sensitive Text
-> Sensitive Text
-> Sensitive Text
-> CreateMeetingDialOut
CreateMeetingDialOut'
      { $sel:meetingId:CreateMeetingDialOut' :: Text
meetingId = Text
pMeetingId_,
        $sel:fromPhoneNumber:CreateMeetingDialOut' :: Sensitive Text
fromPhoneNumber =
          Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
 -> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pFromPhoneNumber_,
        $sel:toPhoneNumber:CreateMeetingDialOut' :: Sensitive Text
toPhoneNumber =
          Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
 -> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pToPhoneNumber_,
        $sel:joinToken:CreateMeetingDialOut' :: Sensitive Text
joinToken = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
 -> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pJoinToken_
      }

-- | The Amazon Chime SDK meeting ID.
createMeetingDialOut_meetingId :: Lens.Lens' CreateMeetingDialOut Prelude.Text
createMeetingDialOut_meetingId :: (Text -> f Text) -> CreateMeetingDialOut -> f CreateMeetingDialOut
createMeetingDialOut_meetingId = (CreateMeetingDialOut -> Text)
-> (CreateMeetingDialOut -> Text -> CreateMeetingDialOut)
-> Lens CreateMeetingDialOut CreateMeetingDialOut Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingDialOut' {Text
meetingId :: Text
$sel:meetingId:CreateMeetingDialOut' :: CreateMeetingDialOut -> Text
meetingId} -> Text
meetingId) (\s :: CreateMeetingDialOut
s@CreateMeetingDialOut' {} Text
a -> CreateMeetingDialOut
s {$sel:meetingId:CreateMeetingDialOut' :: Text
meetingId = Text
a} :: CreateMeetingDialOut)

-- | Phone number used as the caller ID when the remote party receives a
-- call.
createMeetingDialOut_fromPhoneNumber :: Lens.Lens' CreateMeetingDialOut Prelude.Text
createMeetingDialOut_fromPhoneNumber :: (Text -> f Text) -> CreateMeetingDialOut -> f CreateMeetingDialOut
createMeetingDialOut_fromPhoneNumber = (CreateMeetingDialOut -> Sensitive Text)
-> (CreateMeetingDialOut -> Sensitive Text -> CreateMeetingDialOut)
-> Lens
     CreateMeetingDialOut
     CreateMeetingDialOut
     (Sensitive Text)
     (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingDialOut' {Sensitive Text
fromPhoneNumber :: Sensitive Text
$sel:fromPhoneNumber:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
fromPhoneNumber} -> Sensitive Text
fromPhoneNumber) (\s :: CreateMeetingDialOut
s@CreateMeetingDialOut' {} Sensitive Text
a -> CreateMeetingDialOut
s {$sel:fromPhoneNumber:CreateMeetingDialOut' :: Sensitive Text
fromPhoneNumber = Sensitive Text
a} :: CreateMeetingDialOut) ((Sensitive Text -> f (Sensitive Text))
 -> CreateMeetingDialOut -> f CreateMeetingDialOut)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateMeetingDialOut
-> f CreateMeetingDialOut
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | Phone number called when inviting someone to a meeting.
createMeetingDialOut_toPhoneNumber :: Lens.Lens' CreateMeetingDialOut Prelude.Text
createMeetingDialOut_toPhoneNumber :: (Text -> f Text) -> CreateMeetingDialOut -> f CreateMeetingDialOut
createMeetingDialOut_toPhoneNumber = (CreateMeetingDialOut -> Sensitive Text)
-> (CreateMeetingDialOut -> Sensitive Text -> CreateMeetingDialOut)
-> Lens
     CreateMeetingDialOut
     CreateMeetingDialOut
     (Sensitive Text)
     (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingDialOut' {Sensitive Text
toPhoneNumber :: Sensitive Text
$sel:toPhoneNumber:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
toPhoneNumber} -> Sensitive Text
toPhoneNumber) (\s :: CreateMeetingDialOut
s@CreateMeetingDialOut' {} Sensitive Text
a -> CreateMeetingDialOut
s {$sel:toPhoneNumber:CreateMeetingDialOut' :: Sensitive Text
toPhoneNumber = Sensitive Text
a} :: CreateMeetingDialOut) ((Sensitive Text -> f (Sensitive Text))
 -> CreateMeetingDialOut -> f CreateMeetingDialOut)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateMeetingDialOut
-> f CreateMeetingDialOut
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | Token used by the Amazon Chime SDK attendee. Call the
-- <https://docs.aws.amazon.com/chime/latest/APIReference/API_CreateAttendee.html CreateAttendee>
-- action to get a join token.
createMeetingDialOut_joinToken :: Lens.Lens' CreateMeetingDialOut Prelude.Text
createMeetingDialOut_joinToken :: (Text -> f Text) -> CreateMeetingDialOut -> f CreateMeetingDialOut
createMeetingDialOut_joinToken = (CreateMeetingDialOut -> Sensitive Text)
-> (CreateMeetingDialOut -> Sensitive Text -> CreateMeetingDialOut)
-> Lens
     CreateMeetingDialOut
     CreateMeetingDialOut
     (Sensitive Text)
     (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingDialOut' {Sensitive Text
joinToken :: Sensitive Text
$sel:joinToken:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
joinToken} -> Sensitive Text
joinToken) (\s :: CreateMeetingDialOut
s@CreateMeetingDialOut' {} Sensitive Text
a -> CreateMeetingDialOut
s {$sel:joinToken:CreateMeetingDialOut' :: Sensitive Text
joinToken = Sensitive Text
a} :: CreateMeetingDialOut) ((Sensitive Text -> f (Sensitive Text))
 -> CreateMeetingDialOut -> f CreateMeetingDialOut)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateMeetingDialOut
-> f CreateMeetingDialOut
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive

instance Core.AWSRequest CreateMeetingDialOut where
  type
    AWSResponse CreateMeetingDialOut =
      CreateMeetingDialOutResponse
  request :: CreateMeetingDialOut -> Request CreateMeetingDialOut
request = Service -> CreateMeetingDialOut -> Request CreateMeetingDialOut
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateMeetingDialOut
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateMeetingDialOut)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateMeetingDialOut))
-> Logger
-> Service
-> Proxy CreateMeetingDialOut
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateMeetingDialOut)))
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 -> CreateMeetingDialOutResponse
CreateMeetingDialOutResponse'
            (Maybe Text -> Int -> CreateMeetingDialOutResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateMeetingDialOutResponse)
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
"TransactionId")
            Either String (Int -> CreateMeetingDialOutResponse)
-> Either String Int -> Either String CreateMeetingDialOutResponse
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 CreateMeetingDialOut

instance Prelude.NFData CreateMeetingDialOut

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

instance Core.ToJSON CreateMeetingDialOut where
  toJSON :: CreateMeetingDialOut -> Value
toJSON CreateMeetingDialOut' {Text
Sensitive Text
joinToken :: Sensitive Text
toPhoneNumber :: Sensitive Text
fromPhoneNumber :: Sensitive Text
meetingId :: Text
$sel:joinToken:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
$sel:toPhoneNumber:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
$sel:fromPhoneNumber:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
$sel:meetingId:CreateMeetingDialOut' :: CreateMeetingDialOut -> 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
"FromPhoneNumber" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
fromPhoneNumber),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ToPhoneNumber" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
toPhoneNumber),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"JoinToken" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
joinToken)
          ]
      )

instance Core.ToPath CreateMeetingDialOut where
  toPath :: CreateMeetingDialOut -> ByteString
toPath CreateMeetingDialOut' {Text
Sensitive Text
joinToken :: Sensitive Text
toPhoneNumber :: Sensitive Text
fromPhoneNumber :: Sensitive Text
meetingId :: Text
$sel:joinToken:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
$sel:toPhoneNumber:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
$sel:fromPhoneNumber:CreateMeetingDialOut' :: CreateMeetingDialOut -> Sensitive Text
$sel:meetingId:CreateMeetingDialOut' :: CreateMeetingDialOut -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/meetings/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
meetingId, ByteString
"/dial-outs"]

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

-- | /See:/ 'newCreateMeetingDialOutResponse' smart constructor.
data CreateMeetingDialOutResponse = CreateMeetingDialOutResponse'
  { -- | Unique ID that tracks API calls.
    CreateMeetingDialOutResponse -> Maybe Text
transactionId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CreateMeetingDialOutResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateMeetingDialOutResponse
-> CreateMeetingDialOutResponse -> Bool
(CreateMeetingDialOutResponse
 -> CreateMeetingDialOutResponse -> Bool)
-> (CreateMeetingDialOutResponse
    -> CreateMeetingDialOutResponse -> Bool)
-> Eq CreateMeetingDialOutResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateMeetingDialOutResponse
-> CreateMeetingDialOutResponse -> Bool
$c/= :: CreateMeetingDialOutResponse
-> CreateMeetingDialOutResponse -> Bool
== :: CreateMeetingDialOutResponse
-> CreateMeetingDialOutResponse -> Bool
$c== :: CreateMeetingDialOutResponse
-> CreateMeetingDialOutResponse -> Bool
Prelude.Eq, ReadPrec [CreateMeetingDialOutResponse]
ReadPrec CreateMeetingDialOutResponse
Int -> ReadS CreateMeetingDialOutResponse
ReadS [CreateMeetingDialOutResponse]
(Int -> ReadS CreateMeetingDialOutResponse)
-> ReadS [CreateMeetingDialOutResponse]
-> ReadPrec CreateMeetingDialOutResponse
-> ReadPrec [CreateMeetingDialOutResponse]
-> Read CreateMeetingDialOutResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateMeetingDialOutResponse]
$creadListPrec :: ReadPrec [CreateMeetingDialOutResponse]
readPrec :: ReadPrec CreateMeetingDialOutResponse
$creadPrec :: ReadPrec CreateMeetingDialOutResponse
readList :: ReadS [CreateMeetingDialOutResponse]
$creadList :: ReadS [CreateMeetingDialOutResponse]
readsPrec :: Int -> ReadS CreateMeetingDialOutResponse
$creadsPrec :: Int -> ReadS CreateMeetingDialOutResponse
Prelude.Read, Int -> CreateMeetingDialOutResponse -> ShowS
[CreateMeetingDialOutResponse] -> ShowS
CreateMeetingDialOutResponse -> String
(Int -> CreateMeetingDialOutResponse -> ShowS)
-> (CreateMeetingDialOutResponse -> String)
-> ([CreateMeetingDialOutResponse] -> ShowS)
-> Show CreateMeetingDialOutResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateMeetingDialOutResponse] -> ShowS
$cshowList :: [CreateMeetingDialOutResponse] -> ShowS
show :: CreateMeetingDialOutResponse -> String
$cshow :: CreateMeetingDialOutResponse -> String
showsPrec :: Int -> CreateMeetingDialOutResponse -> ShowS
$cshowsPrec :: Int -> CreateMeetingDialOutResponse -> ShowS
Prelude.Show, (forall x.
 CreateMeetingDialOutResponse -> Rep CreateMeetingDialOutResponse x)
-> (forall x.
    Rep CreateMeetingDialOutResponse x -> CreateMeetingDialOutResponse)
-> Generic CreateMeetingDialOutResponse
forall x.
Rep CreateMeetingDialOutResponse x -> CreateMeetingDialOutResponse
forall x.
CreateMeetingDialOutResponse -> Rep CreateMeetingDialOutResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateMeetingDialOutResponse x -> CreateMeetingDialOutResponse
$cfrom :: forall x.
CreateMeetingDialOutResponse -> Rep CreateMeetingDialOutResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateMeetingDialOutResponse' 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:
--
-- 'transactionId', 'createMeetingDialOutResponse_transactionId' - Unique ID that tracks API calls.
--
-- 'httpStatus', 'createMeetingDialOutResponse_httpStatus' - The response's http status code.
newCreateMeetingDialOutResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateMeetingDialOutResponse
newCreateMeetingDialOutResponse :: Int -> CreateMeetingDialOutResponse
newCreateMeetingDialOutResponse Int
pHttpStatus_ =
  CreateMeetingDialOutResponse' :: Maybe Text -> Int -> CreateMeetingDialOutResponse
CreateMeetingDialOutResponse'
    { $sel:transactionId:CreateMeetingDialOutResponse' :: Maybe Text
transactionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateMeetingDialOutResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Unique ID that tracks API calls.
createMeetingDialOutResponse_transactionId :: Lens.Lens' CreateMeetingDialOutResponse (Prelude.Maybe Prelude.Text)
createMeetingDialOutResponse_transactionId :: (Maybe Text -> f (Maybe Text))
-> CreateMeetingDialOutResponse -> f CreateMeetingDialOutResponse
createMeetingDialOutResponse_transactionId = (CreateMeetingDialOutResponse -> Maybe Text)
-> (CreateMeetingDialOutResponse
    -> Maybe Text -> CreateMeetingDialOutResponse)
-> Lens
     CreateMeetingDialOutResponse
     CreateMeetingDialOutResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingDialOutResponse' {Maybe Text
transactionId :: Maybe Text
$sel:transactionId:CreateMeetingDialOutResponse' :: CreateMeetingDialOutResponse -> Maybe Text
transactionId} -> Maybe Text
transactionId) (\s :: CreateMeetingDialOutResponse
s@CreateMeetingDialOutResponse' {} Maybe Text
a -> CreateMeetingDialOutResponse
s {$sel:transactionId:CreateMeetingDialOutResponse' :: Maybe Text
transactionId = Maybe Text
a} :: CreateMeetingDialOutResponse)

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

instance Prelude.NFData CreateMeetingDialOutResponse