{-# 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.EC2.Types.DirectoryServiceAuthenticationRequest where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
data DirectoryServiceAuthenticationRequest = DirectoryServiceAuthenticationRequest'
{
DirectoryServiceAuthenticationRequest -> Maybe Text
directoryId :: Prelude.Maybe Prelude.Text
}
deriving (DirectoryServiceAuthenticationRequest
-> DirectoryServiceAuthenticationRequest -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DirectoryServiceAuthenticationRequest
-> DirectoryServiceAuthenticationRequest -> Bool
$c/= :: DirectoryServiceAuthenticationRequest
-> DirectoryServiceAuthenticationRequest -> Bool
== :: DirectoryServiceAuthenticationRequest
-> DirectoryServiceAuthenticationRequest -> Bool
$c== :: DirectoryServiceAuthenticationRequest
-> DirectoryServiceAuthenticationRequest -> Bool
Prelude.Eq, ReadPrec [DirectoryServiceAuthenticationRequest]
ReadPrec DirectoryServiceAuthenticationRequest
Int -> ReadS DirectoryServiceAuthenticationRequest
ReadS [DirectoryServiceAuthenticationRequest]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DirectoryServiceAuthenticationRequest]
$creadListPrec :: ReadPrec [DirectoryServiceAuthenticationRequest]
readPrec :: ReadPrec DirectoryServiceAuthenticationRequest
$creadPrec :: ReadPrec DirectoryServiceAuthenticationRequest
readList :: ReadS [DirectoryServiceAuthenticationRequest]
$creadList :: ReadS [DirectoryServiceAuthenticationRequest]
readsPrec :: Int -> ReadS DirectoryServiceAuthenticationRequest
$creadsPrec :: Int -> ReadS DirectoryServiceAuthenticationRequest
Prelude.Read, Int -> DirectoryServiceAuthenticationRequest -> ShowS
[DirectoryServiceAuthenticationRequest] -> ShowS
DirectoryServiceAuthenticationRequest -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DirectoryServiceAuthenticationRequest] -> ShowS
$cshowList :: [DirectoryServiceAuthenticationRequest] -> ShowS
show :: DirectoryServiceAuthenticationRequest -> String
$cshow :: DirectoryServiceAuthenticationRequest -> String
showsPrec :: Int -> DirectoryServiceAuthenticationRequest -> ShowS
$cshowsPrec :: Int -> DirectoryServiceAuthenticationRequest -> ShowS
Prelude.Show, forall x.
Rep DirectoryServiceAuthenticationRequest x
-> DirectoryServiceAuthenticationRequest
forall x.
DirectoryServiceAuthenticationRequest
-> Rep DirectoryServiceAuthenticationRequest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DirectoryServiceAuthenticationRequest x
-> DirectoryServiceAuthenticationRequest
$cfrom :: forall x.
DirectoryServiceAuthenticationRequest
-> Rep DirectoryServiceAuthenticationRequest x
Prelude.Generic)
newDirectoryServiceAuthenticationRequest ::
DirectoryServiceAuthenticationRequest
newDirectoryServiceAuthenticationRequest :: DirectoryServiceAuthenticationRequest
newDirectoryServiceAuthenticationRequest =
DirectoryServiceAuthenticationRequest'
{ $sel:directoryId:DirectoryServiceAuthenticationRequest' :: Maybe Text
directoryId =
forall a. Maybe a
Prelude.Nothing
}
directoryServiceAuthenticationRequest_directoryId :: Lens.Lens' DirectoryServiceAuthenticationRequest (Prelude.Maybe Prelude.Text)
directoryServiceAuthenticationRequest_directoryId :: Lens' DirectoryServiceAuthenticationRequest (Maybe Text)
directoryServiceAuthenticationRequest_directoryId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectoryServiceAuthenticationRequest' {Maybe Text
directoryId :: Maybe Text
$sel:directoryId:DirectoryServiceAuthenticationRequest' :: DirectoryServiceAuthenticationRequest -> Maybe Text
directoryId} -> Maybe Text
directoryId) (\s :: DirectoryServiceAuthenticationRequest
s@DirectoryServiceAuthenticationRequest' {} Maybe Text
a -> DirectoryServiceAuthenticationRequest
s {$sel:directoryId:DirectoryServiceAuthenticationRequest' :: Maybe Text
directoryId = Maybe Text
a} :: DirectoryServiceAuthenticationRequest)
instance
Prelude.Hashable
DirectoryServiceAuthenticationRequest
where
hashWithSalt :: Int -> DirectoryServiceAuthenticationRequest -> Int
hashWithSalt
Int
_salt
DirectoryServiceAuthenticationRequest' {Maybe Text
directoryId :: Maybe Text
$sel:directoryId:DirectoryServiceAuthenticationRequest' :: DirectoryServiceAuthenticationRequest -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
directoryId
instance
Prelude.NFData
DirectoryServiceAuthenticationRequest
where
rnf :: DirectoryServiceAuthenticationRequest -> ()
rnf DirectoryServiceAuthenticationRequest' {Maybe Text
directoryId :: Maybe Text
$sel:directoryId:DirectoryServiceAuthenticationRequest' :: DirectoryServiceAuthenticationRequest -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
directoryId
instance
Data.ToQuery
DirectoryServiceAuthenticationRequest
where
toQuery :: DirectoryServiceAuthenticationRequest -> QueryString
toQuery DirectoryServiceAuthenticationRequest' {Maybe Text
directoryId :: Maybe Text
$sel:directoryId:DirectoryServiceAuthenticationRequest' :: DirectoryServiceAuthenticationRequest -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"DirectoryId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
directoryId]