{-# 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.EMR.Types.StudioSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EMR.Types.AuthMode
import qualified Amazonka.Prelude as Prelude
data StudioSummary = StudioSummary'
{
StudioSummary -> Maybe AuthMode
authMode :: Prelude.Maybe AuthMode,
StudioSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
StudioSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
StudioSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
StudioSummary -> Maybe Text
studioId :: Prelude.Maybe Prelude.Text,
StudioSummary -> Maybe Text
url :: Prelude.Maybe Prelude.Text,
StudioSummary -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text
}
deriving (StudioSummary -> StudioSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StudioSummary -> StudioSummary -> Bool
$c/= :: StudioSummary -> StudioSummary -> Bool
== :: StudioSummary -> StudioSummary -> Bool
$c== :: StudioSummary -> StudioSummary -> Bool
Prelude.Eq, ReadPrec [StudioSummary]
ReadPrec StudioSummary
Int -> ReadS StudioSummary
ReadS [StudioSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StudioSummary]
$creadListPrec :: ReadPrec [StudioSummary]
readPrec :: ReadPrec StudioSummary
$creadPrec :: ReadPrec StudioSummary
readList :: ReadS [StudioSummary]
$creadList :: ReadS [StudioSummary]
readsPrec :: Int -> ReadS StudioSummary
$creadsPrec :: Int -> ReadS StudioSummary
Prelude.Read, Int -> StudioSummary -> ShowS
[StudioSummary] -> ShowS
StudioSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StudioSummary] -> ShowS
$cshowList :: [StudioSummary] -> ShowS
show :: StudioSummary -> String
$cshow :: StudioSummary -> String
showsPrec :: Int -> StudioSummary -> ShowS
$cshowsPrec :: Int -> StudioSummary -> ShowS
Prelude.Show, forall x. Rep StudioSummary x -> StudioSummary
forall x. StudioSummary -> Rep StudioSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StudioSummary x -> StudioSummary
$cfrom :: forall x. StudioSummary -> Rep StudioSummary x
Prelude.Generic)
newStudioSummary ::
StudioSummary
newStudioSummary :: StudioSummary
newStudioSummary =
StudioSummary'
{ $sel:authMode:StudioSummary' :: Maybe AuthMode
authMode = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:StudioSummary' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:description:StudioSummary' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:name:StudioSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:studioId:StudioSummary' :: Maybe Text
studioId = forall a. Maybe a
Prelude.Nothing,
$sel:url:StudioSummary' :: Maybe Text
url = forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:StudioSummary' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
}
studioSummary_authMode :: Lens.Lens' StudioSummary (Prelude.Maybe AuthMode)
studioSummary_authMode :: Lens' StudioSummary (Maybe AuthMode)
studioSummary_authMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe AuthMode
authMode :: Maybe AuthMode
$sel:authMode:StudioSummary' :: StudioSummary -> Maybe AuthMode
authMode} -> Maybe AuthMode
authMode) (\s :: StudioSummary
s@StudioSummary' {} Maybe AuthMode
a -> StudioSummary
s {$sel:authMode:StudioSummary' :: Maybe AuthMode
authMode = Maybe AuthMode
a} :: StudioSummary)
studioSummary_creationTime :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.UTCTime)
studioSummary_creationTime :: Lens' StudioSummary (Maybe UTCTime)
studioSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:StudioSummary' :: StudioSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: StudioSummary
s@StudioSummary' {} Maybe POSIX
a -> StudioSummary
s {$sel:creationTime:StudioSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: StudioSummary) 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
studioSummary_description :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text)
studioSummary_description :: Lens' StudioSummary (Maybe Text)
studioSummary_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe Text
description :: Maybe Text
$sel:description:StudioSummary' :: StudioSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: StudioSummary
s@StudioSummary' {} Maybe Text
a -> StudioSummary
s {$sel:description:StudioSummary' :: Maybe Text
description = Maybe Text
a} :: StudioSummary)
studioSummary_name :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text)
studioSummary_name :: Lens' StudioSummary (Maybe Text)
studioSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe Text
name :: Maybe Text
$sel:name:StudioSummary' :: StudioSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: StudioSummary
s@StudioSummary' {} Maybe Text
a -> StudioSummary
s {$sel:name:StudioSummary' :: Maybe Text
name = Maybe Text
a} :: StudioSummary)
studioSummary_studioId :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text)
studioSummary_studioId :: Lens' StudioSummary (Maybe Text)
studioSummary_studioId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe Text
studioId :: Maybe Text
$sel:studioId:StudioSummary' :: StudioSummary -> Maybe Text
studioId} -> Maybe Text
studioId) (\s :: StudioSummary
s@StudioSummary' {} Maybe Text
a -> StudioSummary
s {$sel:studioId:StudioSummary' :: Maybe Text
studioId = Maybe Text
a} :: StudioSummary)
studioSummary_url :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text)
studioSummary_url :: Lens' StudioSummary (Maybe Text)
studioSummary_url = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe Text
url :: Maybe Text
$sel:url:StudioSummary' :: StudioSummary -> Maybe Text
url} -> Maybe Text
url) (\s :: StudioSummary
s@StudioSummary' {} Maybe Text
a -> StudioSummary
s {$sel:url:StudioSummary' :: Maybe Text
url = Maybe Text
a} :: StudioSummary)
studioSummary_vpcId :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text)
studioSummary_vpcId :: Lens' StudioSummary (Maybe Text)
studioSummary_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StudioSummary' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:StudioSummary' :: StudioSummary -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: StudioSummary
s@StudioSummary' {} Maybe Text
a -> StudioSummary
s {$sel:vpcId:StudioSummary' :: Maybe Text
vpcId = Maybe Text
a} :: StudioSummary)
instance Data.FromJSON StudioSummary where
parseJSON :: Value -> Parser StudioSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"StudioSummary"
( \Object
x ->
Maybe AuthMode
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StudioSummary
StudioSummary'
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
"AuthMode")
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
"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
"StudioId")
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
"Url")
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
"VpcId")
)
instance Prelude.Hashable StudioSummary where
hashWithSalt :: Int -> StudioSummary -> Int
hashWithSalt Int
_salt StudioSummary' {Maybe Text
Maybe POSIX
Maybe AuthMode
vpcId :: Maybe Text
url :: Maybe Text
studioId :: Maybe Text
name :: Maybe Text
description :: Maybe Text
creationTime :: Maybe POSIX
authMode :: Maybe AuthMode
$sel:vpcId:StudioSummary' :: StudioSummary -> Maybe Text
$sel:url:StudioSummary' :: StudioSummary -> Maybe Text
$sel:studioId:StudioSummary' :: StudioSummary -> Maybe Text
$sel:name:StudioSummary' :: StudioSummary -> Maybe Text
$sel:description:StudioSummary' :: StudioSummary -> Maybe Text
$sel:creationTime:StudioSummary' :: StudioSummary -> Maybe POSIX
$sel:authMode:StudioSummary' :: StudioSummary -> Maybe AuthMode
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AuthMode
authMode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
url
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId
instance Prelude.NFData StudioSummary where
rnf :: StudioSummary -> ()
rnf StudioSummary' {Maybe Text
Maybe POSIX
Maybe AuthMode
vpcId :: Maybe Text
url :: Maybe Text
studioId :: Maybe Text
name :: Maybe Text
description :: Maybe Text
creationTime :: Maybe POSIX
authMode :: Maybe AuthMode
$sel:vpcId:StudioSummary' :: StudioSummary -> Maybe Text
$sel:url:StudioSummary' :: StudioSummary -> Maybe Text
$sel:studioId:StudioSummary' :: StudioSummary -> Maybe Text
$sel:name:StudioSummary' :: StudioSummary -> Maybe Text
$sel:description:StudioSummary' :: StudioSummary -> Maybe Text
$sel:creationTime:StudioSummary' :: StudioSummary -> Maybe POSIX
$sel:authMode:StudioSummary' :: StudioSummary -> Maybe AuthMode
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AuthMode
authMode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
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
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
studioId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
url
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId