{-# 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.CreateMeetingWithAttendees
-- 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)
--
-- Creates a new Amazon Chime SDK meeting in the specified media Region,
-- with attendees. For more information about specifying media Regions, see
-- <https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html Amazon Chime SDK Media Regions>
-- in the /Amazon Chime Developer Guide/ . For more information about the
-- Amazon Chime SDK, see
-- <https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html Using the Amazon Chime SDK>
-- in the /Amazon Chime Developer Guide/ .
module Amazonka.Chime.CreateMeetingWithAttendees
  ( -- * Creating a Request
    CreateMeetingWithAttendees (..),
    newCreateMeetingWithAttendees,

    -- * Request Lenses
    createMeetingWithAttendees_mediaRegion,
    createMeetingWithAttendees_meetingHostId,
    createMeetingWithAttendees_attendees,
    createMeetingWithAttendees_notificationsConfiguration,
    createMeetingWithAttendees_externalMeetingId,
    createMeetingWithAttendees_tags,
    createMeetingWithAttendees_clientRequestToken,

    -- * Destructuring the Response
    CreateMeetingWithAttendeesResponse (..),
    newCreateMeetingWithAttendeesResponse,

    -- * Response Lenses
    createMeetingWithAttendeesResponse_attendees,
    createMeetingWithAttendeesResponse_meeting,
    createMeetingWithAttendeesResponse_errors,
    createMeetingWithAttendeesResponse_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:/ 'newCreateMeetingWithAttendees' smart constructor.
data CreateMeetingWithAttendees = CreateMeetingWithAttendees'
  { -- | The Region in which to create the meeting. Default: @us-east-1@ .
    --
    -- Available values: @af-south-1@ , @ap-northeast-1@ , @ap-northeast-2@ ,
    -- @ap-south-1@ , @ap-southeast-1@ , @ap-southeast-2@ , @ca-central-1@ ,
    -- @eu-central-1@ , @eu-north-1@ , @eu-south-1@ , @eu-west-1@ , @eu-west-2@
    -- , @eu-west-3@ , @sa-east-1@ , @us-east-1@ , @us-east-2@ , @us-west-1@ ,
    -- @us-west-2@ .
    CreateMeetingWithAttendees -> Maybe Text
mediaRegion :: Prelude.Maybe Prelude.Text,
    -- | Reserved.
    CreateMeetingWithAttendees -> Maybe (Sensitive Text)
meetingHostId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The request containing the attendees to create.
    CreateMeetingWithAttendees
-> Maybe (NonEmpty CreateAttendeeRequestItem)
attendees :: Prelude.Maybe (Prelude.NonEmpty CreateAttendeeRequestItem),
    CreateMeetingWithAttendees
-> Maybe MeetingNotificationConfiguration
notificationsConfiguration :: Prelude.Maybe MeetingNotificationConfiguration,
    -- | The external meeting ID.
    CreateMeetingWithAttendees -> Maybe (Sensitive Text)
externalMeetingId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The tag key-value pairs.
    CreateMeetingWithAttendees -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
    -- | The unique identifier for the client request. Use a different token for
    -- different meetings.
    CreateMeetingWithAttendees -> Sensitive Text
clientRequestToken :: Core.Sensitive Prelude.Text
  }
  deriving (CreateMeetingWithAttendees -> CreateMeetingWithAttendees -> Bool
(CreateMeetingWithAttendees -> CreateMeetingWithAttendees -> Bool)
-> (CreateMeetingWithAttendees
    -> CreateMeetingWithAttendees -> Bool)
-> Eq CreateMeetingWithAttendees
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateMeetingWithAttendees -> CreateMeetingWithAttendees -> Bool
$c/= :: CreateMeetingWithAttendees -> CreateMeetingWithAttendees -> Bool
== :: CreateMeetingWithAttendees -> CreateMeetingWithAttendees -> Bool
$c== :: CreateMeetingWithAttendees -> CreateMeetingWithAttendees -> Bool
Prelude.Eq, Int -> CreateMeetingWithAttendees -> ShowS
[CreateMeetingWithAttendees] -> ShowS
CreateMeetingWithAttendees -> String
(Int -> CreateMeetingWithAttendees -> ShowS)
-> (CreateMeetingWithAttendees -> String)
-> ([CreateMeetingWithAttendees] -> ShowS)
-> Show CreateMeetingWithAttendees
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateMeetingWithAttendees] -> ShowS
$cshowList :: [CreateMeetingWithAttendees] -> ShowS
show :: CreateMeetingWithAttendees -> String
$cshow :: CreateMeetingWithAttendees -> String
showsPrec :: Int -> CreateMeetingWithAttendees -> ShowS
$cshowsPrec :: Int -> CreateMeetingWithAttendees -> ShowS
Prelude.Show, (forall x.
 CreateMeetingWithAttendees -> Rep CreateMeetingWithAttendees x)
-> (forall x.
    Rep CreateMeetingWithAttendees x -> CreateMeetingWithAttendees)
-> Generic CreateMeetingWithAttendees
forall x.
Rep CreateMeetingWithAttendees x -> CreateMeetingWithAttendees
forall x.
CreateMeetingWithAttendees -> Rep CreateMeetingWithAttendees x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateMeetingWithAttendees x -> CreateMeetingWithAttendees
$cfrom :: forall x.
CreateMeetingWithAttendees -> Rep CreateMeetingWithAttendees x
Prelude.Generic)

-- |
-- Create a value of 'CreateMeetingWithAttendees' 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:
--
-- 'mediaRegion', 'createMeetingWithAttendees_mediaRegion' - The Region in which to create the meeting. Default: @us-east-1@ .
--
-- Available values: @af-south-1@ , @ap-northeast-1@ , @ap-northeast-2@ ,
-- @ap-south-1@ , @ap-southeast-1@ , @ap-southeast-2@ , @ca-central-1@ ,
-- @eu-central-1@ , @eu-north-1@ , @eu-south-1@ , @eu-west-1@ , @eu-west-2@
-- , @eu-west-3@ , @sa-east-1@ , @us-east-1@ , @us-east-2@ , @us-west-1@ ,
-- @us-west-2@ .
--
-- 'meetingHostId', 'createMeetingWithAttendees_meetingHostId' - Reserved.
--
-- 'attendees', 'createMeetingWithAttendees_attendees' - The request containing the attendees to create.
--
-- 'notificationsConfiguration', 'createMeetingWithAttendees_notificationsConfiguration' - Undocumented member.
--
-- 'externalMeetingId', 'createMeetingWithAttendees_externalMeetingId' - The external meeting ID.
--
-- 'tags', 'createMeetingWithAttendees_tags' - The tag key-value pairs.
--
-- 'clientRequestToken', 'createMeetingWithAttendees_clientRequestToken' - The unique identifier for the client request. Use a different token for
-- different meetings.
newCreateMeetingWithAttendees ::
  -- | 'clientRequestToken'
  Prelude.Text ->
  CreateMeetingWithAttendees
newCreateMeetingWithAttendees :: Text -> CreateMeetingWithAttendees
newCreateMeetingWithAttendees Text
pClientRequestToken_ =
  CreateMeetingWithAttendees' :: Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (NonEmpty CreateAttendeeRequestItem)
-> Maybe MeetingNotificationConfiguration
-> Maybe (Sensitive Text)
-> Maybe (NonEmpty Tag)
-> Sensitive Text
-> CreateMeetingWithAttendees
CreateMeetingWithAttendees'
    { $sel:mediaRegion:CreateMeetingWithAttendees' :: Maybe Text
mediaRegion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:meetingHostId:CreateMeetingWithAttendees' :: Maybe (Sensitive Text)
meetingHostId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:attendees:CreateMeetingWithAttendees' :: Maybe (NonEmpty CreateAttendeeRequestItem)
attendees = Maybe (NonEmpty CreateAttendeeRequestItem)
forall a. Maybe a
Prelude.Nothing,
      $sel:notificationsConfiguration:CreateMeetingWithAttendees' :: Maybe MeetingNotificationConfiguration
notificationsConfiguration = Maybe MeetingNotificationConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:externalMeetingId:CreateMeetingWithAttendees' :: Maybe (Sensitive Text)
externalMeetingId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateMeetingWithAttendees' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
      $sel:clientRequestToken:CreateMeetingWithAttendees' :: Sensitive Text
clientRequestToken =
        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
pClientRequestToken_
    }

