{-# 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.ListFileSystemAssociations
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of @FileSystemAssociationSummary@ objects. Each object
-- contains a summary of a file system association. This operation is only
-- supported for FSx File Gateways.
--
-- This operation returns paginated results.
module Amazonka.StorageGateway.ListFileSystemAssociations
  ( -- * Creating a Request
    ListFileSystemAssociations (..),
    newListFileSystemAssociations,

    -- * Request Lenses
    listFileSystemAssociations_gatewayARN,
    listFileSystemAssociations_limit,
    listFileSystemAssociations_marker,

    -- * Destructuring the Response
    ListFileSystemAssociationsResponse (..),
    newListFileSystemAssociationsResponse,

    -- * Response Lenses
    listFileSystemAssociationsResponse_fileSystemAssociationSummaryList,
    listFileSystemAssociationsResponse_marker,
    listFileSystemAssociationsResponse_nextMarker,
    listFileSystemAssociationsResponse_httpStatus,
  )
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.StorageGateway.Types

-- | /See:/ 'newListFileSystemAssociations' smart constructor.
data ListFileSystemAssociations = ListFileSystemAssociations'
  { ListFileSystemAssociations -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of file system associations to return in the
    -- response. If present, @Limit@ must be an integer with a value greater
    -- than zero. Optional.
    ListFileSystemAssociations -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
    -- | Opaque pagination token returned from a previous
    -- @ListFileSystemAssociations@ operation. If present, @Marker@ specifies
    -- where to continue the list from after a previous call to
    -- @ListFileSystemAssociations@. Optional.
    ListFileSystemAssociations -> Maybe Text
marker :: Prelude.Maybe Prelude.Text
  }
  deriving (ListFileSystemAssociations -> ListFileSystemAssociations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFileSystemAssociations -> ListFileSystemAssociations -> Bool
$c/= :: ListFileSystemAssociations -> ListFileSystemAssociations -> Bool
== :: ListFileSystemAssociations -> ListFileSystemAssociations -> Bool
$c== :: ListFileSystemAssociations -> ListFileSystemAssociations -> Bool
Prelude.Eq, ReadPrec [ListFileSystemAssociations]
ReadPrec ListFileSystemAssociations
Int -> ReadS ListFileSystemAssociations
ReadS [ListFileSystemAssociations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFileSystemAssociations]
$creadListPrec :: ReadPrec [ListFileSystemAssociations]
readPrec :: ReadPrec ListFileSystemAssociations
$creadPrec :: ReadPrec ListFileSystemAssociations
readList :: ReadS [ListFileSystemAssociations]
$creadList :: ReadS [ListFileSystemAssociations]
readsPrec :: Int -> ReadS ListFileSystemAssociations
$creadsPrec :: Int -> ReadS ListFileSystemAssociations
Prelude.Read, Int -> ListFileSystemAssociations -> ShowS
[ListFileSystemAssociations] -> ShowS
ListFileSystemAssociations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFileSystemAssociations] -> ShowS
$cshowList :: [ListFileSystemAssociations] -> ShowS
show :: ListFileSystemAssociations -> String
$cshow :: ListFileSystemAssociations -> String
showsPrec :: Int -> ListFileSystemAssociations -> ShowS
$cshowsPrec :: Int -> ListFileSystemAssociations -> ShowS
Prelude.Show, forall x.
Rep ListFileSystemAssociations x -> ListFileSystemAssociations
forall x.
ListFileSystemAssociations -> Rep ListFileSystemAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFileSystemAssociations x -> ListFileSystemAssociations
$cfrom :: forall x.
ListFileSystemAssociations -> Rep ListFileSystemAssociations x
Prelude.Generic)

-- |
-- Create a value of 'ListFileSystemAssociations' 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', 'listFileSystemAssociations_gatewayARN' - Undocumented member.
--
-- 'limit', 'listFileSystemAssociations_limit' - The maximum number of file system associations to return in the
-- response. If present, @Limit@ must be an integer with a value greater
-- than zero. Optional.
--
-- 'marker', 'listFileSystemAssociations_marker' - Opaque pagination token returned from a previous
-- @ListFileSystemAssociations@ operation. If present, @Marker@ specifies
-- where to continue the list from after a previous call to
-- @ListFileSystemAssociations@. Optional.
newListFileSystemAssociations ::
  ListFileSystemAssociations
