{-# 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.DataSync.DescribeLocationSmb
(
DescribeLocationSmb (..),
newDescribeLocationSmb,
describeLocationSmb_locationArn,
DescribeLocationSmbResponse (..),
newDescribeLocationSmbResponse,
describeLocationSmbResponse_creationTime,
describeLocationSmbResponse_agentArns,
describeLocationSmbResponse_domain,
describeLocationSmbResponse_locationUri,
describeLocationSmbResponse_user,
describeLocationSmbResponse_mountOptions,
describeLocationSmbResponse_locationArn,
describeLocationSmbResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataSync.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeLocationSmb = DescribeLocationSmb'
{
DescribeLocationSmb -> Text
locationArn :: Prelude.Text
}
deriving (DescribeLocationSmb -> DescribeLocationSmb -> Bool
(DescribeLocationSmb -> DescribeLocationSmb -> Bool)
-> (DescribeLocationSmb -> DescribeLocationSmb -> Bool)
-> Eq DescribeLocationSmb
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationSmb -> DescribeLocationSmb -> Bool
$c/= :: DescribeLocationSmb -> DescribeLocationSmb -> Bool
== :: DescribeLocationSmb -> DescribeLocationSmb -> Bool
$c== :: DescribeLocationSmb -> DescribeLocationSmb -> Bool
Prelude.Eq, ReadPrec [DescribeLocationSmb]
ReadPrec DescribeLocationSmb
Int -> ReadS DescribeLocationSmb
ReadS [DescribeLocationSmb]
(Int -> ReadS DescribeLocationSmb)
-> ReadS [DescribeLocationSmb]
-> ReadPrec DescribeLocationSmb
-> ReadPrec [DescribeLocationSmb]
-> Read DescribeLocationSmb
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationSmb]
$creadListPrec :: ReadPrec [DescribeLocationSmb]
readPrec :: ReadPrec DescribeLocationSmb
$creadPrec :: ReadPrec DescribeLocationSmb
readList :: ReadS [DescribeLocationSmb]
$creadList :: ReadS [DescribeLocationSmb]
readsPrec :: Int -> ReadS DescribeLocationSmb
$creadsPrec :: Int -> ReadS DescribeLocationSmb
Prelude.Read, Int -> DescribeLocationSmb -> ShowS
[DescribeLocationSmb] -> ShowS
DescribeLocationSmb -> String
(Int -> DescribeLocationSmb -> ShowS)
-> (DescribeLocationSmb -> String)
-> ([DescribeLocationSmb] -> ShowS)
-> Show DescribeLocationSmb
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationSmb] -> ShowS
$cshowList :: [DescribeLocationSmb] -> ShowS
show :: DescribeLocationSmb -> String
$cshow :: DescribeLocationSmb -> String
showsPrec :: Int -> DescribeLocationSmb -> ShowS
$cshowsPrec :: Int -> DescribeLocationSmb -> ShowS
Prelude.Show, (forall x. DescribeLocationSmb -> Rep DescribeLocationSmb x)
-> (forall x. Rep DescribeLocationSmb x -> DescribeLocationSmb)
-> Generic DescribeLocationSmb
forall x. Rep DescribeLocationSmb x -> DescribeLocationSmb
forall x. DescribeLocationSmb -> Rep DescribeLocationSmb x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLocationSmb x -> DescribeLocationSmb
$cfrom :: forall x. DescribeLocationSmb -> Rep DescribeLocationSmb x
Prelude.Generic)
newDescribeLocationSmb ::
Prelude.Text ->
DescribeLocationSmb
newDescribeLocationSmb :: Text -> DescribeLocationSmb
newDescribeLocationSmb Text
pLocationArn_ =
DescribeLocationSmb' :: Text -> DescribeLocationSmb
DescribeLocationSmb' {$sel:locationArn:DescribeLocationSmb' :: Text
locationArn = Text
pLocationArn_}
describeLocationSmb_locationArn :: Lens.Lens' DescribeLocationSmb Prelude.Text
describeLocationSmb_locationArn :: (Text -> f Text) -> DescribeLocationSmb -> f DescribeLocationSmb
describeLocationSmb_locationArn = (DescribeLocationSmb -> Text)
-> (DescribeLocationSmb -> Text -> DescribeLocationSmb)
-> Lens DescribeLocationSmb DescribeLocationSmb Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmb' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationSmb' :: DescribeLocationSmb -> Text
locationArn} -> Text
locationArn) (\s :: DescribeLocationSmb
s@DescribeLocationSmb' {} Text
a -> DescribeLocationSmb
s {$sel:locationArn:DescribeLocationSmb' :: Text
locationArn = Text
a} :: DescribeLocationSmb)
instance Core.AWSRequest DescribeLocationSmb where
type
AWSResponse DescribeLocationSmb =
DescribeLocationSmbResponse
request :: DescribeLocationSmb -> Request DescribeLocationSmb
request = Service -> DescribeLocationSmb -> Request DescribeLocationSmb
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeLocationSmb
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLocationSmb)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeLocationSmb))
-> Logger
-> Service
-> Proxy DescribeLocationSmb
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLocationSmb)))
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 POSIX
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse
DescribeLocationSmbResponse'
(Maybe POSIX
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
Either
String
(Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AgentArns")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Domain")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Applicative f => 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
"LocationUri")
Either
String
(Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe SmbMountOptions
-> Maybe Text -> Int -> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Applicative f => 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
"User")
Either
String
(Maybe SmbMountOptions
-> Maybe Text -> Int -> DescribeLocationSmbResponse)
-> Either String (Maybe SmbMountOptions)
-> Either String (Maybe Text -> Int -> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SmbMountOptions)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MountOptions")
Either String (Maybe Text -> Int -> DescribeLocationSmbResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeLocationSmbResponse)
forall (f :: * -> *) a b. Applicative f => 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
"LocationArn")
Either String (Int -> DescribeLocationSmbResponse)
-> Either String Int -> Either String DescribeLocationSmbResponse
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 DescribeLocationSmb
instance Prelude.NFData DescribeLocationSmb
instance Core.ToHeaders DescribeLocationSmb where
toHeaders :: DescribeLocationSmb -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeLocationSmb -> 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
"FmrsService.DescribeLocationSmb" ::
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 DescribeLocationSmb where
toJSON :: DescribeLocationSmb -> Value
toJSON DescribeLocationSmb' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationSmb' :: DescribeLocationSmb -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LocationArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
locationArn)]
)
instance Core.ToPath DescribeLocationSmb where
toPath :: DescribeLocationSmb -> ByteString
toPath = ByteString -> DescribeLocationSmb -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeLocationSmb where
toQuery :: DescribeLocationSmb -> QueryString
toQuery = QueryString -> DescribeLocationSmb -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeLocationSmbResponse = DescribeLocationSmbResponse'
{
DescribeLocationSmbResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeLocationSmbResponse -> Maybe (NonEmpty Text)
agentArns :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
DescribeLocationSmbResponse -> Maybe Text
domain :: Prelude.Maybe Prelude.Text,
DescribeLocationSmbResponse -> Maybe Text
locationUri :: Prelude.Maybe Prelude.Text,
DescribeLocationSmbResponse -> Maybe Text
user :: Prelude.Maybe Prelude.Text,
DescribeLocationSmbResponse -> Maybe SmbMountOptions
mountOptions :: Prelude.Maybe SmbMountOptions,
DescribeLocationSmbResponse -> Maybe Text
locationArn :: Prelude.Maybe Prelude.Text,
DescribeLocationSmbResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeLocationSmbResponse -> DescribeLocationSmbResponse -> Bool
(DescribeLocationSmbResponse
-> DescribeLocationSmbResponse -> Bool)
-> (DescribeLocationSmbResponse
-> DescribeLocationSmbResponse -> Bool)
-> Eq DescribeLocationSmbResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationSmbResponse -> DescribeLocationSmbResponse -> Bool
$c/= :: DescribeLocationSmbResponse -> DescribeLocationSmbResponse -> Bool
== :: DescribeLocationSmbResponse -> DescribeLocationSmbResponse -> Bool
$c== :: DescribeLocationSmbResponse -> DescribeLocationSmbResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLocationSmbResponse]
ReadPrec DescribeLocationSmbResponse
Int -> ReadS DescribeLocationSmbResponse
ReadS [DescribeLocationSmbResponse]
(Int -> ReadS DescribeLocationSmbResponse)
-> ReadS [DescribeLocationSmbResponse]
-> ReadPrec DescribeLocationSmbResponse
-> ReadPrec [DescribeLocationSmbResponse]
-> Read DescribeLocationSmbResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationSmbResponse]
$creadListPrec :: ReadPrec [DescribeLocationSmbResponse]
readPrec :: ReadPrec DescribeLocationSmbResponse
$creadPrec :: ReadPrec DescribeLocationSmbResponse
readList :: ReadS [DescribeLocationSmbResponse]
$creadList :: ReadS [DescribeLocationSmbResponse]
readsPrec :: Int -> ReadS DescribeLocationSmbResponse
$creadsPrec :: Int -> ReadS DescribeLocationSmbResponse
Prelude.Read, Int -> DescribeLocationSmbResponse -> ShowS
[DescribeLocationSmbResponse] -> ShowS
DescribeLocationSmbResponse -> String
(Int -> DescribeLocationSmbResponse -> ShowS)
-> (DescribeLocationSmbResponse -> String)
-> ([DescribeLocationSmbResponse] -> ShowS)
-> Show DescribeLocationSmbResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationSmbResponse] -> ShowS
$cshowList :: [DescribeLocationSmbResponse] -> ShowS
show :: DescribeLocationSmbResponse -> String
$cshow :: DescribeLocationSmbResponse -> String
showsPrec :: Int -> DescribeLocationSmbResponse -> ShowS
$cshowsPrec :: Int -> DescribeLocationSmbResponse -> ShowS
Prelude.Show, (forall x.
DescribeLocationSmbResponse -> Rep DescribeLocationSmbResponse x)
-> (forall x.
Rep DescribeLocationSmbResponse x -> DescribeLocationSmbResponse)
-> Generic DescribeLocationSmbResponse
forall x.
Rep DescribeLocationSmbResponse x -> DescribeLocationSmbResponse
forall x.
DescribeLocationSmbResponse -> Rep DescribeLocationSmbResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLocationSmbResponse x -> DescribeLocationSmbResponse
$cfrom :: forall x.
DescribeLocationSmbResponse -> Rep DescribeLocationSmbResponse x
Prelude.Generic)
newDescribeLocationSmbResponse ::
Prelude.Int ->
DescribeLocationSmbResponse
newDescribeLocationSmbResponse :: Int -> DescribeLocationSmbResponse
newDescribeLocationSmbResponse Int
pHttpStatus_ =
DescribeLocationSmbResponse' :: Maybe POSIX
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SmbMountOptions
-> Maybe Text
-> Int
-> DescribeLocationSmbResponse
DescribeLocationSmbResponse'
{ $sel:creationTime:DescribeLocationSmbResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:agentArns:DescribeLocationSmbResponse' :: Maybe (NonEmpty Text)
agentArns = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:domain:DescribeLocationSmbResponse' :: Maybe Text
domain = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:locationUri:DescribeLocationSmbResponse' :: Maybe Text
locationUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:user:DescribeLocationSmbResponse' :: Maybe Text
user = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mountOptions:DescribeLocationSmbResponse' :: Maybe SmbMountOptions
mountOptions = Maybe SmbMountOptions
forall a. Maybe a
Prelude.Nothing,
$sel:locationArn:DescribeLocationSmbResponse' :: Maybe Text
locationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeLocationSmbResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeLocationSmbResponse_creationTime :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe Prelude.UTCTime)
describeLocationSmbResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_creationTime = (DescribeLocationSmbResponse -> Maybe POSIX)
-> (DescribeLocationSmbResponse
-> Maybe POSIX -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe POSIX
a -> DescribeLocationSmbResponse
s {$sel:creationTime:DescribeLocationSmbResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeLocationSmbResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationSmbResponse
-> f DescribeLocationSmbResponse
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
describeLocationSmbResponse_agentArns :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeLocationSmbResponse_agentArns :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_agentArns = (DescribeLocationSmbResponse -> Maybe (NonEmpty Text))
-> (DescribeLocationSmbResponse
-> Maybe (NonEmpty Text) -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe (NonEmpty Text)
agentArns :: Maybe (NonEmpty Text)
$sel:agentArns:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe (NonEmpty Text)
agentArns} -> Maybe (NonEmpty Text)
agentArns) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe (NonEmpty Text)
a -> DescribeLocationSmbResponse
s {$sel:agentArns:DescribeLocationSmbResponse' :: Maybe (NonEmpty Text)
agentArns = Maybe (NonEmpty Text)
a} :: DescribeLocationSmbResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeLocationSmbResponse
-> f DescribeLocationSmbResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeLocationSmbResponse_domain :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe Prelude.Text)
describeLocationSmbResponse_domain :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_domain = (DescribeLocationSmbResponse -> Maybe Text)
-> (DescribeLocationSmbResponse
-> Maybe Text -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe Text
domain :: Maybe Text
$sel:domain:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe Text
domain} -> Maybe Text
domain) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe Text
a -> DescribeLocationSmbResponse
s {$sel:domain:DescribeLocationSmbResponse' :: Maybe Text
domain = Maybe Text
a} :: DescribeLocationSmbResponse)
describeLocationSmbResponse_locationUri :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe Prelude.Text)
describeLocationSmbResponse_locationUri :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_locationUri = (DescribeLocationSmbResponse -> Maybe Text)
-> (DescribeLocationSmbResponse
-> Maybe Text -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe Text
locationUri :: Maybe Text
$sel:locationUri:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe Text
locationUri} -> Maybe Text
locationUri) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe Text
a -> DescribeLocationSmbResponse
s {$sel:locationUri:DescribeLocationSmbResponse' :: Maybe Text
locationUri = Maybe Text
a} :: DescribeLocationSmbResponse)
describeLocationSmbResponse_user :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe Prelude.Text)
describeLocationSmbResponse_user :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_user = (DescribeLocationSmbResponse -> Maybe Text)
-> (DescribeLocationSmbResponse
-> Maybe Text -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe Text
user :: Maybe Text
$sel:user:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe Text
user} -> Maybe Text
user) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe Text
a -> DescribeLocationSmbResponse
s {$sel:user:DescribeLocationSmbResponse' :: Maybe Text
user = Maybe Text
a} :: DescribeLocationSmbResponse)
describeLocationSmbResponse_mountOptions :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe SmbMountOptions)
describeLocationSmbResponse_mountOptions :: (Maybe SmbMountOptions -> f (Maybe SmbMountOptions))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_mountOptions = (DescribeLocationSmbResponse -> Maybe SmbMountOptions)
-> (DescribeLocationSmbResponse
-> Maybe SmbMountOptions -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe SmbMountOptions)
(Maybe SmbMountOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe SmbMountOptions
mountOptions :: Maybe SmbMountOptions
$sel:mountOptions:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe SmbMountOptions
mountOptions} -> Maybe SmbMountOptions
mountOptions) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe SmbMountOptions
a -> DescribeLocationSmbResponse
s {$sel:mountOptions:DescribeLocationSmbResponse' :: Maybe SmbMountOptions
mountOptions = Maybe SmbMountOptions
a} :: DescribeLocationSmbResponse)
describeLocationSmbResponse_locationArn :: Lens.Lens' DescribeLocationSmbResponse (Prelude.Maybe Prelude.Text)
describeLocationSmbResponse_locationArn :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_locationArn = (DescribeLocationSmbResponse -> Maybe Text)
-> (DescribeLocationSmbResponse
-> Maybe Text -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse
DescribeLocationSmbResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Maybe Text
locationArn :: Maybe Text
$sel:locationArn:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Maybe Text
locationArn} -> Maybe Text
locationArn) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Maybe Text
a -> DescribeLocationSmbResponse
s {$sel:locationArn:DescribeLocationSmbResponse' :: Maybe Text
locationArn = Maybe Text
a} :: DescribeLocationSmbResponse)
describeLocationSmbResponse_httpStatus :: Lens.Lens' DescribeLocationSmbResponse Prelude.Int
describeLocationSmbResponse_httpStatus :: (Int -> f Int)
-> DescribeLocationSmbResponse -> f DescribeLocationSmbResponse
describeLocationSmbResponse_httpStatus = (DescribeLocationSmbResponse -> Int)
-> (DescribeLocationSmbResponse
-> Int -> DescribeLocationSmbResponse)
-> Lens
DescribeLocationSmbResponse DescribeLocationSmbResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationSmbResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLocationSmbResponse' :: DescribeLocationSmbResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLocationSmbResponse
s@DescribeLocationSmbResponse' {} Int
a -> DescribeLocationSmbResponse
s {$sel:httpStatus:DescribeLocationSmbResponse' :: Int
httpStatus = Int
a} :: DescribeLocationSmbResponse)
instance Prelude.NFData DescribeLocationSmbResponse