{-# 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.HealthLake.ListFHIRDatastores
-- 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 all FHIR Data Stores that are in the user’s account, regardless of
-- Data Store status.
module Amazonka.HealthLake.ListFHIRDatastores
  ( -- * Creating a Request
    ListFHIRDatastores (..),
    newListFHIRDatastores,

    -- * Request Lenses
    listFHIRDatastores_nextToken,
    listFHIRDatastores_filter,
    listFHIRDatastores_maxResults,

    -- * Destructuring the Response
    ListFHIRDatastoresResponse (..),
    newListFHIRDatastoresResponse,

    -- * Response Lenses
    listFHIRDatastoresResponse_nextToken,
    listFHIRDatastoresResponse_httpStatus,
    listFHIRDatastoresResponse_datastorePropertiesList,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.HealthLake.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListFHIRDatastores' smart constructor.
data ListFHIRDatastores = ListFHIRDatastores'
  { -- | Fetches the next page of Data Stores when results are paginated.
    ListFHIRDatastores -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Lists all filters associated with a FHIR Data Store request.
    ListFHIRDatastores -> Maybe DatastoreFilter
filter' :: Prelude.Maybe DatastoreFilter,
    -- | The maximum number of Data Stores returned in a single page of a
    -- ListFHIRDatastoresRequest call.
    ListFHIRDatastores -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListFHIRDatastores -> ListFHIRDatastores -> Bool
(ListFHIRDatastores -> ListFHIRDatastores -> Bool)
-> (ListFHIRDatastores -> ListFHIRDatastores -> Bool)
-> Eq ListFHIRDatastores
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFHIRDatastores -> ListFHIRDatastores -> Bool
$c/= :: ListFHIRDatastores -> ListFHIRDatastores -> Bool
== :: ListFHIRDatastores -> ListFHIRDatastores -> Bool
$c== :: ListFHIRDatastores -> ListFHIRDatastores -> Bool
Prelude.Eq, ReadPrec [ListFHIRDatastores]
ReadPrec ListFHIRDatastores
Int -> ReadS ListFHIRDatastores
ReadS [ListFHIRDatastores]
(Int -> ReadS ListFHIRDatastores)
-> ReadS [ListFHIRDatastores]
-> ReadPrec ListFHIRDatastores
-> ReadPrec [ListFHIRDatastores]
-> Read ListFHIRDatastores
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFHIRDatastores]
$creadListPrec :: ReadPrec [ListFHIRDatastores]
readPrec :: ReadPrec ListFHIRDatastores
$creadPrec :: ReadPrec ListFHIRDatastores
readList :: ReadS [ListFHIRDatastores]
$creadList :: ReadS [ListFHIRDatastores]
readsPrec :: Int -> ReadS ListFHIRDatastores
$creadsPrec :: Int -> ReadS ListFHIRDatastores
Prelude.Read, Int -> ListFHIRDatastores -> ShowS
[ListFHIRDatastores] -> ShowS
ListFHIRDatastores -> String
(Int -> ListFHIRDatastores -> ShowS)
-> (ListFHIRDatastores -> String)
-> ([ListFHIRDatastores] -> ShowS)
-> Show ListFHIRDatastores
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFHIRDatastores] -> ShowS
$cshowList :: [ListFHIRDatastores] -> ShowS
show :: ListFHIRDatastores -> String
$cshow :: ListFHIRDatastores -> String
showsPrec :: Int -> ListFHIRDatastores -> ShowS
$cshowsPrec :: Int -> ListFHIRDatastores -> ShowS
Prelude.Show, (forall x. ListFHIRDatastores -> Rep ListFHIRDatastores x)
-> (forall x. Rep ListFHIRDatastores x -> ListFHIRDatastores)
-> Generic ListFHIRDatastores
forall x. Rep ListFHIRDatastores x -> ListFHIRDatastores
forall x. ListFHIRDatastores -> Rep ListFHIRDatastores x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFHIRDatastores x -> ListFHIRDatastores
$cfrom :: forall x. ListFHIRDatastores -> Rep ListFHIRDatastores x
Prelude.Generic)

-- |
-- Create a value of 'ListFHIRDatastores' 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', 'listFHIRDatastores_nextToken' - Fetches the next page of Data Stores when results are paginated.
--
-- 'filter'', 'listFHIRDatastores_filter' - Lists all filters associated with a FHIR Data Store request.
--
-- 'maxResults', 'listFHIRDatastores_maxResults' - The maximum number of Data Stores returned in a single page of a
-- ListFHIRDatastoresRequest call.
newListFHIRDatastores ::
  ListFHIRDatastores
newListFHIRDatastores :: ListFHIRDatastores
newListFHIRDatastores =
  ListFHIRDatastores' :: Maybe Text
-> Maybe DatastoreFilter -> Maybe Natural -> ListFHIRDatastores
ListFHIRDatastores'
    { $sel:nextToken:ListFHIRDatastores' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filter':ListFHIRDatastores' :: Maybe DatastoreFilter
filter' = Maybe DatastoreFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListFHIRDatastores' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Fetches the next page of Data Stores when results are paginated.
listFHIRDatastores_nextToken :: Lens.Lens' ListFHIRDatastores (Prelude.Maybe Prelude.Text)
listFHIRDatastores_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFHIRDatastores -> f ListFHIRDatastores
listFHIRDatastores_nextToken = (ListFHIRDatastores -> Maybe Text)
-> (ListFHIRDatastores -> Maybe Text -> ListFHIRDatastores)
-> Lens
     ListFHIRDatastores ListFHIRDatastores (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRDatastores' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFHIRDatastores' :: ListFHIRDatastores -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFHIRDatastores
s@ListFHIRDatastores' {} Maybe Text
a -> ListFHIRDatastores
s {$sel:nextToken:ListFHIRDatastores' :: Maybe Text
nextToken = Maybe Text
a} :: ListFHIRDatastores)

-- | Lists all filters associated with a FHIR Data Store request.
listFHIRDatastores_filter :: Lens.Lens' ListFHIRDatastores (Prelude.Maybe DatastoreFilter)
listFHIRDatastores_filter :: (Maybe DatastoreFilter -> f (Maybe DatastoreFilter))
-> ListFHIRDatastores -> f ListFHIRDatastores
listFHIRDatastores_filter = (ListFHIRDatastores -> Maybe DatastoreFilter)
-> (ListFHIRDatastores
    -> Maybe DatastoreFilter -> ListFHIRDatastores)
-> Lens
     ListFHIRDatastores
     ListFHIRDatastores
     (Maybe DatastoreFilter)
     (Maybe DatastoreFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRDatastores' {Maybe DatastoreFilter
filter' :: Maybe DatastoreFilter
$sel:filter':ListFHIRDatastores' :: ListFHIRDatastores -> Maybe DatastoreFilter
filter'} -> Maybe DatastoreFilter
filter') (\s :: ListFHIRDatastores
s@ListFHIRDatastores' {} Maybe DatastoreFilter
a -> ListFHIRDatastores
s {$sel:filter':ListFHIRDatastores' :: Maybe DatastoreFilter
filter' = Maybe DatastoreFilter
a} :: ListFHIRDatastores)

-- | The maximum number of Data Stores returned in a single page of a
-- ListFHIRDatastoresRequest call.
listFHIRDatastores_maxResults :: Lens.Lens' ListFHIRDatastores (Prelude.Maybe Prelude.Natural)
listFHIRDatastores_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListFHIRDatastores -> f ListFHIRDatastores
listFHIRDatastores_maxResults = (ListFHIRDatastores -> Maybe Natural)
-> (ListFHIRDatastores -> Maybe Natural -> ListFHIRDatastores)
-> Lens
     ListFHIRDatastores
     ListFHIRDatastores
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRDatastores' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFHIRDatastores' :: ListFHIRDatastores -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFHIRDatastores
s@ListFHIRDatastores' {} Maybe Natural
a -> ListFHIRDatastores
s {$sel:maxResults:ListFHIRDatastores' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFHIRDatastores)

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

instance Prelude.Hashable ListFHIRDatastores

instance Prelude.NFData ListFHIRDatastores

instance Core.ToHeaders ListFHIRDatastores where
  toHeaders :: ListFHIRDatastores -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListFHIRDatastores -> 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
"HealthLake.ListFHIRDatastores" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListFHIRDatastores where
  toJSON :: ListFHIRDatastores -> Value
toJSON ListFHIRDatastores' {Maybe Natural
Maybe Text
Maybe DatastoreFilter
maxResults :: Maybe Natural
filter' :: Maybe DatastoreFilter
nextToken :: Maybe Text
$sel:maxResults:ListFHIRDatastores' :: ListFHIRDatastores -> Maybe Natural
$sel:filter':ListFHIRDatastores' :: ListFHIRDatastores -> Maybe DatastoreFilter
$sel:nextToken:ListFHIRDatastores' :: ListFHIRDatastores -> 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
"Filter" Text -> DatastoreFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (DatastoreFilter -> Pair) -> Maybe DatastoreFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatastoreFilter
filter',
            (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 ListFHIRDatastores where
  toPath :: ListFHIRDatastores -> ByteString
toPath = ByteString -> ListFHIRDatastores -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListFHIRDatastoresResponse' smart constructor.
data ListFHIRDatastoresResponse = ListFHIRDatastoresResponse'
  { -- | Pagination token that can be used to retrieve the next page of results.
    ListFHIRDatastoresResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListFHIRDatastoresResponse -> Int
httpStatus :: Prelude.Int,
    -- | All properties associated with the listed Data Stores.
    ListFHIRDatastoresResponse -> [DatastoreProperties]
datastorePropertiesList :: [DatastoreProperties]
  }
  deriving (ListFHIRDatastoresResponse -> ListFHIRDatastoresResponse -> Bool
(ListFHIRDatastoresResponse -> ListFHIRDatastoresResponse -> Bool)
-> (ListFHIRDatastoresResponse
    -> ListFHIRDatastoresResponse -> Bool)
-> Eq ListFHIRDatastoresResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFHIRDatastoresResponse -> ListFHIRDatastoresResponse -> Bool
$c/= :: ListFHIRDatastoresResponse -> ListFHIRDatastoresResponse -> Bool
== :: ListFHIRDatastoresResponse -> ListFHIRDatastoresResponse -> Bool
$c== :: ListFHIRDatastoresResponse -> ListFHIRDatastoresResponse -> Bool
Prelude.Eq, ReadPrec [ListFHIRDatastoresResponse]
ReadPrec ListFHIRDatastoresResponse
Int -> ReadS ListFHIRDatastoresResponse
ReadS [ListFHIRDatastoresResponse]
(Int -> ReadS ListFHIRDatastoresResponse)
-> ReadS [ListFHIRDatastoresResponse]
-> ReadPrec ListFHIRDatastoresResponse
-> ReadPrec [ListFHIRDatastoresResponse]
-> Read ListFHIRDatastoresResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFHIRDatastoresResponse]
$creadListPrec :: ReadPrec [ListFHIRDatastoresResponse]
readPrec :: ReadPrec ListFHIRDatastoresResponse
$creadPrec :: ReadPrec ListFHIRDatastoresResponse
readList :: ReadS [ListFHIRDatastoresResponse]
$creadList :: ReadS [ListFHIRDatastoresResponse]
readsPrec :: Int -> ReadS ListFHIRDatastoresResponse
$creadsPrec :: Int -> ReadS ListFHIRDatastoresResponse
Prelude.Read, Int -> ListFHIRDatastoresResponse -> ShowS
[ListFHIRDatastoresResponse] -> ShowS
ListFHIRDatastoresResponse -> String
(Int -> ListFHIRDatastoresResponse -> ShowS)
-> (ListFHIRDatastoresResponse -> String)
-> ([ListFHIRDatastoresResponse] -> ShowS)
-> Show ListFHIRDatastoresResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFHIRDatastoresResponse] -> ShowS
$cshowList :: [ListFHIRDatastoresResponse] -> ShowS
show :: ListFHIRDatastoresResponse -> String
$cshow :: ListFHIRDatastoresResponse -> String
showsPrec :: Int -> ListFHIRDatastoresResponse -> ShowS
$cshowsPrec :: Int -> ListFHIRDatastoresResponse -> ShowS
Prelude.Show, (forall x.
 ListFHIRDatastoresResponse -> Rep ListFHIRDatastoresResponse x)
-> (forall x.
    Rep ListFHIRDatastoresResponse x -> ListFHIRDatastoresResponse)
-> Generic ListFHIRDatastoresResponse
forall x.
Rep ListFHIRDatastoresResponse x -> ListFHIRDatastoresResponse
forall x.
ListFHIRDatastoresResponse -> Rep ListFHIRDatastoresResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFHIRDatastoresResponse x -> ListFHIRDatastoresResponse
$cfrom :: forall x.
ListFHIRDatastoresResponse -> Rep ListFHIRDatastoresResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFHIRDatastoresResponse' 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', 'listFHIRDatastoresResponse_nextToken' - Pagination token that can be used to retrieve the next page of results.
--
-- 'httpStatus', 'listFHIRDatastoresResponse_httpStatus' - The response's http status code.
--
-- 'datastorePropertiesList', 'listFHIRDatastoresResponse_datastorePropertiesList' - All properties associated with the listed Data Stores.
newListFHIRDatastoresResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFHIRDatastoresResponse
newListFHIRDatastoresResponse :: Int -> ListFHIRDatastoresResponse
newListFHIRDatastoresResponse Int
pHttpStatus_ =
  ListFHIRDatastoresResponse' :: Maybe Text
-> Int -> [DatastoreProperties] -> ListFHIRDatastoresResponse
ListFHIRDatastoresResponse'
    { $sel:nextToken:ListFHIRDatastoresResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListFHIRDatastoresResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:datastorePropertiesList:ListFHIRDatastoresResponse' :: [DatastoreProperties]
datastorePropertiesList = [DatastoreProperties]
forall a. Monoid a => a
Prelude.mempty
    }

-- | Pagination token that can be used to retrieve the next page of results.
listFHIRDatastoresResponse_nextToken :: Lens.Lens' ListFHIRDatastoresResponse (Prelude.Maybe Prelude.Text)
listFHIRDatastoresResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFHIRDatastoresResponse -> f ListFHIRDatastoresResponse
listFHIRDatastoresResponse_nextToken = (ListFHIRDatastoresResponse -> Maybe Text)
-> (ListFHIRDatastoresResponse
    -> Maybe Text -> ListFHIRDatastoresResponse)
-> Lens
     ListFHIRDatastoresResponse
     ListFHIRDatastoresResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRDatastoresResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFHIRDatastoresResponse' :: ListFHIRDatastoresResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFHIRDatastoresResponse
s@ListFHIRDatastoresResponse' {} Maybe Text
a -> ListFHIRDatastoresResponse
s {$sel:nextToken:ListFHIRDatastoresResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFHIRDatastoresResponse)

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

-- | All properties associated with the listed Data Stores.
listFHIRDatastoresResponse_datastorePropertiesList :: Lens.Lens' ListFHIRDatastoresResponse [DatastoreProperties]
listFHIRDatastoresResponse_datastorePropertiesList :: ([DatastoreProperties] -> f [DatastoreProperties])
-> ListFHIRDatastoresResponse -> f ListFHIRDatastoresResponse
listFHIRDatastoresResponse_datastorePropertiesList = (ListFHIRDatastoresResponse -> [DatastoreProperties])
-> (ListFHIRDatastoresResponse
    -> [DatastoreProperties] -> ListFHIRDatastoresResponse)
-> Lens
     ListFHIRDatastoresResponse
     ListFHIRDatastoresResponse
     [DatastoreProperties]
     [DatastoreProperties]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRDatastoresResponse' {[DatastoreProperties]
datastorePropertiesList :: [DatastoreProperties]
$sel:datastorePropertiesList:ListFHIRDatastoresResponse' :: ListFHIRDatastoresResponse -> [DatastoreProperties]
datastorePropertiesList} -> [DatastoreProperties]
datastorePropertiesList) (\s :: ListFHIRDatastoresResponse
s@ListFHIRDatastoresResponse' {} [DatastoreProperties]
a -> ListFHIRDatastoresResponse
s {$sel:datastorePropertiesList:ListFHIRDatastoresResponse' :: [DatastoreProperties]
datastorePropertiesList = [DatastoreProperties]
a} :: ListFHIRDatastoresResponse) (([DatastoreProperties] -> f [DatastoreProperties])
 -> ListFHIRDatastoresResponse -> f ListFHIRDatastoresResponse)
-> (([DatastoreProperties] -> f [DatastoreProperties])
    -> [DatastoreProperties] -> f [DatastoreProperties])
-> ([DatastoreProperties] -> f [DatastoreProperties])
-> ListFHIRDatastoresResponse
-> f ListFHIRDatastoresResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DatastoreProperties] -> f [DatastoreProperties])
-> [DatastoreProperties] -> f [DatastoreProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListFHIRDatastoresResponse