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