{-# 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.SSMIncidents.ListReplicationSets
-- 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)
--
-- Lists details about the replication set configured in your account.
--
-- This operation returns paginated results.
module Amazonka.SSMIncidents.ListReplicationSets
  ( -- * Creating a Request
    ListReplicationSets (..),
    newListReplicationSets,

    -- * Request Lenses
    listReplicationSets_nextToken,
    listReplicationSets_maxResults,

    -- * Destructuring the Response
    ListReplicationSetsResponse (..),
    newListReplicationSetsResponse,

    -- * Response Lenses
    listReplicationSetsResponse_nextToken,
    listReplicationSetsResponse_httpStatus,
    listReplicationSetsResponse_replicationSetArns,
  )
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.SSMIncidents.Types

-- | /See:/ 'newListReplicationSets' smart constructor.
data ListReplicationSets = ListReplicationSets'
  { -- | The pagination token to continue to the next page of results.
    ListReplicationSets -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results per page.
    ListReplicationSets -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListReplicationSets -> ListReplicationSets -> Bool
(ListReplicationSets -> ListReplicationSets -> Bool)
-> (ListReplicationSets -> ListReplicationSets -> Bool)
-> Eq ListReplicationSets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReplicationSets -> ListReplicationSets -> Bool
$c/= :: ListReplicationSets -> ListReplicationSets -> Bool
== :: ListReplicationSets -> ListReplicationSets -> Bool
$c== :: ListReplicationSets -> ListReplicationSets -> Bool
Prelude.Eq, ReadPrec [ListReplicationSets]
ReadPrec ListReplicationSets
Int -> ReadS ListReplicationSets
ReadS [ListReplicationSets]
(Int -> ReadS ListReplicationSets)
-> ReadS [ListReplicationSets]
-> ReadPrec ListReplicationSets
-> ReadPrec [ListReplicationSets]
-> Read ListReplicationSets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReplicationSets]
$creadListPrec :: ReadPrec [ListReplicationSets]
readPrec :: ReadPrec ListReplicationSets
$creadPrec :: ReadPrec ListReplicationSets
readList :: ReadS [ListReplicationSets]
$creadList :: ReadS [ListReplicationSets]
readsPrec :: Int -> ReadS ListReplicationSets
$creadsPrec :: Int -> ReadS ListReplicationSets
Prelude.Read, Int -> ListReplicationSets -> ShowS
[ListReplicationSets] -> ShowS
ListReplicationSets -> String
(Int -> ListReplicationSets -> ShowS)
-> (ListReplicationSets -> String)
-> ([ListReplicationSets] -> ShowS)
-> Show ListReplicationSets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReplicationSets] -> ShowS
$cshowList :: [ListReplicationSets] -> ShowS
show :: ListReplicationSets -> String
$cshow :: ListReplicationSets -> String
showsPrec :: Int -> ListReplicationSets -> ShowS
$cshowsPrec :: Int -> ListReplicationSets -> ShowS
Prelude.Show, (forall x. ListReplicationSets -> Rep ListReplicationSets x)
-> (forall x. Rep ListReplicationSets x -> ListReplicationSets)
-> Generic ListReplicationSets
forall x. Rep ListReplicationSets x -> ListReplicationSets
forall x. ListReplicationSets -> Rep ListReplicationSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListReplicationSets x -> ListReplicationSets
$cfrom :: forall x. ListReplicationSets -> Rep ListReplicationSets x
Prelude.Generic)

-- |
-- Create a value of 'ListReplicationSets' 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', 'listReplicationSets_nextToken' - The pagination token to continue to the next page of results.
--
-- 'maxResults', 'listReplicationSets_maxResults' - The maximum number of results per page.
newListReplicationSets ::
  ListReplicationSets
newListReplicationSets :: ListReplicationSets
newListReplicationSets =
  ListReplicationSets' :: Maybe Text -> Maybe Natural -> ListReplicationSets
ListReplicationSets'
    { $sel:nextToken:ListReplicationSets' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListReplicationSets' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The pagination token to continue to the next page of results.
listReplicationSets_nextToken :: Lens.Lens' ListReplicationSets (Prelude.Maybe Prelude.Text)
listReplicationSets_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReplicationSets -> f ListReplicationSets
listReplicationSets_nextToken = (ListReplicationSets -> Maybe Text)
-> (ListReplicationSets -> Maybe Text -> ListReplicationSets)
-> Lens
     ListReplicationSets ListReplicationSets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReplicationSets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReplicationSets' :: ListReplicationSets -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReplicationSets
s@ListReplicationSets' {} Maybe Text
a -> ListReplicationSets
s {$sel:nextToken:ListReplicationSets' :: Maybe Text
nextToken = Maybe Text
a} :: ListReplicationSets)

-- | The maximum number of results per page.
listReplicationSets_maxResults :: Lens.Lens' ListReplicationSets (Prelude.Maybe Prelude.Natural)
listReplicationSets_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListReplicationSets -> f ListReplicationSets
listReplicationSets_maxResults = (ListReplicationSets -> Maybe Natural)
-> (ListReplicationSets -> Maybe Natural -> ListReplicationSets)
-> Lens
     ListReplicationSets
     ListReplicationSets
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReplicationSets' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListReplicationSets' :: ListReplicationSets -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListReplicationSets
s@ListReplicationSets' {} Maybe Natural
a -> ListReplicationSets
s {$sel:maxResults:ListReplicationSets' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListReplicationSets)

instance Core.AWSPager ListReplicationSets where
  page :: ListReplicationSets
-> AWSResponse ListReplicationSets -> Maybe ListReplicationSets
page ListReplicationSets
rq AWSResponse ListReplicationSets
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListReplicationSets
ListReplicationSetsResponse
rs
            ListReplicationSetsResponse
-> Getting (First Text) ListReplicationSetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListReplicationSetsResponse
-> Const (First Text) ListReplicationSetsResponse
Lens' ListReplicationSetsResponse (Maybe Text)
listReplicationSetsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListReplicationSetsResponse
 -> Const (First Text) ListReplicationSetsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListReplicationSetsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListReplicationSets
forall a. Maybe a
Prelude.Nothing
    | [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListReplicationSets
ListReplicationSetsResponse
rs
            ListReplicationSetsResponse
-> Getting [Text] ListReplicationSetsResponse [Text] -> [Text]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [Text] ListReplicationSetsResponse [Text]
Lens' ListReplicationSetsResponse [Text]
listReplicationSetsResponse_replicationSetArns
        ) =
      Maybe ListReplicationSets
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListReplicationSets -> Maybe ListReplicationSets
forall a. a -> Maybe a
Prelude.Just (ListReplicationSets -> Maybe ListReplicationSets)
-> ListReplicationSets -> Maybe ListReplicationSets
forall a b. (a -> b) -> a -> b
Prelude.$
        ListReplicationSets
rq
          ListReplicationSets
-> (ListReplicationSets -> ListReplicationSets)
-> ListReplicationSets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListReplicationSets -> Identity ListReplicationSets
Lens
  ListReplicationSets ListReplicationSets (Maybe Text) (Maybe Text)
listReplicationSets_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListReplicationSets -> Identity ListReplicationSets)
-> Maybe Text -> ListReplicationSets -> ListReplicationSets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListReplicationSets
ListReplicationSetsResponse
rs
          ListReplicationSetsResponse
-> Getting (First Text) ListReplicationSetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListReplicationSetsResponse
-> Const (First Text) ListReplicationSetsResponse
Lens' ListReplicationSetsResponse (Maybe Text)
listReplicationSetsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListReplicationSetsResponse
 -> Const (First Text) ListReplicationSetsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListReplicationSetsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListReplicationSets where
  type
    AWSResponse ListReplicationSets =
      ListReplicationSetsResponse
  request :: ListReplicationSets -> Request ListReplicationSets
request = Service -> ListReplicationSets -> Request ListReplicationSets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListReplicationSets
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListReplicationSets)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListReplicationSets))
-> Logger
-> Service
-> Proxy ListReplicationSets
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListReplicationSets)))
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 -> Int -> [Text] -> ListReplicationSetsResponse
ListReplicationSetsResponse'
            (Maybe Text -> Int -> [Text] -> ListReplicationSetsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [Text] -> ListReplicationSetsResponse)
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
"nextToken")
            Either String (Int -> [Text] -> ListReplicationSetsResponse)
-> Either String Int
-> Either String ([Text] -> ListReplicationSetsResponse)
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))
            Either String ([Text] -> ListReplicationSetsResponse)
-> Either String [Text]
-> Either String ListReplicationSetsResponse
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
"replicationSetArns"
                            Either String (Maybe [Text]) -> [Text] -> Either String [Text]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListReplicationSets

instance Prelude.NFData ListReplicationSets

instance Core.ToHeaders ListReplicationSets where
  toHeaders :: ListReplicationSets -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListReplicationSets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 ListReplicationSets where
  toJSON :: ListReplicationSets -> Value
toJSON ListReplicationSets' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListReplicationSets' :: ListReplicationSets -> Maybe Natural
$sel:nextToken:ListReplicationSets' :: ListReplicationSets -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"maxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

instance Core.ToPath ListReplicationSets where
  toPath :: ListReplicationSets -> ByteString
toPath = ByteString -> ListReplicationSets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/listReplicationSets"

instance Core.ToQuery ListReplicationSets where
  toQuery :: ListReplicationSets -> QueryString
toQuery = QueryString -> ListReplicationSets -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListReplicationSetsResponse' smart constructor.
data ListReplicationSetsResponse = ListReplicationSetsResponse'
  { -- | The pagination token to continue to the next page of results.
    ListReplicationSetsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListReplicationSetsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the list replication set.
    ListReplicationSetsResponse -> [Text]
replicationSetArns :: [Prelude.Text]
  }
  deriving (ListReplicationSetsResponse -> ListReplicationSetsResponse -> Bool
(ListReplicationSetsResponse
 -> ListReplicationSetsResponse -> Bool)
-> (ListReplicationSetsResponse
    -> ListReplicationSetsResponse -> Bool)
-> Eq ListReplicationSetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReplicationSetsResponse -> ListReplicationSetsResponse -> Bool
$c/= :: ListReplicationSetsResponse -> ListReplicationSetsResponse -> Bool
== :: ListReplicationSetsResponse -> ListReplicationSetsResponse -> Bool
$c== :: ListReplicationSetsResponse -> ListReplicationSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListReplicationSetsResponse]
ReadPrec ListReplicationSetsResponse
Int -> ReadS ListReplicationSetsResponse
ReadS [ListReplicationSetsResponse]
(Int -> ReadS ListReplicationSetsResponse)
-> ReadS [ListReplicationSetsResponse]
-> ReadPrec ListReplicationSetsResponse
-> ReadPrec [ListReplicationSetsResponse]
-> Read ListReplicationSetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReplicationSetsResponse]
$creadListPrec :: ReadPrec [ListReplicationSetsResponse]
readPrec :: ReadPrec ListReplicationSetsResponse
$creadPrec :: ReadPrec ListReplicationSetsResponse
readList :: ReadS [ListReplicationSetsResponse]
$creadList :: ReadS [ListReplicationSetsResponse]
readsPrec :: Int -> ReadS ListReplicationSetsResponse
$creadsPrec :: Int -> ReadS ListReplicationSetsResponse
Prelude.Read, Int -> ListReplicationSetsResponse -> ShowS
[ListReplicationSetsResponse] -> ShowS
ListReplicationSetsResponse -> String
(Int -> ListReplicationSetsResponse -> ShowS)
-> (ListReplicationSetsResponse -> String)
-> ([ListReplicationSetsResponse] -> ShowS)
-> Show ListReplicationSetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReplicationSetsResponse] -> ShowS
$cshowList :: [ListReplicationSetsResponse] -> ShowS
show :: ListReplicationSetsResponse -> String
$cshow :: ListReplicationSetsResponse -> String
showsPrec :: Int -> ListReplicationSetsResponse -> ShowS
$cshowsPrec :: Int -> ListReplicationSetsResponse -> ShowS
Prelude.Show, (forall x.
 ListReplicationSetsResponse -> Rep ListReplicationSetsResponse x)
-> (forall x.
    Rep ListReplicationSetsResponse x -> ListReplicationSetsResponse)
-> Generic ListReplicationSetsResponse
forall x.
Rep ListReplicationSetsResponse x -> ListReplicationSetsResponse
forall x.
ListReplicationSetsResponse -> Rep ListReplicationSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListReplicationSetsResponse x -> ListReplicationSetsResponse
$cfrom :: forall x.
ListReplicationSetsResponse -> Rep ListReplicationSetsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListReplicationSetsResponse' 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', 'listReplicationSetsResponse_nextToken' - The pagination token to continue to the next page of results.
--
-- 'httpStatus', 'listReplicationSetsResponse_httpStatus' - The response's http status code.
--
-- 'replicationSetArns', 'listReplicationSetsResponse_replicationSetArns' - The Amazon Resource Name (ARN) of the list replication set.
newListReplicationSetsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListReplicationSetsResponse
newListReplicationSetsResponse :: Int -> ListReplicationSetsResponse
newListReplicationSetsResponse Int
pHttpStatus_ =
  ListReplicationSetsResponse' :: Maybe Text -> Int -> [Text] -> ListReplicationSetsResponse
ListReplicationSetsResponse'
    { $sel:nextToken:ListReplicationSetsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListReplicationSetsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:replicationSetArns:ListReplicationSetsResponse' :: [Text]
replicationSetArns = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The pagination token to continue to the next page of results.
listReplicationSetsResponse_nextToken :: Lens.Lens' ListReplicationSetsResponse (Prelude.Maybe Prelude.Text)
listReplicationSetsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReplicationSetsResponse -> f ListReplicationSetsResponse
listReplicationSetsResponse_nextToken = (ListReplicationSetsResponse -> Maybe Text)
-> (ListReplicationSetsResponse
    -> Maybe Text -> ListReplicationSetsResponse)
-> Lens' ListReplicationSetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReplicationSetsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReplicationSetsResponse' :: ListReplicationSetsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReplicationSetsResponse
s@ListReplicationSetsResponse' {} Maybe Text
a -> ListReplicationSetsResponse
s {$sel:nextToken:ListReplicationSetsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListReplicationSetsResponse)

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

-- | The Amazon Resource Name (ARN) of the list replication set.
listReplicationSetsResponse_replicationSetArns :: Lens.Lens' ListReplicationSetsResponse [Prelude.Text]
listReplicationSetsResponse_replicationSetArns :: ([Text] -> f [Text])
-> ListReplicationSetsResponse -> f ListReplicationSetsResponse
listReplicationSetsResponse_replicationSetArns = (ListReplicationSetsResponse -> [Text])
-> (ListReplicationSetsResponse
    -> [Text] -> ListReplicationSetsResponse)
-> Lens' ListReplicationSetsResponse [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReplicationSetsResponse' {[Text]
replicationSetArns :: [Text]
$sel:replicationSetArns:ListReplicationSetsResponse' :: ListReplicationSetsResponse -> [Text]
replicationSetArns} -> [Text]
replicationSetArns) (\s :: ListReplicationSetsResponse
s@ListReplicationSetsResponse' {} [Text]
a -> ListReplicationSetsResponse
s {$sel:replicationSetArns:ListReplicationSetsResponse' :: [Text]
replicationSetArns = [Text]
a} :: ListReplicationSetsResponse) (([Text] -> f [Text])
 -> ListReplicationSetsResponse -> f ListReplicationSetsResponse)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> ListReplicationSetsResponse
-> f ListReplicationSetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListReplicationSetsResponse