{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.StorageGateway.DescribeMaintenanceStartTime
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns your gateway\'s weekly maintenance start time including the day
-- and time of the week. Note that values are in terms of the gateway\'s
-- time zone.
module Amazonka.StorageGateway.DescribeMaintenanceStartTime
  ( -- * Creating a Request
    DescribeMaintenanceStartTime (..),
    newDescribeMaintenanceStartTime,

    -- * Request Lenses
    describeMaintenanceStartTime_gatewayARN,

    -- * Destructuring the Response
    DescribeMaintenanceStartTimeResponse (..),
    newDescribeMaintenanceStartTimeResponse,

    -- * Response Lenses
    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

-- | A JSON object containing the Amazon Resource Name (ARN) of the gateway.
--
-- /See:/ 'newDescribeMaintenanceStartTime' smart constructor.
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)

-- |
-- Create a value of 'DescribeMaintenanceStartTime' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'gatewayARN', 'describeMaintenanceStartTime_gatewayARN' - Undocumented member.
newDescribeMaintenanceStartTime ::
  -- | 'gatewayARN'
  Prelude.Text ->
  DescribeMaintenanceStartTime
newDescribeMaintenanceStartTime :: Text -> DescribeMaintenanceStartTime
newDescribeMaintenanceStartTime Text
pGatewayARN_ =
  DescribeMaintenanceStartTime' :: Text -> DescribeMaintenanceStartTime
DescribeMaintenanceStartTime'
    { $sel:gatewayARN:DescribeMaintenanceStartTime' :: Text
gatewayARN =
        Text
pGatewayARN_
    }

-- | Undocumented member.
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

-- | A JSON object containing the following fields:
--
-- -   DescribeMaintenanceStartTimeOutput$DayOfMonth
--
-- -   DescribeMaintenanceStartTimeOutput$DayOfWeek
--
-- -   DescribeMaintenanceStartTimeOutput$HourOfDay
--
-- -   DescribeMaintenanceStartTimeOutput$MinuteOfHour
--
-- -   DescribeMaintenanceStartTimeOutput$Timezone
--
-- /See:/ 'newDescribeMaintenanceStartTimeResponse' smart constructor.
data DescribeMaintenanceStartTimeResponse = DescribeMaintenanceStartTimeResponse'
  { DescribeMaintenanceStartTimeResponse -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
    -- | The minute component of the maintenance start time represented as /mm/,
    -- where /mm/ is the minute (0 to 59). The minute of the hour is in the
    -- time zone of the gateway.
    DescribeMaintenanceStartTimeResponse -> Maybe Natural
minuteOfHour :: Prelude.Maybe Prelude.Natural,
    -- | The day of the month component of the maintenance start time represented
    -- as an ordinal number from 1 to 28, where 1 represents the first day of
    -- the month and 28 represents the last day of the month.
    DescribeMaintenanceStartTimeResponse -> Maybe Natural
dayOfMonth :: Prelude.Maybe Prelude.Natural,
    -- | The hour component of the maintenance start time represented as /hh/,
    -- where /hh/ is the hour (0 to 23). The hour of the day is in the time
    -- zone of the gateway.
    DescribeMaintenanceStartTimeResponse -> Maybe Natural
hourOfDay :: Prelude.Maybe Prelude.Natural,
    -- | A value that indicates the time zone that is set for the gateway. The
    -- start time and day of week specified should be in the time zone of the
    -- gateway.
    DescribeMaintenanceStartTimeResponse -> Maybe Text
timezone :: Prelude.Maybe Prelude.Text,
    -- | An ordinal number between 0 and 6 that represents the day of the week,
    -- where 0 represents Sunday and 6 represents Saturday. The day of week is
    -- in the time zone of the gateway.
    DescribeMaintenanceStartTimeResponse -> Maybe Natural
dayOfWeek :: Prelude.Maybe Prelude.Natural,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'DescribeMaintenanceStartTimeResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'gatewayARN', 'describeMaintenanceStartTimeResponse_gatewayARN' - Undocumented member.
--
-- 'minuteOfHour', 'describeMaintenanceStartTimeResponse_minuteOfHour' - The minute component of the maintenance start time represented as /mm/,
-- where /mm/ is the minute (0 to 59). The minute of the hour is in the
-- time zone of the gateway.
--
-- 'dayOfMonth', 'describeMaintenanceStartTimeResponse_dayOfMonth' - The day of the month component of the maintenance start time represented
-- as an ordinal number from 1 to 28, where 1 represents the first day of
-- the month and 28 represents the last day of the month.
--
-- 'hourOfDay', 'describeMaintenanceStartTimeResponse_hourOfDay' - The hour component of the maintenance start time represented as /hh/,
-- where /hh/ is the hour (0 to 23). The hour of the day is in the time
-- zone of the gateway.
--
-- 'timezone', 'describeMaintenanceStartTimeResponse_timezone' - A value that indicates the time zone that is set for the gateway. The
-- start time and day of week specified should be in the time zone of the
-- gateway.
--
-- 'dayOfWeek', 'describeMaintenanceStartTimeResponse_dayOfWeek' - An ordinal number between 0 and 6 that represents the day of the week,
-- where 0 represents Sunday and 6 represents Saturday. The day of week is
-- in the time zone of the gateway.
--
-- 'httpStatus', 'describeMaintenanceStartTimeResponse_httpStatus' - The response's http status code.
newDescribeMaintenanceStartTimeResponse ::
  -- | 'httpStatus'
  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_
    }

-- | Undocumented member.
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)

-- | The minute component of the maintenance start time represented as /mm/,
-- where /mm/ is the minute (0 to 59). The minute of the hour is in the
-- time zone of the gateway.
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)

-- | The day of the month component of the maintenance start time represented
-- as an ordinal number from 1 to 28, where 1 represents the first day of
-- the month and 28 represents the last day of the month.
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)

-- | The hour component of the maintenance start time represented as /hh/,
-- where /hh/ is the hour (0 to 23). The hour of the day is in the time
-- zone of the gateway.
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)

-- | A value that indicates the time zone that is set for the gateway. The
-- start time and day of week specified should be in the time zone of the
-- gateway.
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)

-- | An ordinal number between 0 and 6 that represents the day of the week,
-- where 0 represents Sunday and 6 represents Saturday. The day of week is
-- in the time zone of the gateway.
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)

-- | The response's http status code.
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