newListFileSystemAssociations :: ListFileSystemAssociations
newListFileSystemAssociations =
  ListFileSystemAssociations'
    { $sel:gatewayARN:ListFileSystemAssociations' :: Maybe Text
gatewayARN =
        forall a. Maybe a
Prelude.Nothing,
      $sel:limit:ListFileSystemAssociations' :: Maybe Natural
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:marker:ListFileSystemAssociations' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
listFileSystemAssociations_gatewayARN :: Lens.Lens' ListFileSystemAssociations (Prelude.Maybe Prelude.Text)
listFileSystemAssociations_gatewayARN :: Lens' ListFileSystemAssociations (Maybe Text)
listFileSystemAssociations_gatewayARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFileSystemAssociations' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: ListFileSystemAssociations
s@ListFileSystemAssociations' {} Maybe Text
a -> ListFileSystemAssociations
s {$sel:gatewayARN:ListFileSystemAssociations' :: Maybe Text
gatewayARN = Maybe Text
a} :: ListFileSystemAssociations)

-- | The maximum number of file system associations to return in the
-- response. If present, @Limit@ must be an integer with a value greater
-- than zero. Optional.
listFileSystemAssociations_limit :: Lens.Lens' ListFileSystemAssociations (Prelude.Maybe Prelude.Natural)
listFileSystemAssociations_limit :: Lens' ListFileSystemAssociations (Maybe Natural)
listFileSystemAssociations_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFileSystemAssociations' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListFileSystemAssociations
s@ListFileSystemAssociations' {} Maybe Natural
a -> ListFileSystemAssociations
s {$sel:limit:ListFileSystemAssociations' :: Maybe Natural
limit = Maybe Natural
a} :: ListFileSystemAssociations)

-- | Opaque pagination token returned from a previous
-- @ListFileSystemAssociations@ operation. If present, @Marker@ specifies
-- where to continue the list from after a previous call to
-- @ListFileSystemAssociations@. Optional.
listFileSystemAssociations_marker :: Lens.Lens' ListFileSystemAssociations (Prelude.Maybe Prelude.Text)
listFileSystemAssociations_marker :: Lens' ListFileSystemAssociations (Maybe Text)
listFileSystemAssociations_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFileSystemAssociations' {Maybe Text
marker :: Maybe Text
$sel:marker:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListFileSystemAssociations
s@ListFileSystemAssociations' {} Maybe Text
a -> ListFileSystemAssociations
s {$sel:marker:ListFileSystemAssociations' :: Maybe Text
marker = Maybe Text
a} :: ListFileSystemAssociations)

instance Core.AWSPager ListFileSystemAssociations where
  page :: ListFileSystemAssociations
-> AWSResponse ListFileSystemAssociations
-> Maybe ListFileSystemAssociations
page ListFileSystemAssociations
rq AWSResponse ListFileSystemAssociations
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListFileSystemAssociations
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListFileSystemAssociationsResponse (Maybe Text)
listFileSystemAssociationsResponse_nextMarker
            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 ListFileSystemAssociations
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListFileSystemAssociationsResponse
  (Maybe [FileSystemAssociationSummary])
listFileSystemAssociationsResponse_fileSystemAssociationSummaryList
            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.$ ListFileSystemAssociations
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListFileSystemAssociations (Maybe Text)
listFileSystemAssociations_marker
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFileSystemAssociations
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListFileSystemAssociationsResponse (Maybe Text)
listFileSystemAssociationsResponse_nextMarker
          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 ListFileSystemAssociations where
  type
    AWSResponse ListFileSystemAssociations =
      ListFileSystemAssociationsResponse
  request :: (Service -> Service)
-> ListFileSystemAssociations -> Request ListFileSystemAssociations
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListFileSystemAssociations
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListFileSystemAssociations)))
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 [FileSystemAssociationSummary]
-> Maybe Text
-> Maybe Text
-> Int
-> ListFileSystemAssociationsResponse
ListFileSystemAssociationsResponse'
            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
"FileSystemAssociationSummaryList"
                            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
"Marker")
            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
"NextMarker")
            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 ListFileSystemAssociations where
  hashWithSalt :: Int -> ListFileSystemAssociations -> Int
hashWithSalt Int
_salt ListFileSystemAssociations' {Maybe Natural
Maybe Text
marker :: Maybe Text
limit :: Maybe Natural
gatewayARN :: Maybe Text
$sel:marker:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
$sel:limit:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Natural
$sel:gatewayARN:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
gatewayARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
marker

instance Prelude.NFData ListFileSystemAssociations where
  rnf :: ListFileSystemAssociations -> ()
rnf ListFileSystemAssociations' {Maybe Natural
Maybe Text
marker :: Maybe Text
limit :: Maybe Natural
gatewayARN :: Maybe Text
$sel:marker:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
$sel:limit:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Natural
$sel:gatewayARN:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
marker

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

instance Data.ToJSON ListFileSystemAssociations where
  toJSON :: ListFileSystemAssociations -> Value
toJSON ListFileSystemAssociations' {Maybe Natural
Maybe Text
marker :: Maybe Text
limit :: Maybe Natural
gatewayARN :: Maybe Text
$sel:marker:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
$sel:limit:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Natural
$sel:gatewayARN:ListFileSystemAssociations' :: ListFileSystemAssociations -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"GatewayARN" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
gatewayARN,
            (Key
"Limit" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
            (Key
"Marker" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
marker
          ]
      )

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

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

-- | /See:/ 'newListFileSystemAssociationsResponse' smart constructor.
data ListFileSystemAssociationsResponse = ListFileSystemAssociationsResponse'
  { -- | An array of information about the Amazon FSx gateway\'s file system
    -- associations.
    ListFileSystemAssociationsResponse
-> Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList :: Prelude.Maybe [FileSystemAssociationSummary],
    -- | If the request includes @Marker@, the response returns that value in
    -- this field.
    ListFileSystemAssociationsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | If a value is present, there are more file system associations to
    -- return. In a subsequent request, use @NextMarker@ as the value for
    -- @Marker@ to retrieve the next set of file system associations.
    ListFileSystemAssociationsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListFileSystemAssociationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListFileSystemAssociationsResponse
-> ListFileSystemAssociationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFileSystemAssociationsResponse
-> ListFileSystemAssociationsResponse -> Bool
$c/= :: ListFileSystemAssociationsResponse
-> ListFileSystemAssociationsResponse -> Bool
== :: ListFileSystemAssociationsResponse
-> ListFileSystemAssociationsResponse -> Bool
$c== :: ListFileSystemAssociationsResponse
-> ListFileSystemAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [ListFileSystemAssociationsResponse]
ReadPrec ListFileSystemAssociationsResponse
Int -> ReadS ListFileSystemAssociationsResponse
ReadS [ListFileSystemAssociationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFileSystemAssociationsResponse]
$creadListPrec :: ReadPrec [ListFileSystemAssociationsResponse]
readPrec :: ReadPrec ListFileSystemAssociationsResponse
$creadPrec :: ReadPrec ListFileSystemAssociationsResponse
readList :: ReadS [ListFileSystemAssociationsResponse]
$creadList :: ReadS [ListFileSystemAssociationsResponse]
readsPrec :: Int -> ReadS ListFileSystemAssociationsResponse
$creadsPrec :: Int -> ReadS ListFileSystemAssociationsResponse
Prelude.Read, Int -> ListFileSystemAssociationsResponse -> ShowS
[ListFileSystemAssociationsResponse] -> ShowS
ListFileSystemAssociationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFileSystemAssociationsResponse] -> ShowS
$cshowList :: [ListFileSystemAssociationsResponse] -> ShowS
show :: ListFileSystemAssociationsResponse -> String
$cshow :: ListFileSystemAssociationsResponse -> String
showsPrec :: Int -> ListFileSystemAssociationsResponse -> ShowS
$cshowsPrec :: Int -> ListFileSystemAssociationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListFileSystemAssociationsResponse x
-> ListFileSystemAssociationsResponse
forall x.
ListFileSystemAssociationsResponse
-> Rep ListFileSystemAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFileSystemAssociationsResponse x
-> ListFileSystemAssociationsResponse
$cfrom :: forall x.
ListFileSystemAssociationsResponse
-> Rep ListFileSystemAssociationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFileSystemAssociationsResponse' 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:
--
-- 'fileSystemAssociationSummaryList', 'listFileSystemAssociationsResponse_fileSystemAssociationSummaryList' - An array of information about the Amazon FSx gateway\'s file system
-- associations.
--
-- 'marker', 'listFileSystemAssociationsResponse_marker' - If the request includes @Marker@, the response returns that value in
-- this field.
--
-- 'nextMarker', 'listFileSystemAssociationsResponse_nextMarker' - If a value is present, there are more file system associations to
-- return. In a subsequent request, use @NextMarker@ as the value for
-- @Marker@ to retrieve the next set of file system associations.
--
-- 'httpStatus', 'listFileSystemAssociationsResponse_httpStatus' - The response's http status code.
newListFileSystemAssociationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFileSystemAssociationsResponse
newListFileSystemAssociationsResponse :: Int -> ListFileSystemAssociationsResponse
newListFileSystemAssociationsResponse Int
pHttpStatus_ =
  ListFileSystemAssociationsResponse'
    { $sel:fileSystemAssociationSummaryList:ListFileSystemAssociationsResponse' :: Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:marker:ListFileSystemAssociationsResponse' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListFileSystemAssociationsResponse' :: Maybe Text
nextMarker = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListFileSystemAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of information about the Amazon FSx gateway\'s file system
-- associations.
listFileSystemAssociationsResponse_fileSystemAssociationSummaryList :: Lens.Lens' ListFileSystemAssociationsResponse (Prelude.Maybe [FileSystemAssociationSummary])
listFileSystemAssociationsResponse_fileSystemAssociationSummaryList :: Lens'
  ListFileSystemAssociationsResponse
  (Maybe [FileSystemAssociationSummary])
listFileSystemAssociationsResponse_fileSystemAssociationSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFileSystemAssociationsResponse' {Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList :: Maybe [FileSystemAssociationSummary]
$sel:fileSystemAssociationSummaryList:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse
-> Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList} -> Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList) (\s :: ListFileSystemAssociationsResponse
s@ListFileSystemAssociationsResponse' {} Maybe [FileSystemAssociationSummary]
a -> ListFileSystemAssociationsResponse
s {$sel:fileSystemAssociationSummaryList:ListFileSystemAssociationsResponse' :: Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList = Maybe [FileSystemAssociationSummary]
a} :: ListFileSystemAssociationsResponse) 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

-- | If the request includes @Marker@, the response returns that value in
-- this field.
listFileSystemAssociationsResponse_marker :: Lens.Lens' ListFileSystemAssociationsResponse (Prelude.Maybe Prelude.Text)
listFileSystemAssociationsResponse_marker :: Lens' ListFileSystemAssociationsResponse (Maybe Text)
listFileSystemAssociationsResponse_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFileSystemAssociationsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListFileSystemAssociationsResponse
s@ListFileSystemAssociationsResponse' {} Maybe Text
a -> ListFileSystemAssociationsResponse
s {$sel:marker:ListFileSystemAssociationsResponse' :: Maybe Text
marker = Maybe Text
a} :: ListFileSystemAssociationsResponse)

-- | If a value is present, there are more file system associations to
-- return. In a subsequent request, use @NextMarker@ as the value for
-- @Marker@ to retrieve the next set of file system associations.
listFileSystemAssociationsResponse_nextMarker :: Lens.Lens' ListFileSystemAssociationsResponse (Prelude.Maybe Prelude.Text)
listFileSystemAssociationsResponse_nextMarker :: Lens' ListFileSystemAssociationsResponse (Maybe Text)
listFileSystemAssociationsResponse_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFileSystemAssociationsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListFileSystemAssociationsResponse
s@ListFileSystemAssociationsResponse' {} Maybe Text
a -> ListFileSystemAssociationsResponse
s {$sel:nextMarker:ListFileSystemAssociationsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListFileSystemAssociationsResponse)

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

instance
  Prelude.NFData
    ListFileSystemAssociationsResponse
  where
  rnf :: ListFileSystemAssociationsResponse -> ()
rnf ListFileSystemAssociationsResponse' {Int
Maybe [FileSystemAssociationSummary]
Maybe Text
httpStatus :: Int
nextMarker :: Maybe Text
marker :: Maybe Text
fileSystemAssociationSummaryList :: Maybe [FileSystemAssociationSummary]
$sel:httpStatus:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse -> Int
$sel:nextMarker:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse -> Maybe Text
$sel:marker:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse -> Maybe Text
$sel:fileSystemAssociationSummaryList:ListFileSystemAssociationsResponse' :: ListFileSystemAssociationsResponse
-> Maybe [FileSystemAssociationSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [FileSystemAssociationSummary]
fileSystemAssociationSummaryList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
marker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus