{-# 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 #-}
module Amazonka.Omics.ListAnnotationStores
(
ListAnnotationStores (..),
newListAnnotationStores,
listAnnotationStores_filter,
listAnnotationStores_ids,
listAnnotationStores_maxResults,
listAnnotationStores_nextToken,
ListAnnotationStoresResponse (..),
newListAnnotationStoresResponse,
listAnnotationStoresResponse_annotationStores,
listAnnotationStoresResponse_nextToken,
listAnnotationStoresResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Omics.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAnnotationStores = ListAnnotationStores'
{
ListAnnotationStores -> Maybe ListAnnotationStoresFilter
filter' :: Prelude.Maybe ListAnnotationStoresFilter,
ListAnnotationStores -> Maybe (NonEmpty Text)
ids :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
ListAnnotationStores -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListAnnotationStores -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListAnnotationStores -> ListAnnotationStores -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAnnotationStores -> ListAnnotationStores -> Bool
$c/= :: ListAnnotationStores -> ListAnnotationStores -> Bool
== :: ListAnnotationStores -> ListAnnotationStores -> Bool
$c== :: ListAnnotationStores -> ListAnnotationStores -> Bool
Prelude.Eq, ReadPrec [ListAnnotationStores]
ReadPrec ListAnnotationStores
Int -> ReadS ListAnnotationStores
ReadS [ListAnnotationStores]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAnnotationStores]
$creadListPrec :: ReadPrec [ListAnnotationStores]
readPrec :: ReadPrec ListAnnotationStores
$creadPrec :: ReadPrec ListAnnotationStores
readList :: ReadS [ListAnnotationStores]
$creadList :: ReadS [ListAnnotationStores]
readsPrec :: Int -> ReadS ListAnnotationStores
$creadsPrec :: Int -> ReadS ListAnnotationStores
Prelude.Read, Int -> ListAnnotationStores -> ShowS
[ListAnnotationStores] -> ShowS
ListAnnotationStores -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAnnotationStores] -> ShowS
$cshowList :: [ListAnnotationStores] -> ShowS
show :: ListAnnotationStores -> String
$cshow :: ListAnnotationStores -> String
showsPrec :: Int -> ListAnnotationStores -> ShowS
$cshowsPrec :: Int -> ListAnnotationStores -> ShowS
Prelude.Show, forall x. Rep ListAnnotationStores x -> ListAnnotationStores
forall x. ListAnnotationStores -> Rep ListAnnotationStores x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAnnotationStores x -> ListAnnotationStores
$cfrom :: forall x. ListAnnotationStores -> Rep ListAnnotationStores x
Prelude.Generic)
newListAnnotationStores ::
ListAnnotationStores
newListAnnotationStores :: ListAnnotationStores
newListAnnotationStores =
ListAnnotationStores'
{ $sel:filter':ListAnnotationStores' :: Maybe ListAnnotationStoresFilter
filter' = forall a. Maybe a
Prelude.Nothing,
$sel:ids:ListAnnotationStores' :: Maybe (NonEmpty Text)
ids = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAnnotationStores' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAnnotationStores' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
listAnnotationStores_filter :: Lens.Lens' ListAnnotationStores (Prelude.Maybe ListAnnotationStoresFilter)
listAnnotationStores_filter :: Lens' ListAnnotationStores (Maybe ListAnnotationStoresFilter)
listAnnotationStores_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStores' {Maybe ListAnnotationStoresFilter
filter' :: Maybe ListAnnotationStoresFilter
$sel:filter':ListAnnotationStores' :: ListAnnotationStores -> Maybe ListAnnotationStoresFilter
filter'} -> Maybe ListAnnotationStoresFilter
filter') (\s :: ListAnnotationStores
s@ListAnnotationStores' {} Maybe ListAnnotationStoresFilter
a -> ListAnnotationStores
s {$sel:filter':ListAnnotationStores' :: Maybe ListAnnotationStoresFilter
filter' = Maybe ListAnnotationStoresFilter
a} :: ListAnnotationStores)
listAnnotationStores_ids :: Lens.Lens' ListAnnotationStores (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
listAnnotationStores_ids :: Lens' ListAnnotationStores (Maybe (NonEmpty Text))
listAnnotationStores_ids = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStores' {Maybe (NonEmpty Text)
ids :: Maybe (NonEmpty Text)
$sel:ids:ListAnnotationStores' :: ListAnnotationStores -> Maybe (NonEmpty Text)
ids} -> Maybe (NonEmpty Text)
ids) (\s :: ListAnnotationStores
s@ListAnnotationStores' {} Maybe (NonEmpty Text)
a -> ListAnnotationStores
s {$sel:ids:ListAnnotationStores' :: Maybe (NonEmpty Text)
ids = Maybe (NonEmpty Text)
a} :: ListAnnotationStores) 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
listAnnotationStores_maxResults :: Lens.Lens' ListAnnotationStores (Prelude.Maybe Prelude.Natural)
listAnnotationStores_maxResults :: Lens' ListAnnotationStores (Maybe Natural)
listAnnotationStores_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStores' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAnnotationStores' :: ListAnnotationStores -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAnnotationStores
s@ListAnnotationStores' {} Maybe Natural
a -> ListAnnotationStores
s {$sel:maxResults:ListAnnotationStores' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAnnotationStores)
listAnnotationStores_nextToken :: Lens.Lens' ListAnnotationStores (Prelude.Maybe Prelude.Text)
listAnnotationStores_nextToken :: Lens' ListAnnotationStores (Maybe Text)
listAnnotationStores_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStores' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAnnotationStores' :: ListAnnotationStores -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAnnotationStores
s@ListAnnotationStores' {} Maybe Text
a -> ListAnnotationStores
s {$sel:nextToken:ListAnnotationStores' :: Maybe Text
nextToken = Maybe Text
a} :: ListAnnotationStores)
instance Core.AWSPager ListAnnotationStores where
page :: ListAnnotationStores
-> AWSResponse ListAnnotationStores -> Maybe ListAnnotationStores
page ListAnnotationStores
rq AWSResponse ListAnnotationStores
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAnnotationStores
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAnnotationStoresResponse (Maybe Text)
listAnnotationStoresResponse_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 ListAnnotationStores
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAnnotationStoresResponse (Maybe [AnnotationStoreItem])
listAnnotationStoresResponse_annotationStores
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.$ ListAnnotationStores
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAnnotationStores (Maybe Text)
listAnnotationStores_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAnnotationStores
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAnnotationStoresResponse (Maybe Text)
listAnnotationStoresResponse_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 ListAnnotationStores where
type
AWSResponse ListAnnotationStores =
ListAnnotationStoresResponse
request :: (Service -> Service)
-> ListAnnotationStores -> Request ListAnnotationStores
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 ListAnnotationStores
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAnnotationStores)))
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 [AnnotationStoreItem]
-> Maybe Text -> Int -> ListAnnotationStoresResponse
ListAnnotationStoresResponse'
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
"annotationStores"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListAnnotationStores where
hashWithSalt :: Int -> ListAnnotationStores -> Int
hashWithSalt Int
_salt ListAnnotationStores' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe ListAnnotationStoresFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
ids :: Maybe (NonEmpty Text)
filter' :: Maybe ListAnnotationStoresFilter
$sel:nextToken:ListAnnotationStores' :: ListAnnotationStores -> Maybe Text
$sel:maxResults:ListAnnotationStores' :: ListAnnotationStores -> Maybe Natural
$sel:ids:ListAnnotationStores' :: ListAnnotationStores -> Maybe (NonEmpty Text)
$sel:filter':ListAnnotationStores' :: ListAnnotationStores -> Maybe ListAnnotationStoresFilter
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ListAnnotationStoresFilter
filter'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
ids
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
instance Prelude.NFData ListAnnotationStores where
rnf :: ListAnnotationStores -> ()
rnf ListAnnotationStores' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe ListAnnotationStoresFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
ids :: Maybe (NonEmpty Text)
filter' :: Maybe ListAnnotationStoresFilter
$sel:nextToken:ListAnnotationStores' :: ListAnnotationStores -> Maybe Text
$sel:maxResults:ListAnnotationStores' :: ListAnnotationStores -> Maybe Natural
$sel:ids:ListAnnotationStores' :: ListAnnotationStores -> Maybe (NonEmpty Text)
$sel:filter':ListAnnotationStores' :: ListAnnotationStores -> Maybe ListAnnotationStoresFilter
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ListAnnotationStoresFilter
filter'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
ids
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
instance Data.ToHeaders ListAnnotationStores where
toHeaders :: ListAnnotationStores -> 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.ToJSON ListAnnotationStores where
toJSON :: ListAnnotationStores -> Value
toJSON ListAnnotationStores' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe ListAnnotationStoresFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
ids :: Maybe (NonEmpty Text)
filter' :: Maybe ListAnnotationStoresFilter
$sel:nextToken:ListAnnotationStores' :: ListAnnotationStores -> Maybe Text
$sel:maxResults:ListAnnotationStores' :: ListAnnotationStores -> Maybe Natural
$sel:ids:ListAnnotationStores' :: ListAnnotationStores -> Maybe (NonEmpty Text)
$sel:filter':ListAnnotationStores' :: ListAnnotationStores -> Maybe ListAnnotationStoresFilter
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"filter" 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 ListAnnotationStoresFilter
filter',
(Key
"ids" 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 (NonEmpty Text)
ids
]
)
instance Data.ToPath ListAnnotationStores where
toPath :: ListAnnotationStores -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/annotationStores"
instance Data.ToQuery ListAnnotationStores where
toQuery :: ListAnnotationStores -> QueryString
toQuery ListAnnotationStores' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe ListAnnotationStoresFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
ids :: Maybe (NonEmpty Text)
filter' :: Maybe ListAnnotationStoresFilter
$sel:nextToken:ListAnnotationStores' :: ListAnnotationStores -> Maybe Text
$sel:maxResults:ListAnnotationStores' :: ListAnnotationStores -> Maybe Natural
$sel:ids:ListAnnotationStores' :: ListAnnotationStores -> Maybe (NonEmpty Text)
$sel:filter':ListAnnotationStores' :: ListAnnotationStores -> Maybe ListAnnotationStoresFilter
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data ListAnnotationStoresResponse = ListAnnotationStoresResponse'
{
ListAnnotationStoresResponse -> Maybe [AnnotationStoreItem]
annotationStores :: Prelude.Maybe [AnnotationStoreItem],
ListAnnotationStoresResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAnnotationStoresResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAnnotationStoresResponse
-> ListAnnotationStoresResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAnnotationStoresResponse
-> ListAnnotationStoresResponse -> Bool
$c/= :: ListAnnotationStoresResponse
-> ListAnnotationStoresResponse -> Bool
== :: ListAnnotationStoresResponse
-> ListAnnotationStoresResponse -> Bool
$c== :: ListAnnotationStoresResponse
-> ListAnnotationStoresResponse -> Bool
Prelude.Eq, ReadPrec [ListAnnotationStoresResponse]
ReadPrec ListAnnotationStoresResponse
Int -> ReadS ListAnnotationStoresResponse
ReadS [ListAnnotationStoresResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAnnotationStoresResponse]
$creadListPrec :: ReadPrec [ListAnnotationStoresResponse]
readPrec :: ReadPrec ListAnnotationStoresResponse
$creadPrec :: ReadPrec ListAnnotationStoresResponse
readList :: ReadS [ListAnnotationStoresResponse]
$creadList :: ReadS [ListAnnotationStoresResponse]
readsPrec :: Int -> ReadS ListAnnotationStoresResponse
$creadsPrec :: Int -> ReadS ListAnnotationStoresResponse
Prelude.Read, Int -> ListAnnotationStoresResponse -> ShowS
[ListAnnotationStoresResponse] -> ShowS
ListAnnotationStoresResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAnnotationStoresResponse] -> ShowS
$cshowList :: [ListAnnotationStoresResponse] -> ShowS
show :: ListAnnotationStoresResponse -> String
$cshow :: ListAnnotationStoresResponse -> String
showsPrec :: Int -> ListAnnotationStoresResponse -> ShowS
$cshowsPrec :: Int -> ListAnnotationStoresResponse -> ShowS
Prelude.Show, forall x.
Rep ListAnnotationStoresResponse x -> ListAnnotationStoresResponse
forall x.
ListAnnotationStoresResponse -> Rep ListAnnotationStoresResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAnnotationStoresResponse x -> ListAnnotationStoresResponse
$cfrom :: forall x.
ListAnnotationStoresResponse -> Rep ListAnnotationStoresResponse x
Prelude.Generic)
newListAnnotationStoresResponse ::
Prelude.Int ->
ListAnnotationStoresResponse
newListAnnotationStoresResponse :: Int -> ListAnnotationStoresResponse
newListAnnotationStoresResponse Int
pHttpStatus_ =
ListAnnotationStoresResponse'
{ $sel:annotationStores:ListAnnotationStoresResponse' :: Maybe [AnnotationStoreItem]
annotationStores =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAnnotationStoresResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAnnotationStoresResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAnnotationStoresResponse_annotationStores :: Lens.Lens' ListAnnotationStoresResponse (Prelude.Maybe [AnnotationStoreItem])
listAnnotationStoresResponse_annotationStores :: Lens' ListAnnotationStoresResponse (Maybe [AnnotationStoreItem])
listAnnotationStoresResponse_annotationStores = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStoresResponse' {Maybe [AnnotationStoreItem]
annotationStores :: Maybe [AnnotationStoreItem]
$sel:annotationStores:ListAnnotationStoresResponse' :: ListAnnotationStoresResponse -> Maybe [AnnotationStoreItem]
annotationStores} -> Maybe [AnnotationStoreItem]
annotationStores) (\s :: ListAnnotationStoresResponse
s@ListAnnotationStoresResponse' {} Maybe [AnnotationStoreItem]
a -> ListAnnotationStoresResponse
s {$sel:annotationStores:ListAnnotationStoresResponse' :: Maybe [AnnotationStoreItem]
annotationStores = Maybe [AnnotationStoreItem]
a} :: ListAnnotationStoresResponse) 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
listAnnotationStoresResponse_nextToken :: Lens.Lens' ListAnnotationStoresResponse (Prelude.Maybe Prelude.Text)
listAnnotationStoresResponse_nextToken :: Lens' ListAnnotationStoresResponse (Maybe Text)
listAnnotationStoresResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStoresResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAnnotationStoresResponse' :: ListAnnotationStoresResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAnnotationStoresResponse
s@ListAnnotationStoresResponse' {} Maybe Text
a -> ListAnnotationStoresResponse
s {$sel:nextToken:ListAnnotationStoresResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAnnotationStoresResponse)
listAnnotationStoresResponse_httpStatus :: Lens.Lens' ListAnnotationStoresResponse Prelude.Int
listAnnotationStoresResponse_httpStatus :: Lens' ListAnnotationStoresResponse Int
listAnnotationStoresResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnnotationStoresResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAnnotationStoresResponse' :: ListAnnotationStoresResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAnnotationStoresResponse
s@ListAnnotationStoresResponse' {} Int
a -> ListAnnotationStoresResponse
s {$sel:httpStatus:ListAnnotationStoresResponse' :: Int
httpStatus = Int
a} :: ListAnnotationStoresResponse)
instance Prelude.NFData ListAnnotationStoresResponse where
rnf :: ListAnnotationStoresResponse -> ()
rnf ListAnnotationStoresResponse' {Int
Maybe [AnnotationStoreItem]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
annotationStores :: Maybe [AnnotationStoreItem]
$sel:httpStatus:ListAnnotationStoresResponse' :: ListAnnotationStoresResponse -> Int
$sel:nextToken:ListAnnotationStoresResponse' :: ListAnnotationStoresResponse -> Maybe Text
$sel:annotationStores:ListAnnotationStoresResponse' :: ListAnnotationStoresResponse -> Maybe [AnnotationStoreItem]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AnnotationStoreItem]
annotationStores
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus