{-# 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.StorageGateway.UpdateGatewayInformation
(
UpdateGatewayInformation (..),
newUpdateGatewayInformation,
updateGatewayInformation_cloudWatchLogGroupARN,
updateGatewayInformation_gatewayCapacity,
updateGatewayInformation_gatewayName,
updateGatewayInformation_gatewayTimezone,
updateGatewayInformation_gatewayARN,
UpdateGatewayInformationResponse (..),
newUpdateGatewayInformationResponse,
updateGatewayInformationResponse_gatewayARN,
updateGatewayInformationResponse_gatewayName,
updateGatewayInformationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.StorageGateway.Types
data UpdateGatewayInformation = UpdateGatewayInformation'
{
UpdateGatewayInformation -> Maybe Text
cloudWatchLogGroupARN :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformation -> Maybe GatewayCapacity
gatewayCapacity :: Prelude.Maybe GatewayCapacity,
UpdateGatewayInformation -> Maybe Text
gatewayName :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformation -> Maybe Text
gatewayTimezone :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformation -> Text
gatewayARN :: Prelude.Text
}
deriving (UpdateGatewayInformation -> UpdateGatewayInformation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateGatewayInformation -> UpdateGatewayInformation -> Bool
$c/= :: UpdateGatewayInformation -> UpdateGatewayInformation -> Bool
== :: UpdateGatewayInformation -> UpdateGatewayInformation -> Bool
$c== :: UpdateGatewayInformation -> UpdateGatewayInformation -> Bool
Prelude.Eq, ReadPrec [UpdateGatewayInformation]
ReadPrec UpdateGatewayInformation
Int -> ReadS UpdateGatewayInformation
ReadS [UpdateGatewayInformation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateGatewayInformation]
$creadListPrec :: ReadPrec [UpdateGatewayInformation]
readPrec :: ReadPrec UpdateGatewayInformation
$creadPrec :: ReadPrec UpdateGatewayInformation
readList :: ReadS [UpdateGatewayInformation]
$creadList :: ReadS [UpdateGatewayInformation]
readsPrec :: Int -> ReadS UpdateGatewayInformation
$creadsPrec :: Int -> ReadS UpdateGatewayInformation
Prelude.Read, Int -> UpdateGatewayInformation -> ShowS
[UpdateGatewayInformation] -> ShowS
UpdateGatewayInformation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateGatewayInformation] -> ShowS
$cshowList :: [UpdateGatewayInformation] -> ShowS
show :: UpdateGatewayInformation -> String
$cshow :: UpdateGatewayInformation -> String
showsPrec :: Int -> UpdateGatewayInformation -> ShowS
$cshowsPrec :: Int -> UpdateGatewayInformation -> ShowS
Prelude.Show, forall x.
Rep UpdateGatewayInformation x -> UpdateGatewayInformation
forall x.
UpdateGatewayInformation -> Rep UpdateGatewayInformation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateGatewayInformation x -> UpdateGatewayInformation
$cfrom :: forall x.
UpdateGatewayInformation -> Rep UpdateGatewayInformation x
Prelude.Generic)
newUpdateGatewayInformation ::
Prelude.Text ->
UpdateGatewayInformation
newUpdateGatewayInformation :: Text -> UpdateGatewayInformation
newUpdateGatewayInformation Text
pGatewayARN_ =
UpdateGatewayInformation'
{ $sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: Maybe Text
cloudWatchLogGroupARN =
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayCapacity:UpdateGatewayInformation' :: Maybe GatewayCapacity
gatewayCapacity = forall a. Maybe a
Prelude.Nothing,
$sel:gatewayName:UpdateGatewayInformation' :: Maybe Text
gatewayName = forall a. Maybe a
Prelude.Nothing,
$sel:gatewayTimezone:UpdateGatewayInformation' :: Maybe Text
gatewayTimezone = forall a. Maybe a
Prelude.Nothing,
$sel:gatewayARN:UpdateGatewayInformation' :: Text
gatewayARN = Text
pGatewayARN_
}
updateGatewayInformation_cloudWatchLogGroupARN :: Lens.Lens' UpdateGatewayInformation (Prelude.Maybe Prelude.Text)
updateGatewayInformation_cloudWatchLogGroupARN :: Lens' UpdateGatewayInformation (Maybe Text)
updateGatewayInformation_cloudWatchLogGroupARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformation' {Maybe Text
cloudWatchLogGroupARN :: Maybe Text
$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
cloudWatchLogGroupARN} -> Maybe Text
cloudWatchLogGroupARN) (\s :: UpdateGatewayInformation
s@UpdateGatewayInformation' {} Maybe Text
a -> UpdateGatewayInformation
s {$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: Maybe Text
cloudWatchLogGroupARN = Maybe Text
a} :: UpdateGatewayInformation)
updateGatewayInformation_gatewayCapacity :: Lens.Lens' UpdateGatewayInformation (Prelude.Maybe GatewayCapacity)
updateGatewayInformation_gatewayCapacity :: Lens' UpdateGatewayInformation (Maybe GatewayCapacity)
updateGatewayInformation_gatewayCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformation' {Maybe GatewayCapacity
gatewayCapacity :: Maybe GatewayCapacity
$sel:gatewayCapacity:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe GatewayCapacity
gatewayCapacity} -> Maybe GatewayCapacity
gatewayCapacity) (\s :: UpdateGatewayInformation
s@UpdateGatewayInformation' {} Maybe GatewayCapacity
a -> UpdateGatewayInformation
s {$sel:gatewayCapacity:UpdateGatewayInformation' :: Maybe GatewayCapacity
gatewayCapacity = Maybe GatewayCapacity
a} :: UpdateGatewayInformation)
updateGatewayInformation_gatewayName :: Lens.Lens' UpdateGatewayInformation (Prelude.Maybe Prelude.Text)
updateGatewayInformation_gatewayName :: Lens' UpdateGatewayInformation (Maybe Text)
updateGatewayInformation_gatewayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformation' {Maybe Text
gatewayName :: Maybe Text
$sel:gatewayName:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
gatewayName} -> Maybe Text
gatewayName) (\s :: UpdateGatewayInformation
s@UpdateGatewayInformation' {} Maybe Text
a -> UpdateGatewayInformation
s {$sel:gatewayName:UpdateGatewayInformation' :: Maybe Text
gatewayName = Maybe Text
a} :: UpdateGatewayInformation)
updateGatewayInformation_gatewayTimezone :: Lens.Lens' UpdateGatewayInformation (Prelude.Maybe Prelude.Text)
updateGatewayInformation_gatewayTimezone :: Lens' UpdateGatewayInformation (Maybe Text)
updateGatewayInformation_gatewayTimezone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformation' {Maybe Text
gatewayTimezone :: Maybe Text
$sel:gatewayTimezone:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
gatewayTimezone} -> Maybe Text
gatewayTimezone) (\s :: UpdateGatewayInformation
s@UpdateGatewayInformation' {} Maybe Text
a -> UpdateGatewayInformation
s {$sel:gatewayTimezone:UpdateGatewayInformation' :: Maybe Text
gatewayTimezone = Maybe Text
a} :: UpdateGatewayInformation)
updateGatewayInformation_gatewayARN :: Lens.Lens' UpdateGatewayInformation Prelude.Text
updateGatewayInformation_gatewayARN :: Lens' UpdateGatewayInformation Text
updateGatewayInformation_gatewayARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformation' {Text
gatewayARN :: Text
$sel:gatewayARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Text
gatewayARN} -> Text
gatewayARN) (\s :: UpdateGatewayInformation
s@UpdateGatewayInformation' {} Text
a -> UpdateGatewayInformation
s {$sel:gatewayARN:UpdateGatewayInformation' :: Text
gatewayARN = Text
a} :: UpdateGatewayInformation)
instance Core.AWSRequest UpdateGatewayInformation where
type
AWSResponse UpdateGatewayInformation =
UpdateGatewayInformationResponse
request :: (Service -> Service)
-> UpdateGatewayInformation -> Request UpdateGatewayInformation
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateGatewayInformation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateGatewayInformation)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe Text -> Int -> UpdateGatewayInformationResponse
UpdateGatewayInformationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"GatewayARN")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"GatewayName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateGatewayInformation where
hashWithSalt :: Int -> UpdateGatewayInformation -> Int
hashWithSalt Int
_salt UpdateGatewayInformation' {Maybe Text
Maybe GatewayCapacity
Text
gatewayARN :: Text
gatewayTimezone :: Maybe Text
gatewayName :: Maybe Text
gatewayCapacity :: Maybe GatewayCapacity
cloudWatchLogGroupARN :: Maybe Text
$sel:gatewayARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Text
$sel:gatewayTimezone:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayName:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayCapacity:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe GatewayCapacity
$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
cloudWatchLogGroupARN
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe GatewayCapacity
gatewayCapacity
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
gatewayName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
gatewayTimezone
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
gatewayARN
instance Prelude.NFData UpdateGatewayInformation where
rnf :: UpdateGatewayInformation -> ()
rnf UpdateGatewayInformation' {Maybe Text
Maybe GatewayCapacity
Text
gatewayARN :: Text
gatewayTimezone :: Maybe Text
gatewayName :: Maybe Text
gatewayCapacity :: Maybe GatewayCapacity
cloudWatchLogGroupARN :: Maybe Text
$sel:gatewayARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Text
$sel:gatewayTimezone:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayName:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayCapacity:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe GatewayCapacity
$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
cloudWatchLogGroupARN
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe GatewayCapacity
gatewayCapacity
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayTimezone
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
gatewayARN
instance Data.ToHeaders UpdateGatewayInformation where
toHeaders :: UpdateGatewayInformation -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"StorageGateway_20130630.UpdateGatewayInformation" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateGatewayInformation where
toJSON :: UpdateGatewayInformation -> Value
toJSON UpdateGatewayInformation' {Maybe Text
Maybe GatewayCapacity
Text
gatewayARN :: Text
gatewayTimezone :: Maybe Text
gatewayName :: Maybe Text
gatewayCapacity :: Maybe GatewayCapacity
cloudWatchLogGroupARN :: Maybe Text
$sel:gatewayARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Text
$sel:gatewayTimezone:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayName:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayCapacity:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe GatewayCapacity
$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CloudWatchLogGroupARN" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cloudWatchLogGroupARN,
(Key
"GatewayCapacity" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GatewayCapacity
gatewayCapacity,
(Key
"GatewayName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
gatewayName,
(Key
"GatewayTimezone" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
gatewayTimezone,
forall a. a -> Maybe a
Prelude.Just (Key
"GatewayARN" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
gatewayARN)
]
)
instance Data.ToPath UpdateGatewayInformation where
toPath :: UpdateGatewayInformation -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdateGatewayInformation where
toQuery :: UpdateGatewayInformation -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateGatewayInformationResponse = UpdateGatewayInformationResponse'
{ UpdateGatewayInformationResponse -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformationResponse -> Maybe Text
gatewayName :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool
$c/= :: UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool
== :: UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool
$c== :: UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool
Prelude.Eq, ReadPrec [UpdateGatewayInformationResponse]
ReadPrec UpdateGatewayInformationResponse
Int -> ReadS UpdateGatewayInformationResponse
ReadS [UpdateGatewayInformationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateGatewayInformationResponse]
$creadListPrec :: ReadPrec [UpdateGatewayInformationResponse]
readPrec :: ReadPrec UpdateGatewayInformationResponse
$creadPrec :: ReadPrec UpdateGatewayInformationResponse
readList :: ReadS [UpdateGatewayInformationResponse]
$creadList :: ReadS [UpdateGatewayInformationResponse]
readsPrec :: Int -> ReadS UpdateGatewayInformationResponse
$creadsPrec :: Int -> ReadS UpdateGatewayInformationResponse
Prelude.Read, Int -> UpdateGatewayInformationResponse -> ShowS
[UpdateGatewayInformationResponse] -> ShowS
UpdateGatewayInformationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateGatewayInformationResponse] -> ShowS
$cshowList :: [UpdateGatewayInformationResponse] -> ShowS
show :: UpdateGatewayInformationResponse -> String
$cshow :: UpdateGatewayInformationResponse -> String
showsPrec :: Int -> UpdateGatewayInformationResponse -> ShowS
$cshowsPrec :: Int -> UpdateGatewayInformationResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateGatewayInformationResponse x
-> UpdateGatewayInformationResponse
forall x.
UpdateGatewayInformationResponse
-> Rep UpdateGatewayInformationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateGatewayInformationResponse x
-> UpdateGatewayInformationResponse
$cfrom :: forall x.
UpdateGatewayInformationResponse
-> Rep UpdateGatewayInformationResponse x
Prelude.Generic)
newUpdateGatewayInformationResponse ::
Prelude.Int ->
UpdateGatewayInformationResponse
newUpdateGatewayInformationResponse :: Int -> UpdateGatewayInformationResponse
newUpdateGatewayInformationResponse Int
pHttpStatus_ =
UpdateGatewayInformationResponse'
{ $sel:gatewayARN:UpdateGatewayInformationResponse' :: Maybe Text
gatewayARN =
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayName:UpdateGatewayInformationResponse' :: Maybe Text
gatewayName = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateGatewayInformationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateGatewayInformationResponse_gatewayARN :: Lens.Lens' UpdateGatewayInformationResponse (Prelude.Maybe Prelude.Text)
updateGatewayInformationResponse_gatewayARN :: Lens' UpdateGatewayInformationResponse (Maybe Text)
updateGatewayInformationResponse_gatewayARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformationResponse' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:UpdateGatewayInformationResponse' :: UpdateGatewayInformationResponse -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: UpdateGatewayInformationResponse
s@UpdateGatewayInformationResponse' {} Maybe Text
a -> UpdateGatewayInformationResponse
s {$sel:gatewayARN:UpdateGatewayInformationResponse' :: Maybe Text
gatewayARN = Maybe Text
a} :: UpdateGatewayInformationResponse)
updateGatewayInformationResponse_gatewayName :: Lens.Lens' UpdateGatewayInformationResponse (Prelude.Maybe Prelude.Text)
updateGatewayInformationResponse_gatewayName :: Lens' UpdateGatewayInformationResponse (Maybe Text)
updateGatewayInformationResponse_gatewayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformationResponse' {Maybe Text
gatewayName :: Maybe Text
$sel:gatewayName:UpdateGatewayInformationResponse' :: UpdateGatewayInformationResponse -> Maybe Text
gatewayName} -> Maybe Text
gatewayName) (\s :: UpdateGatewayInformationResponse
s@UpdateGatewayInformationResponse' {} Maybe Text
a -> UpdateGatewayInformationResponse
s {$sel:gatewayName:UpdateGatewayInformationResponse' :: Maybe Text
gatewayName = Maybe Text
a} :: UpdateGatewayInformationResponse)
updateGatewayInformationResponse_httpStatus :: Lens.Lens' UpdateGatewayInformationResponse Prelude.Int
updateGatewayInformationResponse_httpStatus :: Lens' UpdateGatewayInformationResponse Int
updateGatewayInformationResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateGatewayInformationResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateGatewayInformationResponse' :: UpdateGatewayInformationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateGatewayInformationResponse
s@UpdateGatewayInformationResponse' {} Int
a -> UpdateGatewayInformationResponse
s {$sel:httpStatus:UpdateGatewayInformationResponse' :: Int
httpStatus = Int
a} :: UpdateGatewayInformationResponse)
instance
Prelude.NFData
UpdateGatewayInformationResponse
where
rnf :: UpdateGatewayInformationResponse -> ()
rnf UpdateGatewayInformationResponse' {Int
Maybe Text
httpStatus :: Int
gatewayName :: Maybe Text
gatewayARN :: Maybe Text
$sel:httpStatus:UpdateGatewayInformationResponse' :: UpdateGatewayInformationResponse -> Int
$sel:gatewayName:UpdateGatewayInformationResponse' :: UpdateGatewayInformationResponse -> Maybe Text
$sel:gatewayARN:UpdateGatewayInformationResponse' :: UpdateGatewayInformationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayARN
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus