{-# 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.ChimeSDKIdentity.Types.AppInstanceUser 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 AppInstanceUser = AppInstanceUser'
{
AppInstanceUser -> Maybe Text
appInstanceUserArn :: Prelude.Maybe Prelude.Text,
AppInstanceUser -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Data.POSIX,
AppInstanceUser -> Maybe POSIX
lastUpdatedTimestamp :: Prelude.Maybe Data.POSIX,
AppInstanceUser -> Maybe (Sensitive Text)
metadata :: Prelude.Maybe (Data.Sensitive Prelude.Text),
AppInstanceUser -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text)
}
deriving (AppInstanceUser -> AppInstanceUser -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AppInstanceUser -> AppInstanceUser -> Bool
$c/= :: AppInstanceUser -> AppInstanceUser -> Bool
== :: AppInstanceUser -> AppInstanceUser -> Bool
$c== :: AppInstanceUser -> AppInstanceUser -> Bool
Prelude.Eq, Int -> AppInstanceUser -> ShowS
[AppInstanceUser] -> ShowS
AppInstanceUser -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AppInstanceUser] -> ShowS
$cshowList :: [AppInstanceUser] -> ShowS
show :: AppInstanceUser -> String
$cshow :: AppInstanceUser -> String
showsPrec :: Int -> AppInstanceUser -> ShowS
$cshowsPrec :: Int -> AppInstanceUser -> ShowS
Prelude.Show, forall x. Rep AppInstanceUser x -> AppInstanceUser
forall x. AppInstanceUser -> Rep AppInstanceUser x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AppInstanceUser x -> AppInstanceUser
$cfrom :: forall x. AppInstanceUser -> Rep AppInstanceUser x
Prelude.Generic)
newAppInstanceUser ::
AppInstanceUser
newAppInstanceUser :: AppInstanceUser
newAppInstanceUser =
AppInstanceUser'
{ $sel:appInstanceUserArn:AppInstanceUser' :: Maybe Text
appInstanceUserArn =
forall a. Maybe a
Prelude.Nothing,
$sel:createdTimestamp:AppInstanceUser' :: Maybe POSIX
createdTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:AppInstanceUser' :: Maybe POSIX
lastUpdatedTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:metadata:AppInstanceUser' :: Maybe (Sensitive Text)
metadata = forall a. Maybe a
Prelude.Nothing,
$sel:name:AppInstanceUser' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing
}
appInstanceUser_appInstanceUserArn :: Lens.Lens' AppInstanceUser (Prelude.Maybe Prelude.Text)
appInstanceUser_appInstanceUserArn :: Lens' AppInstanceUser (Maybe Text)
appInstanceUser_appInstanceUserArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppInstanceUser' {Maybe Text
appInstanceUserArn :: Maybe Text
$sel:appInstanceUserArn:AppInstanceUser' :: AppInstanceUser -> Maybe Text
appInstanceUserArn} -> Maybe Text
appInstanceUserArn) (\s :: AppInstanceUser
s@AppInstanceUser' {} Maybe Text
a -> AppInstanceUser
s {$sel:appInstanceUserArn:AppInstanceUser' :: Maybe Text
appInstanceUserArn = Maybe Text
a} :: AppInstanceUser)
appInstanceUser_createdTimestamp :: Lens.Lens' AppInstanceUser (Prelude.Maybe Prelude.UTCTime)
appInstanceUser_createdTimestamp :: Lens' AppInstanceUser (Maybe UTCTime)
appInstanceUser_createdTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppInstanceUser' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:AppInstanceUser' :: AppInstanceUser -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: AppInstanceUser
s@AppInstanceUser' {} Maybe POSIX
a -> AppInstanceUser
s {$sel:createdTimestamp:AppInstanceUser' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: AppInstanceUser) 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
appInstanceUser_lastUpdatedTimestamp :: Lens.Lens' AppInstanceUser (Prelude.Maybe Prelude.UTCTime)
appInstanceUser_lastUpdatedTimestamp :: Lens' AppInstanceUser (Maybe UTCTime)
appInstanceUser_lastUpdatedTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppInstanceUser' {Maybe POSIX
lastUpdatedTimestamp :: Maybe POSIX
$sel:lastUpdatedTimestamp:AppInstanceUser' :: AppInstanceUser -> Maybe POSIX
lastUpdatedTimestamp} -> Maybe POSIX
lastUpdatedTimestamp) (\s :: AppInstanceUser
s@AppInstanceUser' {} Maybe POSIX
a -> AppInstanceUser
s {$sel:lastUpdatedTimestamp:AppInstanceUser' :: Maybe POSIX
lastUpdatedTimestamp = Maybe POSIX
a} :: AppInstanceUser) 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
appInstanceUser_metadata :: Lens.Lens' AppInstanceUser (Prelude.Maybe Prelude.Text)
appInstanceUser_metadata :: Lens' AppInstanceUser (Maybe Text)
appInstanceUser_metadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppInstanceUser' {Maybe (Sensitive Text)
metadata :: Maybe (Sensitive Text)
$sel:metadata:AppInstanceUser' :: AppInstanceUser -> Maybe (Sensitive Text)
metadata} -> Maybe (Sensitive Text)
metadata) (\s :: AppInstanceUser
s@AppInstanceUser' {} Maybe (Sensitive Text)
a -> AppInstanceUser
s {$sel:metadata:AppInstanceUser' :: Maybe (Sensitive Text)
metadata = Maybe (Sensitive Text)
a} :: AppInstanceUser) 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
appInstanceUser_name :: Lens.Lens' AppInstanceUser (Prelude.Maybe Prelude.Text)
appInstanceUser_name :: Lens' AppInstanceUser (Maybe Text)
appInstanceUser_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppInstanceUser' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:AppInstanceUser' :: AppInstanceUser -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: AppInstanceUser
s@AppInstanceUser' {} Maybe (Sensitive Text)
a -> AppInstanceUser
s {$sel:name:AppInstanceUser' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: AppInstanceUser) 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
instance Data.FromJSON AppInstanceUser where
parseJSON :: Value -> Parser AppInstanceUser
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AppInstanceUser"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> AppInstanceUser
AppInstanceUser'
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
"AppInstanceUserArn")
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
"CreatedTimestamp")
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
"LastUpdatedTimestamp")
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
"Metadata")
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 AppInstanceUser where
hashWithSalt :: Int -> AppInstanceUser -> Int
hashWithSalt Int
_salt AppInstanceUser' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
name :: Maybe (Sensitive Text)
metadata :: Maybe (Sensitive Text)
lastUpdatedTimestamp :: Maybe POSIX
createdTimestamp :: Maybe POSIX
appInstanceUserArn :: Maybe Text
$sel:name:AppInstanceUser' :: AppInstanceUser -> Maybe (Sensitive Text)
$sel:metadata:AppInstanceUser' :: AppInstanceUser -> Maybe (Sensitive Text)
$sel:lastUpdatedTimestamp:AppInstanceUser' :: AppInstanceUser -> Maybe POSIX
$sel:createdTimestamp:AppInstanceUser' :: AppInstanceUser -> Maybe POSIX
$sel:appInstanceUserArn:AppInstanceUser' :: AppInstanceUser -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
appInstanceUserArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdTimestamp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedTimestamp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
metadata
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
name
instance Prelude.NFData AppInstanceUser where
rnf :: AppInstanceUser -> ()
rnf AppInstanceUser' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
name :: Maybe (Sensitive Text)
metadata :: Maybe (Sensitive Text)
lastUpdatedTimestamp :: Maybe POSIX
createdTimestamp :: Maybe POSIX
appInstanceUserArn :: Maybe Text
$sel:name:AppInstanceUser' :: AppInstanceUser -> Maybe (Sensitive Text)
$sel:metadata:AppInstanceUser' :: AppInstanceUser -> Maybe (Sensitive Text)
$sel:lastUpdatedTimestamp:AppInstanceUser' :: AppInstanceUser -> Maybe POSIX
$sel:createdTimestamp:AppInstanceUser' :: AppInstanceUser -> Maybe POSIX
$sel:appInstanceUserArn:AppInstanceUser' :: AppInstanceUser -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
appInstanceUserArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
metadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name