{-# 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.DirectoryService.Types.ClientAuthenticationSettingInfo where
import qualified Amazonka.Core as Core
import Amazonka.DirectoryService.Types.ClientAuthenticationStatus
import Amazonka.DirectoryService.Types.ClientAuthenticationType
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ClientAuthenticationSettingInfo = ClientAuthenticationSettingInfo'
{
ClientAuthenticationSettingInfo -> Maybe ClientAuthenticationStatus
status :: Prelude.Maybe ClientAuthenticationStatus,
ClientAuthenticationSettingInfo -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Core.POSIX,
ClientAuthenticationSettingInfo -> Maybe ClientAuthenticationType
type' :: Prelude.Maybe ClientAuthenticationType
}
deriving (ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool
(ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool)
-> (ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool)
-> Eq ClientAuthenticationSettingInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool
$c/= :: ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool
== :: ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool
$c== :: ClientAuthenticationSettingInfo
-> ClientAuthenticationSettingInfo -> Bool
Prelude.Eq, ReadPrec [ClientAuthenticationSettingInfo]
ReadPrec ClientAuthenticationSettingInfo
Int -> ReadS ClientAuthenticationSettingInfo
ReadS [ClientAuthenticationSettingInfo]
(Int -> ReadS ClientAuthenticationSettingInfo)
-> ReadS [ClientAuthenticationSettingInfo]
-> ReadPrec ClientAuthenticationSettingInfo
-> ReadPrec [ClientAuthenticationSettingInfo]
-> Read ClientAuthenticationSettingInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClientAuthenticationSettingInfo]
$creadListPrec :: ReadPrec [ClientAuthenticationSettingInfo]
readPrec :: ReadPrec ClientAuthenticationSettingInfo
$creadPrec :: ReadPrec ClientAuthenticationSettingInfo
readList :: ReadS [ClientAuthenticationSettingInfo]
$creadList :: ReadS [ClientAuthenticationSettingInfo]
readsPrec :: Int -> ReadS ClientAuthenticationSettingInfo
$creadsPrec :: Int -> ReadS ClientAuthenticationSettingInfo
Prelude.Read, Int -> ClientAuthenticationSettingInfo -> ShowS
[ClientAuthenticationSettingInfo] -> ShowS
ClientAuthenticationSettingInfo -> String
(Int -> ClientAuthenticationSettingInfo -> ShowS)
-> (ClientAuthenticationSettingInfo -> String)
-> ([ClientAuthenticationSettingInfo] -> ShowS)
-> Show ClientAuthenticationSettingInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClientAuthenticationSettingInfo] -> ShowS
$cshowList :: [ClientAuthenticationSettingInfo] -> ShowS
show :: ClientAuthenticationSettingInfo -> String
$cshow :: ClientAuthenticationSettingInfo -> String
showsPrec :: Int -> ClientAuthenticationSettingInfo -> ShowS
$cshowsPrec :: Int -> ClientAuthenticationSettingInfo -> ShowS
Prelude.Show, (forall x.
ClientAuthenticationSettingInfo
-> Rep ClientAuthenticationSettingInfo x)
-> (forall x.
Rep ClientAuthenticationSettingInfo x
-> ClientAuthenticationSettingInfo)
-> Generic ClientAuthenticationSettingInfo
forall x.
Rep ClientAuthenticationSettingInfo x
-> ClientAuthenticationSettingInfo
forall x.
ClientAuthenticationSettingInfo
-> Rep ClientAuthenticationSettingInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ClientAuthenticationSettingInfo x
-> ClientAuthenticationSettingInfo
$cfrom :: forall x.
ClientAuthenticationSettingInfo
-> Rep ClientAuthenticationSettingInfo x
Prelude.Generic)
newClientAuthenticationSettingInfo ::
ClientAuthenticationSettingInfo
newClientAuthenticationSettingInfo :: ClientAuthenticationSettingInfo
newClientAuthenticationSettingInfo =
ClientAuthenticationSettingInfo' :: Maybe ClientAuthenticationStatus
-> Maybe POSIX
-> Maybe ClientAuthenticationType
-> ClientAuthenticationSettingInfo
ClientAuthenticationSettingInfo'
{ $sel:status:ClientAuthenticationSettingInfo' :: Maybe ClientAuthenticationStatus
status =
Maybe ClientAuthenticationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedDateTime:ClientAuthenticationSettingInfo' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:type':ClientAuthenticationSettingInfo' :: Maybe ClientAuthenticationType
type' = Maybe ClientAuthenticationType
forall a. Maybe a
Prelude.Nothing
}
clientAuthenticationSettingInfo_status :: Lens.Lens' ClientAuthenticationSettingInfo (Prelude.Maybe ClientAuthenticationStatus)
clientAuthenticationSettingInfo_status :: (Maybe ClientAuthenticationStatus
-> f (Maybe ClientAuthenticationStatus))
-> ClientAuthenticationSettingInfo
-> f ClientAuthenticationSettingInfo
clientAuthenticationSettingInfo_status = (ClientAuthenticationSettingInfo
-> Maybe ClientAuthenticationStatus)
-> (ClientAuthenticationSettingInfo
-> Maybe ClientAuthenticationStatus
-> ClientAuthenticationSettingInfo)
-> Lens
ClientAuthenticationSettingInfo
ClientAuthenticationSettingInfo
(Maybe ClientAuthenticationStatus)
(Maybe ClientAuthenticationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClientAuthenticationSettingInfo' {Maybe ClientAuthenticationStatus
status :: Maybe ClientAuthenticationStatus
$sel:status:ClientAuthenticationSettingInfo' :: ClientAuthenticationSettingInfo -> Maybe ClientAuthenticationStatus
status} -> Maybe ClientAuthenticationStatus
status) (\s :: ClientAuthenticationSettingInfo
s@ClientAuthenticationSettingInfo' {} Maybe ClientAuthenticationStatus
a -> ClientAuthenticationSettingInfo
s {$sel:status:ClientAuthenticationSettingInfo' :: Maybe ClientAuthenticationStatus
status = Maybe ClientAuthenticationStatus
a} :: ClientAuthenticationSettingInfo)
clientAuthenticationSettingInfo_lastUpdatedDateTime :: Lens.Lens' ClientAuthenticationSettingInfo (Prelude.Maybe Prelude.UTCTime)
clientAuthenticationSettingInfo_lastUpdatedDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ClientAuthenticationSettingInfo
-> f ClientAuthenticationSettingInfo
clientAuthenticationSettingInfo_lastUpdatedDateTime = (ClientAuthenticationSettingInfo -> Maybe POSIX)
-> (ClientAuthenticationSettingInfo
-> Maybe POSIX -> ClientAuthenticationSettingInfo)
-> Lens
ClientAuthenticationSettingInfo
ClientAuthenticationSettingInfo
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClientAuthenticationSettingInfo' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:ClientAuthenticationSettingInfo' :: ClientAuthenticationSettingInfo -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: ClientAuthenticationSettingInfo
s@ClientAuthenticationSettingInfo' {} Maybe POSIX
a -> ClientAuthenticationSettingInfo
s {$sel:lastUpdatedDateTime:ClientAuthenticationSettingInfo' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: ClientAuthenticationSettingInfo) ((Maybe POSIX -> f (Maybe POSIX))
-> ClientAuthenticationSettingInfo
-> f ClientAuthenticationSettingInfo)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ClientAuthenticationSettingInfo
-> f ClientAuthenticationSettingInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
clientAuthenticationSettingInfo_type :: Lens.Lens' ClientAuthenticationSettingInfo (Prelude.Maybe ClientAuthenticationType)
clientAuthenticationSettingInfo_type :: (Maybe ClientAuthenticationType
-> f (Maybe ClientAuthenticationType))
-> ClientAuthenticationSettingInfo
-> f ClientAuthenticationSettingInfo
clientAuthenticationSettingInfo_type = (ClientAuthenticationSettingInfo -> Maybe ClientAuthenticationType)
-> (ClientAuthenticationSettingInfo
-> Maybe ClientAuthenticationType
-> ClientAuthenticationSettingInfo)
-> Lens
ClientAuthenticationSettingInfo
ClientAuthenticationSettingInfo
(Maybe ClientAuthenticationType)
(Maybe ClientAuthenticationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClientAuthenticationSettingInfo' {Maybe ClientAuthenticationType
type' :: Maybe ClientAuthenticationType
$sel:type':ClientAuthenticationSettingInfo' :: ClientAuthenticationSettingInfo -> Maybe ClientAuthenticationType
type'} -> Maybe ClientAuthenticationType
type') (\s :: ClientAuthenticationSettingInfo
s@ClientAuthenticationSettingInfo' {} Maybe ClientAuthenticationType
a -> ClientAuthenticationSettingInfo
s {$sel:type':ClientAuthenticationSettingInfo' :: Maybe ClientAuthenticationType
type' = Maybe ClientAuthenticationType
a} :: ClientAuthenticationSettingInfo)
instance
Core.FromJSON
ClientAuthenticationSettingInfo
where
parseJSON :: Value -> Parser ClientAuthenticationSettingInfo
parseJSON =
String
-> (Object -> Parser ClientAuthenticationSettingInfo)
-> Value
-> Parser ClientAuthenticationSettingInfo
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ClientAuthenticationSettingInfo"
( \Object
x ->
Maybe ClientAuthenticationStatus
-> Maybe POSIX
-> Maybe ClientAuthenticationType
-> ClientAuthenticationSettingInfo
ClientAuthenticationSettingInfo'
(Maybe ClientAuthenticationStatus
-> Maybe POSIX
-> Maybe ClientAuthenticationType
-> ClientAuthenticationSettingInfo)
-> Parser (Maybe ClientAuthenticationStatus)
-> Parser
(Maybe POSIX
-> Maybe ClientAuthenticationType
-> ClientAuthenticationSettingInfo)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ClientAuthenticationStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe POSIX
-> Maybe ClientAuthenticationType
-> ClientAuthenticationSettingInfo)
-> Parser (Maybe POSIX)
-> Parser
(Maybe ClientAuthenticationType -> ClientAuthenticationSettingInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdatedDateTime")
Parser
(Maybe ClientAuthenticationType -> ClientAuthenticationSettingInfo)
-> Parser (Maybe ClientAuthenticationType)
-> Parser ClientAuthenticationSettingInfo
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ClientAuthenticationType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Type")
)
instance
Prelude.Hashable
ClientAuthenticationSettingInfo
instance
Prelude.NFData
ClientAuthenticationSettingInfo