{-# 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.CloudFront.Types.KeyGroupSummary where
import Amazonka.CloudFront.Types.KeyGroup
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 KeyGroupSummary = KeyGroupSummary'
{
KeyGroupSummary -> KeyGroup
keyGroup :: KeyGroup
}
deriving (KeyGroupSummary -> KeyGroupSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KeyGroupSummary -> KeyGroupSummary -> Bool
$c/= :: KeyGroupSummary -> KeyGroupSummary -> Bool
== :: KeyGroupSummary -> KeyGroupSummary -> Bool
$c== :: KeyGroupSummary -> KeyGroupSummary -> Bool
Prelude.Eq, ReadPrec [KeyGroupSummary]
ReadPrec KeyGroupSummary
Int -> ReadS KeyGroupSummary
ReadS [KeyGroupSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KeyGroupSummary]
$creadListPrec :: ReadPrec [KeyGroupSummary]
readPrec :: ReadPrec KeyGroupSummary
$creadPrec :: ReadPrec KeyGroupSummary
readList :: ReadS [KeyGroupSummary]
$creadList :: ReadS [KeyGroupSummary]
readsPrec :: Int -> ReadS KeyGroupSummary
$creadsPrec :: Int -> ReadS KeyGroupSummary
Prelude.Read, Int -> KeyGroupSummary -> ShowS
[KeyGroupSummary] -> ShowS
KeyGroupSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KeyGroupSummary] -> ShowS
$cshowList :: [KeyGroupSummary] -> ShowS
show :: KeyGroupSummary -> String
$cshow :: KeyGroupSummary -> String
showsPrec :: Int -> KeyGroupSummary -> ShowS
$cshowsPrec :: Int -> KeyGroupSummary -> ShowS
Prelude.Show, forall x. Rep KeyGroupSummary x -> KeyGroupSummary
forall x. KeyGroupSummary -> Rep KeyGroupSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep KeyGroupSummary x -> KeyGroupSummary
$cfrom :: forall x. KeyGroupSummary -> Rep KeyGroupSummary x
Prelude.Generic)
newKeyGroupSummary ::
KeyGroup ->
KeyGroupSummary
newKeyGroupSummary :: KeyGroup -> KeyGroupSummary
newKeyGroupSummary KeyGroup
pKeyGroup_ =
KeyGroupSummary' {$sel:keyGroup:KeyGroupSummary' :: KeyGroup
keyGroup = KeyGroup
pKeyGroup_}
keyGroupSummary_keyGroup :: Lens.Lens' KeyGroupSummary KeyGroup
keyGroupSummary_keyGroup :: Lens' KeyGroupSummary KeyGroup
keyGroupSummary_keyGroup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyGroupSummary' {KeyGroup
keyGroup :: KeyGroup
$sel:keyGroup:KeyGroupSummary' :: KeyGroupSummary -> KeyGroup
keyGroup} -> KeyGroup
keyGroup) (\s :: KeyGroupSummary
s@KeyGroupSummary' {} KeyGroup
a -> KeyGroupSummary
s {$sel:keyGroup:KeyGroupSummary' :: KeyGroup
keyGroup = KeyGroup
a} :: KeyGroupSummary)
instance Data.FromXML KeyGroupSummary where
parseXML :: [Node] -> Either String KeyGroupSummary
parseXML [Node]
x =
KeyGroup -> KeyGroupSummary
KeyGroupSummary' forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String a
Data..@ Text
"KeyGroup")
instance Prelude.Hashable KeyGroupSummary where
hashWithSalt :: Int -> KeyGroupSummary -> Int
hashWithSalt Int
_salt KeyGroupSummary' {KeyGroup
keyGroup :: KeyGroup
$sel:keyGroup:KeyGroupSummary' :: KeyGroupSummary -> KeyGroup
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` KeyGroup
keyGroup
instance Prelude.NFData KeyGroupSummary where
rnf :: KeyGroupSummary -> ()
rnf KeyGroupSummary' {KeyGroup
keyGroup :: KeyGroup
$sel:keyGroup:KeyGroupSummary' :: KeyGroupSummary -> KeyGroup
..} = forall a. NFData a => a -> ()
Prelude.rnf KeyGroup
keyGroup