{-# 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.DescribeMaintenanceStartTime
(
DescribeMaintenanceStartTime (..),
newDescribeMaintenanceStartTime,
describeMaintenanceStartTime_gatewayARN,
DescribeMaintenanceStartTimeResponse (..),
newDescribeMaintenanceStartTimeResponse,
describeMaintenanceStartTimeResponse_gatewayARN,
describeMaintenanceStartTimeResponse_minuteOfHour,
describeMaintenanceStartTimeResponse_dayOfMonth,
describeMaintenanceStartTimeResponse_hourOfDay,
describeMaintenanceStartTimeResponse_timezone,
describeMaintenanceStartTimeResponse_dayOfWeek,
describeMaintenanceStartTimeResponse_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 DescribeMaintenanceStartTime = DescribeMaintenanceStartTime'
{ DescribeMaintenanceStartTime -> Text
gatewayARN :: Prelude.Text
}
deriving (DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool
(DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool)
-> (DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool)
-> Eq DescribeMaintenanceStartTime
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool
$c/= :: DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool
== :: DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool
$c== :: DescribeMaintenanceStartTime
-> DescribeMaintenanceStartTime -> Bool
Prelude.Eq, ReadPrec [DescribeMaintenanceStartTime]
ReadPrec DescribeMaintenanceStartTime
Int -> ReadS DescribeMaintenanceStartTime
ReadS [DescribeMaintenanceStartTime]
(Int -> ReadS DescribeMaintenanceStartTime)
-> ReadS [DescribeMaintenanceStartTime]
-> ReadPrec DescribeMaintenanceStartTime
-> ReadPrec [DescribeMaintenanceStartTime]
-> Read DescribeMaintenanceStartTime
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMaintenanceStartTime]
$creadListPrec :: ReadPrec [DescribeMaintenanceStartTime]
readPrec :: ReadPrec DescribeMaintenanceStartTime
$creadPrec :: ReadPrec DescribeMaintenanceStartTime
readList :: ReadS [DescribeMaintenanceStartTime]
$creadList :: ReadS [DescribeMaintenanceStartTime]
readsPrec :: Int -> ReadS DescribeMaintenanceStartTime
$creadsPrec :: Int -> ReadS DescribeMaintenanceStartTime
Prelude.Read, Int -> DescribeMaintenanceStartTime -> ShowS
[DescribeMaintenanceStartTime] -> ShowS
DescribeMaintenanceStartTime -> String
(Int -> DescribeMaintenanceStartTime -> ShowS)
-> (DescribeMaintenanceStartTime -> String)
-> ([DescribeMaintenanceStartTime] -> ShowS)
-> Show DescribeMaintenanceStartTime
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMaintenanceStartTime] -> ShowS
$cshowList :: [DescribeMaintenanceStartTime] -> ShowS
show :: DescribeMaintenanceStartTime -> String
$cshow :: DescribeMaintenanceStartTime -> String
showsPrec :: Int -> DescribeMaintenanceStartTime -> ShowS
$cshowsPrec :: Int -> DescribeMaintenanceStartTime -> ShowS
Prelude.Show, (forall x.
DescribeMaintenanceStartTime -> Rep DescribeMaintenanceStartTime x)
-> (forall x.
Rep DescribeMaintenanceStartTime x -> DescribeMaintenanceStartTime)
-> Generic DescribeMaintenanceStartTime
forall x.
Rep DescribeMaintenanceStartTime x -> DescribeMaintenanceStartTime
forall x.
DescribeMaintenanceStartTime -> Rep DescribeMaintenanceStartTime x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMaintenanceStartTime x -> DescribeMaintenanceStartTime
$cfrom :: forall x.
DescribeMaintenanceStartTime -> Rep DescribeMaintenanceStartTime x
Prelude.Generic)
newDescribeMaintenanceStartTime ::
Prelude.Text ->
DescribeMaintenanceStartTime
newDescribeMaintenanceStartTime :: Text -> DescribeMaintenanceStartTime
newDescribeMaintenanceStartTime Text
pGatewayARN_ =
DescribeMaintenanceStartTime' :: Text -> DescribeMaintenanceStartTime
DescribeMaintenanceStartTime'
{ $sel:gatewayARN:DescribeMaintenanceStartTime' :: Text
gatewayARN =
Text
pGatewayARN_
}
describeMaintenanceStartTime_gatewayARN :: Lens.Lens' DescribeMaintenanceStartTime Prelude.Text
describeMaintenanceStartTime_gatewayARN :: (Text -> f Text)
-> DescribeMaintenanceStartTime -> f DescribeMaintenanceStartTime
describeMaintenanceStartTime_gatewayARN = (DescribeMaintenanceStartTime -> Text)
-> (DescribeMaintenanceStartTime
-> Text -> DescribeMaintenanceStartTime)
-> Lens
DescribeMaintenanceStartTime DescribeMaintenanceStartTime Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTime' {Text
gatewayARN :: Text
$sel:gatewayARN:DescribeMaintenanceStartTime' :: DescribeMaintenanceStartTime -> Text
gatewayARN} -> Text
gatewayARN) (\s :: DescribeMaintenanceStartTime
s@DescribeMaintenanceStartTime' {} Text
a -> DescribeMaintenanceStartTime
s {$sel:gatewayARN:DescribeMaintenanceStartTime' :: Text
gatewayARN = Text
a} :: DescribeMaintenanceStartTime)
instance Core.AWSRequest DescribeMaintenanceStartTime where
type
AWSResponse DescribeMaintenanceStartTime =
DescribeMaintenanceStartTimeResponse
request :: DescribeMaintenanceStartTime
-> Request DescribeMaintenanceStartTime
request = Service
-> DescribeMaintenanceStartTime
-> Request DescribeMaintenanceStartTime
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeMaintenanceStartTime
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeMaintenanceStartTime)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeMaintenanceStartTime))
-> Logger
-> Service
-> Proxy DescribeMaintenanceStartTime
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeMaintenanceStartTime)))
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 Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse'
(Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
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 Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MinuteOfHour")
Either
String
(Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DayOfMonth")
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Natural -> Int -> DescribeMaintenanceStartTimeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HourOfDay")
Either
String
(Maybe Text
-> Maybe Natural -> Int -> DescribeMaintenanceStartTimeResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural -> Int -> DescribeMaintenanceStartTimeResponse)
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
"Timezone")
Either
String
(Maybe Natural -> Int -> DescribeMaintenanceStartTimeResponse)
-> Either String (Maybe Natural)
-> Either String (Int -> DescribeMaintenanceStartTimeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DayOfWeek")
Either String (Int -> DescribeMaintenanceStartTimeResponse)
-> Either String Int
-> Either String DescribeMaintenanceStartTimeResponse
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
DescribeMaintenanceStartTime
instance Prelude.NFData DescribeMaintenanceStartTime
instance Core.ToHeaders DescribeMaintenanceStartTime where
toHeaders :: DescribeMaintenanceStartTime -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeMaintenanceStartTime -> 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.DescribeMaintenanceStartTime" ::
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 DescribeMaintenanceStartTime where
toJSON :: DescribeMaintenanceStartTime -> Value
toJSON DescribeMaintenanceStartTime' {Text
gatewayARN :: Text
$sel:gatewayARN:DescribeMaintenanceStartTime' :: DescribeMaintenanceStartTime -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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 DescribeMaintenanceStartTime where
toPath :: DescribeMaintenanceStartTime -> ByteString
toPath = ByteString -> DescribeMaintenanceStartTime -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeMaintenanceStartTime where
toQuery :: DescribeMaintenanceStartTime -> QueryString
toQuery = QueryString -> DescribeMaintenanceStartTime -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeMaintenanceStartTimeResponse = DescribeMaintenanceStartTimeResponse'
{ DescribeMaintenanceStartTimeResponse -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
DescribeMaintenanceStartTimeResponse -> Maybe Natural
minuteOfHour :: Prelude.Maybe Prelude.Natural,
DescribeMaintenanceStartTimeResponse -> Maybe Natural
dayOfMonth :: Prelude.Maybe Prelude.Natural,
DescribeMaintenanceStartTimeResponse -> Maybe Natural
hourOfDay :: Prelude.Maybe Prelude.Natural,
DescribeMaintenanceStartTimeResponse -> Maybe Text
timezone :: Prelude.Maybe Prelude.Text,
DescribeMaintenanceStartTimeResponse -> Maybe Natural
dayOfWeek :: Prelude.Maybe Prelude.Natural,
DescribeMaintenanceStartTimeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool
(DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool)
-> (DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool)
-> Eq DescribeMaintenanceStartTimeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool
$c/= :: DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool
== :: DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool
$c== :: DescribeMaintenanceStartTimeResponse
-> DescribeMaintenanceStartTimeResponse -> Bool
Prelude.Eq, ReadPrec [DescribeMaintenanceStartTimeResponse]
ReadPrec DescribeMaintenanceStartTimeResponse
Int -> ReadS DescribeMaintenanceStartTimeResponse
ReadS [DescribeMaintenanceStartTimeResponse]
(Int -> ReadS DescribeMaintenanceStartTimeResponse)
-> ReadS [DescribeMaintenanceStartTimeResponse]
-> ReadPrec DescribeMaintenanceStartTimeResponse
-> ReadPrec [DescribeMaintenanceStartTimeResponse]
-> Read DescribeMaintenanceStartTimeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMaintenanceStartTimeResponse]
$creadListPrec :: ReadPrec [DescribeMaintenanceStartTimeResponse]
readPrec :: ReadPrec DescribeMaintenanceStartTimeResponse
$creadPrec :: ReadPrec DescribeMaintenanceStartTimeResponse
readList :: ReadS [DescribeMaintenanceStartTimeResponse]
$creadList :: ReadS [DescribeMaintenanceStartTimeResponse]
readsPrec :: Int -> ReadS DescribeMaintenanceStartTimeResponse
$creadsPrec :: Int -> ReadS DescribeMaintenanceStartTimeResponse
Prelude.Read, Int -> DescribeMaintenanceStartTimeResponse -> ShowS
[DescribeMaintenanceStartTimeResponse] -> ShowS
DescribeMaintenanceStartTimeResponse -> String
(Int -> DescribeMaintenanceStartTimeResponse -> ShowS)
-> (DescribeMaintenanceStartTimeResponse -> String)
-> ([DescribeMaintenanceStartTimeResponse] -> ShowS)
-> Show DescribeMaintenanceStartTimeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMaintenanceStartTimeResponse] -> ShowS
$cshowList :: [DescribeMaintenanceStartTimeResponse] -> ShowS
show :: DescribeMaintenanceStartTimeResponse -> String
$cshow :: DescribeMaintenanceStartTimeResponse -> String
showsPrec :: Int -> DescribeMaintenanceStartTimeResponse -> ShowS
$cshowsPrec :: Int -> DescribeMaintenanceStartTimeResponse -> ShowS
Prelude.Show, (forall x.
DescribeMaintenanceStartTimeResponse
-> Rep DescribeMaintenanceStartTimeResponse x)
-> (forall x.
Rep DescribeMaintenanceStartTimeResponse x
-> DescribeMaintenanceStartTimeResponse)
-> Generic DescribeMaintenanceStartTimeResponse
forall x.
Rep DescribeMaintenanceStartTimeResponse x
-> DescribeMaintenanceStartTimeResponse
forall x.
DescribeMaintenanceStartTimeResponse
-> Rep DescribeMaintenanceStartTimeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMaintenanceStartTimeResponse x
-> DescribeMaintenanceStartTimeResponse
$cfrom :: forall x.
DescribeMaintenanceStartTimeResponse
-> Rep DescribeMaintenanceStartTimeResponse x
Prelude.Generic)
newDescribeMaintenanceStartTimeResponse ::
Prelude.Int ->
DescribeMaintenanceStartTimeResponse
newDescribeMaintenanceStartTimeResponse :: Int -> DescribeMaintenanceStartTimeResponse
newDescribeMaintenanceStartTimeResponse Int
pHttpStatus_ =
DescribeMaintenanceStartTimeResponse' :: Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Int
-> DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse'
{ $sel:gatewayARN:DescribeMaintenanceStartTimeResponse' :: Maybe Text
gatewayARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:minuteOfHour:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
minuteOfHour = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dayOfMonth:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
dayOfMonth = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:hourOfDay:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
hourOfDay = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:timezone:DescribeMaintenanceStartTimeResponse' :: Maybe Text
timezone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dayOfWeek:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
dayOfWeek = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeMaintenanceStartTimeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeMaintenanceStartTimeResponse_gatewayARN :: Lens.Lens' DescribeMaintenanceStartTimeResponse (Prelude.Maybe Prelude.Text)
describeMaintenanceStartTimeResponse_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_gatewayARN = (DescribeMaintenanceStartTimeResponse -> Maybe Text)
-> (DescribeMaintenanceStartTimeResponse
-> Maybe Text -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Maybe Text
a -> DescribeMaintenanceStartTimeResponse
s {$sel:gatewayARN:DescribeMaintenanceStartTimeResponse' :: Maybe Text
gatewayARN = Maybe Text
a} :: DescribeMaintenanceStartTimeResponse)
describeMaintenanceStartTimeResponse_minuteOfHour :: Lens.Lens' DescribeMaintenanceStartTimeResponse (Prelude.Maybe Prelude.Natural)
describeMaintenanceStartTimeResponse_minuteOfHour :: (Maybe Natural -> f (Maybe Natural))
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_minuteOfHour = (DescribeMaintenanceStartTimeResponse -> Maybe Natural)
-> (DescribeMaintenanceStartTimeResponse
-> Maybe Natural -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Maybe Natural
minuteOfHour :: Maybe Natural
$sel:minuteOfHour:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Maybe Natural
minuteOfHour} -> Maybe Natural
minuteOfHour) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Maybe Natural
a -> DescribeMaintenanceStartTimeResponse
s {$sel:minuteOfHour:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
minuteOfHour = Maybe Natural
a} :: DescribeMaintenanceStartTimeResponse)
describeMaintenanceStartTimeResponse_dayOfMonth :: Lens.Lens' DescribeMaintenanceStartTimeResponse (Prelude.Maybe Prelude.Natural)
describeMaintenanceStartTimeResponse_dayOfMonth :: (Maybe Natural -> f (Maybe Natural))
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_dayOfMonth = (DescribeMaintenanceStartTimeResponse -> Maybe Natural)
-> (DescribeMaintenanceStartTimeResponse
-> Maybe Natural -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Maybe Natural
dayOfMonth :: Maybe Natural
$sel:dayOfMonth:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Maybe Natural
dayOfMonth} -> Maybe Natural
dayOfMonth) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Maybe Natural
a -> DescribeMaintenanceStartTimeResponse
s {$sel:dayOfMonth:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
dayOfMonth = Maybe Natural
a} :: DescribeMaintenanceStartTimeResponse)
describeMaintenanceStartTimeResponse_hourOfDay :: Lens.Lens' DescribeMaintenanceStartTimeResponse (Prelude.Maybe Prelude.Natural)
describeMaintenanceStartTimeResponse_hourOfDay :: (Maybe Natural -> f (Maybe Natural))
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_hourOfDay = (DescribeMaintenanceStartTimeResponse -> Maybe Natural)
-> (DescribeMaintenanceStartTimeResponse
-> Maybe Natural -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Maybe Natural
hourOfDay :: Maybe Natural
$sel:hourOfDay:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Maybe Natural
hourOfDay} -> Maybe Natural
hourOfDay) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Maybe Natural
a -> DescribeMaintenanceStartTimeResponse
s {$sel:hourOfDay:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
hourOfDay = Maybe Natural
a} :: DescribeMaintenanceStartTimeResponse)
describeMaintenanceStartTimeResponse_timezone :: Lens.Lens' DescribeMaintenanceStartTimeResponse (Prelude.Maybe Prelude.Text)
describeMaintenanceStartTimeResponse_timezone :: (Maybe Text -> f (Maybe Text))
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_timezone = (DescribeMaintenanceStartTimeResponse -> Maybe Text)
-> (DescribeMaintenanceStartTimeResponse
-> Maybe Text -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Maybe Text
timezone :: Maybe Text
$sel:timezone:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Maybe Text
timezone} -> Maybe Text
timezone) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Maybe Text
a -> DescribeMaintenanceStartTimeResponse
s {$sel:timezone:DescribeMaintenanceStartTimeResponse' :: Maybe Text
timezone = Maybe Text
a} :: DescribeMaintenanceStartTimeResponse)
describeMaintenanceStartTimeResponse_dayOfWeek :: Lens.Lens' DescribeMaintenanceStartTimeResponse (Prelude.Maybe Prelude.Natural)
describeMaintenanceStartTimeResponse_dayOfWeek :: (Maybe Natural -> f (Maybe Natural))
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_dayOfWeek = (DescribeMaintenanceStartTimeResponse -> Maybe Natural)
-> (DescribeMaintenanceStartTimeResponse
-> Maybe Natural -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Maybe Natural
dayOfWeek :: Maybe Natural
$sel:dayOfWeek:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Maybe Natural
dayOfWeek} -> Maybe Natural
dayOfWeek) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Maybe Natural
a -> DescribeMaintenanceStartTimeResponse
s {$sel:dayOfWeek:DescribeMaintenanceStartTimeResponse' :: Maybe Natural
dayOfWeek = Maybe Natural
a} :: DescribeMaintenanceStartTimeResponse)
describeMaintenanceStartTimeResponse_httpStatus :: Lens.Lens' DescribeMaintenanceStartTimeResponse Prelude.Int
describeMaintenanceStartTimeResponse_httpStatus :: (Int -> f Int)
-> DescribeMaintenanceStartTimeResponse
-> f DescribeMaintenanceStartTimeResponse
describeMaintenanceStartTimeResponse_httpStatus = (DescribeMaintenanceStartTimeResponse -> Int)
-> (DescribeMaintenanceStartTimeResponse
-> Int -> DescribeMaintenanceStartTimeResponse)
-> Lens
DescribeMaintenanceStartTimeResponse
DescribeMaintenanceStartTimeResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceStartTimeResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeMaintenanceStartTimeResponse' :: DescribeMaintenanceStartTimeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeMaintenanceStartTimeResponse
s@DescribeMaintenanceStartTimeResponse' {} Int
a -> DescribeMaintenanceStartTimeResponse
s {$sel:httpStatus:DescribeMaintenanceStartTimeResponse' :: Int
httpStatus = Int
a} :: DescribeMaintenanceStartTimeResponse)
instance
Prelude.NFData
DescribeMaintenanceStartTimeResponse