{-# 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.Nimble.Types.StudioComponentSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Nimble.Types.StudioComponentSubtype
import Amazonka.Nimble.Types.StudioComponentType
import qualified Amazonka.Prelude as Prelude
data StudioComponentSummary = StudioComponentSummary'
{
StudioComponentSummary -> Maybe ISO8601
createdAt :: Prelude.Maybe Data.ISO8601,
StudioComponentSummary -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
StudioComponentSummary -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
StudioComponentSummary -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text),
StudioComponentSummary -> Maybe Text
studioComponentId :: Prelude.Maybe Prelude.Text,
StudioComponentSummary -> Maybe StudioComponentSubtype
subtype :: Prelude.Maybe StudioComponentSubtype,
StudioComponentSummary -> Maybe StudioComponentType
type' :: Prelude.Maybe StudioComponentType,
StudioComponentSummary -> Maybe ISO8601
updatedAt :: Prelude.Maybe Data.ISO8601,
StudioComponentSummary -> Maybe Text
updatedBy :: Prelude.Maybe Prelude.Text
}
deriving (StudioComponentSummary -> StudioComponentSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StudioComponentSummary -> StudioComponentSummary -> Bool
$c/= :: StudioComponentSummary -> StudioComponentSummary -> Bool
== :: StudioComponentSummary -> StudioComponentSummary -> Bool
$c== :: StudioComponentSummary -> StudioComponentSummary -> Bool
Prelude.Eq, Int -> StudioComponentSummary -> ShowS
[StudioComponentSummary] -> ShowS
StudioComponentSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StudioComponentSummary] -> ShowS
$cshowList :: [StudioComponentSummary] -> ShowS
show :: StudioComponentSummary -> String
$cshow :: StudioComponentSummary -> String
showsPrec :: Int -> StudioComponentSummary -> ShowS
$cshowsPrec :: Int -> StudioComponentSummary -> ShowS
Prelude.Show, forall x. Rep StudioComponentSummary x -> StudioComponentSummary
forall x. StudioComponentSummary -> Rep StudioComponentSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StudioComponentSummary x -> StudioComponentSummary
$cfrom :: forall x. StudioComponentSummary -> Rep StudioComponentSummary x
Prelude.Generic)
newStudioComponentSummary ::
StudioComponentSummary
newStudioComponentSummary :: StudioComponentSummary
newStudioComponentSummary =
StudioComponentSummary'
{ $sel:createdAt:StudioComponentSummary' :: Maybe ISO8601
createdAt =
forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:StudioComponentSummary' :: Maybe Text
createdBy = forall a. Maybe a
Prelude.Nothing,
$sel:description:StudioComponentSummary' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
$sel:name:StudioComponentSummary' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing,
$sel:studioComponentId:StudioComponentSummary' :: Maybe Text
studioComponentId = forall a. Maybe a
Prelude.Nothing,
$sel:subtype:StudioComponentSummary' :: Maybe StudioComponentSubtype
subtype = forall a. Maybe a
Prelude.Nothing,
$sel:type':StudioComponentSummary' :: Maybe StudioComponentType
type' = forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:StudioComponentSummary' :: Maybe ISO8601
updatedAt = forall a. Maybe a
Prelude.Nothing,
$sel:updatedBy:StudioComponentSummary' :: Maybe Text
updatedBy = forall a. Maybe a
Prelude.Nothing
}
studioComponentSummary_createdAt :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.UTCTime)
studioComponentSummary_createdAt :: Lens' StudioComponentSummary (Maybe UTCTime)
studioComponentSummary_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe ISO8601
createdAt :: Maybe ISO8601
$sel:createdAt:StudioComponentSummary' :: StudioComponentSummary -> Maybe ISO8601
createdAt} -> Maybe ISO8601
createdAt) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe ISO8601
a -> StudioComponentSummary
s {$sel:createdAt:StudioComponentSummary' :: Maybe ISO8601
createdAt = Maybe ISO8601
a} :: StudioComponentSummary) 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
studioComponentSummary_createdBy :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.Text)
studioComponentSummary_createdBy :: Lens' StudioComponentSummary (Maybe Text)
studioComponentSummary_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe Text
a -> StudioComponentSummary
s {$sel:createdBy:StudioComponentSummary' :: Maybe Text
createdBy = Maybe Text
a} :: StudioComponentSummary)
studioComponentSummary_description :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.Text)
studioComponentSummary_description :: Lens' StudioComponentSummary (Maybe Text)
studioComponentSummary_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:StudioComponentSummary' :: StudioComponentSummary -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe (Sensitive Text)
a -> StudioComponentSummary
s {$sel:description:StudioComponentSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: StudioComponentSummary) 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. Iso' (Sensitive a) a
Data._Sensitive
studioComponentSummary_name :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.Text)
studioComponentSummary_name :: Lens' StudioComponentSummary (Maybe Text)
studioComponentSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:StudioComponentSummary' :: StudioComponentSummary -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe (Sensitive Text)
a -> StudioComponentSummary
s {$sel:name:StudioComponentSummary' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: StudioComponentSummary) 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. Iso' (Sensitive a) a
Data._Sensitive
studioComponentSummary_studioComponentId :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.Text)
studioComponentSummary_studioComponentId :: Lens' StudioComponentSummary (Maybe Text)
studioComponentSummary_studioComponentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe Text
studioComponentId :: Maybe Text
$sel:studioComponentId:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
studioComponentId} -> Maybe Text
studioComponentId) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe Text
a -> StudioComponentSummary
s {$sel:studioComponentId:StudioComponentSummary' :: Maybe Text
studioComponentId = Maybe Text
a} :: StudioComponentSummary)
studioComponentSummary_subtype :: Lens.Lens' StudioComponentSummary (Prelude.Maybe StudioComponentSubtype)
studioComponentSummary_subtype :: Lens' StudioComponentSummary (Maybe StudioComponentSubtype)
studioComponentSummary_subtype = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe StudioComponentSubtype
subtype :: Maybe StudioComponentSubtype
$sel:subtype:StudioComponentSummary' :: StudioComponentSummary -> Maybe StudioComponentSubtype
subtype} -> Maybe StudioComponentSubtype
subtype) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe StudioComponentSubtype
a -> StudioComponentSummary
s {$sel:subtype:StudioComponentSummary' :: Maybe StudioComponentSubtype
subtype = Maybe StudioComponentSubtype
a} :: StudioComponentSummary)
studioComponentSummary_type :: Lens.Lens' StudioComponentSummary (Prelude.Maybe StudioComponentType)
studioComponentSummary_type :: Lens' StudioComponentSummary (Maybe StudioComponentType)
studioComponentSummary_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe StudioComponentType
type' :: Maybe StudioComponentType
$sel:type':StudioComponentSummary' :: StudioComponentSummary -> Maybe StudioComponentType
type'} -> Maybe StudioComponentType
type') (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe StudioComponentType
a -> StudioComponentSummary
s {$sel:type':StudioComponentSummary' :: Maybe StudioComponentType
type' = Maybe StudioComponentType
a} :: StudioComponentSummary)
studioComponentSummary_updatedAt :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.UTCTime)
studioComponentSummary_updatedAt :: Lens' StudioComponentSummary (Maybe UTCTime)
studioComponentSummary_updatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe ISO8601
updatedAt :: Maybe ISO8601
$sel:updatedAt:StudioComponentSummary' :: StudioComponentSummary -> Maybe ISO8601
updatedAt} -> Maybe ISO8601
updatedAt) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe ISO8601
a -> StudioComponentSummary
s {$sel:updatedAt:StudioComponentSummary' :: Maybe ISO8601
updatedAt = Maybe ISO8601
a} :: StudioComponentSummary) 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
studioComponentSummary_updatedBy :: Lens.Lens' StudioComponentSummary (Prelude.Maybe Prelude.Text)
studioComponentSummary_updatedBy :: Lens' StudioComponentSummary (Maybe Text)
studioComponentSummary_updatedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioComponentSummary' {Maybe Text
updatedBy :: Maybe Text
$sel:updatedBy:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
updatedBy} -> Maybe Text
updatedBy) (\s :: StudioComponentSummary
s@StudioComponentSummary' {} Maybe Text
a -> StudioComponentSummary
s {$sel:updatedBy:StudioComponentSummary' :: Maybe Text
updatedBy = Maybe Text
a} :: StudioComponentSummary)
instance Data.FromJSON StudioComponentSummary where
parseJSON :: Value -> Parser StudioComponentSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"StudioComponentSummary"
( \Object
x ->
Maybe ISO8601
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe StudioComponentSubtype
-> Maybe StudioComponentType
-> Maybe ISO8601
-> Maybe Text
-> StudioComponentSummary
StudioComponentSummary'
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
"createdAt")
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
"createdBy")
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
"name")
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
"studioComponentId")
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
"subtype")
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
"type")
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
"updatedAt")
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
"updatedBy")
)
instance Prelude.Hashable StudioComponentSummary where
hashWithSalt :: Int -> StudioComponentSummary -> Int
hashWithSalt Int
_salt StudioComponentSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe StudioComponentSubtype
Maybe StudioComponentType
updatedBy :: Maybe Text
updatedAt :: Maybe ISO8601
type' :: Maybe StudioComponentType
subtype :: Maybe StudioComponentSubtype
studioComponentId :: Maybe Text
name :: Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
createdBy :: Maybe Text
createdAt :: Maybe ISO8601
$sel:updatedBy:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
$sel:updatedAt:StudioComponentSummary' :: StudioComponentSummary -> Maybe ISO8601
$sel:type':StudioComponentSummary' :: StudioComponentSummary -> Maybe StudioComponentType
$sel:subtype:StudioComponentSummary' :: StudioComponentSummary -> Maybe StudioComponentSubtype
$sel:studioComponentId:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
$sel:name:StudioComponentSummary' :: StudioComponentSummary -> Maybe (Sensitive Text)
$sel:description:StudioComponentSummary' :: StudioComponentSummary -> Maybe (Sensitive Text)
$sel:createdBy:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
$sel:createdAt:StudioComponentSummary' :: StudioComponentSummary -> Maybe ISO8601
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
createdAt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
createdBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioComponentId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StudioComponentSubtype
subtype
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StudioComponentType
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
updatedAt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
updatedBy
instance Prelude.NFData StudioComponentSummary where
rnf :: StudioComponentSummary -> ()
rnf StudioComponentSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe StudioComponentSubtype
Maybe StudioComponentType
updatedBy :: Maybe Text
updatedAt :: Maybe ISO8601
type' :: Maybe StudioComponentType
subtype :: Maybe StudioComponentSubtype
studioComponentId :: Maybe Text
name :: Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
createdBy :: Maybe Text
createdAt :: Maybe ISO8601
$sel:updatedBy:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
$sel:updatedAt:StudioComponentSummary' :: StudioComponentSummary -> Maybe ISO8601
$sel:type':StudioComponentSummary' :: StudioComponentSummary -> Maybe StudioComponentType
$sel:subtype:StudioComponentSummary' :: StudioComponentSummary -> Maybe StudioComponentSubtype
$sel:studioComponentId:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
$sel:name:StudioComponentSummary' :: StudioComponentSummary -> Maybe (Sensitive Text)
$sel:description:StudioComponentSummary' :: StudioComponentSummary -> Maybe (Sensitive Text)
$sel:createdBy:StudioComponentSummary' :: StudioComponentSummary -> Maybe Text
$sel:createdAt:StudioComponentSummary' :: StudioComponentSummary -> Maybe ISO8601
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
createdAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
createdBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
studioComponentId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StudioComponentSubtype
subtype
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StudioComponentType
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
updatedAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
updatedBy