{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.StorageGateway.JoinDomain
(
JoinDomain (..),
newJoinDomain,
joinDomain_organizationalUnit,
joinDomain_timeoutInSeconds,
joinDomain_domainControllers,
joinDomain_gatewayARN,
joinDomain_domainName,
joinDomain_userName,
joinDomain_password,
JoinDomainResponse (..),
newJoinDomainResponse,
joinDomainResponse_gatewayARN,
joinDomainResponse_activeDirectoryStatus,
joinDomainResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.StorageGateway.Types
data JoinDomain = JoinDomain'
{
JoinDomain -> Maybe Text
organizationalUnit :: Prelude.Maybe Prelude.Text,
JoinDomain -> Maybe Natural
timeoutInSeconds :: Prelude.Maybe Prelude.Natural,
JoinDomain -> Maybe [Text]
domainControllers :: Prelude.Maybe [Prelude.Text],
JoinDomain -> Text
gatewayARN :: Prelude.Text,
JoinDomain -> Text
domainName :: Prelude.Text,
JoinDomain -> Text
userName :: Prelude.Text,
JoinDomain -> Sensitive Text
password :: Core.Sensitive Prelude.Text
}
deriving (JoinDomain -> JoinDomain -> Bool
(JoinDomain -> JoinDomain -> Bool)
-> (JoinDomain -> JoinDomain -> Bool) -> Eq JoinDomain
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JoinDomain -> JoinDomain -> Bool
$c/= :: JoinDomain -> JoinDomain -> Bool
== :: JoinDomain -> JoinDomain -> Bool
$c== :: JoinDomain -> JoinDomain -> Bool
Prelude.Eq, Int -> JoinDomain -> ShowS
[JoinDomain] -> ShowS
JoinDomain -> String
(Int -> JoinDomain -> ShowS)
-> (JoinDomain -> String)
-> ([JoinDomain] -> ShowS)
-> Show JoinDomain
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JoinDomain] -> ShowS
$cshowList :: [JoinDomain] -> ShowS
show :: JoinDomain -> String
$cshow :: JoinDomain -> String
showsPrec :: Int -> JoinDomain -> ShowS
$cshowsPrec :: Int -> JoinDomain -> ShowS
Prelude.Show, (forall x. JoinDomain -> Rep JoinDomain x)
-> (forall x. Rep JoinDomain x -> JoinDomain) -> Generic JoinDomain
forall x. Rep JoinDomain x -> JoinDomain
forall x. JoinDomain -> Rep JoinDomain x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JoinDomain x -> JoinDomain
$cfrom :: forall x. JoinDomain -> Rep JoinDomain x
Prelude.Generic)
newJoinDomain ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
JoinDomain
newJoinDomain :: Text -> Text -> Text -> Text -> JoinDomain
newJoinDomain
Text
pGatewayARN_
Text
pDomainName_
Text
pUserName_
Text
pPassword_ =
JoinDomain' :: Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Text
-> Text
-> Text
-> Sensitive Text
-> JoinDomain
JoinDomain'
{ $sel:organizationalUnit:JoinDomain' :: Maybe Text
organizationalUnit = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:timeoutInSeconds:JoinDomain' :: Maybe Natural
timeoutInSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:domainControllers:JoinDomain' :: Maybe [Text]
domainControllers = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayARN:JoinDomain' :: Text
gatewayARN = Text
pGatewayARN_,
$sel:domainName:JoinDomain' :: Text
domainName = Text
pDomainName_,
$sel:userName:JoinDomain' :: Text
userName = Text
pUserName_,
$sel:password:JoinDomain' :: Sensitive Text
password = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pPassword_
}
joinDomain_organizationalUnit :: Lens.Lens' JoinDomain (Prelude.Maybe Prelude.Text)
joinDomain_organizationalUnit :: (Maybe Text -> f (Maybe Text)) -> JoinDomain -> f JoinDomain
joinDomain_organizationalUnit = (JoinDomain -> Maybe Text)
-> (JoinDomain -> Maybe Text -> JoinDomain)
-> Lens JoinDomain JoinDomain (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Maybe Text
organizationalUnit :: Maybe Text
$sel:organizationalUnit:JoinDomain' :: JoinDomain -> Maybe Text
organizationalUnit} -> Maybe Text
organizationalUnit) (\s :: JoinDomain
s@JoinDomain' {} Maybe Text
a -> JoinDomain
s {$sel:organizationalUnit:JoinDomain' :: Maybe Text
organizationalUnit = Maybe Text
a} :: JoinDomain)
joinDomain_timeoutInSeconds :: Lens.Lens' JoinDomain (Prelude.Maybe Prelude.Natural)
joinDomain_timeoutInSeconds :: (Maybe Natural -> f (Maybe Natural)) -> JoinDomain -> f JoinDomain
joinDomain_timeoutInSeconds = (JoinDomain -> Maybe Natural)
-> (JoinDomain -> Maybe Natural -> JoinDomain)
-> Lens JoinDomain JoinDomain (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Maybe Natural
timeoutInSeconds :: Maybe Natural
$sel:timeoutInSeconds:JoinDomain' :: JoinDomain -> Maybe Natural
timeoutInSeconds} -> Maybe Natural
timeoutInSeconds) (\s :: JoinDomain
s@JoinDomain' {} Maybe Natural
a -> JoinDomain
s {$sel:timeoutInSeconds:JoinDomain' :: Maybe Natural
timeoutInSeconds = Maybe Natural
a} :: JoinDomain)
joinDomain_domainControllers :: Lens.Lens' JoinDomain (Prelude.Maybe [Prelude.Text])
joinDomain_domainControllers :: (Maybe [Text] -> f (Maybe [Text])) -> JoinDomain -> f JoinDomain
joinDomain_domainControllers = (JoinDomain -> Maybe [Text])
-> (JoinDomain -> Maybe [Text] -> JoinDomain)
-> Lens JoinDomain JoinDomain (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Maybe [Text]
domainControllers :: Maybe [Text]
$sel:domainControllers:JoinDomain' :: JoinDomain -> Maybe [Text]
domainControllers} -> Maybe [Text]
domainControllers) (\s :: JoinDomain
s@JoinDomain' {} Maybe [Text]
a -> JoinDomain
s {$sel:domainControllers:JoinDomain' :: Maybe [Text]
domainControllers = Maybe [Text]
a} :: JoinDomain) ((Maybe [Text] -> f (Maybe [Text])) -> JoinDomain -> f JoinDomain)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> JoinDomain
-> f JoinDomain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
joinDomain_gatewayARN :: Lens.Lens' JoinDomain Prelude.Text
joinDomain_gatewayARN :: (Text -> f Text) -> JoinDomain -> f JoinDomain
joinDomain_gatewayARN = (JoinDomain -> Text)
-> (JoinDomain -> Text -> JoinDomain)
-> Lens JoinDomain JoinDomain Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Text
gatewayARN :: Text
$sel:gatewayARN:JoinDomain' :: JoinDomain -> Text
gatewayARN} -> Text
gatewayARN) (\s :: JoinDomain
s@JoinDomain' {} Text
a -> JoinDomain
s {$sel:gatewayARN:JoinDomain' :: Text
gatewayARN = Text
a} :: JoinDomain)
joinDomain_domainName :: Lens.Lens' JoinDomain Prelude.Text
joinDomain_domainName :: (Text -> f Text) -> JoinDomain -> f JoinDomain
joinDomain_domainName = (JoinDomain -> Text)
-> (JoinDomain -> Text -> JoinDomain)
-> Lens JoinDomain JoinDomain Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Text
domainName :: Text
$sel:domainName:JoinDomain' :: JoinDomain -> Text
domainName} -> Text
domainName) (\s :: JoinDomain
s@JoinDomain' {} Text
a -> JoinDomain
s {$sel:domainName:JoinDomain' :: Text
domainName = Text
a} :: JoinDomain)
joinDomain_userName :: Lens.Lens' JoinDomain Prelude.Text
joinDomain_userName :: (Text -> f Text) -> JoinDomain -> f JoinDomain
joinDomain_userName = (JoinDomain -> Text)
-> (JoinDomain -> Text -> JoinDomain)
-> Lens JoinDomain JoinDomain Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Text
userName :: Text
$sel:userName:JoinDomain' :: JoinDomain -> Text
userName} -> Text
userName) (\s :: JoinDomain
s@JoinDomain' {} Text
a -> JoinDomain
s {$sel:userName:JoinDomain' :: Text
userName = Text
a} :: JoinDomain)
joinDomain_password :: Lens.Lens' JoinDomain Prelude.Text
joinDomain_password :: (Text -> f Text) -> JoinDomain -> f JoinDomain
joinDomain_password = (JoinDomain -> Sensitive Text)
-> (JoinDomain -> Sensitive Text -> JoinDomain)
-> Lens JoinDomain JoinDomain (Sensitive Text) (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomain' {Sensitive Text
password :: Sensitive Text
$sel:password:JoinDomain' :: JoinDomain -> Sensitive Text
password} -> Sensitive Text
password) (\s :: JoinDomain
s@JoinDomain' {} Sensitive Text
a -> JoinDomain
s {$sel:password:JoinDomain' :: Sensitive Text
password = Sensitive Text
a} :: JoinDomain) ((Sensitive Text -> f (Sensitive Text))
-> JoinDomain -> f JoinDomain)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> JoinDomain
-> f JoinDomain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance Core.AWSRequest JoinDomain where
type AWSResponse JoinDomain = JoinDomainResponse
request :: JoinDomain -> Request JoinDomain
request = Service -> JoinDomain -> Request JoinDomain
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy JoinDomain
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse JoinDomain)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse JoinDomain))
-> Logger
-> Service
-> Proxy JoinDomain
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse JoinDomain)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe ActiveDirectoryStatus -> Int -> JoinDomainResponse
JoinDomainResponse'
(Maybe Text
-> Maybe ActiveDirectoryStatus -> Int -> JoinDomainResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe ActiveDirectoryStatus -> Int -> JoinDomainResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"GatewayARN")
Either
String (Maybe ActiveDirectoryStatus -> Int -> JoinDomainResponse)
-> Either String (Maybe ActiveDirectoryStatus)
-> Either String (Int -> JoinDomainResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ActiveDirectoryStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ActiveDirectoryStatus")
Either String (Int -> JoinDomainResponse)
-> Either String Int -> Either String JoinDomainResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable JoinDomain
instance Prelude.NFData JoinDomain
instance Core.ToHeaders JoinDomain where
toHeaders :: JoinDomain -> ResponseHeaders
toHeaders =
ResponseHeaders -> JoinDomain -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StorageGateway_20130630.JoinDomain" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON JoinDomain where
toJSON :: JoinDomain -> Value
toJSON JoinDomain' {Maybe Natural
Maybe [Text]
Maybe Text
Text
Sensitive Text
password :: Sensitive Text
userName :: Text
domainName :: Text
gatewayARN :: Text
domainControllers :: Maybe [Text]
timeoutInSeconds :: Maybe Natural
organizationalUnit :: Maybe Text
$sel:password:JoinDomain' :: JoinDomain -> Sensitive Text
$sel:userName:JoinDomain' :: JoinDomain -> Text
$sel:domainName:JoinDomain' :: JoinDomain -> Text
$sel:gatewayARN:JoinDomain' :: JoinDomain -> Text
$sel:domainControllers:JoinDomain' :: JoinDomain -> Maybe [Text]
$sel:timeoutInSeconds:JoinDomain' :: JoinDomain -> Maybe Natural
$sel:organizationalUnit:JoinDomain' :: JoinDomain -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"OrganizationalUnit" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
organizationalUnit,
(Text
"TimeoutInSeconds" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
timeoutInSeconds,
(Text
"DomainControllers" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
domainControllers,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"GatewayARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gatewayARN),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Password" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
password)
]
)
instance Core.ToPath JoinDomain where
toPath :: JoinDomain -> ByteString
toPath = ByteString -> JoinDomain -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery JoinDomain where
toQuery :: JoinDomain -> QueryString
toQuery = QueryString -> JoinDomain -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data JoinDomainResponse = JoinDomainResponse'
{
JoinDomainResponse -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
JoinDomainResponse -> Maybe ActiveDirectoryStatus
activeDirectoryStatus :: Prelude.Maybe ActiveDirectoryStatus,
JoinDomainResponse -> Int
httpStatus :: Prelude.Int
}
deriving (JoinDomainResponse -> JoinDomainResponse -> Bool
(JoinDomainResponse -> JoinDomainResponse -> Bool)
-> (JoinDomainResponse -> JoinDomainResponse -> Bool)
-> Eq JoinDomainResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JoinDomainResponse -> JoinDomainResponse -> Bool
$c/= :: JoinDomainResponse -> JoinDomainResponse -> Bool
== :: JoinDomainResponse -> JoinDomainResponse -> Bool
$c== :: JoinDomainResponse -> JoinDomainResponse -> Bool
Prelude.Eq, ReadPrec [JoinDomainResponse]
ReadPrec JoinDomainResponse
Int -> ReadS JoinDomainResponse
ReadS [JoinDomainResponse]
(Int -> ReadS JoinDomainResponse)
-> ReadS [JoinDomainResponse]
-> ReadPrec JoinDomainResponse
-> ReadPrec [JoinDomainResponse]
-> Read JoinDomainResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JoinDomainResponse]
$creadListPrec :: ReadPrec [JoinDomainResponse]
readPrec :: ReadPrec JoinDomainResponse
$creadPrec :: ReadPrec JoinDomainResponse
readList :: ReadS [JoinDomainResponse]
$creadList :: ReadS [JoinDomainResponse]
readsPrec :: Int -> ReadS JoinDomainResponse
$creadsPrec :: Int -> ReadS JoinDomainResponse
Prelude.Read, Int -> JoinDomainResponse -> ShowS
[JoinDomainResponse] -> ShowS
JoinDomainResponse -> String
(Int -> JoinDomainResponse -> ShowS)
-> (JoinDomainResponse -> String)
-> ([JoinDomainResponse] -> ShowS)
-> Show JoinDomainResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JoinDomainResponse] -> ShowS
$cshowList :: [JoinDomainResponse] -> ShowS
show :: JoinDomainResponse -> String
$cshow :: JoinDomainResponse -> String
showsPrec :: Int -> JoinDomainResponse -> ShowS
$cshowsPrec :: Int -> JoinDomainResponse -> ShowS
Prelude.Show, (forall x. JoinDomainResponse -> Rep JoinDomainResponse x)
-> (forall x. Rep JoinDomainResponse x -> JoinDomainResponse)
-> Generic JoinDomainResponse
forall x. Rep JoinDomainResponse x -> JoinDomainResponse
forall x. JoinDomainResponse -> Rep JoinDomainResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JoinDomainResponse x -> JoinDomainResponse
$cfrom :: forall x. JoinDomainResponse -> Rep JoinDomainResponse x
Prelude.Generic)
newJoinDomainResponse ::
Prelude.Int ->
JoinDomainResponse
newJoinDomainResponse :: Int -> JoinDomainResponse
newJoinDomainResponse Int
pHttpStatus_ =
JoinDomainResponse' :: Maybe Text
-> Maybe ActiveDirectoryStatus -> Int -> JoinDomainResponse
JoinDomainResponse'
{ $sel:gatewayARN:JoinDomainResponse' :: Maybe Text
gatewayARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:activeDirectoryStatus:JoinDomainResponse' :: Maybe ActiveDirectoryStatus
activeDirectoryStatus = Maybe ActiveDirectoryStatus
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:JoinDomainResponse' :: Int
httpStatus = Int
pHttpStatus_
}
joinDomainResponse_gatewayARN :: Lens.Lens' JoinDomainResponse (Prelude.Maybe Prelude.Text)
joinDomainResponse_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> JoinDomainResponse -> f JoinDomainResponse
joinDomainResponse_gatewayARN = (JoinDomainResponse -> Maybe Text)
-> (JoinDomainResponse -> Maybe Text -> JoinDomainResponse)
-> Lens
JoinDomainResponse JoinDomainResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomainResponse' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:JoinDomainResponse' :: JoinDomainResponse -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: JoinDomainResponse
s@JoinDomainResponse' {} Maybe Text
a -> JoinDomainResponse
s {$sel:gatewayARN:JoinDomainResponse' :: Maybe Text
gatewayARN = Maybe Text
a} :: JoinDomainResponse)
joinDomainResponse_activeDirectoryStatus :: Lens.Lens' JoinDomainResponse (Prelude.Maybe ActiveDirectoryStatus)
joinDomainResponse_activeDirectoryStatus :: (Maybe ActiveDirectoryStatus -> f (Maybe ActiveDirectoryStatus))
-> JoinDomainResponse -> f JoinDomainResponse
joinDomainResponse_activeDirectoryStatus = (JoinDomainResponse -> Maybe ActiveDirectoryStatus)
-> (JoinDomainResponse
-> Maybe ActiveDirectoryStatus -> JoinDomainResponse)
-> Lens
JoinDomainResponse
JoinDomainResponse
(Maybe ActiveDirectoryStatus)
(Maybe ActiveDirectoryStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomainResponse' {Maybe ActiveDirectoryStatus
activeDirectoryStatus :: Maybe ActiveDirectoryStatus
$sel:activeDirectoryStatus:JoinDomainResponse' :: JoinDomainResponse -> Maybe ActiveDirectoryStatus
activeDirectoryStatus} -> Maybe ActiveDirectoryStatus
activeDirectoryStatus) (\s :: JoinDomainResponse
s@JoinDomainResponse' {} Maybe ActiveDirectoryStatus
a -> JoinDomainResponse
s {$sel:activeDirectoryStatus:JoinDomainResponse' :: Maybe ActiveDirectoryStatus
activeDirectoryStatus = Maybe ActiveDirectoryStatus
a} :: JoinDomainResponse)
joinDomainResponse_httpStatus :: Lens.Lens' JoinDomainResponse Prelude.Int
joinDomainResponse_httpStatus :: (Int -> f Int) -> JoinDomainResponse -> f JoinDomainResponse
joinDomainResponse_httpStatus = (JoinDomainResponse -> Int)
-> (JoinDomainResponse -> Int -> JoinDomainResponse)
-> Lens JoinDomainResponse JoinDomainResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JoinDomainResponse' {Int
httpStatus :: Int
$sel:httpStatus:JoinDomainResponse' :: JoinDomainResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: JoinDomainResponse
s@JoinDomainResponse' {} Int
a -> JoinDomainResponse
s {$sel:httpStatus:JoinDomainResponse' :: Int
httpStatus = Int
a} :: JoinDomainResponse)
instance Prelude.NFData JoinDomainResponse