{-# 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.FieldLevelEncryptionProfileList where
import Amazonka.CloudFront.Types.FieldLevelEncryptionProfileSummary
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 FieldLevelEncryptionProfileList = FieldLevelEncryptionProfileList'
{
FieldLevelEncryptionProfileList
-> Maybe [FieldLevelEncryptionProfileSummary]
items :: Prelude.Maybe [FieldLevelEncryptionProfileSummary],
FieldLevelEncryptionProfileList -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
FieldLevelEncryptionProfileList -> Int
maxItems :: Prelude.Int,
FieldLevelEncryptionProfileList -> Int
quantity :: Prelude.Int
}
deriving (FieldLevelEncryptionProfileList
-> FieldLevelEncryptionProfileList -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FieldLevelEncryptionProfileList
-> FieldLevelEncryptionProfileList -> Bool
$c/= :: FieldLevelEncryptionProfileList
-> FieldLevelEncryptionProfileList -> Bool
== :: FieldLevelEncryptionProfileList
-> FieldLevelEncryptionProfileList -> Bool
$c== :: FieldLevelEncryptionProfileList
-> FieldLevelEncryptionProfileList -> Bool
Prelude.Eq, ReadPrec [FieldLevelEncryptionProfileList]
ReadPrec FieldLevelEncryptionProfileList
Int -> ReadS FieldLevelEncryptionProfileList
ReadS [FieldLevelEncryptionProfileList]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FieldLevelEncryptionProfileList]
$creadListPrec :: ReadPrec [FieldLevelEncryptionProfileList]
readPrec :: ReadPrec FieldLevelEncryptionProfileList
$creadPrec :: ReadPrec FieldLevelEncryptionProfileList
readList :: ReadS [FieldLevelEncryptionProfileList]
$creadList :: ReadS [FieldLevelEncryptionProfileList]
readsPrec :: Int -> ReadS FieldLevelEncryptionProfileList
$creadsPrec :: Int -> ReadS FieldLevelEncryptionProfileList
Prelude.Read, Int -> FieldLevelEncryptionProfileList -> ShowS
[FieldLevelEncryptionProfileList] -> ShowS
FieldLevelEncryptionProfileList -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FieldLevelEncryptionProfileList] -> ShowS
$cshowList :: [FieldLevelEncryptionProfileList] -> ShowS
show :: FieldLevelEncryptionProfileList -> String
$cshow :: FieldLevelEncryptionProfileList -> String
showsPrec :: Int -> FieldLevelEncryptionProfileList -> ShowS
$cshowsPrec :: Int -> FieldLevelEncryptionProfileList -> ShowS
Prelude.Show, forall x.
Rep FieldLevelEncryptionProfileList x
-> FieldLevelEncryptionProfileList
forall x.
FieldLevelEncryptionProfileList
-> Rep FieldLevelEncryptionProfileList x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FieldLevelEncryptionProfileList x
-> FieldLevelEncryptionProfileList
$cfrom :: forall x.
FieldLevelEncryptionProfileList
-> Rep FieldLevelEncryptionProfileList x
Prelude.Generic)
newFieldLevelEncryptionProfileList ::
Prelude.Int ->
Prelude.Int ->
FieldLevelEncryptionProfileList
newFieldLevelEncryptionProfileList :: Int -> Int -> FieldLevelEncryptionProfileList
newFieldLevelEncryptionProfileList
Int
pMaxItems_
Int
pQuantity_ =
FieldLevelEncryptionProfileList'
{ $sel:items:FieldLevelEncryptionProfileList' :: Maybe [FieldLevelEncryptionProfileSummary]
items =
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:FieldLevelEncryptionProfileList' :: Maybe Text
nextMarker = forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:FieldLevelEncryptionProfileList' :: Int
maxItems = Int
pMaxItems_,
$sel:quantity:FieldLevelEncryptionProfileList' :: Int
quantity = Int
pQuantity_
}
fieldLevelEncryptionProfileList_items :: Lens.Lens' FieldLevelEncryptionProfileList (Prelude.Maybe [FieldLevelEncryptionProfileSummary])
fieldLevelEncryptionProfileList_items :: Lens'
FieldLevelEncryptionProfileList
(Maybe [FieldLevelEncryptionProfileSummary])
fieldLevelEncryptionProfileList_items = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FieldLevelEncryptionProfileList' {Maybe [FieldLevelEncryptionProfileSummary]
items :: Maybe [FieldLevelEncryptionProfileSummary]
$sel:items:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList
-> Maybe [FieldLevelEncryptionProfileSummary]
items} -> Maybe [FieldLevelEncryptionProfileSummary]
items) (\s :: FieldLevelEncryptionProfileList
s@FieldLevelEncryptionProfileList' {} Maybe [FieldLevelEncryptionProfileSummary]
a -> FieldLevelEncryptionProfileList
s {$sel:items:FieldLevelEncryptionProfileList' :: Maybe [FieldLevelEncryptionProfileSummary]
items = Maybe [FieldLevelEncryptionProfileSummary]
a} :: FieldLevelEncryptionProfileList) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
fieldLevelEncryptionProfileList_nextMarker :: Lens.Lens' FieldLevelEncryptionProfileList (Prelude.Maybe Prelude.Text)
fieldLevelEncryptionProfileList_nextMarker :: Lens' FieldLevelEncryptionProfileList (Maybe Text)
fieldLevelEncryptionProfileList_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FieldLevelEncryptionProfileList' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: FieldLevelEncryptionProfileList
s@FieldLevelEncryptionProfileList' {} Maybe Text
a -> FieldLevelEncryptionProfileList
s {$sel:nextMarker:FieldLevelEncryptionProfileList' :: Maybe Text
nextMarker = Maybe Text
a} :: FieldLevelEncryptionProfileList)
fieldLevelEncryptionProfileList_maxItems :: Lens.Lens' FieldLevelEncryptionProfileList Prelude.Int
fieldLevelEncryptionProfileList_maxItems :: Lens' FieldLevelEncryptionProfileList Int
fieldLevelEncryptionProfileList_maxItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FieldLevelEncryptionProfileList' {Int
maxItems :: Int
$sel:maxItems:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Int
maxItems} -> Int
maxItems) (\s :: FieldLevelEncryptionProfileList
s@FieldLevelEncryptionProfileList' {} Int
a -> FieldLevelEncryptionProfileList
s {$sel:maxItems:FieldLevelEncryptionProfileList' :: Int
maxItems = Int
a} :: FieldLevelEncryptionProfileList)
fieldLevelEncryptionProfileList_quantity :: Lens.Lens' FieldLevelEncryptionProfileList Prelude.Int
fieldLevelEncryptionProfileList_quantity :: Lens' FieldLevelEncryptionProfileList Int
fieldLevelEncryptionProfileList_quantity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FieldLevelEncryptionProfileList' {Int
quantity :: Int
$sel:quantity:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Int
quantity} -> Int
quantity) (\s :: FieldLevelEncryptionProfileList
s@FieldLevelEncryptionProfileList' {} Int
a -> FieldLevelEncryptionProfileList
s {$sel:quantity:FieldLevelEncryptionProfileList' :: Int
quantity = Int
a} :: FieldLevelEncryptionProfileList)
instance Data.FromXML FieldLevelEncryptionProfileList where
parseXML :: [Node] -> Either String FieldLevelEncryptionProfileList
parseXML [Node]
x =
Maybe [FieldLevelEncryptionProfileSummary]
-> Maybe Text -> Int -> Int -> FieldLevelEncryptionProfileList
FieldLevelEncryptionProfileList'
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
"Items"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
( forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList
Text
"FieldLevelEncryptionProfileSummary"
)
)
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
"NextMarker")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String a
Data..@ Text
"MaxItems")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String a
Data..@ Text
"Quantity")
instance
Prelude.Hashable
FieldLevelEncryptionProfileList
where
hashWithSalt :: Int -> FieldLevelEncryptionProfileList -> Int
hashWithSalt
Int
_salt
FieldLevelEncryptionProfileList' {Int
Maybe [FieldLevelEncryptionProfileSummary]
Maybe Text
quantity :: Int
maxItems :: Int
nextMarker :: Maybe Text
items :: Maybe [FieldLevelEncryptionProfileSummary]
$sel:quantity:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Int
$sel:maxItems:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Int
$sel:nextMarker:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Maybe Text
$sel:items:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList
-> Maybe [FieldLevelEncryptionProfileSummary]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [FieldLevelEncryptionProfileSummary]
items
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextMarker
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
maxItems
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
quantity
instance
Prelude.NFData
FieldLevelEncryptionProfileList
where
rnf :: FieldLevelEncryptionProfileList -> ()
rnf FieldLevelEncryptionProfileList' {Int
Maybe [FieldLevelEncryptionProfileSummary]
Maybe Text
quantity :: Int
maxItems :: Int
nextMarker :: Maybe Text
items :: Maybe [FieldLevelEncryptionProfileSummary]
$sel:quantity:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Int
$sel:maxItems:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Int
$sel:nextMarker:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList -> Maybe Text
$sel:items:FieldLevelEncryptionProfileList' :: FieldLevelEncryptionProfileList
-> Maybe [FieldLevelEncryptionProfileSummary]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [FieldLevelEncryptionProfileSummary]
items
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
maxItems
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
quantity