{-# 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.ArcZonalShift.ListZonalShifts
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all the active zonal shifts in Amazon Route 53 Application
-- Recovery Controller in your AWS account in this AWS Region.
--
-- This operation returns paginated results.
module Amazonka.ArcZonalShift.ListZonalShifts
  ( -- * Creating a Request
    ListZonalShifts (..),
    newListZonalShifts,

    -- * Request Lenses
    listZonalShifts_maxResults,
    listZonalShifts_nextToken,
    listZonalShifts_status,

    -- * Destructuring the Response
    ListZonalShiftsResponse (..),
    newListZonalShiftsResponse,

    -- * Response Lenses
    listZonalShiftsResponse_items,
    listZonalShiftsResponse_nextToken,
    listZonalShiftsResponse_httpStatus,
  )
where

import Amazonka.ArcZonalShift.Types
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

-- | /See:/ 'newListZonalShifts' smart constructor.
data ListZonalShifts = ListZonalShifts'
  { -- | The number of objects that you want to return with this call.
    ListZonalShifts -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Specifies that you want to receive the next page of results. Valid only
    -- if you received a @NextToken@ response in the previous request. If you
    -- did, it indicates that more output is available. Set this parameter to
    -- the value provided by the previous call\'s @NextToken@ response to
    -- request the next page of results.
    ListZonalShifts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A status for a zonal shift.
    --
    -- The @Status@ for a zonal shift can have one of the following values:
    --
    -- -   __ACTIVE__: The zonal shift is started and active.
    --
    -- -   __EXPIRED__: The zonal shift has expired (the expiry time was
    --     exceeded).
    --
    -- -   __CANCELED__: The zonal shift was canceled.
    ListZonalShifts -> Maybe ZonalShiftStatus
status :: Prelude.Maybe ZonalShiftStatus
  }
  deriving (ListZonalShifts -> ListZonalShifts -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListZonalShifts -> ListZonalShifts -> Bool
$c/= :: ListZonalShifts -> ListZonalShifts -> Bool
== :: ListZonalShifts -> ListZonalShifts -> Bool
$c== :: ListZonalShifts -> ListZonalShifts -> Bool
Prelude.Eq, ReadPrec [ListZonalShifts]
ReadPrec ListZonalShifts
Int -> ReadS ListZonalShifts
ReadS [ListZonalShifts]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListZonalShifts]
$creadListPrec :: ReadPrec [ListZonalShifts]
readPrec :: ReadPrec ListZonalShifts
$creadPrec :: ReadPrec ListZonalShifts
readList :: ReadS [ListZonalShifts]
$creadList :: ReadS [ListZonalShifts]
readsPrec :: Int -> ReadS ListZonalShifts
$creadsPrec :: Int -> ReadS ListZonalShifts
Prelude.Read, Int -> ListZonalShifts -> ShowS
[ListZonalShifts] -> ShowS
ListZonalShifts -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListZonalShifts] -> ShowS
$cshowList :: [ListZonalShifts] -> ShowS
show :: ListZonalShifts -> String
$cshow :: ListZonalShifts -> String
showsPrec :: Int -> ListZonalShifts -> ShowS
$cshowsPrec :: Int -> ListZonalShifts -> ShowS
Prelude.Show, forall x. Rep ListZonalShifts x -> ListZonalShifts
forall x. ListZonalShifts -> Rep ListZonalShifts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListZonalShifts x -> ListZonalShifts
$cfrom :: forall x. ListZonalShifts -> Rep ListZonalShifts x
Prelude.Generic)

-- |
-- Create a value of 'ListZonalShifts' 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:
--
-- 'maxResults', 'listZonalShifts_maxResults' - The number of objects that you want to return with this call.
--
-- 'nextToken', 'listZonalShifts_nextToken' - Specifies that you want to receive the next page of results. Valid only
-- if you received a @NextToken@ response in the previous request. If you
-- did, it indicates that more output is available. Set this parameter to
-- the value provided by the previous call\'s @NextToken@ response to
-- request the next page of results.
--
-- 'status', 'listZonalShifts_status' - A status for a zonal shift.
--
-- The @Status@ for a zonal shift can have one of the following values:
--
-- -   __ACTIVE__: The zonal shift is started and active.
--
-- -   __EXPIRED__: The zonal shift has expired (the expiry time was
--     exceeded).
--
-- -   __CANCELED__: The zonal shift was canceled.
newListZonalShifts ::
  ListZonalShifts
newListZonalShifts :: ListZonalShifts
newListZonalShifts =
  ListZonalShifts'
    { $sel:maxResults:ListZonalShifts' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListZonalShifts' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ListZonalShifts' :: Maybe ZonalShiftStatus
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The number of objects that you want to return with this call.
listZonalShifts_maxResults :: Lens.Lens' ListZonalShifts (Prelude.Maybe Prelude.Natural)
listZonalShifts_maxResults :: Lens' ListZonalShifts (Maybe Natural)
listZonalShifts_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListZonalShifts' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListZonalShifts' :: ListZonalShifts -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListZonalShifts
s@ListZonalShifts' {} Maybe Natural
a -> ListZonalShifts
s {$sel:maxResults:ListZonalShifts' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListZonalShifts)

-- | Specifies that you want to receive the next page of results. Valid only
-- if you received a @NextToken@ response in the previous request. If you
-- did, it indicates that more output is available. Set this parameter to
-- the value provided by the previous call\'s @NextToken@ response to
-- request the next page of results.
listZonalShifts_nextToken :: Lens.Lens' ListZonalShifts (Prelude.Maybe Prelude.Text)
listZonalShifts_nextToken :: Lens' ListZonalShifts (Maybe Text)
listZonalShifts_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListZonalShifts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListZonalShifts' :: ListZonalShifts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListZonalShifts
s@ListZonalShifts' {} Maybe Text
a -> ListZonalShifts
s {$sel:nextToken:ListZonalShifts' :: Maybe Text
nextToken = Maybe Text
a} :: ListZonalShifts)

-- | A status for a zonal shift.
--
-- The @Status@ for a zonal shift can have one of the following values:
--
-- -   __ACTIVE__: The zonal shift is started and active.
--
-- -   __EXPIRED__: The zonal shift has expired (the expiry time was
--     exceeded).
--
-- -   __CANCELED__: The zonal shift was canceled.
listZonalShifts_status :: Lens.Lens' ListZonalShifts (Prelude.Maybe ZonalShiftStatus)
listZonalShifts_status :: Lens' ListZonalShifts (Maybe ZonalShiftStatus)
listZonalShifts_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListZonalShifts' {Maybe ZonalShiftStatus
status :: Maybe ZonalShiftStatus
$sel:status:ListZonalShifts' :: ListZonalShifts -> Maybe ZonalShiftStatus
status} -> Maybe ZonalShiftStatus
status) (\s :: ListZonalShifts
s@ListZonalShifts' {} Maybe ZonalShiftStatus
a -> ListZonalShifts
s {$sel:status:ListZonalShifts' :: Maybe ZonalShiftStatus
status = Maybe ZonalShiftStatus
a} :: ListZonalShifts)

instance Core.AWSPager ListZonalShifts where
  page :: ListZonalShifts
-> AWSResponse ListZonalShifts -> Maybe ListZonalShifts
page ListZonalShifts
rq AWSResponse ListZonalShifts
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListZonalShifts
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListZonalShiftsResponse (Maybe Text)
listZonalShiftsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListZonalShifts
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListZonalShiftsResponse (Maybe [ZonalShiftSummary])
listZonalShiftsResponse_items
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListZonalShifts
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListZonalShifts (Maybe Text)
listZonalShifts_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListZonalShifts
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListZonalShiftsResponse (Maybe Text)
listZonalShiftsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListZonalShifts where
  type
    AWSResponse ListZonalShifts =
      ListZonalShiftsResponse
  request :: (Service -> Service) -> ListZonalShifts -> Request ListZonalShifts
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListZonalShifts
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListZonalShifts)))
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 [ZonalShiftSummary]
-> Maybe Text -> Int -> ListZonalShiftsResponse
ListZonalShiftsResponse'
            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
"items" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            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
"nextToken")
            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 ListZonalShifts where
  hashWithSalt :: Int -> ListZonalShifts -> Int
