{-# 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.Connect.CreateQuickConnect
(
CreateQuickConnect (..),
newCreateQuickConnect,
createQuickConnect_description,
createQuickConnect_tags,
createQuickConnect_instanceId,
createQuickConnect_name,
createQuickConnect_quickConnectConfig,
CreateQuickConnectResponse (..),
newCreateQuickConnectResponse,
createQuickConnectResponse_quickConnectId,
createQuickConnectResponse_quickConnectARN,
createQuickConnectResponse_httpStatus,
)
where
import Amazonka.Connect.Types
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
data CreateQuickConnect = CreateQuickConnect'
{
CreateQuickConnect -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateQuickConnect -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateQuickConnect -> Text
instanceId :: Prelude.Text,
CreateQuickConnect -> Text
name :: Prelude.Text,
CreateQuickConnect -> QuickConnectConfig
quickConnectConfig :: QuickConnectConfig
}
deriving (CreateQuickConnect -> CreateQuickConnect -> Bool
(CreateQuickConnect -> CreateQuickConnect -> Bool)
-> (CreateQuickConnect -> CreateQuickConnect -> Bool)
-> Eq CreateQuickConnect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateQuickConnect -> CreateQuickConnect -> Bool
$c/= :: CreateQuickConnect -> CreateQuickConnect -> Bool
== :: CreateQuickConnect -> CreateQuickConnect -> Bool
$c== :: CreateQuickConnect -> CreateQuickConnect -> Bool
Prelude.Eq, ReadPrec [CreateQuickConnect]
ReadPrec CreateQuickConnect
Int -> ReadS CreateQuickConnect
ReadS [CreateQuickConnect]
(Int -> ReadS CreateQuickConnect)
-> ReadS [CreateQuickConnect]
-> ReadPrec CreateQuickConnect
-> ReadPrec [CreateQuickConnect]
-> Read CreateQuickConnect
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateQuickConnect]
$creadListPrec :: ReadPrec [CreateQuickConnect]
readPrec :: ReadPrec CreateQuickConnect
$creadPrec :: ReadPrec CreateQuickConnect
readList :: ReadS [CreateQuickConnect]
$creadList :: ReadS [CreateQuickConnect]
readsPrec :: Int -> ReadS CreateQuickConnect
$creadsPrec :: Int -> ReadS CreateQuickConnect
Prelude.Read, Int -> CreateQuickConnect -> ShowS
[CreateQuickConnect] -> ShowS
CreateQuickConnect -> String
(Int -> CreateQuickConnect -> ShowS)
-> (CreateQuickConnect -> String)
-> ([CreateQuickConnect] -> ShowS)
-> Show CreateQuickConnect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateQuickConnect] -> ShowS
$cshowList :: [CreateQuickConnect] -> ShowS
show :: CreateQuickConnect -> String
$cshow :: CreateQuickConnect -> String
showsPrec :: Int -> CreateQuickConnect -> ShowS
$cshowsPrec :: Int -> CreateQuickConnect -> ShowS
Prelude.Show, (forall x. CreateQuickConnect -> Rep CreateQuickConnect x)
-> (forall x. Rep CreateQuickConnect x -> CreateQuickConnect)
-> Generic CreateQuickConnect
forall x. Rep CreateQuickConnect x -> CreateQuickConnect
forall x. CreateQuickConnect -> Rep CreateQuickConnect x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateQuickConnect x -> CreateQuickConnect
$cfrom :: forall x. CreateQuickConnect -> Rep CreateQuickConnect x
Prelude.Generic)
newCreateQuickConnect ::
Prelude.Text ->
Prelude.Text ->
QuickConnectConfig ->
CreateQuickConnect
newCreateQuickConnect :: Text -> Text -> QuickConnectConfig -> CreateQuickConnect
newCreateQuickConnect
Text
pInstanceId_
Text
pName_
QuickConnectConfig
pQuickConnectConfig_ =
CreateQuickConnect' :: Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> QuickConnectConfig
-> CreateQuickConnect
CreateQuickConnect'
{ $sel:description:CreateQuickConnect' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateQuickConnect' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:CreateQuickConnect' :: Text
instanceId = Text
pInstanceId_,
$sel:name:CreateQuickConnect' :: Text
name = Text
pName_,
$sel:quickConnectConfig:CreateQuickConnect' :: QuickConnectConfig
quickConnectConfig = QuickConnectConfig
pQuickConnectConfig_
}
createQuickConnect_description :: Lens.Lens' CreateQuickConnect (Prelude.Maybe Prelude.Text)
createQuickConnect_description :: (Maybe Text -> f (Maybe Text))
-> CreateQuickConnect -> f CreateQuickConnect
createQuickConnect_description = (CreateQuickConnect -> Maybe Text)
-> (CreateQuickConnect -> Maybe Text -> CreateQuickConnect)
-> Lens
CreateQuickConnect CreateQuickConnect (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnect' {Maybe Text
description :: Maybe Text
$sel:description:CreateQuickConnect' :: CreateQuickConnect -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateQuickConnect
s@CreateQuickConnect' {} Maybe Text
a -> CreateQuickConnect
s {$sel:description:CreateQuickConnect' :: Maybe Text
description = Maybe Text
a} :: CreateQuickConnect)
createQuickConnect_tags :: Lens.Lens' CreateQuickConnect (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createQuickConnect_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateQuickConnect -> f CreateQuickConnect
createQuickConnect_tags = (CreateQuickConnect -> Maybe (HashMap Text Text))
-> (CreateQuickConnect
-> Maybe (HashMap Text Text) -> CreateQuickConnect)
-> Lens
CreateQuickConnect
CreateQuickConnect
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnect' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateQuickConnect' :: CreateQuickConnect -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateQuickConnect
s@CreateQuickConnect' {} Maybe (HashMap Text Text)
a -> CreateQuickConnect
s {$sel:tags:CreateQuickConnect' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateQuickConnect) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateQuickConnect -> f CreateQuickConnect)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateQuickConnect
-> f CreateQuickConnect
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createQuickConnect_instanceId :: Lens.Lens' CreateQuickConnect Prelude.Text
createQuickConnect_instanceId :: (Text -> f Text) -> CreateQuickConnect -> f CreateQuickConnect
createQuickConnect_instanceId = (CreateQuickConnect -> Text)
-> (CreateQuickConnect -> Text -> CreateQuickConnect)
-> Lens CreateQuickConnect CreateQuickConnect Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnect' {Text
instanceId :: Text
$sel:instanceId:CreateQuickConnect' :: CreateQuickConnect -> Text
instanceId} -> Text
instanceId) (\s :: CreateQuickConnect
s@CreateQuickConnect' {} Text
a -> CreateQuickConnect
s {$sel:instanceId:CreateQuickConnect' :: Text
instanceId = Text
a} :: CreateQuickConnect)
createQuickConnect_name :: Lens.Lens' CreateQuickConnect Prelude.Text
createQuickConnect_name :: (Text -> f Text) -> CreateQuickConnect -> f CreateQuickConnect
createQuickConnect_name = (CreateQuickConnect -> Text)
-> (CreateQuickConnect -> Text -> CreateQuickConnect)
-> Lens CreateQuickConnect CreateQuickConnect Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnect' {Text
name :: Text
$sel:name:CreateQuickConnect' :: CreateQuickConnect -> Text
name} -> Text
name) (\s :: CreateQuickConnect
s@CreateQuickConnect' {} Text
a -> CreateQuickConnect
s {$sel:name:CreateQuickConnect' :: Text
name = Text
a} :: CreateQuickConnect)
createQuickConnect_quickConnectConfig :: Lens.Lens' CreateQuickConnect QuickConnectConfig
createQuickConnect_quickConnectConfig :: (QuickConnectConfig -> f QuickConnectConfig)
-> CreateQuickConnect -> f CreateQuickConnect
createQuickConnect_quickConnectConfig = (CreateQuickConnect -> QuickConnectConfig)
-> (CreateQuickConnect -> QuickConnectConfig -> CreateQuickConnect)
-> Lens
CreateQuickConnect
CreateQuickConnect
QuickConnectConfig
QuickConnectConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnect' {QuickConnectConfig
quickConnectConfig :: QuickConnectConfig
$sel:quickConnectConfig:CreateQuickConnect' :: CreateQuickConnect -> QuickConnectConfig
quickConnectConfig} -> QuickConnectConfig
quickConnectConfig) (\s :: CreateQuickConnect
s@CreateQuickConnect' {} QuickConnectConfig
a -> CreateQuickConnect
s {$sel:quickConnectConfig:CreateQuickConnect' :: QuickConnectConfig
quickConnectConfig = QuickConnectConfig
a} :: CreateQuickConnect)
instance Core.AWSRequest CreateQuickConnect where
type
AWSResponse CreateQuickConnect =
CreateQuickConnectResponse
request :: CreateQuickConnect -> Request CreateQuickConnect
request = Service -> CreateQuickConnect -> Request CreateQuickConnect
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateQuickConnect
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateQuickConnect)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateQuickConnect))
-> Logger
-> Service
-> Proxy CreateQuickConnect
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateQuickConnect)))
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 Text -> Int -> CreateQuickConnectResponse
CreateQuickConnectResponse'
(Maybe Text -> Maybe Text -> Int -> CreateQuickConnectResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> CreateQuickConnectResponse)
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
"QuickConnectId")
Either String (Maybe Text -> Int -> CreateQuickConnectResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateQuickConnectResponse)
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
"QuickConnectARN")
Either String (Int -> CreateQuickConnectResponse)
-> Either String Int -> Either String CreateQuickConnectResponse
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 CreateQuickConnect
instance Prelude.NFData CreateQuickConnect
instance Core.ToHeaders CreateQuickConnect where
toHeaders :: CreateQuickConnect -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateQuickConnect -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 CreateQuickConnect where
toJSON :: CreateQuickConnect -> Value
toJSON CreateQuickConnect' {Maybe Text
Maybe (HashMap Text Text)
Text
QuickConnectConfig
quickConnectConfig :: QuickConnectConfig
name :: Text
instanceId :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
$sel:quickConnectConfig:CreateQuickConnect' :: CreateQuickConnect -> QuickConnectConfig
$sel:name:CreateQuickConnect' :: CreateQuickConnect -> Text
$sel:instanceId:CreateQuickConnect' :: CreateQuickConnect -> Text
$sel:tags:CreateQuickConnect' :: CreateQuickConnect -> Maybe (HashMap Text Text)
$sel:description:CreateQuickConnect' :: CreateQuickConnect -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Description" 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
description,
(Text
"Tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"QuickConnectConfig" Text -> QuickConnectConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= QuickConnectConfig
quickConnectConfig)
]
)
instance Core.ToPath CreateQuickConnect where
toPath :: CreateQuickConnect -> ByteString
toPath CreateQuickConnect' {Maybe Text
Maybe (HashMap Text Text)
Text
QuickConnectConfig
quickConnectConfig :: QuickConnectConfig
name :: Text
instanceId :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
$sel:quickConnectConfig:CreateQuickConnect' :: CreateQuickConnect -> QuickConnectConfig
$sel:name:CreateQuickConnect' :: CreateQuickConnect -> Text
$sel:instanceId:CreateQuickConnect' :: CreateQuickConnect -> Text
$sel:tags:CreateQuickConnect' :: CreateQuickConnect -> Maybe (HashMap Text Text)
$sel:description:CreateQuickConnect' :: CreateQuickConnect -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/quick-connects/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId]
instance Core.ToQuery CreateQuickConnect where
toQuery :: CreateQuickConnect -> QueryString
toQuery = QueryString -> CreateQuickConnect -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateQuickConnectResponse = CreateQuickConnectResponse'
{
CreateQuickConnectResponse -> Maybe Text
quickConnectId :: Prelude.Maybe Prelude.Text,
CreateQuickConnectResponse -> Maybe Text
quickConnectARN :: Prelude.Maybe Prelude.Text,
CreateQuickConnectResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateQuickConnectResponse -> CreateQuickConnectResponse -> Bool
(CreateQuickConnectResponse -> CreateQuickConnectResponse -> Bool)
-> (CreateQuickConnectResponse
-> CreateQuickConnectResponse -> Bool)
-> Eq CreateQuickConnectResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateQuickConnectResponse -> CreateQuickConnectResponse -> Bool
$c/= :: CreateQuickConnectResponse -> CreateQuickConnectResponse -> Bool
== :: CreateQuickConnectResponse -> CreateQuickConnectResponse -> Bool
$c== :: CreateQuickConnectResponse -> CreateQuickConnectResponse -> Bool
Prelude.Eq, ReadPrec [CreateQuickConnectResponse]
ReadPrec CreateQuickConnectResponse
Int -> ReadS CreateQuickConnectResponse
ReadS [CreateQuickConnectResponse]
(Int -> ReadS CreateQuickConnectResponse)
-> ReadS [CreateQuickConnectResponse]
-> ReadPrec CreateQuickConnectResponse
-> ReadPrec [CreateQuickConnectResponse]
-> Read CreateQuickConnectResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateQuickConnectResponse]
$creadListPrec :: ReadPrec [CreateQuickConnectResponse]
readPrec :: ReadPrec CreateQuickConnectResponse
$creadPrec :: ReadPrec CreateQuickConnectResponse
readList :: ReadS [CreateQuickConnectResponse]
$creadList :: ReadS [CreateQuickConnectResponse]
readsPrec :: Int -> ReadS CreateQuickConnectResponse
$creadsPrec :: Int -> ReadS CreateQuickConnectResponse
Prelude.Read, Int -> CreateQuickConnectResponse -> ShowS
[CreateQuickConnectResponse] -> ShowS
CreateQuickConnectResponse -> String
(Int -> CreateQuickConnectResponse -> ShowS)
-> (CreateQuickConnectResponse -> String)
-> ([CreateQuickConnectResponse] -> ShowS)
-> Show CreateQuickConnectResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateQuickConnectResponse] -> ShowS
$cshowList :: [CreateQuickConnectResponse] -> ShowS
show :: CreateQuickConnectResponse -> String
$cshow :: CreateQuickConnectResponse -> String
showsPrec :: Int -> CreateQuickConnectResponse -> ShowS
$cshowsPrec :: Int -> CreateQuickConnectResponse -> ShowS
Prelude.Show, (forall x.
CreateQuickConnectResponse -> Rep CreateQuickConnectResponse x)
-> (forall x.
Rep CreateQuickConnectResponse x -> CreateQuickConnectResponse)
-> Generic CreateQuickConnectResponse
forall x.
Rep CreateQuickConnectResponse x -> CreateQuickConnectResponse
forall x.
CreateQuickConnectResponse -> Rep CreateQuickConnectResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateQuickConnectResponse x -> CreateQuickConnectResponse
$cfrom :: forall x.
CreateQuickConnectResponse -> Rep CreateQuickConnectResponse x
Prelude.Generic)
newCreateQuickConnectResponse ::
Prelude.Int ->
CreateQuickConnectResponse
newCreateQuickConnectResponse :: Int -> CreateQuickConnectResponse
newCreateQuickConnectResponse Int
pHttpStatus_ =
CreateQuickConnectResponse' :: Maybe Text -> Maybe Text -> Int -> CreateQuickConnectResponse
CreateQuickConnectResponse'
{ $sel:quickConnectId:CreateQuickConnectResponse' :: Maybe Text
quickConnectId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:quickConnectARN:CreateQuickConnectResponse' :: Maybe Text
quickConnectARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateQuickConnectResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createQuickConnectResponse_quickConnectId :: Lens.Lens' CreateQuickConnectResponse (Prelude.Maybe Prelude.Text)
createQuickConnectResponse_quickConnectId :: (Maybe Text -> f (Maybe Text))
-> CreateQuickConnectResponse -> f CreateQuickConnectResponse
createQuickConnectResponse_quickConnectId = (CreateQuickConnectResponse -> Maybe Text)
-> (CreateQuickConnectResponse
-> Maybe Text -> CreateQuickConnectResponse)
-> Lens
CreateQuickConnectResponse
CreateQuickConnectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnectResponse' {Maybe Text
quickConnectId :: Maybe Text
$sel:quickConnectId:CreateQuickConnectResponse' :: CreateQuickConnectResponse -> Maybe Text
quickConnectId} -> Maybe Text
quickConnectId) (\s :: CreateQuickConnectResponse
s@CreateQuickConnectResponse' {} Maybe Text
a -> CreateQuickConnectResponse
s {$sel:quickConnectId:CreateQuickConnectResponse' :: Maybe Text
quickConnectId = Maybe Text
a} :: CreateQuickConnectResponse)
createQuickConnectResponse_quickConnectARN :: Lens.Lens' CreateQuickConnectResponse (Prelude.Maybe Prelude.Text)
createQuickConnectResponse_quickConnectARN :: (Maybe Text -> f (Maybe Text))
-> CreateQuickConnectResponse -> f CreateQuickConnectResponse
createQuickConnectResponse_quickConnectARN = (CreateQuickConnectResponse -> Maybe Text)
-> (CreateQuickConnectResponse
-> Maybe Text -> CreateQuickConnectResponse)
-> Lens
CreateQuickConnectResponse
CreateQuickConnectResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnectResponse' {Maybe Text
quickConnectARN :: Maybe Text
$sel:quickConnectARN:CreateQuickConnectResponse' :: CreateQuickConnectResponse -> Maybe Text
quickConnectARN} -> Maybe Text
quickConnectARN) (\s :: CreateQuickConnectResponse
s@CreateQuickConnectResponse' {} Maybe Text
a -> CreateQuickConnectResponse
s {$sel:quickConnectARN:CreateQuickConnectResponse' :: Maybe Text
quickConnectARN = Maybe Text
a} :: CreateQuickConnectResponse)
createQuickConnectResponse_httpStatus :: Lens.Lens' CreateQuickConnectResponse Prelude.Int
createQuickConnectResponse_httpStatus :: (Int -> f Int)
-> CreateQuickConnectResponse -> f CreateQuickConnectResponse
createQuickConnectResponse_httpStatus = (CreateQuickConnectResponse -> Int)
-> (CreateQuickConnectResponse
-> Int -> CreateQuickConnectResponse)
-> Lens
CreateQuickConnectResponse CreateQuickConnectResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateQuickConnectResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateQuickConnectResponse' :: CreateQuickConnectResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateQuickConnectResponse
s@CreateQuickConnectResponse' {} Int
a -> CreateQuickConnectResponse
s {$sel:httpStatus:CreateQuickConnectResponse' :: Int
httpStatus = Int
a} :: CreateQuickConnectResponse)
instance Prelude.NFData CreateQuickConnectResponse