{-# 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.FMS.Types.AppsListDataSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FMS.Types.App
import qualified Amazonka.Prelude as Prelude
data AppsListDataSummary = AppsListDataSummary'
{
AppsListDataSummary -> Maybe [App]
appsList :: Prelude.Maybe [App],
AppsListDataSummary -> Maybe Text
listArn :: Prelude.Maybe Prelude.Text,
AppsListDataSummary -> Maybe Text
listId :: Prelude.Maybe Prelude.Text,
AppsListDataSummary -> Maybe Text
listName :: Prelude.Maybe Prelude.Text
}
deriving (AppsListDataSummary -> AppsListDataSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AppsListDataSummary -> AppsListDataSummary -> Bool
$c/= :: AppsListDataSummary -> AppsListDataSummary -> Bool
== :: AppsListDataSummary -> AppsListDataSummary -> Bool
$c== :: AppsListDataSummary -> AppsListDataSummary -> Bool
Prelude.Eq, ReadPrec [AppsListDataSummary]
ReadPrec AppsListDataSummary
Int -> ReadS AppsListDataSummary
ReadS [AppsListDataSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AppsListDataSummary]
$creadListPrec :: ReadPrec [AppsListDataSummary]
readPrec :: ReadPrec AppsListDataSummary
$creadPrec :: ReadPrec AppsListDataSummary
readList :: ReadS [AppsListDataSummary]
$creadList :: ReadS [AppsListDataSummary]
readsPrec :: Int -> ReadS AppsListDataSummary
$creadsPrec :: Int -> ReadS AppsListDataSummary
Prelude.Read, Int -> AppsListDataSummary -> ShowS
[AppsListDataSummary] -> ShowS
AppsListDataSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AppsListDataSummary] -> ShowS
$cshowList :: [AppsListDataSummary] -> ShowS
show :: AppsListDataSummary -> String
$cshow :: AppsListDataSummary -> String
showsPrec :: Int -> AppsListDataSummary -> ShowS
$cshowsPrec :: Int -> AppsListDataSummary -> ShowS
Prelude.Show, forall x. Rep AppsListDataSummary x -> AppsListDataSummary
forall x. AppsListDataSummary -> Rep AppsListDataSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AppsListDataSummary x -> AppsListDataSummary
$cfrom :: forall x. AppsListDataSummary -> Rep AppsListDataSummary x
Prelude.Generic)
newAppsListDataSummary ::
AppsListDataSummary
newAppsListDataSummary :: AppsListDataSummary
newAppsListDataSummary =
AppsListDataSummary'
{ $sel:appsList:AppsListDataSummary' :: Maybe [App]
appsList = forall a. Maybe a
Prelude.Nothing,
$sel:listArn:AppsListDataSummary' :: Maybe Text
listArn = forall a. Maybe a
Prelude.Nothing,
$sel:listId:AppsListDataSummary' :: Maybe Text
listId = forall a. Maybe a
Prelude.Nothing,
$sel:listName:AppsListDataSummary' :: Maybe Text
listName = forall a. Maybe a
Prelude.Nothing
}
appsListDataSummary_appsList :: Lens.Lens' AppsListDataSummary (Prelude.Maybe [App])
appsListDataSummary_appsList :: Lens' AppsListDataSummary (Maybe [App])
appsListDataSummary_appsList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppsListDataSummary' {Maybe [App]
appsList :: Maybe [App]
$sel:appsList:AppsListDataSummary' :: AppsListDataSummary -> Maybe [App]
appsList} -> Maybe [App]
appsList) (\s :: AppsListDataSummary
s@AppsListDataSummary' {} Maybe [App]
a -> AppsListDataSummary
s {$sel:appsList:AppsListDataSummary' :: Maybe [App]
appsList = Maybe [App]
a} :: AppsListDataSummary) 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
appsListDataSummary_listArn :: Lens.Lens' AppsListDataSummary (Prelude.Maybe Prelude.Text)
appsListDataSummary_listArn :: Lens' AppsListDataSummary (Maybe Text)
appsListDataSummary_listArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppsListDataSummary' {Maybe Text
listArn :: Maybe Text
$sel:listArn:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
listArn} -> Maybe Text
listArn) (\s :: AppsListDataSummary
s@AppsListDataSummary' {} Maybe Text
a -> AppsListDataSummary
s {$sel:listArn:AppsListDataSummary' :: Maybe Text
listArn = Maybe Text
a} :: AppsListDataSummary)
appsListDataSummary_listId :: Lens.Lens' AppsListDataSummary (Prelude.Maybe Prelude.Text)
appsListDataSummary_listId :: Lens' AppsListDataSummary (Maybe Text)
appsListDataSummary_listId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppsListDataSummary' {Maybe Text
listId :: Maybe Text
$sel:listId:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
listId} -> Maybe Text
listId) (\s :: AppsListDataSummary
s@AppsListDataSummary' {} Maybe Text
a -> AppsListDataSummary
s {$sel:listId:AppsListDataSummary' :: Maybe Text
listId = Maybe Text
a} :: AppsListDataSummary)
appsListDataSummary_listName :: Lens.Lens' AppsListDataSummary (Prelude.Maybe Prelude.Text)
appsListDataSummary_listName :: Lens' AppsListDataSummary (Maybe Text)
appsListDataSummary_listName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppsListDataSummary' {Maybe Text
listName :: Maybe Text
$sel:listName:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
listName} -> Maybe Text
listName) (\s :: AppsListDataSummary
s@AppsListDataSummary' {} Maybe Text
a -> AppsListDataSummary
s {$sel:listName:AppsListDataSummary' :: Maybe Text
listName = Maybe Text
a} :: AppsListDataSummary)
instance Data.FromJSON AppsListDataSummary where
parseJSON :: Value -> Parser AppsListDataSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AppsListDataSummary"
( \Object
x ->
Maybe [App]
-> Maybe Text -> Maybe Text -> Maybe Text -> AppsListDataSummary
AppsListDataSummary'
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
"AppsList" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
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
"ListArn")
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
"ListId")
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
"ListName")
)
instance Prelude.Hashable AppsListDataSummary where
hashWithSalt :: Int -> AppsListDataSummary -> Int
hashWithSalt Int
_salt AppsListDataSummary' {Maybe [App]
Maybe Text
listName :: Maybe Text
listId :: Maybe Text
listArn :: Maybe Text
appsList :: Maybe [App]
$sel:listName:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
$sel:listId:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
$sel:listArn:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
$sel:appsList:AppsListDataSummary' :: AppsListDataSummary -> Maybe [App]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [App]
appsList
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
listArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
listId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
listName
instance Prelude.NFData AppsListDataSummary where
rnf :: AppsListDataSummary -> ()
rnf AppsListDataSummary' {Maybe [App]
Maybe Text
listName :: Maybe Text
listId :: Maybe Text
listArn :: Maybe Text
appsList :: Maybe [App]
$sel:listName:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
$sel:listId:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
$sel:listArn:AppsListDataSummary' :: AppsListDataSummary -> Maybe Text
$sel:appsList:AppsListDataSummary' :: AppsListDataSummary -> Maybe [App]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [App]
appsList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
listArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
listId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
listName