hashWithSalt Int
_salt ListZonalShifts' {Maybe Natural
Maybe Text
Maybe ZonalShiftStatus
status :: Maybe ZonalShiftStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:status:ListZonalShifts' :: ListZonalShifts -> Maybe ZonalShiftStatus
$sel:nextToken:ListZonalShifts' :: ListZonalShifts -> Maybe Text
$sel:maxResults:ListZonalShifts' :: ListZonalShifts -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ZonalShiftStatus
status

instance Prelude.NFData ListZonalShifts where
  rnf :: ListZonalShifts -> ()
rnf ListZonalShifts' {Maybe Natural
Maybe Text
Maybe ZonalShiftStatus
status :: Maybe ZonalShiftStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:status:ListZonalShifts' :: ListZonalShifts -> Maybe ZonalShiftStatus
$sel:nextToken:ListZonalShifts' :: ListZonalShifts -> Maybe Text
$sel:maxResults:ListZonalShifts' :: ListZonalShifts -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ZonalShiftStatus
status

instance Data.ToHeaders ListZonalShifts where
  toHeaders :: ListZonalShifts -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListZonalShifts where
  toPath :: ListZonalShifts -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/zonalshifts"

instance Data.ToQuery ListZonalShifts where
  toQuery :: ListZonalShifts -> QueryString
toQuery ListZonalShifts' {Maybe Natural
Maybe Text
Maybe ZonalShiftStatus
status :: Maybe ZonalShiftStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:status:ListZonalShifts' :: ListZonalShifts -> Maybe ZonalShiftStatus
$sel:nextToken:ListZonalShifts' :: ListZonalShifts -> Maybe Text
$sel:maxResults:ListZonalShifts' :: ListZonalShifts -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
        ByteString
"status" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe ZonalShiftStatus
status
      ]

-- | /See:/ 'newListZonalShiftsResponse' smart constructor.
data ListZonalShiftsResponse = ListZonalShiftsResponse'
  { -- | The items in the response list.
    ListZonalShiftsResponse -> Maybe [ZonalShiftSummary]
items :: Prelude.Maybe [ZonalShiftSummary],
    -- | Specifies that you want to receive the next page of results. Valid only
    -- if you received a @NextToken@ response in the previous request. If you
    -- did, it indicates that more output is available. Set this parameter to
    -- the value provided by the previous call\'s @NextToken@ response to
    -- request the next page of results.
    ListZonalShiftsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListZonalShiftsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListZonalShiftsResponse -> ListZonalShiftsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListZonalShiftsResponse -> ListZonalShiftsResponse -> Bool
$c/= :: ListZonalShiftsResponse -> ListZonalShiftsResponse -> Bool
== :: ListZonalShiftsResponse -> ListZonalShiftsResponse -> Bool
$c== :: ListZonalShiftsResponse -> ListZonalShiftsResponse -> Bool
Prelude.Eq, ReadPrec [ListZonalShiftsResponse]
ReadPrec ListZonalShiftsResponse
Int -> ReadS ListZonalShiftsResponse
ReadS [ListZonalShiftsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListZonalShiftsResponse]
$creadListPrec :: ReadPrec [ListZonalShiftsResponse]
readPrec :: ReadPrec ListZonalShiftsResponse
$creadPrec :: ReadPrec ListZonalShiftsResponse
readList :: ReadS [ListZonalShiftsResponse]
$creadList :: ReadS [ListZonalShiftsResponse]
readsPrec :: Int -> ReadS ListZonalShiftsResponse
$creadsPrec :: Int -> ReadS ListZonalShiftsResponse
Prelude.Read, Int -> ListZonalShiftsResponse -> ShowS
[ListZonalShiftsResponse] -> ShowS
ListZonalShiftsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListZonalShiftsResponse] -> ShowS
$cshowList :: [ListZonalShiftsResponse] -> ShowS
show :: ListZonalShiftsResponse -> String
$cshow :: ListZonalShiftsResponse -> String
showsPrec :: Int -> ListZonalShiftsResponse -> ShowS
$cshowsPrec :: Int -> ListZonalShiftsResponse -> ShowS
Prelude.Show, forall x. Rep ListZonalShiftsResponse x -> ListZonalShiftsResponse
forall x. ListZonalShiftsResponse -> Rep ListZonalShiftsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListZonalShiftsResponse x -> ListZonalShiftsResponse
$cfrom :: forall x. ListZonalShiftsResponse -> Rep ListZonalShiftsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListZonalShiftsResponse' 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:
--
-- 'items', 'listZonalShiftsResponse_items' - The items in the response list.
--
-- 'nextToken', 'listZonalShiftsResponse_nextToken' - Specifies that you want to receive the next page of results. Valid only
-- if you received a @NextToken@ response in the previous request. If you
-- did, it indicates that more output is available. Set this parameter to
-- the value provided by the previous call\'s @NextToken@ response to
-- request the next page of results.
--
-- 'httpStatus', 'listZonalShiftsResponse_httpStatus' - The response's http status code.
newListZonalShiftsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListZonalShiftsResponse
newListZonalShiftsResponse :: Int -> ListZonalShiftsResponse
newListZonalShiftsResponse Int
pHttpStatus_ =
  ListZonalShiftsResponse'
    { $sel:items:ListZonalShiftsResponse' :: Maybe [ZonalShiftSummary]
items = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListZonalShiftsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListZonalShiftsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The items in the response list.
listZonalShiftsResponse_items :: Lens.Lens' ListZonalShiftsResponse (Prelude.Maybe [ZonalShiftSummary])
listZonalShiftsResponse_items :: Lens' ListZonalShiftsResponse (Maybe [ZonalShiftSummary])
listZonalShiftsResponse_items = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListZonalShiftsResponse' {Maybe [ZonalShiftSummary]
items :: Maybe [ZonalShiftSummary]
$sel:items:ListZonalShiftsResponse' :: ListZonalShiftsResponse -> Maybe [ZonalShiftSummary]
items} -> Maybe [ZonalShiftSummary]
items) (\s :: ListZonalShiftsResponse
s@ListZonalShiftsResponse' {} Maybe [ZonalShiftSummary]
a -> ListZonalShiftsResponse
s {$sel:items:ListZonalShiftsResponse' :: Maybe [ZonalShiftSummary]
items = Maybe [ZonalShiftSummary]
a} :: ListZonalShiftsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies that you want to receive the next page of results. Valid only
-- if you received a @NextToken@ response in the previous request. If you
-- did, it indicates that more output is available. Set this parameter to
-- the value provided by the previous call\'s @NextToken@ response to
-- request the next page of results.
listZonalShiftsResponse_nextToken :: Lens.Lens' ListZonalShiftsResponse (Prelude.Maybe Prelude.Text)
listZonalShiftsResponse_nextToken :: Lens' ListZonalShiftsResponse (Maybe Text)
listZonalShiftsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListZonalShiftsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListZonalShiftsResponse' :: ListZonalShiftsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListZonalShiftsResponse
s@ListZonalShiftsResponse' {} Maybe Text
a -> ListZonalShiftsResponse
s {$sel:nextToken:ListZonalShiftsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListZonalShiftsResponse)

-- | The response's http status code.
listZonalShiftsResponse_httpStatus :: Lens.Lens' ListZonalShiftsResponse Prelude.Int
listZonalShiftsResponse_httpStatus :: Lens' ListZonalShiftsResponse Int
listZonalShiftsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListZonalShiftsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListZonalShiftsResponse' :: ListZonalShiftsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListZonalShiftsResponse
s@ListZonalShiftsResponse' {} Int
a -> ListZonalShiftsResponse
s {$sel:httpStatus:ListZonalShiftsResponse' :: Int
httpStatus = Int
a} :: ListZonalShiftsResponse)

instance Prelude.NFData ListZonalShiftsResponse where
  rnf :: ListZonalShiftsResponse -> ()
rnf ListZonalShiftsResponse' {Int
Maybe [ZonalShiftSummary]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
items :: Maybe [ZonalShiftSummary]
$sel:httpStatus:ListZonalShiftsResponse' :: ListZonalShiftsResponse -> Int
$sel:nextToken:ListZonalShiftsResponse' :: ListZonalShiftsResponse -> Maybe Text
$sel:items:ListZonalShiftsResponse' :: ListZonalShiftsResponse -> Maybe [ZonalShiftSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ZonalShiftSummary]
items
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus