{-# 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.ServiceCatalogAppRegistry.Types.AttributeGroupSummary 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 AttributeGroupSummary = AttributeGroupSummary'
{
AttributeGroupSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
AttributeGroupSummary -> Maybe ISO8601
creationTime :: Prelude.Maybe Data.ISO8601,
AttributeGroupSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
AttributeGroupSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
AttributeGroupSummary -> Maybe ISO8601
lastUpdateTime :: Prelude.Maybe Data.ISO8601,
AttributeGroupSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (AttributeGroupSummary -> AttributeGroupSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttributeGroupSummary -> AttributeGroupSummary -> Bool
$c/= :: AttributeGroupSummary -> AttributeGroupSummary -> Bool
== :: AttributeGroupSummary -> AttributeGroupSummary -> Bool
$c== :: AttributeGroupSummary -> AttributeGroupSummary -> Bool
Prelude.Eq, ReadPrec [AttributeGroupSummary]
ReadPrec AttributeGroupSummary
Int -> ReadS AttributeGroupSummary
ReadS [AttributeGroupSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AttributeGroupSummary]
$creadListPrec :: ReadPrec [AttributeGroupSummary]
readPrec :: ReadPrec AttributeGroupSummary
$creadPrec :: ReadPrec AttributeGroupSummary
readList :: ReadS [AttributeGroupSummary]
$creadList :: ReadS [AttributeGroupSummary]
readsPrec :: Int -> ReadS AttributeGroupSummary
$creadsPrec :: Int -> ReadS AttributeGroupSummary
Prelude.Read, Int -> AttributeGroupSummary -> ShowS
[AttributeGroupSummary] -> ShowS
AttributeGroupSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AttributeGroupSummary] -> ShowS
$cshowList :: [AttributeGroupSummary] -> ShowS
show :: AttributeGroupSummary -> String
$cshow :: AttributeGroupSummary -> String
showsPrec :: Int -> AttributeGroupSummary -> ShowS
$cshowsPrec :: Int -> AttributeGroupSummary -> ShowS
Prelude.Show, forall x. Rep AttributeGroupSummary x -> AttributeGroupSummary
forall x. AttributeGroupSummary -> Rep AttributeGroupSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AttributeGroupSummary x -> AttributeGroupSummary
$cfrom :: forall x. AttributeGroupSummary -> Rep AttributeGroupSummary x
Prelude.Generic)
newAttributeGroupSummary ::
AttributeGroupSummary
newAttributeGroupSummary :: AttributeGroupSummary
newAttributeGroupSummary =
AttributeGroupSummary'
{ $sel:arn:AttributeGroupSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:AttributeGroupSummary' :: Maybe ISO8601
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:description:AttributeGroupSummary' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:id:AttributeGroupSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:AttributeGroupSummary' :: Maybe ISO8601
lastUpdateTime = forall a. Maybe a
Prelude.Nothing,
$sel:name:AttributeGroupSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing
}
attributeGroupSummary_arn :: Lens.Lens' AttributeGroupSummary (Prelude.Maybe Prelude.Text)
attributeGroupSummary_arn :: Lens' AttributeGroupSummary (Maybe Text)
attributeGroupSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttributeGroupSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: AttributeGroupSummary
s@AttributeGroupSummary' {} Maybe Text
a -> AttributeGroupSummary
s {$sel:arn:AttributeGroupSummary' :: Maybe Text
arn = Maybe Text
a} :: AttributeGroupSummary)
attributeGroupSummary_creationTime :: Lens.Lens' AttributeGroupSummary (Prelude.Maybe Prelude.UTCTime)
attributeGroupSummary_creationTime :: Lens' AttributeGroupSummary (Maybe UTCTime)
attributeGroupSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttributeGroupSummary' {Maybe ISO8601
creationTime :: Maybe ISO8601
$sel:creationTime:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe ISO8601
creationTime} -> Maybe ISO8601
creationTime) (\s :: AttributeGroupSummary
s@AttributeGroupSummary' {} Maybe ISO8601
a -> AttributeGroupSummary
s {$sel:creationTime:AttributeGroupSummary' :: Maybe ISO8601
creationTime = Maybe ISO8601
a} :: AttributeGroupSummary) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
attributeGroupSummary_description :: Lens.Lens' AttributeGroupSummary (Prelude.Maybe Prelude.Text)
attributeGroupSummary_description :: Lens' AttributeGroupSummary (Maybe Text)
attributeGroupSummary_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttributeGroupSummary' {Maybe Text
description :: Maybe Text
$sel:description:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: AttributeGroupSummary
s@AttributeGroupSummary' {} Maybe Text
a -> AttributeGroupSummary
s {$sel:description:AttributeGroupSummary' :: Maybe Text
description = Maybe Text
a} :: AttributeGroupSummary)
attributeGroupSummary_id :: Lens.Lens' AttributeGroupSummary (Prelude.Maybe Prelude.Text)
attributeGroupSummary_id :: Lens' AttributeGroupSummary (Maybe Text)
attributeGroupSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttributeGroupSummary' {Maybe Text
id :: Maybe Text
$sel:id:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: AttributeGroupSummary
s@AttributeGroupSummary' {} Maybe Text
a -> AttributeGroupSummary
s {$sel:id:AttributeGroupSummary' :: Maybe Text
id = Maybe Text
a} :: AttributeGroupSummary)
attributeGroupSummary_lastUpdateTime :: Lens.Lens' AttributeGroupSummary (Prelude.Maybe Prelude.UTCTime)
attributeGroupSummary_lastUpdateTime :: Lens' AttributeGroupSummary (Maybe UTCTime)
attributeGroupSummary_lastUpdateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttributeGroupSummary' {Maybe ISO8601
lastUpdateTime :: Maybe ISO8601
$sel:lastUpdateTime:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe ISO8601
lastUpdateTime} -> Maybe ISO8601
lastUpdateTime) (\s :: AttributeGroupSummary
s@AttributeGroupSummary' {} Maybe ISO8601
a -> AttributeGroupSummary
s {$sel:lastUpdateTime:AttributeGroupSummary' :: Maybe ISO8601
lastUpdateTime = Maybe ISO8601
a} :: AttributeGroupSummary) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
attributeGroupSummary_name :: Lens.Lens' AttributeGroupSummary (Prelude.Maybe Prelude.Text)
attributeGroupSummary_name :: Lens' AttributeGroupSummary (Maybe Text)
attributeGroupSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttributeGroupSummary' {Maybe Text
name :: Maybe Text
$sel:name:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: AttributeGroupSummary
s@AttributeGroupSummary' {} Maybe Text
a -> AttributeGroupSummary
s {$sel:name:AttributeGroupSummary' :: Maybe Text
name = Maybe Text
a} :: AttributeGroupSummary)
instance Data.FromJSON AttributeGroupSummary where
parseJSON :: Value -> Parser AttributeGroupSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AttributeGroupSummary"
( \Object
x ->
Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> AttributeGroupSummary
AttributeGroupSummary'
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
"creationTime")
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
"description")
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
"lastUpdateTime")
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 AttributeGroupSummary where
hashWithSalt :: Int -> AttributeGroupSummary -> Int
hashWithSalt Int
_salt AttributeGroupSummary' {Maybe Text
Maybe ISO8601
name :: Maybe Text
lastUpdateTime :: Maybe ISO8601
id :: Maybe Text
description :: Maybe Text
creationTime :: Maybe ISO8601
arn :: Maybe Text
$sel:name:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
$sel:lastUpdateTime:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe ISO8601
$sel:id:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
$sel:description:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
$sel:creationTime:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe ISO8601
$sel:arn:AttributeGroupSummary' :: AttributeGroupSummary -> 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 ISO8601
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
lastUpdateTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
instance Prelude.NFData AttributeGroupSummary where
rnf :: AttributeGroupSummary -> ()
rnf AttributeGroupSummary' {Maybe Text
Maybe ISO8601
name :: Maybe Text
lastUpdateTime :: Maybe ISO8601
id :: Maybe Text
description :: Maybe Text
creationTime :: Maybe ISO8601
arn :: Maybe Text
$sel:name:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
$sel:lastUpdateTime:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe ISO8601
$sel:id:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
$sel:description:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe Text
$sel:creationTime:AttributeGroupSummary' :: AttributeGroupSummary -> Maybe ISO8601
$sel:arn:AttributeGroupSummary' :: AttributeGroupSummary -> 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 ISO8601
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
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 ISO8601
lastUpdateTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name