{-# 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.SecurityProfileSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data SecurityProfileSummary = SecurityProfileSummary'
{
SecurityProfileSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
SecurityProfileSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
SecurityProfileSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (SecurityProfileSummary -> SecurityProfileSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SecurityProfileSummary -> SecurityProfileSummary -> Bool
$c/= :: SecurityProfileSummary -> SecurityProfileSummary -> Bool
== :: SecurityProfileSummary -> SecurityProfileSummary -> Bool
$c== :: SecurityProfileSummary -> SecurityProfileSummary -> Bool
Prelude.Eq, ReadPrec [SecurityProfileSummary]
ReadPrec SecurityProfileSummary
Int -> ReadS SecurityProfileSummary
ReadS [SecurityProfileSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SecurityProfileSummary]
$creadListPrec :: ReadPrec [SecurityProfileSummary]
readPrec :: ReadPrec SecurityProfileSummary
$creadPrec :: ReadPrec SecurityProfileSummary
readList :: ReadS [SecurityProfileSummary]
$creadList :: ReadS [SecurityProfileSummary]
readsPrec :: Int -> ReadS SecurityProfileSummary
$creadsPrec :: Int -> ReadS SecurityProfileSummary
Prelude.Read, Int -> SecurityProfileSummary -> ShowS
[SecurityProfileSummary] -> ShowS
SecurityProfileSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SecurityProfileSummary] -> ShowS
$cshowList :: [SecurityProfileSummary] -> ShowS
show :: SecurityProfileSummary -> String
$cshow :: SecurityProfileSummary -> String
showsPrec :: Int -> SecurityProfileSummary -> ShowS
$cshowsPrec :: Int -> SecurityProfileSummary -> ShowS
Prelude.Show, forall x. Rep SecurityProfileSummary x -> SecurityProfileSummary
forall x. SecurityProfileSummary -> Rep SecurityProfileSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SecurityProfileSummary x -> SecurityProfileSummary
$cfrom :: forall x. SecurityProfileSummary -> Rep SecurityProfileSummary x
Prelude.Generic)
newSecurityProfileSummary ::
SecurityProfileSummary
newSecurityProfileSummary :: SecurityProfileSummary
newSecurityProfileSummary =
SecurityProfileSummary'
{ $sel:arn:SecurityProfileSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:id:SecurityProfileSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:name:SecurityProfileSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing
}
securityProfileSummary_arn :: Lens.Lens' SecurityProfileSummary (Prelude.Maybe Prelude.Text)
securityProfileSummary_arn :: Lens' SecurityProfileSummary (Maybe Text)
securityProfileSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SecurityProfileSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: SecurityProfileSummary
s@SecurityProfileSummary' {} Maybe Text
a -> SecurityProfileSummary
s {$sel:arn:SecurityProfileSummary' :: Maybe Text
arn = Maybe Text
a} :: SecurityProfileSummary)
securityProfileSummary_id :: Lens.Lens' SecurityProfileSummary (Prelude.Maybe Prelude.Text)
securityProfileSummary_id :: Lens' SecurityProfileSummary (Maybe Text)
securityProfileSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SecurityProfileSummary' {Maybe Text
id :: Maybe Text
$sel:id:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: SecurityProfileSummary
s@SecurityProfileSummary' {} Maybe Text
a -> SecurityProfileSummary
s {$sel:id:SecurityProfileSummary' :: Maybe Text
id = Maybe Text
a} :: SecurityProfileSummary)
securityProfileSummary_name :: Lens.Lens' SecurityProfileSummary (Prelude.Maybe Prelude.Text)
securityProfileSummary_name :: Lens' SecurityProfileSummary (Maybe Text)
securityProfileSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SecurityProfileSummary' {Maybe Text
name :: Maybe Text
$sel:name:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: SecurityProfileSummary
s@SecurityProfileSummary' {} Maybe Text
a -> SecurityProfileSummary
s {$sel:name:SecurityProfileSummary' :: Maybe Text
name = Maybe Text
a} :: SecurityProfileSummary)
instance Data.FromJSON SecurityProfileSummary where
parseJSON :: Value -> Parser SecurityProfileSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SecurityProfileSummary"
( \Object
x ->
Maybe Text -> Maybe Text -> Maybe Text -> SecurityProfileSummary
SecurityProfileSummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
)
instance Prelude.Hashable SecurityProfileSummary where
hashWithSalt :: Int -> SecurityProfileSummary -> Int
hashWithSalt Int
_salt SecurityProfileSummary' {Maybe Text
name :: Maybe Text
id :: Maybe Text
arn :: Maybe Text
$sel:name:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
$sel:id:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
$sel:arn:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
instance Prelude.NFData SecurityProfileSummary where
rnf :: SecurityProfileSummary -> ()
rnf SecurityProfileSummary' {Maybe Text
name :: Maybe Text
id :: Maybe Text
arn :: Maybe Text
$sel:name:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
$sel:id:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
$sel:arn:SecurityProfileSummary' :: SecurityProfileSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name