{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Connect.Types.QuickConnectSummary where
import Amazonka.Connect.Types.QuickConnectType
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data QuickConnectSummary = QuickConnectSummary'
{
QuickConnectSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
QuickConnectSummary -> Maybe QuickConnectType
quickConnectType :: Prelude.Maybe QuickConnectType,
QuickConnectSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
QuickConnectSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text
}
deriving (QuickConnectSummary -> QuickConnectSummary -> Bool
(QuickConnectSummary -> QuickConnectSummary -> Bool)
-> (QuickConnectSummary -> QuickConnectSummary -> Bool)
-> Eq QuickConnectSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QuickConnectSummary -> QuickConnectSummary -> Bool
$c/= :: QuickConnectSummary -> QuickConnectSummary -> Bool
== :: QuickConnectSummary -> QuickConnectSummary -> Bool
$c== :: QuickConnectSummary -> QuickConnectSummary -> Bool
Prelude.Eq, ReadPrec [QuickConnectSummary]
ReadPrec QuickConnectSummary
Int -> ReadS QuickConnectSummary
ReadS [QuickConnectSummary]
(Int -> ReadS QuickConnectSummary)
-> ReadS [QuickConnectSummary]
-> ReadPrec QuickConnectSummary
-> ReadPrec [QuickConnectSummary]
-> Read QuickConnectSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QuickConnectSummary]
$creadListPrec :: ReadPrec [QuickConnectSummary]
readPrec :: ReadPrec QuickConnectSummary
$creadPrec :: ReadPrec QuickConnectSummary
readList :: ReadS [QuickConnectSummary]
$creadList :: ReadS [QuickConnectSummary]
readsPrec :: Int -> ReadS QuickConnectSummary
$creadsPrec :: Int -> ReadS QuickConnectSummary
Prelude.Read, Int -> QuickConnectSummary -> ShowS
[QuickConnectSummary] -> ShowS
QuickConnectSummary -> String
(Int -> QuickConnectSummary -> ShowS)
-> (QuickConnectSummary -> String)
-> ([QuickConnectSummary] -> ShowS)
-> Show QuickConnectSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QuickConnectSummary] -> ShowS
$cshowList :: [QuickConnectSummary] -> ShowS
show :: QuickConnectSummary -> String
$cshow :: QuickConnectSummary -> String
showsPrec :: Int -> QuickConnectSummary -> ShowS
$cshowsPrec :: Int -> QuickConnectSummary -> ShowS
Prelude.Show, (forall x. QuickConnectSummary -> Rep QuickConnectSummary x)
-> (forall x. Rep QuickConnectSummary x -> QuickConnectSummary)
-> Generic QuickConnectSummary
forall x. Rep QuickConnectSummary x -> QuickConnectSummary
forall x. QuickConnectSummary -> Rep QuickConnectSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QuickConnectSummary x -> QuickConnectSummary
$cfrom :: forall x. QuickConnectSummary -> Rep QuickConnectSummary x
Prelude.Generic)
newQuickConnectSummary ::
QuickConnectSummary
newQuickConnectSummary :: QuickConnectSummary
newQuickConnectSummary =
QuickConnectSummary' :: Maybe Text
-> Maybe QuickConnectType
-> Maybe Text
-> Maybe Text
-> QuickConnectSummary
QuickConnectSummary'
{ $sel:arn:QuickConnectSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:quickConnectType:QuickConnectSummary' :: Maybe QuickConnectType
quickConnectType = Maybe QuickConnectType
forall a. Maybe a
Prelude.Nothing,
$sel:name:QuickConnectSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:QuickConnectSummary' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
quickConnectSummary_arn :: Lens.Lens' QuickConnectSummary (Prelude.Maybe Prelude.Text)
quickConnectSummary_arn :: (Maybe Text -> f (Maybe Text))
-> QuickConnectSummary -> f QuickConnectSummary
quickConnectSummary_arn = (QuickConnectSummary -> Maybe Text)
-> (QuickConnectSummary -> Maybe Text -> QuickConnectSummary)
-> Lens
QuickConnectSummary QuickConnectSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuickConnectSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:QuickConnectSummary' :: QuickConnectSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: QuickConnectSummary
s@QuickConnectSummary' {} Maybe Text
a -> QuickConnectSummary
s {$sel:arn:QuickConnectSummary' :: Maybe Text
arn = Maybe Text
a} :: QuickConnectSummary)
quickConnectSummary_quickConnectType :: Lens.Lens' QuickConnectSummary (Prelude.Maybe QuickConnectType)
quickConnectSummary_quickConnectType :: (Maybe QuickConnectType -> f (Maybe QuickConnectType))
-> QuickConnectSummary -> f QuickConnectSummary
quickConnectSummary_quickConnectType = (QuickConnectSummary -> Maybe QuickConnectType)
-> (QuickConnectSummary
-> Maybe QuickConnectType -> QuickConnectSummary)
-> Lens
QuickConnectSummary
QuickConnectSummary
(Maybe QuickConnectType)
(Maybe QuickConnectType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuickConnectSummary' {Maybe QuickConnectType
quickConnectType :: Maybe QuickConnectType
$sel:quickConnectType:QuickConnectSummary' :: QuickConnectSummary -> Maybe QuickConnectType
quickConnectType} -> Maybe QuickConnectType
quickConnectType) (\s :: QuickConnectSummary
s@QuickConnectSummary' {} Maybe QuickConnectType
a -> QuickConnectSummary
s {$sel:quickConnectType:QuickConnectSummary' :: Maybe QuickConnectType
quickConnectType = Maybe QuickConnectType
a} :: QuickConnectSummary)
quickConnectSummary_name :: Lens.Lens' QuickConnectSummary (Prelude.Maybe Prelude.Text)
quickConnectSummary_name :: (Maybe Text -> f (Maybe Text))
-> QuickConnectSummary -> f QuickConnectSummary
quickConnectSummary_name = (QuickConnectSummary -> Maybe Text)
-> (QuickConnectSummary -> Maybe Text -> QuickConnectSummary)
-> Lens
QuickConnectSummary QuickConnectSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuickConnectSummary' {Maybe Text
name :: Maybe Text
$sel:name:QuickConnectSummary' :: QuickConnectSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: QuickConnectSummary
s@QuickConnectSummary' {} Maybe Text
a -> QuickConnectSummary
s {$sel:name:QuickConnectSummary' :: Maybe Text
name = Maybe Text
a} :: QuickConnectSummary)
quickConnectSummary_id :: Lens.Lens' QuickConnectSummary (Prelude.Maybe Prelude.Text)
quickConnectSummary_id :: (Maybe Text -> f (Maybe Text))
-> QuickConnectSummary -> f QuickConnectSummary
quickConnectSummary_id = (QuickConnectSummary -> Maybe Text)
-> (QuickConnectSummary -> Maybe Text -> QuickConnectSummary)
-> Lens
QuickConnectSummary QuickConnectSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuickConnectSummary' {Maybe Text
id :: Maybe Text
$sel:id:QuickConnectSummary' :: QuickConnectSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: QuickConnectSummary
s@QuickConnectSummary' {} Maybe Text
a -> QuickConnectSummary
s {$sel:id:QuickConnectSummary' :: Maybe Text
id = Maybe Text
a} :: QuickConnectSummary)
instance Core.FromJSON QuickConnectSummary where
parseJSON :: Value -> Parser QuickConnectSummary
parseJSON =
String
-> (Object -> Parser QuickConnectSummary)
-> Value
-> Parser QuickConnectSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"QuickConnectSummary"
( \Object
x ->
Maybe Text
-> Maybe QuickConnectType
-> Maybe Text
-> Maybe Text
-> QuickConnectSummary
QuickConnectSummary'
(Maybe Text
-> Maybe QuickConnectType
-> Maybe Text
-> Maybe Text
-> QuickConnectSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe QuickConnectType
-> Maybe Text -> Maybe Text -> QuickConnectSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
Parser
(Maybe QuickConnectType
-> Maybe Text -> Maybe Text -> QuickConnectSummary)
-> Parser (Maybe QuickConnectType)
-> Parser (Maybe Text -> Maybe Text -> QuickConnectSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe QuickConnectType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"QuickConnectType")
Parser (Maybe Text -> Maybe Text -> QuickConnectSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> QuickConnectSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
Parser (Maybe Text -> QuickConnectSummary)
-> Parser (Maybe Text) -> Parser QuickConnectSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
)
instance Prelude.Hashable QuickConnectSummary
instance Prelude.NFData QuickConnectSummary