{-# 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.EMRContainers.CreateVirtualCluster
(
CreateVirtualCluster (..),
newCreateVirtualCluster,
createVirtualCluster_tags,
createVirtualCluster_name,
createVirtualCluster_containerProvider,
createVirtualCluster_clientToken,
CreateVirtualClusterResponse (..),
newCreateVirtualClusterResponse,
createVirtualClusterResponse_arn,
createVirtualClusterResponse_name,
createVirtualClusterResponse_id,
createVirtualClusterResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EMRContainers.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 CreateVirtualCluster = CreateVirtualCluster'
{
CreateVirtualCluster -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateVirtualCluster -> Text
name :: Prelude.Text,
CreateVirtualCluster -> ContainerProvider
containerProvider :: ContainerProvider,
CreateVirtualCluster -> Text
clientToken :: Prelude.Text
}
deriving (CreateVirtualCluster -> CreateVirtualCluster -> Bool
(CreateVirtualCluster -> CreateVirtualCluster -> Bool)
-> (CreateVirtualCluster -> CreateVirtualCluster -> Bool)
-> Eq CreateVirtualCluster
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateVirtualCluster -> CreateVirtualCluster -> Bool
$c/= :: CreateVirtualCluster -> CreateVirtualCluster -> Bool
== :: CreateVirtualCluster -> CreateVirtualCluster -> Bool
$c== :: CreateVirtualCluster -> CreateVirtualCluster -> Bool
Prelude.Eq, ReadPrec [CreateVirtualCluster]
ReadPrec CreateVirtualCluster
Int -> ReadS CreateVirtualCluster
ReadS [CreateVirtualCluster]
(Int -> ReadS CreateVirtualCluster)
-> ReadS [CreateVirtualCluster]
-> ReadPrec CreateVirtualCluster
-> ReadPrec [CreateVirtualCluster]
-> Read CreateVirtualCluster
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateVirtualCluster]
$creadListPrec :: ReadPrec [CreateVirtualCluster]
readPrec :: ReadPrec CreateVirtualCluster
$creadPrec :: ReadPrec CreateVirtualCluster
readList :: ReadS [CreateVirtualCluster]
$creadList :: ReadS [CreateVirtualCluster]
readsPrec :: Int -> ReadS CreateVirtualCluster
$creadsPrec :: Int -> ReadS CreateVirtualCluster
Prelude.Read, Int -> CreateVirtualCluster -> ShowS
[CreateVirtualCluster] -> ShowS
CreateVirtualCluster -> String
(Int -> CreateVirtualCluster -> ShowS)
-> (CreateVirtualCluster -> String)
-> ([CreateVirtualCluster] -> ShowS)
-> Show CreateVirtualCluster
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateVirtualCluster] -> ShowS
$cshowList :: [CreateVirtualCluster] -> ShowS
show :: CreateVirtualCluster -> String
$cshow :: CreateVirtualCluster -> String
showsPrec :: Int -> CreateVirtualCluster -> ShowS
$cshowsPrec :: Int -> CreateVirtualCluster -> ShowS
Prelude.Show, (forall x. CreateVirtualCluster -> Rep CreateVirtualCluster x)
-> (forall x. Rep CreateVirtualCluster x -> CreateVirtualCluster)
-> Generic CreateVirtualCluster
forall x. Rep CreateVirtualCluster x -> CreateVirtualCluster
forall x. CreateVirtualCluster -> Rep CreateVirtualCluster x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateVirtualCluster x -> CreateVirtualCluster
$cfrom :: forall x. CreateVirtualCluster -> Rep CreateVirtualCluster x
Prelude.Generic)
newCreateVirtualCluster ::
Prelude.Text ->
ContainerProvider ->
Prelude.Text ->
CreateVirtualCluster
newCreateVirtualCluster :: Text -> ContainerProvider -> Text -> CreateVirtualCluster
newCreateVirtualCluster
Text
pName_
ContainerProvider
pContainerProvider_
Text
pClientToken_ =
CreateVirtualCluster' :: Maybe (HashMap Text Text)
-> Text -> ContainerProvider -> Text -> CreateVirtualCluster
CreateVirtualCluster'
{ $sel:tags:CreateVirtualCluster' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateVirtualCluster' :: Text
name = Text
pName_,
$sel:containerProvider:CreateVirtualCluster' :: ContainerProvider
containerProvider = ContainerProvider
pContainerProvider_,
$sel:clientToken:CreateVirtualCluster' :: Text
clientToken = Text
pClientToken_
}
createVirtualCluster_tags :: Lens.Lens' CreateVirtualCluster (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createVirtualCluster_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateVirtualCluster -> f CreateVirtualCluster
createVirtualCluster_tags = (CreateVirtualCluster -> Maybe (HashMap Text Text))
-> (CreateVirtualCluster
-> Maybe (HashMap Text Text) -> CreateVirtualCluster)
-> Lens
CreateVirtualCluster
CreateVirtualCluster
(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 (\CreateVirtualCluster' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateVirtualCluster' :: CreateVirtualCluster -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateVirtualCluster
s@CreateVirtualCluster' {} Maybe (HashMap Text Text)
a -> CreateVirtualCluster
s {$sel:tags:CreateVirtualCluster' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateVirtualCluster) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateVirtualCluster -> f CreateVirtualCluster)
-> ((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)))
-> CreateVirtualCluster
-> f CreateVirtualCluster
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
createVirtualCluster_name :: Lens.Lens' CreateVirtualCluster Prelude.Text
createVirtualCluster_name :: (Text -> f Text) -> CreateVirtualCluster -> f CreateVirtualCluster
createVirtualCluster_name = (CreateVirtualCluster -> Text)
-> (CreateVirtualCluster -> Text -> CreateVirtualCluster)
-> Lens CreateVirtualCluster CreateVirtualCluster Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualCluster' {Text
name :: Text
$sel:name:CreateVirtualCluster' :: CreateVirtualCluster -> Text
name} -> Text
name) (\s :: CreateVirtualCluster
s@CreateVirtualCluster' {} Text
a -> CreateVirtualCluster
s {$sel:name:CreateVirtualCluster' :: Text
name = Text
a} :: CreateVirtualCluster)
createVirtualCluster_containerProvider :: Lens.Lens' CreateVirtualCluster ContainerProvider
createVirtualCluster_containerProvider :: (ContainerProvider -> f ContainerProvider)
-> CreateVirtualCluster -> f CreateVirtualCluster
createVirtualCluster_containerProvider = (CreateVirtualCluster -> ContainerProvider)
-> (CreateVirtualCluster
-> ContainerProvider -> CreateVirtualCluster)
-> Lens
CreateVirtualCluster
CreateVirtualCluster
ContainerProvider
ContainerProvider
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualCluster' {ContainerProvider
containerProvider :: ContainerProvider
$sel:containerProvider:CreateVirtualCluster' :: CreateVirtualCluster -> ContainerProvider
containerProvider} -> ContainerProvider
containerProvider) (\s :: CreateVirtualCluster
s@CreateVirtualCluster' {} ContainerProvider
a -> CreateVirtualCluster
s {$sel:containerProvider:CreateVirtualCluster' :: ContainerProvider
containerProvider = ContainerProvider
a} :: CreateVirtualCluster)
createVirtualCluster_clientToken :: Lens.Lens' CreateVirtualCluster Prelude.Text
createVirtualCluster_clientToken :: (Text -> f Text) -> CreateVirtualCluster -> f CreateVirtualCluster
createVirtualCluster_clientToken = (CreateVirtualCluster -> Text)
-> (CreateVirtualCluster -> Text -> CreateVirtualCluster)
-> Lens CreateVirtualCluster CreateVirtualCluster Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualCluster' {Text
clientToken :: Text
$sel:clientToken:CreateVirtualCluster' :: CreateVirtualCluster -> Text
clientToken} -> Text
clientToken) (\s :: CreateVirtualCluster
s@CreateVirtualCluster' {} Text
a -> CreateVirtualCluster
s {$sel:clientToken:CreateVirtualCluster' :: Text
clientToken = Text
a} :: CreateVirtualCluster)
instance Core.AWSRequest CreateVirtualCluster where
type
AWSResponse CreateVirtualCluster =
CreateVirtualClusterResponse
request :: CreateVirtualCluster -> Request CreateVirtualCluster
request = Service -> CreateVirtualCluster -> Request CreateVirtualCluster
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateVirtualCluster
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateVirtualCluster)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateVirtualCluster))
-> Logger
-> Service
-> Proxy CreateVirtualCluster
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateVirtualCluster)))
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 -> Maybe Text -> Int -> CreateVirtualClusterResponse
CreateVirtualClusterResponse'
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CreateVirtualClusterResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> CreateVirtualClusterResponse)
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
"arn")
Either
String
(Maybe Text -> Maybe Text -> Int -> CreateVirtualClusterResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateVirtualClusterResponse)
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
"name")
Either String (Maybe Text -> Int -> CreateVirtualClusterResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateVirtualClusterResponse)
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
"id")
Either String (Int -> CreateVirtualClusterResponse)
-> Either String Int -> Either String CreateVirtualClusterResponse
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 CreateVirtualCluster
instance Prelude.NFData CreateVirtualCluster
instance Core.ToHeaders CreateVirtualCluster where
toHeaders :: CreateVirtualCluster -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateVirtualCluster -> 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 CreateVirtualCluster where
toJSON :: CreateVirtualCluster -> Value
toJSON CreateVirtualCluster' {Maybe (HashMap Text Text)
Text
ContainerProvider
clientToken :: Text
containerProvider :: ContainerProvider
name :: Text
tags :: Maybe (HashMap Text Text)
$sel:clientToken:CreateVirtualCluster' :: CreateVirtualCluster -> Text
$sel:containerProvider:CreateVirtualCluster' :: CreateVirtualCluster -> ContainerProvider
$sel:name:CreateVirtualCluster' :: CreateVirtualCluster -> Text
$sel:tags:CreateVirtualCluster' :: CreateVirtualCluster -> Maybe (HashMap Text Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"containerProvider" Text -> ContainerProvider -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ContainerProvider
containerProvider),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"clientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken)
]
)
instance Core.ToPath CreateVirtualCluster where
toPath :: CreateVirtualCluster -> ByteString
toPath = ByteString -> CreateVirtualCluster -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/virtualclusters"
instance Core.ToQuery CreateVirtualCluster where
toQuery :: CreateVirtualCluster -> QueryString
toQuery = QueryString -> CreateVirtualCluster -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateVirtualClusterResponse = CreateVirtualClusterResponse'
{
CreateVirtualClusterResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateVirtualClusterResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateVirtualClusterResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateVirtualClusterResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool
(CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool)
-> (CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool)
-> Eq CreateVirtualClusterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool
$c/= :: CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool
== :: CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool
$c== :: CreateVirtualClusterResponse
-> CreateVirtualClusterResponse -> Bool
Prelude.Eq, ReadPrec [CreateVirtualClusterResponse]
ReadPrec CreateVirtualClusterResponse
Int -> ReadS CreateVirtualClusterResponse
ReadS [CreateVirtualClusterResponse]
(Int -> ReadS CreateVirtualClusterResponse)
-> ReadS [CreateVirtualClusterResponse]
-> ReadPrec CreateVirtualClusterResponse
-> ReadPrec [CreateVirtualClusterResponse]
-> Read CreateVirtualClusterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateVirtualClusterResponse]
$creadListPrec :: ReadPrec [CreateVirtualClusterResponse]
readPrec :: ReadPrec CreateVirtualClusterResponse
$creadPrec :: ReadPrec CreateVirtualClusterResponse
readList :: ReadS [CreateVirtualClusterResponse]
$creadList :: ReadS [CreateVirtualClusterResponse]
readsPrec :: Int -> ReadS CreateVirtualClusterResponse
$creadsPrec :: Int -> ReadS CreateVirtualClusterResponse
Prelude.Read, Int -> CreateVirtualClusterResponse -> ShowS
[CreateVirtualClusterResponse] -> ShowS
CreateVirtualClusterResponse -> String
(Int -> CreateVirtualClusterResponse -> ShowS)
-> (CreateVirtualClusterResponse -> String)
-> ([CreateVirtualClusterResponse] -> ShowS)
-> Show CreateVirtualClusterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateVirtualClusterResponse] -> ShowS
$cshowList :: [CreateVirtualClusterResponse] -> ShowS
show :: CreateVirtualClusterResponse -> String
$cshow :: CreateVirtualClusterResponse -> String
showsPrec :: Int -> CreateVirtualClusterResponse -> ShowS
$cshowsPrec :: Int -> CreateVirtualClusterResponse -> ShowS
Prelude.Show, (forall x.
CreateVirtualClusterResponse -> Rep CreateVirtualClusterResponse x)
-> (forall x.
Rep CreateVirtualClusterResponse x -> CreateVirtualClusterResponse)
-> Generic CreateVirtualClusterResponse
forall x.
Rep CreateVirtualClusterResponse x -> CreateVirtualClusterResponse
forall x.
CreateVirtualClusterResponse -> Rep CreateVirtualClusterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateVirtualClusterResponse x -> CreateVirtualClusterResponse
$cfrom :: forall x.
CreateVirtualClusterResponse -> Rep CreateVirtualClusterResponse x
Prelude.Generic)
newCreateVirtualClusterResponse ::
Prelude.Int ->
CreateVirtualClusterResponse
newCreateVirtualClusterResponse :: Int -> CreateVirtualClusterResponse
newCreateVirtualClusterResponse Int
pHttpStatus_ =
CreateVirtualClusterResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CreateVirtualClusterResponse
CreateVirtualClusterResponse'
{ $sel:arn:CreateVirtualClusterResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateVirtualClusterResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateVirtualClusterResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateVirtualClusterResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createVirtualClusterResponse_arn :: Lens.Lens' CreateVirtualClusterResponse (Prelude.Maybe Prelude.Text)
createVirtualClusterResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateVirtualClusterResponse -> f CreateVirtualClusterResponse
createVirtualClusterResponse_arn = (CreateVirtualClusterResponse -> Maybe Text)
-> (CreateVirtualClusterResponse
-> Maybe Text -> CreateVirtualClusterResponse)
-> Lens
CreateVirtualClusterResponse
CreateVirtualClusterResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualClusterResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateVirtualClusterResponse' :: CreateVirtualClusterResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateVirtualClusterResponse
s@CreateVirtualClusterResponse' {} Maybe Text
a -> CreateVirtualClusterResponse
s {$sel:arn:CreateVirtualClusterResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateVirtualClusterResponse)
createVirtualClusterResponse_name :: Lens.Lens' CreateVirtualClusterResponse (Prelude.Maybe Prelude.Text)
createVirtualClusterResponse_name :: (Maybe Text -> f (Maybe Text))
-> CreateVirtualClusterResponse -> f CreateVirtualClusterResponse
createVirtualClusterResponse_name = (CreateVirtualClusterResponse -> Maybe Text)
-> (CreateVirtualClusterResponse
-> Maybe Text -> CreateVirtualClusterResponse)
-> Lens
CreateVirtualClusterResponse
CreateVirtualClusterResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualClusterResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateVirtualClusterResponse' :: CreateVirtualClusterResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateVirtualClusterResponse
s@CreateVirtualClusterResponse' {} Maybe Text
a -> CreateVirtualClusterResponse
s {$sel:name:CreateVirtualClusterResponse' :: Maybe Text
name = Maybe Text
a} :: CreateVirtualClusterResponse)
createVirtualClusterResponse_id :: Lens.Lens' CreateVirtualClusterResponse (Prelude.Maybe Prelude.Text)
createVirtualClusterResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateVirtualClusterResponse -> f CreateVirtualClusterResponse
createVirtualClusterResponse_id = (CreateVirtualClusterResponse -> Maybe Text)
-> (CreateVirtualClusterResponse
-> Maybe Text -> CreateVirtualClusterResponse)
-> Lens
CreateVirtualClusterResponse
CreateVirtualClusterResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualClusterResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateVirtualClusterResponse' :: CreateVirtualClusterResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateVirtualClusterResponse
s@CreateVirtualClusterResponse' {} Maybe Text
a -> CreateVirtualClusterResponse
s {$sel:id:CreateVirtualClusterResponse' :: Maybe Text
id = Maybe Text
a} :: CreateVirtualClusterResponse)
createVirtualClusterResponse_httpStatus :: Lens.Lens' CreateVirtualClusterResponse Prelude.Int
createVirtualClusterResponse_httpStatus :: (Int -> f Int)
-> CreateVirtualClusterResponse -> f CreateVirtualClusterResponse
createVirtualClusterResponse_httpStatus = (CreateVirtualClusterResponse -> Int)
-> (CreateVirtualClusterResponse
-> Int -> CreateVirtualClusterResponse)
-> Lens
CreateVirtualClusterResponse CreateVirtualClusterResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVirtualClusterResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateVirtualClusterResponse' :: CreateVirtualClusterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateVirtualClusterResponse
s@CreateVirtualClusterResponse' {} Int
a -> CreateVirtualClusterResponse
s {$sel:httpStatus:CreateVirtualClusterResponse' :: Int
httpStatus = Int
a} :: CreateVirtualClusterResponse)
instance Prelude.NFData CreateVirtualClusterResponse