{-# 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.ServiceCatalog.ListTagOptions
(
ListTagOptions (..),
newListTagOptions,
listTagOptions_filters,
listTagOptions_pageToken,
listTagOptions_pageSize,
ListTagOptionsResponse (..),
newListTagOptionsResponse,
listTagOptionsResponse_pageToken,
listTagOptionsResponse_tagOptionDetails,
listTagOptionsResponse_httpStatus,
)
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.ServiceCatalog.Types
data ListTagOptions = ListTagOptions'
{
ListTagOptions -> Maybe ListTagOptionsFilters
filters :: Prelude.Maybe ListTagOptionsFilters,
ListTagOptions -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
ListTagOptions -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural
}
deriving (ListTagOptions -> ListTagOptions -> Bool
(ListTagOptions -> ListTagOptions -> Bool)
-> (ListTagOptions -> ListTagOptions -> Bool) -> Eq ListTagOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTagOptions -> ListTagOptions -> Bool
$c/= :: ListTagOptions -> ListTagOptions -> Bool
== :: ListTagOptions -> ListTagOptions -> Bool
$c== :: ListTagOptions -> ListTagOptions -> Bool
Prelude.Eq, ReadPrec [ListTagOptions]
ReadPrec ListTagOptions
Int -> ReadS ListTagOptions
ReadS [ListTagOptions]
(Int -> ReadS ListTagOptions)
-> ReadS [ListTagOptions]
-> ReadPrec ListTagOptions
-> ReadPrec [ListTagOptions]
-> Read ListTagOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTagOptions]
$creadListPrec :: ReadPrec [ListTagOptions]
readPrec :: ReadPrec ListTagOptions
$creadPrec :: ReadPrec ListTagOptions
readList :: ReadS [ListTagOptions]
$creadList :: ReadS [ListTagOptions]
readsPrec :: Int -> ReadS ListTagOptions
$creadsPrec :: Int -> ReadS ListTagOptions
Prelude.Read, Int -> ListTagOptions -> ShowS
[ListTagOptions] -> ShowS
ListTagOptions -> String
(Int -> ListTagOptions -> ShowS)
-> (ListTagOptions -> String)
-> ([ListTagOptions] -> ShowS)
-> Show ListTagOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTagOptions] -> ShowS
$cshowList :: [ListTagOptions] -> ShowS
show :: ListTagOptions -> String
$cshow :: ListTagOptions -> String
showsPrec :: Int -> ListTagOptions -> ShowS
$cshowsPrec :: Int -> ListTagOptions -> ShowS
Prelude.Show, (forall x. ListTagOptions -> Rep ListTagOptions x)
-> (forall x. Rep ListTagOptions x -> ListTagOptions)
-> Generic ListTagOptions
forall x. Rep ListTagOptions x -> ListTagOptions
forall x. ListTagOptions -> Rep ListTagOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTagOptions x -> ListTagOptions
$cfrom :: forall x. ListTagOptions -> Rep ListTagOptions x
Prelude.Generic)
newListTagOptions ::
ListTagOptions
newListTagOptions :: ListTagOptions
newListTagOptions =
ListTagOptions' :: Maybe ListTagOptionsFilters
-> Maybe Text -> Maybe Natural -> ListTagOptions
ListTagOptions'
{ $sel:filters:ListTagOptions' :: Maybe ListTagOptionsFilters
filters = Maybe ListTagOptionsFilters
forall a. Maybe a
Prelude.Nothing,
$sel:pageToken:ListTagOptions' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:ListTagOptions' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listTagOptions_filters :: Lens.Lens' ListTagOptions (Prelude.Maybe ListTagOptionsFilters)
listTagOptions_filters :: (Maybe ListTagOptionsFilters -> f (Maybe ListTagOptionsFilters))
-> ListTagOptions -> f ListTagOptions
listTagOptions_filters = (ListTagOptions -> Maybe ListTagOptionsFilters)
-> (ListTagOptions
-> Maybe ListTagOptionsFilters -> ListTagOptions)
-> Lens
ListTagOptions
ListTagOptions
(Maybe ListTagOptionsFilters)
(Maybe ListTagOptionsFilters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagOptions' {Maybe ListTagOptionsFilters
filters :: Maybe ListTagOptionsFilters
$sel:filters:ListTagOptions' :: ListTagOptions -> Maybe ListTagOptionsFilters
filters} -> Maybe ListTagOptionsFilters
filters) (\s :: ListTagOptions
s@ListTagOptions' {} Maybe ListTagOptionsFilters
a -> ListTagOptions
s {$sel:filters:ListTagOptions' :: Maybe ListTagOptionsFilters
filters = Maybe ListTagOptionsFilters
a} :: ListTagOptions)
listTagOptions_pageToken :: Lens.Lens' ListTagOptions (Prelude.Maybe Prelude.Text)
listTagOptions_pageToken :: (Maybe Text -> f (Maybe Text))
-> ListTagOptions -> f ListTagOptions
listTagOptions_pageToken = (ListTagOptions -> Maybe Text)
-> (ListTagOptions -> Maybe Text -> ListTagOptions)
-> Lens ListTagOptions ListTagOptions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagOptions' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListTagOptions' :: ListTagOptions -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListTagOptions
s@ListTagOptions' {} Maybe Text
a -> ListTagOptions
s {$sel:pageToken:ListTagOptions' :: Maybe Text
pageToken = Maybe Text
a} :: ListTagOptions)
listTagOptions_pageSize :: Lens.Lens' ListTagOptions (Prelude.Maybe Prelude.Natural)
listTagOptions_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> ListTagOptions -> f ListTagOptions
listTagOptions_pageSize = (ListTagOptions -> Maybe Natural)
-> (ListTagOptions -> Maybe Natural -> ListTagOptions)
-> Lens
ListTagOptions ListTagOptions (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagOptions' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:ListTagOptions' :: ListTagOptions -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: ListTagOptions
s@ListTagOptions' {} Maybe Natural
a -> ListTagOptions
s {$sel:pageSize:ListTagOptions' :: Maybe Natural
pageSize = Maybe Natural
a} :: ListTagOptions)
instance Core.AWSPager ListTagOptions where
page :: ListTagOptions
-> AWSResponse ListTagOptions -> Maybe ListTagOptions
page ListTagOptions
rq AWSResponse ListTagOptions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTagOptions
ListTagOptionsResponse
rs
ListTagOptionsResponse
-> Getting (First Text) ListTagOptionsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagOptionsResponse
-> Const (First Text) ListTagOptionsResponse
Lens' ListTagOptionsResponse (Maybe Text)
listTagOptionsResponse_pageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagOptionsResponse
-> Const (First Text) ListTagOptionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTagOptionsResponse 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 ListTagOptions
forall a. Maybe a
Prelude.Nothing
| Maybe [TagOptionDetail] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTagOptions
ListTagOptionsResponse
rs
ListTagOptionsResponse
-> Getting
(First [TagOptionDetail]) ListTagOptionsResponse [TagOptionDetail]
-> Maybe [TagOptionDetail]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TagOptionDetail]
-> Const (First [TagOptionDetail]) (Maybe [TagOptionDetail]))
-> ListTagOptionsResponse
-> Const (First [TagOptionDetail]) ListTagOptionsResponse
Lens' ListTagOptionsResponse (Maybe [TagOptionDetail])
listTagOptionsResponse_tagOptionDetails
((Maybe [TagOptionDetail]
-> Const (First [TagOptionDetail]) (Maybe [TagOptionDetail]))
-> ListTagOptionsResponse
-> Const (First [TagOptionDetail]) ListTagOptionsResponse)
-> (([TagOptionDetail]
-> Const (First [TagOptionDetail]) [TagOptionDetail])
-> Maybe [TagOptionDetail]
-> Const (First [TagOptionDetail]) (Maybe [TagOptionDetail]))
-> Getting
(First [TagOptionDetail]) ListTagOptionsResponse [TagOptionDetail]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TagOptionDetail]
-> Const (First [TagOptionDetail]) [TagOptionDetail])
-> Maybe [TagOptionDetail]
-> Const (First [TagOptionDetail]) (Maybe [TagOptionDetail])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTagOptions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTagOptions -> Maybe ListTagOptions
forall a. a -> Maybe a
Prelude.Just (ListTagOptions -> Maybe ListTagOptions)
-> ListTagOptions -> Maybe ListTagOptions
forall a b. (a -> b) -> a -> b
Prelude.$
ListTagOptions
rq
ListTagOptions
-> (ListTagOptions -> ListTagOptions) -> ListTagOptions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTagOptions -> Identity ListTagOptions
Lens ListTagOptions ListTagOptions (Maybe Text) (Maybe Text)
listTagOptions_pageToken
((Maybe Text -> Identity (Maybe Text))
-> ListTagOptions -> Identity ListTagOptions)
-> Maybe Text -> ListTagOptions -> ListTagOptions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTagOptions
ListTagOptionsResponse
rs
ListTagOptionsResponse
-> Getting (First Text) ListTagOptionsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagOptionsResponse
-> Const (First Text) ListTagOptionsResponse
Lens' ListTagOptionsResponse (Maybe Text)
listTagOptionsResponse_pageToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagOptionsResponse
-> Const (First Text) ListTagOptionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTagOptionsResponse 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 ListTagOptions where
type
AWSResponse ListTagOptions =
ListTagOptionsResponse
request :: ListTagOptions -> Request ListTagOptions
request = Service -> ListTagOptions -> Request ListTagOptions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListTagOptions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTagOptions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTagOptions))
-> Logger
-> Service
-> Proxy ListTagOptions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTagOptions)))
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
-> Maybe [TagOptionDetail] -> Int -> ListTagOptionsResponse
ListTagOptionsResponse'
(Maybe Text
-> Maybe [TagOptionDetail] -> Int -> ListTagOptionsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [TagOptionDetail] -> Int -> ListTagOptionsResponse)
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
"PageToken")
Either
String (Maybe [TagOptionDetail] -> Int -> ListTagOptionsResponse)
-> Either String (Maybe [TagOptionDetail])
-> Either String (Int -> ListTagOptionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [TagOptionDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TagOptionDetails"
Either String (Maybe (Maybe [TagOptionDetail]))
-> Maybe [TagOptionDetail]
-> Either String (Maybe [TagOptionDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TagOptionDetail]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListTagOptionsResponse)
-> Either String Int -> Either String ListTagOptionsResponse
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))
)
instance Prelude.Hashable ListTagOptions
instance Prelude.NFData ListTagOptions
instance Core.ToHeaders ListTagOptions where
toHeaders :: ListTagOptions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTagOptions -> 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
"AWS242ServiceCatalogService.ListTagOptions" ::
Prelude.ByteString
),
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 ListTagOptions where
toJSON :: ListTagOptions -> Value
toJSON ListTagOptions' {Maybe Natural
Maybe Text
Maybe ListTagOptionsFilters
pageSize :: Maybe Natural
pageToken :: Maybe Text
filters :: Maybe ListTagOptionsFilters
$sel:pageSize:ListTagOptions' :: ListTagOptions -> Maybe Natural
$sel:pageToken:ListTagOptions' :: ListTagOptions -> Maybe Text
$sel:filters:ListTagOptions' :: ListTagOptions -> Maybe ListTagOptionsFilters
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> ListTagOptionsFilters -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ListTagOptionsFilters -> Pair)
-> Maybe ListTagOptionsFilters -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ListTagOptionsFilters
filters,
(Text
"PageToken" 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
pageToken,
(Text
"PageSize" 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
pageSize
]
)
instance Core.ToPath ListTagOptions where
toPath :: ListTagOptions -> ByteString
toPath = ByteString -> ListTagOptions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListTagOptions where
toQuery :: ListTagOptions -> QueryString
toQuery = QueryString -> ListTagOptions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListTagOptionsResponse = ListTagOptionsResponse'
{
ListTagOptionsResponse -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
ListTagOptionsResponse -> Maybe [TagOptionDetail]
tagOptionDetails :: Prelude.Maybe [TagOptionDetail],
ListTagOptionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTagOptionsResponse -> ListTagOptionsResponse -> Bool
(ListTagOptionsResponse -> ListTagOptionsResponse -> Bool)
-> (ListTagOptionsResponse -> ListTagOptionsResponse -> Bool)
-> Eq ListTagOptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTagOptionsResponse -> ListTagOptionsResponse -> Bool
$c/= :: ListTagOptionsResponse -> ListTagOptionsResponse -> Bool
== :: ListTagOptionsResponse -> ListTagOptionsResponse -> Bool
$c== :: ListTagOptionsResponse -> ListTagOptionsResponse -> Bool
Prelude.Eq, ReadPrec [ListTagOptionsResponse]
ReadPrec ListTagOptionsResponse
Int -> ReadS ListTagOptionsResponse
ReadS [ListTagOptionsResponse]
(Int -> ReadS ListTagOptionsResponse)
-> ReadS [ListTagOptionsResponse]
-> ReadPrec ListTagOptionsResponse
-> ReadPrec [ListTagOptionsResponse]
-> Read ListTagOptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTagOptionsResponse]
$creadListPrec :: ReadPrec [ListTagOptionsResponse]
readPrec :: ReadPrec ListTagOptionsResponse
$creadPrec :: ReadPrec ListTagOptionsResponse
readList :: ReadS [ListTagOptionsResponse]
$creadList :: ReadS [ListTagOptionsResponse]
readsPrec :: Int -> ReadS ListTagOptionsResponse
$creadsPrec :: Int -> ReadS ListTagOptionsResponse
Prelude.Read, Int -> ListTagOptionsResponse -> ShowS
[ListTagOptionsResponse] -> ShowS
ListTagOptionsResponse -> String
(Int -> ListTagOptionsResponse -> ShowS)
-> (ListTagOptionsResponse -> String)
-> ([ListTagOptionsResponse] -> ShowS)
-> Show ListTagOptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTagOptionsResponse] -> ShowS
$cshowList :: [ListTagOptionsResponse] -> ShowS
show :: ListTagOptionsResponse -> String
$cshow :: ListTagOptionsResponse -> String
showsPrec :: Int -> ListTagOptionsResponse -> ShowS
$cshowsPrec :: Int -> ListTagOptionsResponse -> ShowS
Prelude.Show, (forall x. ListTagOptionsResponse -> Rep ListTagOptionsResponse x)
-> (forall x.
Rep ListTagOptionsResponse x -> ListTagOptionsResponse)
-> Generic ListTagOptionsResponse
forall x. Rep ListTagOptionsResponse x -> ListTagOptionsResponse
forall x. ListTagOptionsResponse -> Rep ListTagOptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTagOptionsResponse x -> ListTagOptionsResponse
$cfrom :: forall x. ListTagOptionsResponse -> Rep ListTagOptionsResponse x
Prelude.Generic)
newListTagOptionsResponse ::
Prelude.Int ->
ListTagOptionsResponse
newListTagOptionsResponse :: Int -> ListTagOptionsResponse
newListTagOptionsResponse Int
pHttpStatus_ =
ListTagOptionsResponse' :: Maybe Text
-> Maybe [TagOptionDetail] -> Int -> ListTagOptionsResponse
ListTagOptionsResponse'
{ $sel:pageToken:ListTagOptionsResponse' :: Maybe Text
pageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tagOptionDetails:ListTagOptionsResponse' :: Maybe [TagOptionDetail]
tagOptionDetails = Maybe [TagOptionDetail]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTagOptionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTagOptionsResponse_pageToken :: Lens.Lens' ListTagOptionsResponse (Prelude.Maybe Prelude.Text)
listTagOptionsResponse_pageToken :: (Maybe Text -> f (Maybe Text))
-> ListTagOptionsResponse -> f ListTagOptionsResponse
listTagOptionsResponse_pageToken = (ListTagOptionsResponse -> Maybe Text)
-> (ListTagOptionsResponse -> Maybe Text -> ListTagOptionsResponse)
-> Lens' ListTagOptionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagOptionsResponse' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListTagOptionsResponse' :: ListTagOptionsResponse -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListTagOptionsResponse
s@ListTagOptionsResponse' {} Maybe Text
a -> ListTagOptionsResponse
s {$sel:pageToken:ListTagOptionsResponse' :: Maybe Text
pageToken = Maybe Text
a} :: ListTagOptionsResponse)
listTagOptionsResponse_tagOptionDetails :: Lens.Lens' ListTagOptionsResponse (Prelude.Maybe [TagOptionDetail])
listTagOptionsResponse_tagOptionDetails :: (Maybe [TagOptionDetail] -> f (Maybe [TagOptionDetail]))
-> ListTagOptionsResponse -> f ListTagOptionsResponse
listTagOptionsResponse_tagOptionDetails = (ListTagOptionsResponse -> Maybe [TagOptionDetail])
-> (ListTagOptionsResponse
-> Maybe [TagOptionDetail] -> ListTagOptionsResponse)
-> Lens' ListTagOptionsResponse (Maybe [TagOptionDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagOptionsResponse' {Maybe [TagOptionDetail]
tagOptionDetails :: Maybe [TagOptionDetail]
$sel:tagOptionDetails:ListTagOptionsResponse' :: ListTagOptionsResponse -> Maybe [TagOptionDetail]
tagOptionDetails} -> Maybe [TagOptionDetail]
tagOptionDetails) (\s :: ListTagOptionsResponse
s@ListTagOptionsResponse' {} Maybe [TagOptionDetail]
a -> ListTagOptionsResponse
s {$sel:tagOptionDetails:ListTagOptionsResponse' :: Maybe [TagOptionDetail]
tagOptionDetails = Maybe [TagOptionDetail]
a} :: ListTagOptionsResponse) ((Maybe [TagOptionDetail] -> f (Maybe [TagOptionDetail]))
-> ListTagOptionsResponse -> f ListTagOptionsResponse)
-> ((Maybe [TagOptionDetail] -> f (Maybe [TagOptionDetail]))
-> Maybe [TagOptionDetail] -> f (Maybe [TagOptionDetail]))
-> (Maybe [TagOptionDetail] -> f (Maybe [TagOptionDetail]))
-> ListTagOptionsResponse
-> f ListTagOptionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[TagOptionDetail]
[TagOptionDetail]
[TagOptionDetail]
[TagOptionDetail]
-> Iso
(Maybe [TagOptionDetail])
(Maybe [TagOptionDetail])
(Maybe [TagOptionDetail])
(Maybe [TagOptionDetail])
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 AnIso
[TagOptionDetail]
[TagOptionDetail]
[TagOptionDetail]
[TagOptionDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTagOptionsResponse_httpStatus :: Lens.Lens' ListTagOptionsResponse Prelude.Int
listTagOptionsResponse_httpStatus :: (Int -> f Int)
-> ListTagOptionsResponse -> f ListTagOptionsResponse
listTagOptionsResponse_httpStatus = (ListTagOptionsResponse -> Int)
-> (ListTagOptionsResponse -> Int -> ListTagOptionsResponse)
-> Lens ListTagOptionsResponse ListTagOptionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagOptionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTagOptionsResponse' :: ListTagOptionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTagOptionsResponse
s@ListTagOptionsResponse' {} Int
a -> ListTagOptionsResponse
s {$sel:httpStatus:ListTagOptionsResponse' :: Int
httpStatus = Int
a} :: ListTagOptionsResponse)
instance Prelude.NFData ListTagOptionsResponse