{-# 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.Scheduler.ListScheduleGroups
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a paginated list of your schedule groups.
--
-- This operation returns paginated results.
module Amazonka.Scheduler.ListScheduleGroups
  ( -- * Creating a Request
    ListScheduleGroups (..),
    newListScheduleGroups,

    -- * Request Lenses
    listScheduleGroups_maxResults,
    listScheduleGroups_namePrefix,
    listScheduleGroups_nextToken,

    -- * Destructuring the Response
    ListScheduleGroupsResponse (..),
    newListScheduleGroupsResponse,

    -- * Response Lenses
    listScheduleGroupsResponse_nextToken,
    listScheduleGroupsResponse_httpStatus,
    listScheduleGroupsResponse_scheduleGroups,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Scheduler.Types

-- | /See:/ 'newListScheduleGroups' smart constructor.
data ListScheduleGroups = ListScheduleGroups'
  { -- | If specified, limits the number of results returned by this operation.
    -- The operation also returns a @NextToken@ which you can use in a
    -- subsequent operation to retrieve the next set of results.
    ListScheduleGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The name prefix that you can use to return a filtered list of your
    -- schedule groups.
    ListScheduleGroups -> Maybe Text
namePrefix :: Prelude.Maybe Prelude.Text,
    -- | The token returned by a previous call to retrieve the next set of
    -- results.
    ListScheduleGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListScheduleGroups -> ListScheduleGroups -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListScheduleGroups -> ListScheduleGroups -> Bool
$c/= :: ListScheduleGroups -> ListScheduleGroups -> Bool
== :: ListScheduleGroups -> ListScheduleGroups -> Bool
$c== :: ListScheduleGroups -> ListScheduleGroups -> Bool
Prelude.Eq, ReadPrec [ListScheduleGroups]
ReadPrec ListScheduleGroups
Int -> ReadS ListScheduleGroups
ReadS [ListScheduleGroups]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListScheduleGroups]
$creadListPrec :: ReadPrec [ListScheduleGroups]
readPrec :: ReadPrec ListScheduleGroups
$creadPrec :: ReadPrec ListScheduleGroups
readList :: ReadS [ListScheduleGroups]
$creadList :: ReadS [ListScheduleGroups]
readsPrec :: Int -> ReadS ListScheduleGroups
$creadsPrec :: Int -> ReadS ListScheduleGroups
Prelude.Read, Int -> ListScheduleGroups -> ShowS
[ListScheduleGroups] -> ShowS
ListScheduleGroups -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListScheduleGroups] -> ShowS
$cshowList :: [ListScheduleGroups] -> ShowS
show :: ListScheduleGroups -> String
$cshow :: ListScheduleGroups -> String
showsPrec :: Int -> ListScheduleGroups -> ShowS
$cshowsPrec :: Int -> ListScheduleGroups -> ShowS
Prelude.Show, forall x. Rep ListScheduleGroups x -> ListScheduleGroups
forall x. ListScheduleGroups -> Rep ListScheduleGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListScheduleGroups x -> ListScheduleGroups
$cfrom :: forall x. ListScheduleGroups -> Rep ListScheduleGroups x
Prelude.Generic)

-- |
-- Create a value of 'ListScheduleGroups' 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', 'listScheduleGroups_maxResults' - If specified, limits the number of results returned by this operation.
-- The operation also returns a @NextToken@ which you can use in a
-- subsequent operation to retrieve the next set of results.
--
-- 'namePrefix', 'listScheduleGroups_namePrefix' - The name prefix that you can use to return a filtered list of your
-- schedule groups.
--
-- 'nextToken', 'listScheduleGroups_nextToken' - The token returned by a previous call to retrieve the next set of
-- results.
newListScheduleGroups ::
  ListScheduleGroups
newListScheduleGroups :: ListScheduleGroups
newListScheduleGroups =
  ListScheduleGroups'
    { $sel:maxResults:ListScheduleGroups' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:namePrefix:ListScheduleGroups' :: Maybe Text
namePrefix = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListScheduleGroups' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | If specified, limits the number of results returned by this operation.
-- The operation also returns a @NextToken@ which you can use in a
-- subsequent operation to retrieve the next set of results.
listScheduleGroups_maxResults :: Lens.Lens' ListScheduleGroups (Prelude.Maybe Prelude.Natural)
listScheduleGroups_maxResults :: Lens' ListScheduleGroups (Maybe Natural)
listScheduleGroups_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListScheduleGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListScheduleGroups' :: ListScheduleGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListScheduleGroups
s@ListScheduleGroups' {} Maybe Natural
a -> ListScheduleGroups
s {$sel:maxResults:ListScheduleGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListScheduleGroups)

-- | The name prefix that you can use to return a filtered list of your
-- schedule groups.
listScheduleGroups_namePrefix :: Lens.Lens' ListScheduleGroups (Prelude.Maybe Prelude.Text)
listScheduleGroups_namePrefix :: Lens' ListScheduleGroups (Maybe Text)
listScheduleGroups_namePrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListScheduleGroups' {Maybe Text
namePrefix :: Maybe Text
$sel:namePrefix:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
namePrefix} -> Maybe Text
namePrefix) (\s :: ListScheduleGroups
s@ListScheduleGroups' {} Maybe Text
a -> ListScheduleGroups
s {$sel:namePrefix:ListScheduleGroups' :: Maybe Text
namePrefix = Maybe Text
a} :: ListScheduleGroups)

-- | The token returned by a previous call to retrieve the next set of
-- results.
listScheduleGroups_nextToken :: Lens.Lens' ListScheduleGroups (Prelude.Maybe Prelude.Text)
listScheduleGroups_nextToken :: Lens' ListScheduleGroups (Maybe Text)
listScheduleGroups_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListScheduleGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListScheduleGroups
s@ListScheduleGroups' {} Maybe Text
a -> ListScheduleGroups
s {$sel:nextToken:ListScheduleGroups' :: Maybe Text
nextToken = Maybe Text
a} :: ListScheduleGroups)

instance Core.AWSPager ListScheduleGroups where
  page :: ListScheduleGroups
-> AWSResponse ListScheduleGroups -> Maybe ListScheduleGroups
page ListScheduleGroups
rq AWSResponse ListScheduleGroups
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListScheduleGroups
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListScheduleGroupsResponse (Maybe Text)
listScheduleGroupsResponse_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 ListScheduleGroups
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListScheduleGroupsResponse [ScheduleGroupSummary]
listScheduleGroupsResponse_scheduleGroups
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListScheduleGroups
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListScheduleGroups (Maybe Text)
listScheduleGroups_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListScheduleGroups
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListScheduleGroupsResponse (Maybe Text)
listScheduleGroupsResponse_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 ListScheduleGroups where
  type
    AWSResponse ListScheduleGroups =
      ListScheduleGroupsResponse
  request :: (Service -> Service)
-> ListScheduleGroups -> Request ListScheduleGroups
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 ListScheduleGroups
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListScheduleGroups)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Int -> [ScheduleGroupSummary] -> ListScheduleGroupsResponse
ListScheduleGroupsResponse'
            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
"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))
            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
"ScheduleGroups"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListScheduleGroups where
  hashWithSalt :: Int -> ListScheduleGroups -> Int
hashWithSalt Int
_salt ListScheduleGroups' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
namePrefix :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
$sel:namePrefix:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
$sel:maxResults:ListScheduleGroups' :: ListScheduleGroups -> 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
namePrefix
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListScheduleGroups where
  rnf :: ListScheduleGroups -> ()
rnf ListScheduleGroups' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
namePrefix :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
$sel:namePrefix:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
$sel:maxResults:ListScheduleGroups' :: ListScheduleGroups -> 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
namePrefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance Data.ToHeaders ListScheduleGroups where
  toHeaders :: ListScheduleGroups -> 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 ListScheduleGroups where
  toPath :: ListScheduleGroups -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/schedule-groups"

instance Data.ToQuery ListScheduleGroups where
  toQuery :: ListScheduleGroups -> QueryString
toQuery ListScheduleGroups' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
namePrefix :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
$sel:namePrefix:ListScheduleGroups' :: ListScheduleGroups -> Maybe Text
$sel:maxResults:ListScheduleGroups' :: ListScheduleGroups -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"NamePrefix" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
namePrefix,
        ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListScheduleGroupsResponse' smart constructor.
data ListScheduleGroupsResponse = ListScheduleGroupsResponse'
  { -- | Indicates whether there are additional results to retrieve. If the value
    -- is null, there are no more results.
    ListScheduleGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListScheduleGroupsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The schedule groups that match the specified criteria.
    ListScheduleGroupsResponse -> [ScheduleGroupSummary]
scheduleGroups :: [ScheduleGroupSummary]
  }
  deriving (ListScheduleGroupsResponse -> ListScheduleGroupsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListScheduleGroupsResponse -> ListScheduleGroupsResponse -> Bool
$c/= :: ListScheduleGroupsResponse -> ListScheduleGroupsResponse -> Bool
== :: ListScheduleGroupsResponse -> ListScheduleGroupsResponse -> Bool
$c== :: ListScheduleGroupsResponse -> ListScheduleGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListScheduleGroupsResponse]
ReadPrec ListScheduleGroupsResponse
Int -> ReadS ListScheduleGroupsResponse
ReadS [ListScheduleGroupsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListScheduleGroupsResponse]
$creadListPrec :: ReadPrec [ListScheduleGroupsResponse]
readPrec :: ReadPrec ListScheduleGroupsResponse
$creadPrec :: ReadPrec ListScheduleGroupsResponse
readList :: ReadS [ListScheduleGroupsResponse]
$creadList :: ReadS [ListScheduleGroupsResponse]
readsPrec :: Int -> ReadS ListScheduleGroupsResponse
$creadsPrec :: Int -> ReadS ListScheduleGroupsResponse
Prelude.Read, Int -> ListScheduleGroupsResponse -> ShowS
[ListScheduleGroupsResponse] -> ShowS
ListScheduleGroupsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListScheduleGroupsResponse] -> ShowS
$cshowList :: [ListScheduleGroupsResponse] -> ShowS
show :: ListScheduleGroupsResponse -> String
$cshow :: ListScheduleGroupsResponse -> String
showsPrec :: Int -> ListScheduleGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListScheduleGroupsResponse -> ShowS
Prelude.Show, forall x.
Rep ListScheduleGroupsResponse x -> ListScheduleGroupsResponse
forall x.
ListScheduleGroupsResponse -> Rep ListScheduleGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListScheduleGroupsResponse x -> ListScheduleGroupsResponse
$cfrom :: forall x.
ListScheduleGroupsResponse -> Rep ListScheduleGroupsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListScheduleGroupsResponse' 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:
--
-- 'nextToken', 'listScheduleGroupsResponse_nextToken' - Indicates whether there are additional results to retrieve. If the value
-- is null, there are no more results.
--
-- 'httpStatus', 'listScheduleGroupsResponse_httpStatus' - The response's http status code.
--
-- 'scheduleGroups', 'listScheduleGroupsResponse_scheduleGroups' - The schedule groups that match the specified criteria.
newListScheduleGroupsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListScheduleGroupsResponse
newListScheduleGroupsResponse :: Int -> ListScheduleGroupsResponse
newListScheduleGroupsResponse Int
pHttpStatus_ =
  ListScheduleGroupsResponse'
    { $sel:nextToken:ListScheduleGroupsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListScheduleGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:scheduleGroups:ListScheduleGroupsResponse' :: [ScheduleGroupSummary]
scheduleGroups = forall a. Monoid a => a
Prelude.mempty
    }

-- | Indicates whether there are additional results to retrieve. If the value
-- is null, there are no more results.
listScheduleGroupsResponse_nextToken :: Lens.Lens' ListScheduleGroupsResponse (Prelude.Maybe Prelude.Text)
listScheduleGroupsResponse_nextToken :: Lens' ListScheduleGroupsResponse (Maybe Text)
listScheduleGroupsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListScheduleGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListScheduleGroupsResponse' :: ListScheduleGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListScheduleGroupsResponse
s@ListScheduleGroupsResponse' {} Maybe Text
a -> ListScheduleGroupsResponse
s {$sel:nextToken:ListScheduleGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListScheduleGroupsResponse)

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

-- | The schedule groups that match the specified criteria.
listScheduleGroupsResponse_scheduleGroups :: Lens.Lens' ListScheduleGroupsResponse [ScheduleGroupSummary]
listScheduleGroupsResponse_scheduleGroups :: Lens' ListScheduleGroupsResponse [ScheduleGroupSummary]
listScheduleGroupsResponse_scheduleGroups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListScheduleGroupsResponse' {[ScheduleGroupSummary]
scheduleGroups :: [ScheduleGroupSummary]
$sel:scheduleGroups:ListScheduleGroupsResponse' :: ListScheduleGroupsResponse -> [ScheduleGroupSummary]
scheduleGroups} -> [ScheduleGroupSummary]
scheduleGroups) (\s :: ListScheduleGroupsResponse
s@ListScheduleGroupsResponse' {} [ScheduleGroupSummary]
a -> ListScheduleGroupsResponse
s {$sel:scheduleGroups:ListScheduleGroupsResponse' :: [ScheduleGroupSummary]
scheduleGroups = [ScheduleGroupSummary]
a} :: ListScheduleGroupsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListScheduleGroupsResponse where
  rnf :: ListScheduleGroupsResponse -> ()
rnf ListScheduleGroupsResponse' {Int
[ScheduleGroupSummary]
Maybe Text
scheduleGroups :: [ScheduleGroupSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:scheduleGroups:ListScheduleGroupsResponse' :: ListScheduleGroupsResponse -> [ScheduleGroupSummary]
$sel:httpStatus:ListScheduleGroupsResponse' :: ListScheduleGroupsResponse -> Int
$sel:nextToken:ListScheduleGroupsResponse' :: ListScheduleGroupsResponse -> Maybe Text
..} =
    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
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [ScheduleGroupSummary]
scheduleGroups