-- | The Region in which to create the meeting. Default: @us-east-1@ .
--
-- Available values: @af-south-1@ , @ap-northeast-1@ , @ap-northeast-2@ ,
-- @ap-south-1@ , @ap-southeast-1@ , @ap-southeast-2@ , @ca-central-1@ ,
-- @eu-central-1@ , @eu-north-1@ , @eu-south-1@ , @eu-west-1@ , @eu-west-2@
-- , @eu-west-3@ , @sa-east-1@ , @us-east-1@ , @us-east-2@ , @us-west-1@ ,
-- @us-west-2@ .
createMeetingWithAttendees_mediaRegion :: Lens.Lens' CreateMeetingWithAttendees (Prelude.Maybe Prelude.Text)
createMeetingWithAttendees_mediaRegion :: (Maybe Text -> f (Maybe Text))
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_mediaRegion = (CreateMeetingWithAttendees -> Maybe Text)
-> (CreateMeetingWithAttendees
    -> Maybe Text -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Maybe Text
mediaRegion :: Maybe Text
$sel:mediaRegion:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe Text
mediaRegion} -> Maybe Text
mediaRegion) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Maybe Text
a -> CreateMeetingWithAttendees
s {$sel:mediaRegion:CreateMeetingWithAttendees' :: Maybe Text
mediaRegion = Maybe Text
a} :: CreateMeetingWithAttendees)

-- | Reserved.
createMeetingWithAttendees_meetingHostId :: Lens.Lens' CreateMeetingWithAttendees (Prelude.Maybe Prelude.Text)
createMeetingWithAttendees_meetingHostId :: (Maybe Text -> f (Maybe Text))
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_meetingHostId = (CreateMeetingWithAttendees -> Maybe (Sensitive Text))
-> (CreateMeetingWithAttendees
    -> Maybe (Sensitive Text) -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Maybe (Sensitive Text)
meetingHostId :: Maybe (Sensitive Text)
$sel:meetingHostId:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe (Sensitive Text)
meetingHostId} -> Maybe (Sensitive Text)
meetingHostId) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Maybe (Sensitive Text)
a -> CreateMeetingWithAttendees
s {$sel:meetingHostId:CreateMeetingWithAttendees' :: Maybe (Sensitive Text)
meetingHostId = Maybe (Sensitive Text)
a} :: CreateMeetingWithAttendees) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMeetingWithAttendees
-> f CreateMeetingWithAttendees
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The request containing the attendees to create.
createMeetingWithAttendees_attendees :: Lens.Lens' CreateMeetingWithAttendees (Prelude.Maybe (Prelude.NonEmpty CreateAttendeeRequestItem))
createMeetingWithAttendees_attendees :: (Maybe (NonEmpty CreateAttendeeRequestItem)
 -> f (Maybe (NonEmpty CreateAttendeeRequestItem)))
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_attendees = (CreateMeetingWithAttendees
 -> Maybe (NonEmpty CreateAttendeeRequestItem))
-> (CreateMeetingWithAttendees
    -> Maybe (NonEmpty CreateAttendeeRequestItem)
    -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Maybe (NonEmpty CreateAttendeeRequestItem))
     (Maybe (NonEmpty CreateAttendeeRequestItem))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Maybe (NonEmpty CreateAttendeeRequestItem)
attendees :: Maybe (NonEmpty CreateAttendeeRequestItem)
$sel:attendees:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees
-> Maybe (NonEmpty CreateAttendeeRequestItem)
attendees} -> Maybe (NonEmpty CreateAttendeeRequestItem)
attendees) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Maybe (NonEmpty CreateAttendeeRequestItem)
a -> CreateMeetingWithAttendees
s {$sel:attendees:CreateMeetingWithAttendees' :: Maybe (NonEmpty CreateAttendeeRequestItem)
attendees = Maybe (NonEmpty CreateAttendeeRequestItem)
a} :: CreateMeetingWithAttendees) ((Maybe (NonEmpty CreateAttendeeRequestItem)
  -> f (Maybe (NonEmpty CreateAttendeeRequestItem)))
 -> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees)
-> ((Maybe (NonEmpty CreateAttendeeRequestItem)
     -> f (Maybe (NonEmpty CreateAttendeeRequestItem)))
    -> Maybe (NonEmpty CreateAttendeeRequestItem)
    -> f (Maybe (NonEmpty CreateAttendeeRequestItem)))
-> (Maybe (NonEmpty CreateAttendeeRequestItem)
    -> f (Maybe (NonEmpty CreateAttendeeRequestItem)))
-> CreateMeetingWithAttendees
-> f CreateMeetingWithAttendees
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty CreateAttendeeRequestItem)
  (NonEmpty CreateAttendeeRequestItem)
  (NonEmpty CreateAttendeeRequestItem)
  (NonEmpty CreateAttendeeRequestItem)
-> Iso
     (Maybe (NonEmpty CreateAttendeeRequestItem))
     (Maybe (NonEmpty CreateAttendeeRequestItem))
     (Maybe (NonEmpty CreateAttendeeRequestItem))
     (Maybe (NonEmpty CreateAttendeeRequestItem))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (NonEmpty CreateAttendeeRequestItem)
  (NonEmpty CreateAttendeeRequestItem)
  (NonEmpty CreateAttendeeRequestItem)
  (NonEmpty CreateAttendeeRequestItem)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
createMeetingWithAttendees_notificationsConfiguration :: Lens.Lens' CreateMeetingWithAttendees (Prelude.Maybe MeetingNotificationConfiguration)
createMeetingWithAttendees_notificationsConfiguration :: (Maybe MeetingNotificationConfiguration
 -> f (Maybe MeetingNotificationConfiguration))
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_notificationsConfiguration = (CreateMeetingWithAttendees
 -> Maybe MeetingNotificationConfiguration)
-> (CreateMeetingWithAttendees
    -> Maybe MeetingNotificationConfiguration
    -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Maybe MeetingNotificationConfiguration)
     (Maybe MeetingNotificationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Maybe MeetingNotificationConfiguration
notificationsConfiguration :: Maybe MeetingNotificationConfiguration
$sel:notificationsConfiguration:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees
-> Maybe MeetingNotificationConfiguration
notificationsConfiguration} -> Maybe MeetingNotificationConfiguration
notificationsConfiguration) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Maybe MeetingNotificationConfiguration
a -> CreateMeetingWithAttendees
s {$sel:notificationsConfiguration:CreateMeetingWithAttendees' :: Maybe MeetingNotificationConfiguration
notificationsConfiguration = Maybe MeetingNotificationConfiguration
a} :: CreateMeetingWithAttendees)

-- | The external meeting ID.
createMeetingWithAttendees_externalMeetingId :: Lens.Lens' CreateMeetingWithAttendees (Prelude.Maybe Prelude.Text)
createMeetingWithAttendees_externalMeetingId :: (Maybe Text -> f (Maybe Text))
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_externalMeetingId = (CreateMeetingWithAttendees -> Maybe (Sensitive Text))
-> (CreateMeetingWithAttendees
    -> Maybe (Sensitive Text) -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Maybe (Sensitive Text)
externalMeetingId :: Maybe (Sensitive Text)
$sel:externalMeetingId:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe (Sensitive Text)
externalMeetingId} -> Maybe (Sensitive Text)
externalMeetingId) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Maybe (Sensitive Text)
a -> CreateMeetingWithAttendees
s {$sel:externalMeetingId:CreateMeetingWithAttendees' :: Maybe (Sensitive Text)
externalMeetingId = Maybe (Sensitive Text)
a} :: CreateMeetingWithAttendees) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMeetingWithAttendees
-> f CreateMeetingWithAttendees
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The tag key-value pairs.
createMeetingWithAttendees_tags :: Lens.Lens' CreateMeetingWithAttendees (Prelude.Maybe (Prelude.NonEmpty Tag))
createMeetingWithAttendees_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_tags = (CreateMeetingWithAttendees -> Maybe (NonEmpty Tag))
-> (CreateMeetingWithAttendees
    -> Maybe (NonEmpty Tag) -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Maybe (NonEmpty Tag))
     (Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Maybe (NonEmpty Tag)
a -> CreateMeetingWithAttendees
s {$sel:tags:CreateMeetingWithAttendees' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: CreateMeetingWithAttendees) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
 -> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
    -> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateMeetingWithAttendees
-> f CreateMeetingWithAttendees
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
     (Maybe (NonEmpty Tag))
     (Maybe (NonEmpty Tag))
     (Maybe (NonEmpty Tag))
     (Maybe (NonEmpty Tag))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The unique identifier for the client request. Use a different token for
-- different meetings.
createMeetingWithAttendees_clientRequestToken :: Lens.Lens' CreateMeetingWithAttendees Prelude.Text
createMeetingWithAttendees_clientRequestToken :: (Text -> f Text)
-> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees
createMeetingWithAttendees_clientRequestToken = (CreateMeetingWithAttendees -> Sensitive Text)
-> (CreateMeetingWithAttendees
    -> Sensitive Text -> CreateMeetingWithAttendees)
-> Lens
     CreateMeetingWithAttendees
     CreateMeetingWithAttendees
     (Sensitive Text)
     (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendees' {Sensitive Text
clientRequestToken :: Sensitive Text
$sel:clientRequestToken:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Sensitive Text
clientRequestToken} -> Sensitive Text
clientRequestToken) (\s :: CreateMeetingWithAttendees
s@CreateMeetingWithAttendees' {} Sensitive Text
a -> CreateMeetingWithAttendees
s {$sel:clientRequestToken:CreateMeetingWithAttendees' :: Sensitive Text
clientRequestToken = Sensitive Text
a} :: CreateMeetingWithAttendees) ((Sensitive Text -> f (Sensitive Text))
 -> CreateMeetingWithAttendees -> f CreateMeetingWithAttendees)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateMeetingWithAttendees
-> f CreateMeetingWithAttendees
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 CreateMeetingWithAttendees where
  type
    AWSResponse CreateMeetingWithAttendees =
      CreateMeetingWithAttendeesResponse
  request :: CreateMeetingWithAttendees -> Request CreateMeetingWithAttendees
request = Service
-> CreateMeetingWithAttendees -> Request CreateMeetingWithAttendees
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateMeetingWithAttendees
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateMeetingWithAttendees)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateMeetingWithAttendees))
-> Logger
-> Service
-> Proxy CreateMeetingWithAttendees
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateMeetingWithAttendees)))
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 [Attendee]
-> Maybe Meeting
-> Maybe [CreateAttendeeError]
-> Int
-> CreateMeetingWithAttendeesResponse
CreateMeetingWithAttendeesResponse'
            (Maybe [Attendee]
 -> Maybe Meeting
 -> Maybe [CreateAttendeeError]
 -> Int
 -> CreateMeetingWithAttendeesResponse)
-> Either String (Maybe [Attendee])
-> Either
     String
     (Maybe Meeting
      -> Maybe [CreateAttendeeError]
      -> Int
      -> CreateMeetingWithAttendeesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Attendee]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Attendees" Either String (Maybe (Maybe [Attendee]))
-> Maybe [Attendee] -> Either String (Maybe [Attendee])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Attendee]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Meeting
   -> Maybe [CreateAttendeeError]
   -> Int
   -> CreateMeetingWithAttendeesResponse)
-> Either String (Maybe Meeting)
-> Either
     String
     (Maybe [CreateAttendeeError]
      -> Int -> CreateMeetingWithAttendeesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Meeting)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Meeting")
            Either
  String
  (Maybe [CreateAttendeeError]
   -> Int -> CreateMeetingWithAttendeesResponse)
-> Either String (Maybe [CreateAttendeeError])
-> Either String (Int -> CreateMeetingWithAttendeesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [CreateAttendeeError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Errors" Either String (Maybe (Maybe [CreateAttendeeError]))
-> Maybe [CreateAttendeeError]
-> Either String (Maybe [CreateAttendeeError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CreateAttendeeError]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> CreateMeetingWithAttendeesResponse)
-> Either String Int
-> Either String CreateMeetingWithAttendeesResponse
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 CreateMeetingWithAttendees

instance Prelude.NFData CreateMeetingWithAttendees

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

instance Core.ToJSON CreateMeetingWithAttendees where
  toJSON :: CreateMeetingWithAttendees -> Value
toJSON CreateMeetingWithAttendees' {Maybe (NonEmpty Tag)
Maybe (NonEmpty CreateAttendeeRequestItem)
Maybe Text
Maybe (Sensitive Text)
Maybe MeetingNotificationConfiguration
Sensitive Text
clientRequestToken :: Sensitive Text
tags :: Maybe (NonEmpty Tag)
externalMeetingId :: Maybe (Sensitive Text)
notificationsConfiguration :: Maybe MeetingNotificationConfiguration
attendees :: Maybe (NonEmpty CreateAttendeeRequestItem)
meetingHostId :: Maybe (Sensitive Text)
mediaRegion :: Maybe Text
$sel:clientRequestToken:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Sensitive Text
$sel:tags:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe (NonEmpty Tag)
$sel:externalMeetingId:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe (Sensitive Text)
$sel:notificationsConfiguration:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees
-> Maybe MeetingNotificationConfiguration
$sel:attendees:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees
-> Maybe (NonEmpty CreateAttendeeRequestItem)
$sel:meetingHostId:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe (Sensitive Text)
$sel:mediaRegion:CreateMeetingWithAttendees' :: CreateMeetingWithAttendees -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"MediaRegion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
mediaRegion,
            (Text
"MeetingHostId" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
meetingHostId,
            (Text
"Attendees" Text -> NonEmpty CreateAttendeeRequestItem -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty CreateAttendeeRequestItem -> Pair)
-> Maybe (NonEmpty CreateAttendeeRequestItem) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty CreateAttendeeRequestItem)
attendees,
            (Text
"NotificationsConfiguration" Text -> MeetingNotificationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (MeetingNotificationConfiguration -> Pair)
-> Maybe MeetingNotificationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MeetingNotificationConfiguration
notificationsConfiguration,
            (Text
"ExternalMeetingId" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
externalMeetingId,
            (Text
"Tags" Text -> NonEmpty Tag -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Tag -> Pair) -> Maybe (NonEmpty Tag) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Tag)
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ClientRequestToken" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
clientRequestToken)
          ]
      )

instance Core.ToPath CreateMeetingWithAttendees where
  toPath :: CreateMeetingWithAttendees -> ByteString
toPath = ByteString -> CreateMeetingWithAttendees -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/meetings"

instance Core.ToQuery CreateMeetingWithAttendees where
  toQuery :: CreateMeetingWithAttendees -> QueryString
toQuery =
    QueryString -> CreateMeetingWithAttendees -> QueryString
forall a b. a -> b -> a
Prelude.const
      ([QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [QueryString
"operation=create-attendees"])

-- | /See:/ 'newCreateMeetingWithAttendeesResponse' smart constructor.
data CreateMeetingWithAttendeesResponse = CreateMeetingWithAttendeesResponse'
  { -- | The attendee information, including attendees IDs and join tokens.
    CreateMeetingWithAttendeesResponse -> Maybe [Attendee]
attendees :: Prelude.Maybe [Attendee],
    CreateMeetingWithAttendeesResponse -> Maybe Meeting
meeting :: Prelude.Maybe Meeting,
    -- | If the action fails for one or more of the attendees in the request, a
    -- list of the attendees is returned, along with error codes and error
    -- messages.
    CreateMeetingWithAttendeesResponse -> Maybe [CreateAttendeeError]
errors :: Prelude.Maybe [CreateAttendeeError],
    -- | The response's http status code.
    CreateMeetingWithAttendeesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateMeetingWithAttendeesResponse
-> CreateMeetingWithAttendeesResponse -> Bool
(CreateMeetingWithAttendeesResponse
 -> CreateMeetingWithAttendeesResponse -> Bool)
-> (CreateMeetingWithAttendeesResponse
    -> CreateMeetingWithAttendeesResponse -> Bool)
-> Eq CreateMeetingWithAttendeesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateMeetingWithAttendeesResponse
-> CreateMeetingWithAttendeesResponse -> Bool
$c/= :: CreateMeetingWithAttendeesResponse
-> CreateMeetingWithAttendeesResponse -> Bool
== :: CreateMeetingWithAttendeesResponse
-> CreateMeetingWithAttendeesResponse -> Bool
$c== :: CreateMeetingWithAttendeesResponse
-> CreateMeetingWithAttendeesResponse -> Bool
Prelude.Eq, Int -> CreateMeetingWithAttendeesResponse -> ShowS
[CreateMeetingWithAttendeesResponse] -> ShowS
CreateMeetingWithAttendeesResponse -> String
(Int -> CreateMeetingWithAttendeesResponse -> ShowS)
-> (CreateMeetingWithAttendeesResponse -> String)
-> ([CreateMeetingWithAttendeesResponse] -> ShowS)
-> Show CreateMeetingWithAttendeesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateMeetingWithAttendeesResponse] -> ShowS
$cshowList :: [CreateMeetingWithAttendeesResponse] -> ShowS
show :: CreateMeetingWithAttendeesResponse -> String
$cshow :: CreateMeetingWithAttendeesResponse -> String
showsPrec :: Int -> CreateMeetingWithAttendeesResponse -> ShowS
$cshowsPrec :: Int -> CreateMeetingWithAttendeesResponse -> ShowS
Prelude.Show, (forall x.
 CreateMeetingWithAttendeesResponse
 -> Rep CreateMeetingWithAttendeesResponse x)
-> (forall x.
    Rep CreateMeetingWithAttendeesResponse x
    -> CreateMeetingWithAttendeesResponse)
-> Generic CreateMeetingWithAttendeesResponse
forall x.
Rep CreateMeetingWithAttendeesResponse x
-> CreateMeetingWithAttendeesResponse
forall x.
CreateMeetingWithAttendeesResponse
-> Rep CreateMeetingWithAttendeesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateMeetingWithAttendeesResponse x
-> CreateMeetingWithAttendeesResponse
$cfrom :: forall x.
CreateMeetingWithAttendeesResponse
-> Rep CreateMeetingWithAttendeesResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateMeetingWithAttendeesResponse' 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:
--
-- 'attendees', 'createMeetingWithAttendeesResponse_attendees' - The attendee information, including attendees IDs and join tokens.
--
-- 'meeting', 'createMeetingWithAttendeesResponse_meeting' - Undocumented member.
--
-- 'errors', 'createMeetingWithAttendeesResponse_errors' - If the action fails for one or more of the attendees in the request, a
-- list of the attendees is returned, along with error codes and error
-- messages.
--
-- 'httpStatus', 'createMeetingWithAttendeesResponse_httpStatus' - The response's http status code.
newCreateMeetingWithAttendeesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateMeetingWithAttendeesResponse
newCreateMeetingWithAttendeesResponse :: Int -> CreateMeetingWithAttendeesResponse
newCreateMeetingWithAttendeesResponse Int
pHttpStatus_ =
  CreateMeetingWithAttendeesResponse' :: Maybe [Attendee]
-> Maybe Meeting
-> Maybe [CreateAttendeeError]
-> Int
-> CreateMeetingWithAttendeesResponse
CreateMeetingWithAttendeesResponse'
    { $sel:attendees:CreateMeetingWithAttendeesResponse' :: Maybe [Attendee]
attendees =
        Maybe [Attendee]
forall a. Maybe a
Prelude.Nothing,
      $sel:meeting:CreateMeetingWithAttendeesResponse' :: Maybe Meeting
meeting = Maybe Meeting
forall a. Maybe a
Prelude.Nothing,
      $sel:errors:CreateMeetingWithAttendeesResponse' :: Maybe [CreateAttendeeError]
errors = Maybe [CreateAttendeeError]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateMeetingWithAttendeesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The attendee information, including attendees IDs and join tokens.
createMeetingWithAttendeesResponse_attendees :: Lens.Lens' CreateMeetingWithAttendeesResponse (Prelude.Maybe [Attendee])
createMeetingWithAttendeesResponse_attendees :: (Maybe [Attendee] -> f (Maybe [Attendee]))
-> CreateMeetingWithAttendeesResponse
-> f CreateMeetingWithAttendeesResponse
createMeetingWithAttendeesResponse_attendees = (CreateMeetingWithAttendeesResponse -> Maybe [Attendee])
-> (CreateMeetingWithAttendeesResponse
    -> Maybe [Attendee] -> CreateMeetingWithAttendeesResponse)
-> Lens
     CreateMeetingWithAttendeesResponse
     CreateMeetingWithAttendeesResponse
     (Maybe [Attendee])
     (Maybe [Attendee])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendeesResponse' {Maybe [Attendee]
attendees :: Maybe [Attendee]
$sel:attendees:CreateMeetingWithAttendeesResponse' :: CreateMeetingWithAttendeesResponse -> Maybe [Attendee]
attendees} -> Maybe [Attendee]
attendees) (\s :: CreateMeetingWithAttendeesResponse
s@CreateMeetingWithAttendeesResponse' {} Maybe [Attendee]
a -> CreateMeetingWithAttendeesResponse
s {$sel:attendees:CreateMeetingWithAttendeesResponse' :: Maybe [Attendee]
attendees = Maybe [Attendee]
a} :: CreateMeetingWithAttendeesResponse) ((Maybe [Attendee] -> f (Maybe [Attendee]))
 -> CreateMeetingWithAttendeesResponse
 -> f CreateMeetingWithAttendeesResponse)
-> ((Maybe [Attendee] -> f (Maybe [Attendee]))
    -> Maybe [Attendee] -> f (Maybe [Attendee]))
-> (Maybe [Attendee] -> f (Maybe [Attendee]))
-> CreateMeetingWithAttendeesResponse
-> f CreateMeetingWithAttendeesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Attendee] [Attendee] [Attendee] [Attendee]
-> Iso
     (Maybe [Attendee])
     (Maybe [Attendee])
     (Maybe [Attendee])
     (Maybe [Attendee])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Attendee] [Attendee] [Attendee] [Attendee]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
createMeetingWithAttendeesResponse_meeting :: Lens.Lens' CreateMeetingWithAttendeesResponse (Prelude.Maybe Meeting)
createMeetingWithAttendeesResponse_meeting :: (Maybe Meeting -> f (Maybe Meeting))
-> CreateMeetingWithAttendeesResponse
-> f CreateMeetingWithAttendeesResponse
createMeetingWithAttendeesResponse_meeting = (CreateMeetingWithAttendeesResponse -> Maybe Meeting)
-> (CreateMeetingWithAttendeesResponse
    -> Maybe Meeting -> CreateMeetingWithAttendeesResponse)
-> Lens
     CreateMeetingWithAttendeesResponse
     CreateMeetingWithAttendeesResponse
     (Maybe Meeting)
     (Maybe Meeting)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendeesResponse' {Maybe Meeting
meeting :: Maybe Meeting
$sel:meeting:CreateMeetingWithAttendeesResponse' :: CreateMeetingWithAttendeesResponse -> Maybe Meeting
meeting} -> Maybe Meeting
meeting) (\s :: CreateMeetingWithAttendeesResponse
s@CreateMeetingWithAttendeesResponse' {} Maybe Meeting
a -> CreateMeetingWithAttendeesResponse
s {$sel:meeting:CreateMeetingWithAttendeesResponse' :: Maybe Meeting
meeting = Maybe Meeting
a} :: CreateMeetingWithAttendeesResponse)

-- | If the action fails for one or more of the attendees in the request, a
-- list of the attendees is returned, along with error codes and error
-- messages.
createMeetingWithAttendeesResponse_errors :: Lens.Lens' CreateMeetingWithAttendeesResponse (Prelude.Maybe [CreateAttendeeError])
createMeetingWithAttendeesResponse_errors :: (Maybe [CreateAttendeeError] -> f (Maybe [CreateAttendeeError]))
-> CreateMeetingWithAttendeesResponse
-> f CreateMeetingWithAttendeesResponse
createMeetingWithAttendeesResponse_errors = (CreateMeetingWithAttendeesResponse -> Maybe [CreateAttendeeError])
-> (CreateMeetingWithAttendeesResponse
    -> Maybe [CreateAttendeeError]
    -> CreateMeetingWithAttendeesResponse)
-> Lens
     CreateMeetingWithAttendeesResponse
     CreateMeetingWithAttendeesResponse
     (Maybe [CreateAttendeeError])
     (Maybe [CreateAttendeeError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMeetingWithAttendeesResponse' {Maybe [CreateAttendeeError]
errors :: Maybe [CreateAttendeeError]
$sel:errors:CreateMeetingWithAttendeesResponse' :: CreateMeetingWithAttendeesResponse -> Maybe [CreateAttendeeError]
errors} -> Maybe [CreateAttendeeError]
errors) (\s :: CreateMeetingWithAttendeesResponse
s@CreateMeetingWithAttendeesResponse' {} Maybe [CreateAttendeeError]
a -> CreateMeetingWithAttendeesResponse
s {$sel:errors:CreateMeetingWithAttendeesResponse' :: Maybe [CreateAttendeeError]
errors = Maybe [CreateAttendeeError]
a} :: CreateMeetingWithAttendeesResponse) ((Maybe [CreateAttendeeError] -> f (Maybe [CreateAttendeeError]))
 -> CreateMeetingWithAttendeesResponse
 -> f CreateMeetingWithAttendeesResponse)
-> ((Maybe [CreateAttendeeError]
     -> f (Maybe [CreateAttendeeError]))
    -> Maybe [CreateAttendeeError] -> f (Maybe [CreateAttendeeError]))
-> (Maybe [CreateAttendeeError] -> f (Maybe [CreateAttendeeError]))
-> CreateMeetingWithAttendeesResponse
-> f CreateMeetingWithAttendeesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [CreateAttendeeError]
  [CreateAttendeeError]
  [CreateAttendeeError]
  [CreateAttendeeError]
-> Iso
     (Maybe [CreateAttendeeError])
     (Maybe [CreateAttendeeError])
     (Maybe [CreateAttendeeError])
     (Maybe [CreateAttendeeError])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [CreateAttendeeError]
  [CreateAttendeeError]
  [CreateAttendeeError]
  [CreateAttendeeError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    CreateMeetingWithAttendeesResponse