{-# 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_gatewayCapacity,
updateGatewayInformation_gatewayName,
updateGatewayInformation_gatewayTimezone,
updateGatewayInformation_cloudWatchLogGroupARN,
updateGatewayInformation_gatewayARN,
UpdateGatewayInformationResponse (..),
newUpdateGatewayInformationResponse,
updateGatewayInformationResponse_gatewayARN,
updateGatewayInformationResponse_gatewayName,
updateGatewayInformationResponse_httpStatus,
)
where
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
import Amazonka.StorageGateway.Types
data UpdateGatewayInformation = UpdateGatewayInformation'
{
UpdateGatewayInformation -> Maybe GatewayCapacity
gatewayCapacity :: Prelude.Maybe GatewayCapacity,
UpdateGatewayInformation -> Maybe Text
gatewayName :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformation -> Maybe Text
gatewayTimezone :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformation -> Maybe Text
cloudWatchLogGroupARN :: Prelude.Maybe Prelude.Text,
UpdateGatewayInformation -> Text
gatewayARN :: Prelude.Text
}
deriving (UpdateGatewayInformation -> UpdateGatewayInformation -> Bool
(UpdateGatewayInformation -> UpdateGatewayInformation -> Bool)
-> (UpdateGatewayInformation -> UpdateGatewayInformation -> Bool)
-> Eq UpdateGatewayInformation
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]
(Int -> ReadS UpdateGatewayInformation)
-> ReadS [UpdateGatewayInformation]
-> ReadPrec UpdateGatewayInformation
-> ReadPrec [UpdateGatewayInformation]
-> Read 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
(Int -> UpdateGatewayInformation -> ShowS)
-> (UpdateGatewayInformation -> String)
-> ([UpdateGatewayInformation] -> ShowS)
-> Show UpdateGatewayInformation
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.
UpdateGatewayInformation -> Rep UpdateGatewayInformation x)
-> (forall x.
Rep UpdateGatewayInformation x -> UpdateGatewayInformation)
-> Generic UpdateGatewayInformation
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' :: Maybe GatewayCapacity
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> UpdateGatewayInformation
UpdateGatewayInformation'
{ $sel:gatewayCapacity:UpdateGatewayInformation' :: Maybe GatewayCapacity
gatewayCapacity =
Maybe GatewayCapacity
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayName:UpdateGatewayInformation' :: Maybe Text
gatewayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayTimezone:UpdateGatewayInformation' :: Maybe Text
gatewayTimezone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: Maybe Text
cloudWatchLogGroupARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayARN:UpdateGatewayInformation' :: Text
gatewayARN = Text
pGatewayARN_
}
updateGatewayInformation_gatewayCapacity :: Lens.Lens' UpdateGatewayInformation (Prelude.Maybe GatewayCapacity)
updateGatewayInformation_gatewayCapacity :: (Maybe GatewayCapacity -> f (Maybe GatewayCapacity))
-> UpdateGatewayInformation -> f UpdateGatewayInformation
updateGatewayInformation_gatewayCapacity = (UpdateGatewayInformation -> Maybe GatewayCapacity)
-> (UpdateGatewayInformation
-> Maybe GatewayCapacity -> UpdateGatewayInformation)
-> Lens
UpdateGatewayInformation
UpdateGatewayInformation
(Maybe GatewayCapacity)
(Maybe 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 :: (Maybe Text -> f (Maybe Text))
-> UpdateGatewayInformation -> f UpdateGatewayInformation
updateGatewayInformation_gatewayName = (UpdateGatewayInformation -> Maybe Text)
-> (UpdateGatewayInformation
-> Maybe Text -> UpdateGatewayInformation)
-> Lens
UpdateGatewayInformation
UpdateGatewayInformation
(Maybe Text)
(Maybe Text)
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 :: (Maybe Text -> f (Maybe Text))
-> UpdateGatewayInformation -> f UpdateGatewayInformation
updateGatewayInformation_gatewayTimezone = (UpdateGatewayInformation -> Maybe Text)
-> (UpdateGatewayInformation
-> Maybe Text -> UpdateGatewayInformation)
-> Lens
UpdateGatewayInformation
UpdateGatewayInformation
(Maybe Text)
(Maybe Text)
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_cloudWatchLogGroupARN :: Lens.Lens' UpdateGatewayInformation (Prelude.Maybe Prelude.Text)
updateGatewayInformation_cloudWatchLogGroupARN :: (Maybe Text -> f (Maybe Text))
-> UpdateGatewayInformation -> f UpdateGatewayInformation
updateGatewayInformation_cloudWatchLogGroupARN = (UpdateGatewayInformation -> Maybe Text)
-> (UpdateGatewayInformation
-> Maybe Text -> UpdateGatewayInformation)
-> Lens
UpdateGatewayInformation
UpdateGatewayInformation
(Maybe Text)
(Maybe Text)
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_gatewayARN :: Lens.Lens' UpdateGatewayInformation Prelude.Text
updateGatewayInformation_gatewayARN :: (Text -> f Text)
-> UpdateGatewayInformation -> f UpdateGatewayInformation
updateGatewayInformation_gatewayARN = (UpdateGatewayInformation -> Text)
-> (UpdateGatewayInformation -> Text -> UpdateGatewayInformation)
-> Lens UpdateGatewayInformation UpdateGatewayInformation Text Text
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 :: UpdateGatewayInformation -> Request UpdateGatewayInformation
request = Service
-> UpdateGatewayInformation -> Request UpdateGatewayInformation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateGatewayInformation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateGatewayInformation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateGatewayInformation))
-> Logger
-> Service
-> Proxy UpdateGatewayInformation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateGatewayInformation)))
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 -> UpdateGatewayInformationResponse
UpdateGatewayInformationResponse'
(Maybe Text
-> Maybe Text -> Int -> UpdateGatewayInformationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> UpdateGatewayInformationResponse)
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
"GatewayARN")
Either
String (Maybe Text -> Int -> UpdateGatewayInformationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateGatewayInformationResponse)
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
"GatewayName")
Either String (Int -> UpdateGatewayInformationResponse)
-> Either String Int
-> Either String UpdateGatewayInformationResponse
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 UpdateGatewayInformation
instance Prelude.NFData UpdateGatewayInformation
instance Core.ToHeaders UpdateGatewayInformation where
toHeaders :: UpdateGatewayInformation -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateGatewayInformation -> 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
"StorageGateway_20130630.UpdateGatewayInformation" ::
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 UpdateGatewayInformation where
toJSON :: UpdateGatewayInformation -> Value
toJSON UpdateGatewayInformation' {Maybe Text
Maybe GatewayCapacity
Text
gatewayARN :: Text
cloudWatchLogGroupARN :: Maybe Text
gatewayTimezone :: Maybe Text
gatewayName :: Maybe Text
gatewayCapacity :: Maybe GatewayCapacity
$sel:gatewayARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Text
$sel:cloudWatchLogGroupARN:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayTimezone:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayName:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe Text
$sel:gatewayCapacity:UpdateGatewayInformation' :: UpdateGatewayInformation -> Maybe GatewayCapacity
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"GatewayCapacity" Text -> GatewayCapacity -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(GatewayCapacity -> Pair) -> Maybe GatewayCapacity -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GatewayCapacity
gatewayCapacity,
(Text
"GatewayName" 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
gatewayName,
(Text
"GatewayTimezone" 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
gatewayTimezone,
(Text
"CloudWatchLogGroupARN" 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
cloudWatchLogGroupARN,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"GatewayARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gatewayARN)
]
)
instance Core.ToPath UpdateGatewayInformation where
toPath :: UpdateGatewayInformation -> ByteString
toPath = ByteString -> UpdateGatewayInformation -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateGatewayInformation where
toQuery :: UpdateGatewayInformation -> QueryString
toQuery = QueryString -> UpdateGatewayInformation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
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
(UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool)
-> (UpdateGatewayInformationResponse
-> UpdateGatewayInformationResponse -> Bool)
-> Eq UpdateGatewayInformationResponse
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]
(Int -> ReadS UpdateGatewayInformationResponse)
-> ReadS [UpdateGatewayInformationResponse]
-> ReadPrec UpdateGatewayInformationResponse
-> ReadPrec [UpdateGatewayInformationResponse]
-> Read 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
(Int -> UpdateGatewayInformationResponse -> ShowS)
-> (UpdateGatewayInformationResponse -> String)
-> ([UpdateGatewayInformationResponse] -> ShowS)
-> Show UpdateGatewayInformationResponse
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.
UpdateGatewayInformationResponse
-> Rep UpdateGatewayInformationResponse x)
-> (forall x.
Rep UpdateGatewayInformationResponse x
-> UpdateGatewayInformationResponse)
-> Generic UpdateGatewayInformationResponse
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' :: Maybe Text -> Maybe Text -> Int -> UpdateGatewayInformationResponse
UpdateGatewayInformationResponse'
{ $sel:gatewayARN:UpdateGatewayInformationResponse' :: Maybe Text
gatewayARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gatewayName:UpdateGatewayInformationResponse' :: Maybe Text
gatewayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateGatewayInformationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateGatewayInformationResponse_gatewayARN :: Lens.Lens' UpdateGatewayInformationResponse (Prelude.Maybe Prelude.Text)
updateGatewayInformationResponse_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> UpdateGatewayInformationResponse
-> f UpdateGatewayInformationResponse
updateGatewayInformationResponse_gatewayARN = (UpdateGatewayInformationResponse -> Maybe Text)
-> (UpdateGatewayInformationResponse
-> Maybe Text -> UpdateGatewayInformationResponse)
-> Lens
UpdateGatewayInformationResponse
UpdateGatewayInformationResponse
(Maybe Text)
(Maybe Text)
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 :: (Maybe Text -> f (Maybe Text))
-> UpdateGatewayInformationResponse
-> f UpdateGatewayInformationResponse
updateGatewayInformationResponse_gatewayName = (UpdateGatewayInformationResponse -> Maybe Text)
-> (UpdateGatewayInformationResponse
-> Maybe Text -> UpdateGatewayInformationResponse)
-> Lens
UpdateGatewayInformationResponse
UpdateGatewayInformationResponse
(Maybe Text)
(Maybe Text)
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 :: (Int -> f Int)
-> UpdateGatewayInformationResponse
-> f UpdateGatewayInformationResponse
updateGatewayInformationResponse_httpStatus = (UpdateGatewayInformationResponse -> Int)
-> (UpdateGatewayInformationResponse
-> Int -> UpdateGatewayInformationResponse)
-> Lens
UpdateGatewayInformationResponse
UpdateGatewayInformationResponse
Int
Int
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