{-# 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.MQ.Types.LdapServerMetadataOutput 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 LdapServerMetadataOutput = LdapServerMetadataOutput'
{
LdapServerMetadataOutput -> Maybe Text
roleName :: Prelude.Maybe Prelude.Text,
LdapServerMetadataOutput -> Maybe Bool
roleSearchSubtree :: Prelude.Maybe Prelude.Bool,
LdapServerMetadataOutput -> Maybe Text
userRoleName :: Prelude.Maybe Prelude.Text,
LdapServerMetadataOutput -> Maybe Bool
userSearchSubtree :: Prelude.Maybe Prelude.Bool,
LdapServerMetadataOutput -> [Text]
hosts :: [Prelude.Text],
LdapServerMetadataOutput -> Text
userSearchMatching :: Prelude.Text,
LdapServerMetadataOutput -> Text
userBase :: Prelude.Text,
LdapServerMetadataOutput -> Text
roleSearchMatching :: Prelude.Text,
LdapServerMetadataOutput -> Text
serviceAccountUsername :: Prelude.Text,
LdapServerMetadataOutput -> Text
roleBase :: Prelude.Text
}
deriving (LdapServerMetadataOutput -> LdapServerMetadataOutput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LdapServerMetadataOutput -> LdapServerMetadataOutput -> Bool
$c/= :: LdapServerMetadataOutput -> LdapServerMetadataOutput -> Bool
== :: LdapServerMetadataOutput -> LdapServerMetadataOutput -> Bool
$c== :: LdapServerMetadataOutput -> LdapServerMetadataOutput -> Bool
Prelude.Eq, ReadPrec [LdapServerMetadataOutput]
ReadPrec LdapServerMetadataOutput
Int -> ReadS LdapServerMetadataOutput
ReadS [LdapServerMetadataOutput]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LdapServerMetadataOutput]
$creadListPrec :: ReadPrec [LdapServerMetadataOutput]
readPrec :: ReadPrec LdapServerMetadataOutput
$creadPrec :: ReadPrec LdapServerMetadataOutput
readList :: ReadS [LdapServerMetadataOutput]
$creadList :: ReadS [LdapServerMetadataOutput]
readsPrec :: Int -> ReadS LdapServerMetadataOutput
$creadsPrec :: Int -> ReadS LdapServerMetadataOutput
Prelude.Read, Int -> LdapServerMetadataOutput -> ShowS
[LdapServerMetadataOutput] -> ShowS
LdapServerMetadataOutput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LdapServerMetadataOutput] -> ShowS
$cshowList :: [LdapServerMetadataOutput] -> ShowS
show :: LdapServerMetadataOutput -> String
$cshow :: LdapServerMetadataOutput -> String
showsPrec :: Int -> LdapServerMetadataOutput -> ShowS
$cshowsPrec :: Int -> LdapServerMetadataOutput -> ShowS
Prelude.Show, forall x.
Rep LdapServerMetadataOutput x -> LdapServerMetadataOutput
forall x.
LdapServerMetadataOutput -> Rep LdapServerMetadataOutput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LdapServerMetadataOutput x -> LdapServerMetadataOutput
$cfrom :: forall x.
LdapServerMetadataOutput -> Rep LdapServerMetadataOutput x
Prelude.Generic)
newLdapServerMetadataOutput ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
LdapServerMetadataOutput
newLdapServerMetadataOutput :: Text -> Text -> Text -> Text -> Text -> LdapServerMetadataOutput
newLdapServerMetadataOutput
Text
pUserSearchMatching_
Text
pUserBase_
Text
pRoleSearchMatching_
Text
pServiceAccountUsername_
Text
pRoleBase_ =
LdapServerMetadataOutput'
{ $sel:roleName:LdapServerMetadataOutput' :: Maybe Text
roleName =
forall a. Maybe a
Prelude.Nothing,
$sel:roleSearchSubtree:LdapServerMetadataOutput' :: Maybe Bool
roleSearchSubtree = forall a. Maybe a
Prelude.Nothing,
$sel:userRoleName:LdapServerMetadataOutput' :: Maybe Text
userRoleName = forall a. Maybe a
Prelude.Nothing,
$sel:userSearchSubtree:LdapServerMetadataOutput' :: Maybe Bool
userSearchSubtree = forall a. Maybe a
Prelude.Nothing,
$sel:hosts:LdapServerMetadataOutput' :: [Text]
hosts = forall a. Monoid a => a
Prelude.mempty,
$sel:userSearchMatching:LdapServerMetadataOutput' :: Text
userSearchMatching = Text
pUserSearchMatching_,
$sel:userBase:LdapServerMetadataOutput' :: Text
userBase = Text
pUserBase_,
$sel:roleSearchMatching:LdapServerMetadataOutput' :: Text
roleSearchMatching = Text
pRoleSearchMatching_,
$sel:serviceAccountUsername:LdapServerMetadataOutput' :: Text
serviceAccountUsername = Text
pServiceAccountUsername_,
$sel:roleBase:LdapServerMetadataOutput' :: Text
roleBase = Text
pRoleBase_
}
ldapServerMetadataOutput_roleName :: Lens.Lens' LdapServerMetadataOutput (Prelude.Maybe Prelude.Text)
ldapServerMetadataOutput_roleName :: Lens' LdapServerMetadataOutput (Maybe Text)
ldapServerMetadataOutput_roleName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Maybe Text
roleName :: Maybe Text
$sel:roleName:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Text
roleName} -> Maybe Text
roleName) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Maybe Text
a -> LdapServerMetadataOutput
s {$sel:roleName:LdapServerMetadataOutput' :: Maybe Text
roleName = Maybe Text
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_roleSearchSubtree :: Lens.Lens' LdapServerMetadataOutput (Prelude.Maybe Prelude.Bool)
ldapServerMetadataOutput_roleSearchSubtree :: Lens' LdapServerMetadataOutput (Maybe Bool)
ldapServerMetadataOutput_roleSearchSubtree = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Maybe Bool
roleSearchSubtree :: Maybe Bool
$sel:roleSearchSubtree:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Bool
roleSearchSubtree} -> Maybe Bool
roleSearchSubtree) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Maybe Bool
a -> LdapServerMetadataOutput
s {$sel:roleSearchSubtree:LdapServerMetadataOutput' :: Maybe Bool
roleSearchSubtree = Maybe Bool
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_userRoleName :: Lens.Lens' LdapServerMetadataOutput (Prelude.Maybe Prelude.Text)
ldapServerMetadataOutput_userRoleName :: Lens' LdapServerMetadataOutput (Maybe Text)
ldapServerMetadataOutput_userRoleName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Maybe Text
userRoleName :: Maybe Text
$sel:userRoleName:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Text
userRoleName} -> Maybe Text
userRoleName) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Maybe Text
a -> LdapServerMetadataOutput
s {$sel:userRoleName:LdapServerMetadataOutput' :: Maybe Text
userRoleName = Maybe Text
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_userSearchSubtree :: Lens.Lens' LdapServerMetadataOutput (Prelude.Maybe Prelude.Bool)
ldapServerMetadataOutput_userSearchSubtree :: Lens' LdapServerMetadataOutput (Maybe Bool)
ldapServerMetadataOutput_userSearchSubtree = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Maybe Bool
userSearchSubtree :: Maybe Bool
$sel:userSearchSubtree:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Bool
userSearchSubtree} -> Maybe Bool
userSearchSubtree) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Maybe Bool
a -> LdapServerMetadataOutput
s {$sel:userSearchSubtree:LdapServerMetadataOutput' :: Maybe Bool
userSearchSubtree = Maybe Bool
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_hosts :: Lens.Lens' LdapServerMetadataOutput [Prelude.Text]
ldapServerMetadataOutput_hosts :: Lens' LdapServerMetadataOutput [Text]
ldapServerMetadataOutput_hosts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {[Text]
hosts :: [Text]
$sel:hosts:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> [Text]
hosts} -> [Text]
hosts) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} [Text]
a -> LdapServerMetadataOutput
s {$sel:hosts:LdapServerMetadataOutput' :: [Text]
hosts = [Text]
a} :: LdapServerMetadataOutput) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
ldapServerMetadataOutput_userSearchMatching :: Lens.Lens' LdapServerMetadataOutput Prelude.Text
ldapServerMetadataOutput_userSearchMatching :: Lens' LdapServerMetadataOutput Text
ldapServerMetadataOutput_userSearchMatching = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Text
userSearchMatching :: Text
$sel:userSearchMatching:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
userSearchMatching} -> Text
userSearchMatching) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Text
a -> LdapServerMetadataOutput
s {$sel:userSearchMatching:LdapServerMetadataOutput' :: Text
userSearchMatching = Text
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_userBase :: Lens.Lens' LdapServerMetadataOutput Prelude.Text
ldapServerMetadataOutput_userBase :: Lens' LdapServerMetadataOutput Text
ldapServerMetadataOutput_userBase = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Text
userBase :: Text
$sel:userBase:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
userBase} -> Text
userBase) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Text
a -> LdapServerMetadataOutput
s {$sel:userBase:LdapServerMetadataOutput' :: Text
userBase = Text
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_roleSearchMatching :: Lens.Lens' LdapServerMetadataOutput Prelude.Text
ldapServerMetadataOutput_roleSearchMatching :: Lens' LdapServerMetadataOutput Text
ldapServerMetadataOutput_roleSearchMatching = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Text
roleSearchMatching :: Text
$sel:roleSearchMatching:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
roleSearchMatching} -> Text
roleSearchMatching) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Text
a -> LdapServerMetadataOutput
s {$sel:roleSearchMatching:LdapServerMetadataOutput' :: Text
roleSearchMatching = Text
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_serviceAccountUsername :: Lens.Lens' LdapServerMetadataOutput Prelude.Text
ldapServerMetadataOutput_serviceAccountUsername :: Lens' LdapServerMetadataOutput Text
ldapServerMetadataOutput_serviceAccountUsername = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Text
serviceAccountUsername :: Text
$sel:serviceAccountUsername:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
serviceAccountUsername} -> Text
serviceAccountUsername) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Text
a -> LdapServerMetadataOutput
s {$sel:serviceAccountUsername:LdapServerMetadataOutput' :: Text
serviceAccountUsername = Text
a} :: LdapServerMetadataOutput)
ldapServerMetadataOutput_roleBase :: Lens.Lens' LdapServerMetadataOutput Prelude.Text
ldapServerMetadataOutput_roleBase :: Lens' LdapServerMetadataOutput Text
ldapServerMetadataOutput_roleBase = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LdapServerMetadataOutput' {Text
roleBase :: Text
$sel:roleBase:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
roleBase} -> Text
roleBase) (\s :: LdapServerMetadataOutput
s@LdapServerMetadataOutput' {} Text
a -> LdapServerMetadataOutput
s {$sel:roleBase:LdapServerMetadataOutput' :: Text
roleBase = Text
a} :: LdapServerMetadataOutput)
instance Data.FromJSON LdapServerMetadataOutput where
parseJSON :: Value -> Parser LdapServerMetadataOutput
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LdapServerMetadataOutput"
( \Object
x ->
Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> [Text]
-> Text
-> Text
-> Text
-> Text
-> Text
-> LdapServerMetadataOutput
LdapServerMetadataOutput'
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
"roleName")
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
"roleSearchSubtree")
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
"userRoleName")
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
"userSearchSubtree")
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
"hosts" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"userSearchMatching")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"userBase")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"roleSearchMatching")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"serviceAccountUsername")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"roleBase")
)
instance Prelude.Hashable LdapServerMetadataOutput where
hashWithSalt :: Int -> LdapServerMetadataOutput -> Int
hashWithSalt Int
_salt LdapServerMetadataOutput' {[Text]
Maybe Bool
Maybe Text
Text
roleBase :: Text
serviceAccountUsername :: Text
roleSearchMatching :: Text
userBase :: Text
userSearchMatching :: Text
hosts :: [Text]
userSearchSubtree :: Maybe Bool
userRoleName :: Maybe Text
roleSearchSubtree :: Maybe Bool
roleName :: Maybe Text
$sel:roleBase:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:serviceAccountUsername:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:roleSearchMatching:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:userBase:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:userSearchMatching:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:hosts:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> [Text]
$sel:userSearchSubtree:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Bool
$sel:userRoleName:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Text
$sel:roleSearchSubtree:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Bool
$sel:roleName:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
roleSearchSubtree
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
userRoleName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
userSearchSubtree
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [Text]
hosts
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
userSearchMatching
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
userBase
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
roleSearchMatching
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
serviceAccountUsername
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
roleBase
instance Prelude.NFData LdapServerMetadataOutput where
rnf :: LdapServerMetadataOutput -> ()
rnf LdapServerMetadataOutput' {[Text]
Maybe Bool
Maybe Text
Text
roleBase :: Text
serviceAccountUsername :: Text
roleSearchMatching :: Text
userBase :: Text
userSearchMatching :: Text
hosts :: [Text]
userSearchSubtree :: Maybe Bool
userRoleName :: Maybe Text
roleSearchSubtree :: Maybe Bool
roleName :: Maybe Text
$sel:roleBase:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:serviceAccountUsername:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:roleSearchMatching:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:userBase:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:userSearchMatching:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Text
$sel:hosts:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> [Text]
$sel:userSearchSubtree:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Bool
$sel:userRoleName:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Text
$sel:roleSearchSubtree:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Bool
$sel:roleName:LdapServerMetadataOutput' :: LdapServerMetadataOutput -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
roleSearchSubtree
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
userRoleName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
userSearchSubtree
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [Text]
hosts
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
userSearchMatching
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
userBase
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
roleSearchMatching
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
serviceAccountUsername
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
roleBase