{-# 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.UpdateGameServerGroup
(
UpdateGameServerGroup (..),
newUpdateGameServerGroup,
updateGameServerGroup_instanceDefinitions,
updateGameServerGroup_balancingStrategy,
updateGameServerGroup_gameServerProtectionPolicy,
updateGameServerGroup_roleArn,
updateGameServerGroup_gameServerGroupName,
UpdateGameServerGroupResponse (..),
newUpdateGameServerGroupResponse,
updateGameServerGroupResponse_gameServerGroup,
updateGameServerGroupResponse_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 UpdateGameServerGroup = UpdateGameServerGroup'
{
UpdateGameServerGroup -> Maybe (NonEmpty InstanceDefinition)
instanceDefinitions :: Prelude.Maybe (Prelude.NonEmpty InstanceDefinition),
UpdateGameServerGroup -> Maybe BalancingStrategy
balancingStrategy :: Prelude.Maybe BalancingStrategy,
UpdateGameServerGroup -> Maybe GameServerProtectionPolicy
gameServerProtectionPolicy :: Prelude.Maybe GameServerProtectionPolicy,
UpdateGameServerGroup -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
UpdateGameServerGroup -> Text
gameServerGroupName :: Prelude.Text
}
deriving (UpdateGameServerGroup -> UpdateGameServerGroup -> Bool
(UpdateGameServerGroup -> UpdateGameServerGroup -> Bool)
-> (UpdateGameServerGroup -> UpdateGameServerGroup -> Bool)
-> Eq UpdateGameServerGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateGameServerGroup -> UpdateGameServerGroup -> Bool
$c/= :: UpdateGameServerGroup -> UpdateGameServerGroup -> Bool
== :: UpdateGameServerGroup -> UpdateGameServerGroup -> Bool
$c== :: UpdateGameServerGroup -> UpdateGameServerGroup -> Bool
Prelude.Eq, ReadPrec [UpdateGameServerGroup]
ReadPrec UpdateGameServerGroup
Int -> ReadS UpdateGameServerGroup
ReadS [UpdateGameServerGroup]
(Int -> ReadS UpdateGameServerGroup)
-> ReadS [UpdateGameServerGroup]
-> ReadPrec UpdateGameServerGroup
-> ReadPrec [UpdateGameServerGroup]
-> Read UpdateGameServerGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateGameServerGroup]
$creadListPrec :: ReadPrec [UpdateGameServerGroup]
readPrec :: ReadPrec UpdateGameServerGroup
$creadPrec :: ReadPrec UpdateGameServerGroup
readList :: ReadS [UpdateGameServerGroup]
$creadList :: ReadS [UpdateGameServerGroup]
readsPrec :: Int -> ReadS UpdateGameServerGroup
$creadsPrec :: Int -> ReadS UpdateGameServerGroup
Prelude.Read, Int -> UpdateGameServerGroup -> ShowS
[UpdateGameServerGroup] -> ShowS
UpdateGameServerGroup -> String
(Int -> UpdateGameServerGroup -> ShowS)
-> (UpdateGameServerGroup -> String)
-> ([UpdateGameServerGroup] -> ShowS)
-> Show UpdateGameServerGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateGameServerGroup] -> ShowS
$cshowList :: [UpdateGameServerGroup] -> ShowS
show :: UpdateGameServerGroup -> String
$cshow :: UpdateGameServerGroup -> String
showsPrec :: Int -> UpdateGameServerGroup -> ShowS
$cshowsPrec :: Int -> UpdateGameServerGroup -> ShowS
Prelude.Show, (forall x. UpdateGameServerGroup -> Rep UpdateGameServerGroup x)
-> (forall x. Rep UpdateGameServerGroup x -> UpdateGameServerGroup)
-> Generic UpdateGameServerGroup
forall x. Rep UpdateGameServerGroup x -> UpdateGameServerGroup
forall x. UpdateGameServerGroup -> Rep UpdateGameServerGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateGameServerGroup x -> UpdateGameServerGroup
$cfrom :: forall x. UpdateGameServerGroup -> Rep UpdateGameServerGroup x
Prelude.Generic)
newUpdateGameServerGroup ::
Prelude.Text ->
UpdateGameServerGroup
newUpdateGameServerGroup :: Text -> UpdateGameServerGroup
newUpdateGameServerGroup Text
pGameServerGroupName_ =
UpdateGameServerGroup' :: Maybe (NonEmpty InstanceDefinition)
-> Maybe BalancingStrategy
-> Maybe GameServerProtectionPolicy
-> Maybe Text
-> Text
-> UpdateGameServerGroup
UpdateGameServerGroup'
{ $sel:instanceDefinitions:UpdateGameServerGroup' :: Maybe (NonEmpty InstanceDefinition)
instanceDefinitions =
Maybe (NonEmpty InstanceDefinition)
forall a. Maybe a
Prelude.Nothing,
$sel:balancingStrategy:UpdateGameServerGroup' :: Maybe BalancingStrategy
balancingStrategy = Maybe BalancingStrategy
forall a. Maybe a
Prelude.Nothing,
$sel:gameServerProtectionPolicy:UpdateGameServerGroup' :: Maybe GameServerProtectionPolicy
gameServerProtectionPolicy = Maybe GameServerProtectionPolicy
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:UpdateGameServerGroup' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gameServerGroupName:UpdateGameServerGroup' :: Text
gameServerGroupName = Text
pGameServerGroupName_
}
updateGameServerGroup_instanceDefinitions :: Lens.Lens' UpdateGameServerGroup (Prelude.Maybe (Prelude.NonEmpty InstanceDefinition))
updateGameServerGroup_instanceDefinitions :: (Maybe (NonEmpty InstanceDefinition)
-> f (Maybe (NonEmpty InstanceDefinition)))
-> UpdateGameServerGroup -> f UpdateGameServerGroup
updateGameServerGroup_instanceDefinitions = (UpdateGameServerGroup -> Maybe (NonEmpty InstanceDefinition))
-> (UpdateGameServerGroup
-> Maybe (NonEmpty InstanceDefinition) -> UpdateGameServerGroup)
-> Lens
UpdateGameServerGroup
UpdateGameServerGroup
(Maybe (NonEmpty InstanceDefinition))
(Maybe (NonEmpty InstanceDefinition))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroup' {Maybe (NonEmpty InstanceDefinition)
instanceDefinitions :: Maybe (NonEmpty InstanceDefinition)
$sel:instanceDefinitions:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe (NonEmpty InstanceDefinition)
instanceDefinitions} -> Maybe (NonEmpty InstanceDefinition)
instanceDefinitions) (\s :: UpdateGameServerGroup
s@UpdateGameServerGroup' {} Maybe (NonEmpty InstanceDefinition)
a -> UpdateGameServerGroup
s {$sel:instanceDefinitions:UpdateGameServerGroup' :: Maybe (NonEmpty InstanceDefinition)
instanceDefinitions = Maybe (NonEmpty InstanceDefinition)
a} :: UpdateGameServerGroup) ((Maybe (NonEmpty InstanceDefinition)
-> f (Maybe (NonEmpty InstanceDefinition)))
-> UpdateGameServerGroup -> f UpdateGameServerGroup)
-> ((Maybe (NonEmpty InstanceDefinition)
-> f (Maybe (NonEmpty InstanceDefinition)))
-> Maybe (NonEmpty InstanceDefinition)
-> f (Maybe (NonEmpty InstanceDefinition)))
-> (Maybe (NonEmpty InstanceDefinition)
-> f (Maybe (NonEmpty InstanceDefinition)))
-> UpdateGameServerGroup
-> f UpdateGameServerGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty InstanceDefinition)
(NonEmpty InstanceDefinition)
(NonEmpty InstanceDefinition)
(NonEmpty InstanceDefinition)
-> Iso
(Maybe (NonEmpty InstanceDefinition))
(Maybe (NonEmpty InstanceDefinition))
(Maybe (NonEmpty InstanceDefinition))
(Maybe (NonEmpty InstanceDefinition))
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 InstanceDefinition)
(NonEmpty InstanceDefinition)
(NonEmpty InstanceDefinition)
(NonEmpty InstanceDefinition)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateGameServerGroup_balancingStrategy :: Lens.Lens' UpdateGameServerGroup (Prelude.Maybe BalancingStrategy)
updateGameServerGroup_balancingStrategy :: (Maybe BalancingStrategy -> f (Maybe BalancingStrategy))
-> UpdateGameServerGroup -> f UpdateGameServerGroup
updateGameServerGroup_balancingStrategy = (UpdateGameServerGroup -> Maybe BalancingStrategy)
-> (UpdateGameServerGroup
-> Maybe BalancingStrategy -> UpdateGameServerGroup)
-> Lens
UpdateGameServerGroup
UpdateGameServerGroup
(Maybe BalancingStrategy)
(Maybe BalancingStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroup' {Maybe BalancingStrategy
balancingStrategy :: Maybe BalancingStrategy
$sel:balancingStrategy:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe BalancingStrategy
balancingStrategy} -> Maybe BalancingStrategy
balancingStrategy) (\s :: UpdateGameServerGroup
s@UpdateGameServerGroup' {} Maybe BalancingStrategy
a -> UpdateGameServerGroup
s {$sel:balancingStrategy:UpdateGameServerGroup' :: Maybe BalancingStrategy
balancingStrategy = Maybe BalancingStrategy
a} :: UpdateGameServerGroup)
updateGameServerGroup_gameServerProtectionPolicy :: Lens.Lens' UpdateGameServerGroup (Prelude.Maybe GameServerProtectionPolicy)
updateGameServerGroup_gameServerProtectionPolicy :: (Maybe GameServerProtectionPolicy
-> f (Maybe GameServerProtectionPolicy))
-> UpdateGameServerGroup -> f UpdateGameServerGroup
updateGameServerGroup_gameServerProtectionPolicy = (UpdateGameServerGroup -> Maybe GameServerProtectionPolicy)
-> (UpdateGameServerGroup
-> Maybe GameServerProtectionPolicy -> UpdateGameServerGroup)
-> Lens
UpdateGameServerGroup
UpdateGameServerGroup
(Maybe GameServerProtectionPolicy)
(Maybe GameServerProtectionPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroup' {Maybe GameServerProtectionPolicy
gameServerProtectionPolicy :: Maybe GameServerProtectionPolicy
$sel:gameServerProtectionPolicy:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe GameServerProtectionPolicy
gameServerProtectionPolicy} -> Maybe GameServerProtectionPolicy
gameServerProtectionPolicy) (\s :: UpdateGameServerGroup
s@UpdateGameServerGroup' {} Maybe GameServerProtectionPolicy
a -> UpdateGameServerGroup
s {$sel:gameServerProtectionPolicy:UpdateGameServerGroup' :: Maybe GameServerProtectionPolicy
gameServerProtectionPolicy = Maybe GameServerProtectionPolicy
a} :: UpdateGameServerGroup)
updateGameServerGroup_roleArn :: Lens.Lens' UpdateGameServerGroup (Prelude.Maybe Prelude.Text)
updateGameServerGroup_roleArn :: (Maybe Text -> f (Maybe Text))
-> UpdateGameServerGroup -> f UpdateGameServerGroup
updateGameServerGroup_roleArn = (UpdateGameServerGroup -> Maybe Text)
-> (UpdateGameServerGroup -> Maybe Text -> UpdateGameServerGroup)
-> Lens
UpdateGameServerGroup
UpdateGameServerGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroup' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: UpdateGameServerGroup
s@UpdateGameServerGroup' {} Maybe Text
a -> UpdateGameServerGroup
s {$sel:roleArn:UpdateGameServerGroup' :: Maybe Text
roleArn = Maybe Text
a} :: UpdateGameServerGroup)
updateGameServerGroup_gameServerGroupName :: Lens.Lens' UpdateGameServerGroup Prelude.Text
updateGameServerGroup_gameServerGroupName :: (Text -> f Text)
-> UpdateGameServerGroup -> f UpdateGameServerGroup
updateGameServerGroup_gameServerGroupName = (UpdateGameServerGroup -> Text)
-> (UpdateGameServerGroup -> Text -> UpdateGameServerGroup)
-> Lens UpdateGameServerGroup UpdateGameServerGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroup' {Text
gameServerGroupName :: Text
$sel:gameServerGroupName:UpdateGameServerGroup' :: UpdateGameServerGroup -> Text
gameServerGroupName} -> Text
gameServerGroupName) (\s :: UpdateGameServerGroup
s@UpdateGameServerGroup' {} Text
a -> UpdateGameServerGroup
s {$sel:gameServerGroupName:UpdateGameServerGroup' :: Text
gameServerGroupName = Text
a} :: UpdateGameServerGroup)
instance Core.AWSRequest UpdateGameServerGroup where
type
AWSResponse UpdateGameServerGroup =
UpdateGameServerGroupResponse
request :: UpdateGameServerGroup -> Request UpdateGameServerGroup
request = Service -> UpdateGameServerGroup -> Request UpdateGameServerGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateGameServerGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateGameServerGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateGameServerGroup))
-> Logger
-> Service
-> Proxy UpdateGameServerGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateGameServerGroup)))
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 GameServerGroup -> Int -> UpdateGameServerGroupResponse
UpdateGameServerGroupResponse'
(Maybe GameServerGroup -> Int -> UpdateGameServerGroupResponse)
-> Either String (Maybe GameServerGroup)
-> Either String (Int -> UpdateGameServerGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe GameServerGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"GameServerGroup")
Either String (Int -> UpdateGameServerGroupResponse)
-> Either String Int -> Either String UpdateGameServerGroupResponse
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 UpdateGameServerGroup
instance Prelude.NFData UpdateGameServerGroup
instance Core.ToHeaders UpdateGameServerGroup where
toHeaders :: UpdateGameServerGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateGameServerGroup -> 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.UpdateGameServerGroup" ::
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 UpdateGameServerGroup where
toJSON :: UpdateGameServerGroup -> Value
toJSON UpdateGameServerGroup' {Maybe (NonEmpty InstanceDefinition)
Maybe Text
Maybe BalancingStrategy
Maybe GameServerProtectionPolicy
Text
gameServerGroupName :: Text
roleArn :: Maybe Text
gameServerProtectionPolicy :: Maybe GameServerProtectionPolicy
balancingStrategy :: Maybe BalancingStrategy
instanceDefinitions :: Maybe (NonEmpty InstanceDefinition)
$sel:gameServerGroupName:UpdateGameServerGroup' :: UpdateGameServerGroup -> Text
$sel:roleArn:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe Text
$sel:gameServerProtectionPolicy:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe GameServerProtectionPolicy
$sel:balancingStrategy:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe BalancingStrategy
$sel:instanceDefinitions:UpdateGameServerGroup' :: UpdateGameServerGroup -> Maybe (NonEmpty InstanceDefinition)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"InstanceDefinitions" Text -> NonEmpty InstanceDefinition -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty InstanceDefinition -> Pair)
-> Maybe (NonEmpty InstanceDefinition) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty InstanceDefinition)
instanceDefinitions,
(Text
"BalancingStrategy" Text -> BalancingStrategy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BalancingStrategy -> Pair)
-> Maybe BalancingStrategy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BalancingStrategy
balancingStrategy,
(Text
"GameServerProtectionPolicy" Text -> GameServerProtectionPolicy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(GameServerProtectionPolicy -> Pair)
-> Maybe GameServerProtectionPolicy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GameServerProtectionPolicy
gameServerProtectionPolicy,
(Text
"RoleArn" 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
roleArn,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"GameServerGroupName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gameServerGroupName)
]
)
instance Core.ToPath UpdateGameServerGroup where
toPath :: UpdateGameServerGroup -> ByteString
toPath = ByteString -> UpdateGameServerGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateGameServerGroup where
toQuery :: UpdateGameServerGroup -> QueryString
toQuery = QueryString -> UpdateGameServerGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateGameServerGroupResponse = UpdateGameServerGroupResponse'
{
UpdateGameServerGroupResponse -> Maybe GameServerGroup
gameServerGroup :: Prelude.Maybe GameServerGroup,
UpdateGameServerGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool
(UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool)
-> (UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool)
-> Eq UpdateGameServerGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool
$c/= :: UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool
== :: UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool
$c== :: UpdateGameServerGroupResponse
-> UpdateGameServerGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdateGameServerGroupResponse]
ReadPrec UpdateGameServerGroupResponse
Int -> ReadS UpdateGameServerGroupResponse
ReadS [UpdateGameServerGroupResponse]
(Int -> ReadS UpdateGameServerGroupResponse)
-> ReadS [UpdateGameServerGroupResponse]
-> ReadPrec UpdateGameServerGroupResponse
-> ReadPrec [UpdateGameServerGroupResponse]
-> Read UpdateGameServerGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateGameServerGroupResponse]
$creadListPrec :: ReadPrec [UpdateGameServerGroupResponse]
readPrec :: ReadPrec UpdateGameServerGroupResponse
$creadPrec :: ReadPrec UpdateGameServerGroupResponse
readList :: ReadS [UpdateGameServerGroupResponse]
$creadList :: ReadS [UpdateGameServerGroupResponse]
readsPrec :: Int -> ReadS UpdateGameServerGroupResponse
$creadsPrec :: Int -> ReadS UpdateGameServerGroupResponse
Prelude.Read, Int -> UpdateGameServerGroupResponse -> ShowS
[UpdateGameServerGroupResponse] -> ShowS
UpdateGameServerGroupResponse -> String
(Int -> UpdateGameServerGroupResponse -> ShowS)
-> (UpdateGameServerGroupResponse -> String)
-> ([UpdateGameServerGroupResponse] -> ShowS)
-> Show UpdateGameServerGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateGameServerGroupResponse] -> ShowS
$cshowList :: [UpdateGameServerGroupResponse] -> ShowS
show :: UpdateGameServerGroupResponse -> String
$cshow :: UpdateGameServerGroupResponse -> String
showsPrec :: Int -> UpdateGameServerGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateGameServerGroupResponse -> ShowS
Prelude.Show, (forall x.
UpdateGameServerGroupResponse
-> Rep UpdateGameServerGroupResponse x)
-> (forall x.
Rep UpdateGameServerGroupResponse x
-> UpdateGameServerGroupResponse)
-> Generic UpdateGameServerGroupResponse
forall x.
Rep UpdateGameServerGroupResponse x
-> UpdateGameServerGroupResponse
forall x.
UpdateGameServerGroupResponse
-> Rep UpdateGameServerGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateGameServerGroupResponse x
-> UpdateGameServerGroupResponse
$cfrom :: forall x.
UpdateGameServerGroupResponse
-> Rep UpdateGameServerGroupResponse x
Prelude.Generic)
newUpdateGameServerGroupResponse ::
Prelude.Int ->
UpdateGameServerGroupResponse
newUpdateGameServerGroupResponse :: Int -> UpdateGameServerGroupResponse
newUpdateGameServerGroupResponse Int
pHttpStatus_ =
UpdateGameServerGroupResponse' :: Maybe GameServerGroup -> Int -> UpdateGameServerGroupResponse
UpdateGameServerGroupResponse'
{ $sel:gameServerGroup:UpdateGameServerGroupResponse' :: Maybe GameServerGroup
gameServerGroup =
Maybe GameServerGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateGameServerGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateGameServerGroupResponse_gameServerGroup :: Lens.Lens' UpdateGameServerGroupResponse (Prelude.Maybe GameServerGroup)
updateGameServerGroupResponse_gameServerGroup :: (Maybe GameServerGroup -> f (Maybe GameServerGroup))
-> UpdateGameServerGroupResponse -> f UpdateGameServerGroupResponse
updateGameServerGroupResponse_gameServerGroup = (UpdateGameServerGroupResponse -> Maybe GameServerGroup)
-> (UpdateGameServerGroupResponse
-> Maybe GameServerGroup -> UpdateGameServerGroupResponse)
-> Lens
UpdateGameServerGroupResponse
UpdateGameServerGroupResponse
(Maybe GameServerGroup)
(Maybe GameServerGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroupResponse' {Maybe GameServerGroup
gameServerGroup :: Maybe GameServerGroup
$sel:gameServerGroup:UpdateGameServerGroupResponse' :: UpdateGameServerGroupResponse -> Maybe GameServerGroup
gameServerGroup} -> Maybe GameServerGroup
gameServerGroup) (\s :: UpdateGameServerGroupResponse
s@UpdateGameServerGroupResponse' {} Maybe GameServerGroup
a -> UpdateGameServerGroupResponse
s {$sel:gameServerGroup:UpdateGameServerGroupResponse' :: Maybe GameServerGroup
gameServerGroup = Maybe GameServerGroup
a} :: UpdateGameServerGroupResponse)
updateGameServerGroupResponse_httpStatus :: Lens.Lens' UpdateGameServerGroupResponse Prelude.Int
updateGameServerGroupResponse_httpStatus :: (Int -> f Int)
-> UpdateGameServerGroupResponse -> f UpdateGameServerGroupResponse
updateGameServerGroupResponse_httpStatus = (UpdateGameServerGroupResponse -> Int)
-> (UpdateGameServerGroupResponse
-> Int -> UpdateGameServerGroupResponse)
-> Lens
UpdateGameServerGroupResponse UpdateGameServerGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGameServerGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateGameServerGroupResponse' :: UpdateGameServerGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateGameServerGroupResponse
s@UpdateGameServerGroupResponse' {} Int
a -> UpdateGameServerGroupResponse
s {$sel:httpStatus:UpdateGameServerGroupResponse' :: Int
httpStatus = Int
a} :: UpdateGameServerGroupResponse)
instance Prelude.NFData UpdateGameServerGroupResponse