{-# 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.GameLift.UpdateFleetCapacity
(
UpdateFleetCapacity (..),
newUpdateFleetCapacity,
updateFleetCapacity_location,
updateFleetCapacity_maxSize,
updateFleetCapacity_minSize,
updateFleetCapacity_desiredInstances,
updateFleetCapacity_fleetId,
UpdateFleetCapacityResponse (..),
newUpdateFleetCapacityResponse,
updateFleetCapacityResponse_location,
updateFleetCapacityResponse_fleetArn,
updateFleetCapacityResponse_fleetId,
updateFleetCapacityResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.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 UpdateFleetCapacity = UpdateFleetCapacity'
{
UpdateFleetCapacity -> Maybe Text
location :: Prelude.Maybe Prelude.Text,
UpdateFleetCapacity -> Maybe Natural
maxSize :: Prelude.Maybe Prelude.Natural,
UpdateFleetCapacity -> Maybe Natural
minSize :: Prelude.Maybe Prelude.Natural,
UpdateFleetCapacity -> Maybe Natural
desiredInstances :: Prelude.Maybe Prelude.Natural,
UpdateFleetCapacity -> Text
fleetId :: Prelude.Text
}
deriving (UpdateFleetCapacity -> UpdateFleetCapacity -> Bool
(UpdateFleetCapacity -> UpdateFleetCapacity -> Bool)
-> (UpdateFleetCapacity -> UpdateFleetCapacity -> Bool)
-> Eq UpdateFleetCapacity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFleetCapacity -> UpdateFleetCapacity -> Bool
$c/= :: UpdateFleetCapacity -> UpdateFleetCapacity -> Bool
== :: UpdateFleetCapacity -> UpdateFleetCapacity -> Bool
$c== :: UpdateFleetCapacity -> UpdateFleetCapacity -> Bool
Prelude.Eq, ReadPrec [UpdateFleetCapacity]
ReadPrec UpdateFleetCapacity
Int -> ReadS UpdateFleetCapacity
ReadS [UpdateFleetCapacity]
(Int -> ReadS UpdateFleetCapacity)
-> ReadS [UpdateFleetCapacity]
-> ReadPrec UpdateFleetCapacity
-> ReadPrec [UpdateFleetCapacity]
-> Read UpdateFleetCapacity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFleetCapacity]
$creadListPrec :: ReadPrec [UpdateFleetCapacity]
readPrec :: ReadPrec UpdateFleetCapacity
$creadPrec :: ReadPrec UpdateFleetCapacity
readList :: ReadS [UpdateFleetCapacity]
$creadList :: ReadS [UpdateFleetCapacity]
readsPrec :: Int -> ReadS UpdateFleetCapacity
$creadsPrec :: Int -> ReadS UpdateFleetCapacity
Prelude.Read, Int -> UpdateFleetCapacity -> ShowS
[UpdateFleetCapacity] -> ShowS
UpdateFleetCapacity -> String
(Int -> UpdateFleetCapacity -> ShowS)
-> (UpdateFleetCapacity -> String)
-> ([UpdateFleetCapacity] -> ShowS)
-> Show UpdateFleetCapacity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFleetCapacity] -> ShowS
$cshowList :: [UpdateFleetCapacity] -> ShowS
show :: UpdateFleetCapacity -> String
$cshow :: UpdateFleetCapacity -> String
showsPrec :: Int -> UpdateFleetCapacity -> ShowS
$cshowsPrec :: Int -> UpdateFleetCapacity -> ShowS
Prelude.Show, (forall x. UpdateFleetCapacity -> Rep UpdateFleetCapacity x)
-> (forall x. Rep UpdateFleetCapacity x -> UpdateFleetCapacity)
-> Generic UpdateFleetCapacity
forall x. Rep UpdateFleetCapacity x -> UpdateFleetCapacity
forall x. UpdateFleetCapacity -> Rep UpdateFleetCapacity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateFleetCapacity x -> UpdateFleetCapacity
$cfrom :: forall x. UpdateFleetCapacity -> Rep UpdateFleetCapacity x
Prelude.Generic)
newUpdateFleetCapacity ::
Prelude.Text ->
UpdateFleetCapacity
newUpdateFleetCapacity :: Text -> UpdateFleetCapacity
newUpdateFleetCapacity Text
pFleetId_ =
UpdateFleetCapacity' :: Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Text
-> UpdateFleetCapacity
UpdateFleetCapacity'
{ $sel:location:UpdateFleetCapacity' :: Maybe Text
location = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxSize:UpdateFleetCapacity' :: Maybe Natural
maxSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:minSize:UpdateFleetCapacity' :: Maybe Natural
minSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:desiredInstances:UpdateFleetCapacity' :: Maybe Natural
desiredInstances = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:fleetId:UpdateFleetCapacity' :: Text
fleetId = Text
pFleetId_
}
updateFleetCapacity_location :: Lens.Lens' UpdateFleetCapacity (Prelude.Maybe Prelude.Text)
updateFleetCapacity_location :: (Maybe Text -> f (Maybe Text))
-> UpdateFleetCapacity -> f UpdateFleetCapacity
updateFleetCapacity_location = (UpdateFleetCapacity -> Maybe Text)
-> (UpdateFleetCapacity -> Maybe Text -> UpdateFleetCapacity)
-> Lens
UpdateFleetCapacity UpdateFleetCapacity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacity' {Maybe Text
location :: Maybe Text
$sel:location:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Text
location} -> Maybe Text
location) (\s :: UpdateFleetCapacity
s@UpdateFleetCapacity' {} Maybe Text
a -> UpdateFleetCapacity
s {$sel:location:UpdateFleetCapacity' :: Maybe Text
location = Maybe Text
a} :: UpdateFleetCapacity)
updateFleetCapacity_maxSize :: Lens.Lens' UpdateFleetCapacity (Prelude.Maybe Prelude.Natural)
updateFleetCapacity_maxSize :: (Maybe Natural -> f (Maybe Natural))
-> UpdateFleetCapacity -> f UpdateFleetCapacity
updateFleetCapacity_maxSize = (UpdateFleetCapacity -> Maybe Natural)
-> (UpdateFleetCapacity -> Maybe Natural -> UpdateFleetCapacity)
-> Lens
UpdateFleetCapacity
UpdateFleetCapacity
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacity' {Maybe Natural
maxSize :: Maybe Natural
$sel:maxSize:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Natural
maxSize} -> Maybe Natural
maxSize) (\s :: UpdateFleetCapacity
s@UpdateFleetCapacity' {} Maybe Natural
a -> UpdateFleetCapacity
s {$sel:maxSize:UpdateFleetCapacity' :: Maybe Natural
maxSize = Maybe Natural
a} :: UpdateFleetCapacity)
updateFleetCapacity_minSize :: Lens.Lens' UpdateFleetCapacity (Prelude.Maybe Prelude.Natural)
updateFleetCapacity_minSize :: (Maybe Natural -> f (Maybe Natural))
-> UpdateFleetCapacity -> f UpdateFleetCapacity
updateFleetCapacity_minSize = (UpdateFleetCapacity -> Maybe Natural)
-> (UpdateFleetCapacity -> Maybe Natural -> UpdateFleetCapacity)
-> Lens
UpdateFleetCapacity
UpdateFleetCapacity
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacity' {Maybe Natural
minSize :: Maybe Natural
$sel:minSize:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Natural
minSize} -> Maybe Natural
minSize) (\s :: UpdateFleetCapacity
s@UpdateFleetCapacity' {} Maybe Natural
a -> UpdateFleetCapacity
s {$sel:minSize:UpdateFleetCapacity' :: Maybe Natural
minSize = Maybe Natural
a} :: UpdateFleetCapacity)
updateFleetCapacity_desiredInstances :: Lens.Lens' UpdateFleetCapacity (Prelude.Maybe Prelude.Natural)
updateFleetCapacity_desiredInstances :: (Maybe Natural -> f (Maybe Natural))
-> UpdateFleetCapacity -> f UpdateFleetCapacity
updateFleetCapacity_desiredInstances = (UpdateFleetCapacity -> Maybe Natural)
-> (UpdateFleetCapacity -> Maybe Natural -> UpdateFleetCapacity)
-> Lens
UpdateFleetCapacity
UpdateFleetCapacity
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacity' {Maybe Natural
desiredInstances :: Maybe Natural
$sel:desiredInstances:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Natural
desiredInstances} -> Maybe Natural
desiredInstances) (\s :: UpdateFleetCapacity
s@UpdateFleetCapacity' {} Maybe Natural
a -> UpdateFleetCapacity
s {$sel:desiredInstances:UpdateFleetCapacity' :: Maybe Natural
desiredInstances = Maybe Natural
a} :: UpdateFleetCapacity)
updateFleetCapacity_fleetId :: Lens.Lens' UpdateFleetCapacity Prelude.Text
updateFleetCapacity_fleetId :: (Text -> f Text) -> UpdateFleetCapacity -> f UpdateFleetCapacity
updateFleetCapacity_fleetId = (UpdateFleetCapacity -> Text)
-> (UpdateFleetCapacity -> Text -> UpdateFleetCapacity)
-> Lens UpdateFleetCapacity UpdateFleetCapacity Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacity' {Text
fleetId :: Text
$sel:fleetId:UpdateFleetCapacity' :: UpdateFleetCapacity -> Text
fleetId} -> Text
fleetId) (\s :: UpdateFleetCapacity
s@UpdateFleetCapacity' {} Text
a -> UpdateFleetCapacity
s {$sel:fleetId:UpdateFleetCapacity' :: Text
fleetId = Text
a} :: UpdateFleetCapacity)
instance Core.AWSRequest UpdateFleetCapacity where
type
AWSResponse UpdateFleetCapacity =
UpdateFleetCapacityResponse
request :: UpdateFleetCapacity -> Request UpdateFleetCapacity
request = Service -> UpdateFleetCapacity -> Request UpdateFleetCapacity
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateFleetCapacity
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateFleetCapacity)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateFleetCapacity))
-> Logger
-> Service
-> Proxy UpdateFleetCapacity
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateFleetCapacity)))
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 -> UpdateFleetCapacityResponse
UpdateFleetCapacityResponse'
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> UpdateFleetCapacityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> UpdateFleetCapacityResponse)
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
"Location")
Either
String
(Maybe Text -> Maybe Text -> Int -> UpdateFleetCapacityResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UpdateFleetCapacityResponse)
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
"FleetArn")
Either String (Maybe Text -> Int -> UpdateFleetCapacityResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateFleetCapacityResponse)
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
"FleetId")
Either String (Int -> UpdateFleetCapacityResponse)
-> Either String Int -> Either String UpdateFleetCapacityResponse
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 UpdateFleetCapacity
instance Prelude.NFData UpdateFleetCapacity
instance Core.ToHeaders UpdateFleetCapacity where
toHeaders :: UpdateFleetCapacity -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateFleetCapacity -> 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
"GameLift.UpdateFleetCapacity" ::
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 UpdateFleetCapacity where
toJSON :: UpdateFleetCapacity -> Value
toJSON UpdateFleetCapacity' {Maybe Natural
Maybe Text
Text
fleetId :: Text
desiredInstances :: Maybe Natural
minSize :: Maybe Natural
maxSize :: Maybe Natural
location :: Maybe Text
$sel:fleetId:UpdateFleetCapacity' :: UpdateFleetCapacity -> Text
$sel:desiredInstances:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Natural
$sel:minSize:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Natural
$sel:maxSize:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Natural
$sel:location:UpdateFleetCapacity' :: UpdateFleetCapacity -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Location" 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
location,
(Text
"MaxSize" 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
maxSize,
(Text
"MinSize" 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
minSize,
(Text
"DesiredInstances" 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
desiredInstances,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"FleetId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
fleetId)
]
)
instance Core.ToPath UpdateFleetCapacity where
toPath :: UpdateFleetCapacity -> ByteString
toPath = ByteString -> UpdateFleetCapacity -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateFleetCapacity where
toQuery :: UpdateFleetCapacity -> QueryString
toQuery = QueryString -> UpdateFleetCapacity -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateFleetCapacityResponse = UpdateFleetCapacityResponse'
{
UpdateFleetCapacityResponse -> Maybe Text
location :: Prelude.Maybe Prelude.Text,
UpdateFleetCapacityResponse -> Maybe Text
fleetArn :: Prelude.Maybe Prelude.Text,
UpdateFleetCapacityResponse -> Maybe Text
fleetId :: Prelude.Maybe Prelude.Text,
UpdateFleetCapacityResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateFleetCapacityResponse -> UpdateFleetCapacityResponse -> Bool
(UpdateFleetCapacityResponse
-> UpdateFleetCapacityResponse -> Bool)
-> (UpdateFleetCapacityResponse
-> UpdateFleetCapacityResponse -> Bool)
-> Eq UpdateFleetCapacityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFleetCapacityResponse -> UpdateFleetCapacityResponse -> Bool
$c/= :: UpdateFleetCapacityResponse -> UpdateFleetCapacityResponse -> Bool
== :: UpdateFleetCapacityResponse -> UpdateFleetCapacityResponse -> Bool
$c== :: UpdateFleetCapacityResponse -> UpdateFleetCapacityResponse -> Bool
Prelude.Eq, ReadPrec [UpdateFleetCapacityResponse]
ReadPrec UpdateFleetCapacityResponse
Int -> ReadS UpdateFleetCapacityResponse
ReadS [UpdateFleetCapacityResponse]
(Int -> ReadS UpdateFleetCapacityResponse)
-> ReadS [UpdateFleetCapacityResponse]
-> ReadPrec UpdateFleetCapacityResponse
-> ReadPrec [UpdateFleetCapacityResponse]
-> Read UpdateFleetCapacityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFleetCapacityResponse]
$creadListPrec :: ReadPrec [UpdateFleetCapacityResponse]
readPrec :: ReadPrec UpdateFleetCapacityResponse
$creadPrec :: ReadPrec UpdateFleetCapacityResponse
readList :: ReadS [UpdateFleetCapacityResponse]
$creadList :: ReadS [UpdateFleetCapacityResponse]
readsPrec :: Int -> ReadS UpdateFleetCapacityResponse
$creadsPrec :: Int -> ReadS UpdateFleetCapacityResponse
Prelude.Read, Int -> UpdateFleetCapacityResponse -> ShowS
[UpdateFleetCapacityResponse] -> ShowS
UpdateFleetCapacityResponse -> String
(Int -> UpdateFleetCapacityResponse -> ShowS)
-> (UpdateFleetCapacityResponse -> String)
-> ([UpdateFleetCapacityResponse] -> ShowS)
-> Show UpdateFleetCapacityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFleetCapacityResponse] -> ShowS
$cshowList :: [UpdateFleetCapacityResponse] -> ShowS
show :: UpdateFleetCapacityResponse -> String
$cshow :: UpdateFleetCapacityResponse -> String
showsPrec :: Int -> UpdateFleetCapacityResponse -> ShowS
$cshowsPrec :: Int -> UpdateFleetCapacityResponse -> ShowS
Prelude.Show, (forall x.
UpdateFleetCapacityResponse -> Rep UpdateFleetCapacityResponse x)
-> (forall x.
Rep UpdateFleetCapacityResponse x -> UpdateFleetCapacityResponse)
-> Generic UpdateFleetCapacityResponse
forall x.
Rep UpdateFleetCapacityResponse x -> UpdateFleetCapacityResponse
forall x.
UpdateFleetCapacityResponse -> Rep UpdateFleetCapacityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFleetCapacityResponse x -> UpdateFleetCapacityResponse
$cfrom :: forall x.
UpdateFleetCapacityResponse -> Rep UpdateFleetCapacityResponse x
Prelude.Generic)
newUpdateFleetCapacityResponse ::
Prelude.Int ->
UpdateFleetCapacityResponse
newUpdateFleetCapacityResponse :: Int -> UpdateFleetCapacityResponse
newUpdateFleetCapacityResponse Int
pHttpStatus_ =
UpdateFleetCapacityResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> UpdateFleetCapacityResponse
UpdateFleetCapacityResponse'
{ $sel:location:UpdateFleetCapacityResponse' :: Maybe Text
location =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fleetArn:UpdateFleetCapacityResponse' :: Maybe Text
fleetArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fleetId:UpdateFleetCapacityResponse' :: Maybe Text
fleetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateFleetCapacityResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateFleetCapacityResponse_location :: Lens.Lens' UpdateFleetCapacityResponse (Prelude.Maybe Prelude.Text)
updateFleetCapacityResponse_location :: (Maybe Text -> f (Maybe Text))
-> UpdateFleetCapacityResponse -> f UpdateFleetCapacityResponse
updateFleetCapacityResponse_location = (UpdateFleetCapacityResponse -> Maybe Text)
-> (UpdateFleetCapacityResponse
-> Maybe Text -> UpdateFleetCapacityResponse)
-> Lens
UpdateFleetCapacityResponse
UpdateFleetCapacityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacityResponse' {Maybe Text
location :: Maybe Text
$sel:location:UpdateFleetCapacityResponse' :: UpdateFleetCapacityResponse -> Maybe Text
location} -> Maybe Text
location) (\s :: UpdateFleetCapacityResponse
s@UpdateFleetCapacityResponse' {} Maybe Text
a -> UpdateFleetCapacityResponse
s {$sel:location:UpdateFleetCapacityResponse' :: Maybe Text
location = Maybe Text
a} :: UpdateFleetCapacityResponse)
updateFleetCapacityResponse_fleetArn :: Lens.Lens' UpdateFleetCapacityResponse (Prelude.Maybe Prelude.Text)
updateFleetCapacityResponse_fleetArn :: (Maybe Text -> f (Maybe Text))
-> UpdateFleetCapacityResponse -> f UpdateFleetCapacityResponse
updateFleetCapacityResponse_fleetArn = (UpdateFleetCapacityResponse -> Maybe Text)
-> (UpdateFleetCapacityResponse
-> Maybe Text -> UpdateFleetCapacityResponse)
-> Lens
UpdateFleetCapacityResponse
UpdateFleetCapacityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacityResponse' {Maybe Text
fleetArn :: Maybe Text
$sel:fleetArn:UpdateFleetCapacityResponse' :: UpdateFleetCapacityResponse -> Maybe Text
fleetArn} -> Maybe Text
fleetArn) (\s :: UpdateFleetCapacityResponse
s@UpdateFleetCapacityResponse' {} Maybe Text
a -> UpdateFleetCapacityResponse
s {$sel:fleetArn:UpdateFleetCapacityResponse' :: Maybe Text
fleetArn = Maybe Text
a} :: UpdateFleetCapacityResponse)
updateFleetCapacityResponse_fleetId :: Lens.Lens' UpdateFleetCapacityResponse (Prelude.Maybe Prelude.Text)
updateFleetCapacityResponse_fleetId :: (Maybe Text -> f (Maybe Text))
-> UpdateFleetCapacityResponse -> f UpdateFleetCapacityResponse
updateFleetCapacityResponse_fleetId = (UpdateFleetCapacityResponse -> Maybe Text)
-> (UpdateFleetCapacityResponse
-> Maybe Text -> UpdateFleetCapacityResponse)
-> Lens
UpdateFleetCapacityResponse
UpdateFleetCapacityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacityResponse' {Maybe Text
fleetId :: Maybe Text
$sel:fleetId:UpdateFleetCapacityResponse' :: UpdateFleetCapacityResponse -> Maybe Text
fleetId} -> Maybe Text
fleetId) (\s :: UpdateFleetCapacityResponse
s@UpdateFleetCapacityResponse' {} Maybe Text
a -> UpdateFleetCapacityResponse
s {$sel:fleetId:UpdateFleetCapacityResponse' :: Maybe Text
fleetId = Maybe Text
a} :: UpdateFleetCapacityResponse)
updateFleetCapacityResponse_httpStatus :: Lens.Lens' UpdateFleetCapacityResponse Prelude.Int
updateFleetCapacityResponse_httpStatus :: (Int -> f Int)
-> UpdateFleetCapacityResponse -> f UpdateFleetCapacityResponse
updateFleetCapacityResponse_httpStatus = (UpdateFleetCapacityResponse -> Int)
-> (UpdateFleetCapacityResponse
-> Int -> UpdateFleetCapacityResponse)
-> Lens
UpdateFleetCapacityResponse UpdateFleetCapacityResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetCapacityResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateFleetCapacityResponse' :: UpdateFleetCapacityResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateFleetCapacityResponse
s@UpdateFleetCapacityResponse' {} Int
a -> UpdateFleetCapacityResponse
s {$sel:httpStatus:UpdateFleetCapacityResponse' :: Int
httpStatus = Int
a} :: UpdateFleetCapacityResponse)
instance Prelude.NFData UpdateFleetCapacityResponse