{-# 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.FMS.ListProtocolsLists
(
ListProtocolsLists (..),
newListProtocolsLists,
listProtocolsLists_defaultLists,
listProtocolsLists_nextToken,
listProtocolsLists_maxResults,
ListProtocolsListsResponse (..),
newListProtocolsListsResponse,
listProtocolsListsResponse_protocolsLists,
listProtocolsListsResponse_nextToken,
listProtocolsListsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FMS.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
data ListProtocolsLists = ListProtocolsLists'
{
ListProtocolsLists -> Maybe Bool
defaultLists :: Prelude.Maybe Prelude.Bool,
ListProtocolsLists -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProtocolsLists -> Natural
maxResults :: Prelude.Natural
}
deriving (ListProtocolsLists -> ListProtocolsLists -> Bool
(ListProtocolsLists -> ListProtocolsLists -> Bool)
-> (ListProtocolsLists -> ListProtocolsLists -> Bool)
-> Eq ListProtocolsLists
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProtocolsLists -> ListProtocolsLists -> Bool
$c/= :: ListProtocolsLists -> ListProtocolsLists -> Bool
== :: ListProtocolsLists -> ListProtocolsLists -> Bool
$c== :: ListProtocolsLists -> ListProtocolsLists -> Bool
Prelude.Eq, ReadPrec [ListProtocolsLists]
ReadPrec ListProtocolsLists
Int -> ReadS ListProtocolsLists
ReadS [ListProtocolsLists]
(Int -> ReadS ListProtocolsLists)
-> ReadS [ListProtocolsLists]
-> ReadPrec ListProtocolsLists
-> ReadPrec [ListProtocolsLists]
-> Read ListProtocolsLists
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProtocolsLists]
$creadListPrec :: ReadPrec [ListProtocolsLists]
readPrec :: ReadPrec ListProtocolsLists
$creadPrec :: ReadPrec ListProtocolsLists
readList :: ReadS [ListProtocolsLists]
$creadList :: ReadS [ListProtocolsLists]
readsPrec :: Int -> ReadS ListProtocolsLists
$creadsPrec :: Int -> ReadS ListProtocolsLists
Prelude.Read, Int -> ListProtocolsLists -> ShowS
[ListProtocolsLists] -> ShowS
ListProtocolsLists -> String
(Int -> ListProtocolsLists -> ShowS)
-> (ListProtocolsLists -> String)
-> ([ListProtocolsLists] -> ShowS)
-> Show ListProtocolsLists
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProtocolsLists] -> ShowS
$cshowList :: [ListProtocolsLists] -> ShowS
show :: ListProtocolsLists -> String
$cshow :: ListProtocolsLists -> String
showsPrec :: Int -> ListProtocolsLists -> ShowS
$cshowsPrec :: Int -> ListProtocolsLists -> ShowS
Prelude.Show, (forall x. ListProtocolsLists -> Rep ListProtocolsLists x)
-> (forall x. Rep ListProtocolsLists x -> ListProtocolsLists)
-> Generic ListProtocolsLists
forall x. Rep ListProtocolsLists x -> ListProtocolsLists
forall x. ListProtocolsLists -> Rep ListProtocolsLists x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListProtocolsLists x -> ListProtocolsLists
$cfrom :: forall x. ListProtocolsLists -> Rep ListProtocolsLists x
Prelude.Generic)
newListProtocolsLists ::
Prelude.Natural ->
ListProtocolsLists
newListProtocolsLists :: Natural -> ListProtocolsLists
newListProtocolsLists Natural
pMaxResults_ =
ListProtocolsLists' :: Maybe Bool -> Maybe Text -> Natural -> ListProtocolsLists
ListProtocolsLists'
{ $sel:defaultLists:ListProtocolsLists' :: Maybe Bool
defaultLists = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProtocolsLists' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListProtocolsLists' :: Natural
maxResults = Natural
pMaxResults_
}
listProtocolsLists_defaultLists :: Lens.Lens' ListProtocolsLists (Prelude.Maybe Prelude.Bool)
listProtocolsLists_defaultLists :: (Maybe Bool -> f (Maybe Bool))
-> ListProtocolsLists -> f ListProtocolsLists
listProtocolsLists_defaultLists = (ListProtocolsLists -> Maybe Bool)
-> (ListProtocolsLists -> Maybe Bool -> ListProtocolsLists)
-> Lens
ListProtocolsLists ListProtocolsLists (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProtocolsLists' {Maybe Bool
defaultLists :: Maybe Bool
$sel:defaultLists:ListProtocolsLists' :: ListProtocolsLists -> Maybe Bool
defaultLists} -> Maybe Bool
defaultLists) (\s :: ListProtocolsLists
s@ListProtocolsLists' {} Maybe Bool
a -> ListProtocolsLists
s {$sel:defaultLists:ListProtocolsLists' :: Maybe Bool
defaultLists = Maybe Bool
a} :: ListProtocolsLists)
listProtocolsLists_nextToken :: Lens.Lens' ListProtocolsLists (Prelude.Maybe Prelude.Text)
listProtocolsLists_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProtocolsLists -> f ListProtocolsLists
listProtocolsLists_nextToken = (ListProtocolsLists -> Maybe Text)
-> (ListProtocolsLists -> Maybe Text -> ListProtocolsLists)
-> Lens
ListProtocolsLists ListProtocolsLists (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProtocolsLists' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProtocolsLists' :: ListProtocolsLists -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProtocolsLists
s@ListProtocolsLists' {} Maybe Text
a -> ListProtocolsLists
s {$sel:nextToken:ListProtocolsLists' :: Maybe Text
nextToken = Maybe Text
a} :: ListProtocolsLists)
listProtocolsLists_maxResults :: Lens.Lens' ListProtocolsLists Prelude.Natural
listProtocolsLists_maxResults :: (Natural -> f Natural)
-> ListProtocolsLists -> f ListProtocolsLists
listProtocolsLists_maxResults = (ListProtocolsLists -> Natural)
-> (ListProtocolsLists -> Natural -> ListProtocolsLists)
-> Lens ListProtocolsLists ListProtocolsLists Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProtocolsLists' {Natural
maxResults :: Natural
$sel:maxResults:ListProtocolsLists' :: ListProtocolsLists -> Natural
maxResults} -> Natural
maxResults) (\s :: ListProtocolsLists
s@ListProtocolsLists' {} Natural
a -> ListProtocolsLists
s {$sel:maxResults:ListProtocolsLists' :: Natural
maxResults = Natural
a} :: ListProtocolsLists)
instance Core.AWSPager ListProtocolsLists where
page :: ListProtocolsLists
-> AWSResponse ListProtocolsLists -> Maybe ListProtocolsLists
page ListProtocolsLists
rq AWSResponse ListProtocolsLists
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListProtocolsLists
ListProtocolsListsResponse
rs
ListProtocolsListsResponse
-> Getting (First Text) ListProtocolsListsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListProtocolsListsResponse
-> Const (First Text) ListProtocolsListsResponse
Lens' ListProtocolsListsResponse (Maybe Text)
listProtocolsListsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListProtocolsListsResponse
-> Const (First Text) ListProtocolsListsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListProtocolsListsResponse 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 ListProtocolsLists
forall a. Maybe a
Prelude.Nothing
| Maybe [ProtocolsListDataSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListProtocolsLists
ListProtocolsListsResponse
rs
ListProtocolsListsResponse
-> Getting
(First [ProtocolsListDataSummary])
ListProtocolsListsResponse
[ProtocolsListDataSummary]
-> Maybe [ProtocolsListDataSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ProtocolsListDataSummary]
-> Const
(First [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary]))
-> ListProtocolsListsResponse
-> Const
(First [ProtocolsListDataSummary]) ListProtocolsListsResponse
Lens' ListProtocolsListsResponse (Maybe [ProtocolsListDataSummary])
listProtocolsListsResponse_protocolsLists
((Maybe [ProtocolsListDataSummary]
-> Const
(First [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary]))
-> ListProtocolsListsResponse
-> Const
(First [ProtocolsListDataSummary]) ListProtocolsListsResponse)
-> (([ProtocolsListDataSummary]
-> Const
(First [ProtocolsListDataSummary]) [ProtocolsListDataSummary])
-> Maybe [ProtocolsListDataSummary]
-> Const
(First [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary]))
-> Getting
(First [ProtocolsListDataSummary])
ListProtocolsListsResponse
[ProtocolsListDataSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ProtocolsListDataSummary]
-> Const
(First [ProtocolsListDataSummary]) [ProtocolsListDataSummary])
-> Maybe [ProtocolsListDataSummary]
-> Const
(First [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListProtocolsLists
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListProtocolsLists -> Maybe ListProtocolsLists
forall a. a -> Maybe a
Prelude.Just (ListProtocolsLists -> Maybe ListProtocolsLists)
-> ListProtocolsLists -> Maybe ListProtocolsLists
forall a b. (a -> b) -> a -> b
Prelude.$
ListProtocolsLists
rq
ListProtocolsLists
-> (ListProtocolsLists -> ListProtocolsLists) -> ListProtocolsLists
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListProtocolsLists -> Identity ListProtocolsLists
Lens
ListProtocolsLists ListProtocolsLists (Maybe Text) (Maybe Text)
listProtocolsLists_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListProtocolsLists -> Identity ListProtocolsLists)
-> Maybe Text -> ListProtocolsLists -> ListProtocolsLists
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListProtocolsLists
ListProtocolsListsResponse
rs
ListProtocolsListsResponse
-> Getting (First Text) ListProtocolsListsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListProtocolsListsResponse
-> Const (First Text) ListProtocolsListsResponse
Lens' ListProtocolsListsResponse (Maybe Text)
listProtocolsListsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListProtocolsListsResponse
-> Const (First Text) ListProtocolsListsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListProtocolsListsResponse 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 ListProtocolsLists where
type
AWSResponse ListProtocolsLists =
ListProtocolsListsResponse
request :: ListProtocolsLists -> Request ListProtocolsLists
request = Service -> ListProtocolsLists -> Request ListProtocolsLists
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListProtocolsLists
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProtocolsLists)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListProtocolsLists))
-> Logger
-> Service
-> Proxy ListProtocolsLists
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProtocolsLists)))
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 [ProtocolsListDataSummary]
-> Maybe Text -> Int -> ListProtocolsListsResponse
ListProtocolsListsResponse'
(Maybe [ProtocolsListDataSummary]
-> Maybe Text -> Int -> ListProtocolsListsResponse)
-> Either String (Maybe [ProtocolsListDataSummary])
-> Either String (Maybe Text -> Int -> ListProtocolsListsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [ProtocolsListDataSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProtocolsLists" Either String (Maybe (Maybe [ProtocolsListDataSummary]))
-> Maybe [ProtocolsListDataSummary]
-> Either String (Maybe [ProtocolsListDataSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ProtocolsListDataSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListProtocolsListsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListProtocolsListsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListProtocolsListsResponse)
-> Either String Int -> Either String ListProtocolsListsResponse
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 ListProtocolsLists
instance Prelude.NFData ListProtocolsLists
instance Core.ToHeaders ListProtocolsLists where
toHeaders :: ListProtocolsLists -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListProtocolsLists -> 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
"AWSFMS_20180101.ListProtocolsLists" ::
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 ListProtocolsLists where
toJSON :: ListProtocolsLists -> Value
toJSON ListProtocolsLists' {Natural
Maybe Bool
Maybe Text
maxResults :: Natural
nextToken :: Maybe Text
defaultLists :: Maybe Bool
$sel:maxResults:ListProtocolsLists' :: ListProtocolsLists -> Natural
$sel:nextToken:ListProtocolsLists' :: ListProtocolsLists -> Maybe Text
$sel:defaultLists:ListProtocolsLists' :: ListProtocolsLists -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DefaultLists" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
defaultLists,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
maxResults)
]
)
instance Core.ToPath ListProtocolsLists where
toPath :: ListProtocolsLists -> ByteString
toPath = ByteString -> ListProtocolsLists -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListProtocolsLists where
toQuery :: ListProtocolsLists -> QueryString
toQuery = QueryString -> ListProtocolsLists -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListProtocolsListsResponse = ListProtocolsListsResponse'
{
ListProtocolsListsResponse -> Maybe [ProtocolsListDataSummary]
protocolsLists :: Prelude.Maybe [ProtocolsListDataSummary],
ListProtocolsListsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProtocolsListsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListProtocolsListsResponse -> ListProtocolsListsResponse -> Bool
(ListProtocolsListsResponse -> ListProtocolsListsResponse -> Bool)
-> (ListProtocolsListsResponse
-> ListProtocolsListsResponse -> Bool)
-> Eq ListProtocolsListsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProtocolsListsResponse -> ListProtocolsListsResponse -> Bool
$c/= :: ListProtocolsListsResponse -> ListProtocolsListsResponse -> Bool
== :: ListProtocolsListsResponse -> ListProtocolsListsResponse -> Bool
$c== :: ListProtocolsListsResponse -> ListProtocolsListsResponse -> Bool
Prelude.Eq, ReadPrec [ListProtocolsListsResponse]
ReadPrec ListProtocolsListsResponse
Int -> ReadS ListProtocolsListsResponse
ReadS [ListProtocolsListsResponse]
(Int -> ReadS ListProtocolsListsResponse)
-> ReadS [ListProtocolsListsResponse]
-> ReadPrec ListProtocolsListsResponse
-> ReadPrec [ListProtocolsListsResponse]
-> Read ListProtocolsListsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProtocolsListsResponse]
$creadListPrec :: ReadPrec [ListProtocolsListsResponse]
readPrec :: ReadPrec ListProtocolsListsResponse
$creadPrec :: ReadPrec ListProtocolsListsResponse
readList :: ReadS [ListProtocolsListsResponse]
$creadList :: ReadS [ListProtocolsListsResponse]
readsPrec :: Int -> ReadS ListProtocolsListsResponse
$creadsPrec :: Int -> ReadS ListProtocolsListsResponse
Prelude.Read, Int -> ListProtocolsListsResponse -> ShowS
[ListProtocolsListsResponse] -> ShowS
ListProtocolsListsResponse -> String
(Int -> ListProtocolsListsResponse -> ShowS)
-> (ListProtocolsListsResponse -> String)
-> ([ListProtocolsListsResponse] -> ShowS)
-> Show ListProtocolsListsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProtocolsListsResponse] -> ShowS
$cshowList :: [ListProtocolsListsResponse] -> ShowS
show :: ListProtocolsListsResponse -> String
$cshow :: ListProtocolsListsResponse -> String
showsPrec :: Int -> ListProtocolsListsResponse -> ShowS
$cshowsPrec :: Int -> ListProtocolsListsResponse -> ShowS
Prelude.Show, (forall x.
ListProtocolsListsResponse -> Rep ListProtocolsListsResponse x)
-> (forall x.
Rep ListProtocolsListsResponse x -> ListProtocolsListsResponse)
-> Generic ListProtocolsListsResponse
forall x.
Rep ListProtocolsListsResponse x -> ListProtocolsListsResponse
forall x.
ListProtocolsListsResponse -> Rep ListProtocolsListsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProtocolsListsResponse x -> ListProtocolsListsResponse
$cfrom :: forall x.
ListProtocolsListsResponse -> Rep ListProtocolsListsResponse x
Prelude.Generic)
newListProtocolsListsResponse ::
Prelude.Int ->
ListProtocolsListsResponse
newListProtocolsListsResponse :: Int -> ListProtocolsListsResponse
newListProtocolsListsResponse Int
pHttpStatus_ =
ListProtocolsListsResponse' :: Maybe [ProtocolsListDataSummary]
-> Maybe Text -> Int -> ListProtocolsListsResponse
ListProtocolsListsResponse'
{ $sel:protocolsLists:ListProtocolsListsResponse' :: Maybe [ProtocolsListDataSummary]
protocolsLists =
Maybe [ProtocolsListDataSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProtocolsListsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListProtocolsListsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listProtocolsListsResponse_protocolsLists :: Lens.Lens' ListProtocolsListsResponse (Prelude.Maybe [ProtocolsListDataSummary])
listProtocolsListsResponse_protocolsLists :: (Maybe [ProtocolsListDataSummary]
-> f (Maybe [ProtocolsListDataSummary]))
-> ListProtocolsListsResponse -> f ListProtocolsListsResponse
listProtocolsListsResponse_protocolsLists = (ListProtocolsListsResponse -> Maybe [ProtocolsListDataSummary])
-> (ListProtocolsListsResponse
-> Maybe [ProtocolsListDataSummary] -> ListProtocolsListsResponse)
-> Lens'
ListProtocolsListsResponse (Maybe [ProtocolsListDataSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProtocolsListsResponse' {Maybe [ProtocolsListDataSummary]
protocolsLists :: Maybe [ProtocolsListDataSummary]
$sel:protocolsLists:ListProtocolsListsResponse' :: ListProtocolsListsResponse -> Maybe [ProtocolsListDataSummary]
protocolsLists} -> Maybe [ProtocolsListDataSummary]
protocolsLists) (\s :: ListProtocolsListsResponse
s@ListProtocolsListsResponse' {} Maybe [ProtocolsListDataSummary]
a -> ListProtocolsListsResponse
s {$sel:protocolsLists:ListProtocolsListsResponse' :: Maybe [ProtocolsListDataSummary]
protocolsLists = Maybe [ProtocolsListDataSummary]
a} :: ListProtocolsListsResponse) ((Maybe [ProtocolsListDataSummary]
-> f (Maybe [ProtocolsListDataSummary]))
-> ListProtocolsListsResponse -> f ListProtocolsListsResponse)
-> ((Maybe [ProtocolsListDataSummary]
-> f (Maybe [ProtocolsListDataSummary]))
-> Maybe [ProtocolsListDataSummary]
-> f (Maybe [ProtocolsListDataSummary]))
-> (Maybe [ProtocolsListDataSummary]
-> f (Maybe [ProtocolsListDataSummary]))
-> ListProtocolsListsResponse
-> f ListProtocolsListsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ProtocolsListDataSummary]
[ProtocolsListDataSummary]
[ProtocolsListDataSummary]
[ProtocolsListDataSummary]
-> Iso
(Maybe [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary])
(Maybe [ProtocolsListDataSummary])
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
[ProtocolsListDataSummary]
[ProtocolsListDataSummary]
[ProtocolsListDataSummary]
[ProtocolsListDataSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listProtocolsListsResponse_nextToken :: Lens.Lens' ListProtocolsListsResponse (Prelude.Maybe Prelude.Text)
listProtocolsListsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProtocolsListsResponse -> f ListProtocolsListsResponse
listProtocolsListsResponse_nextToken = (ListProtocolsListsResponse -> Maybe Text)
-> (ListProtocolsListsResponse
-> Maybe Text -> ListProtocolsListsResponse)
-> Lens' ListProtocolsListsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProtocolsListsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProtocolsListsResponse' :: ListProtocolsListsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProtocolsListsResponse
s@ListProtocolsListsResponse' {} Maybe Text
a -> ListProtocolsListsResponse
s {$sel:nextToken:ListProtocolsListsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProtocolsListsResponse)
listProtocolsListsResponse_httpStatus :: Lens.Lens' ListProtocolsListsResponse Prelude.Int
listProtocolsListsResponse_httpStatus :: (Int -> f Int)
-> ListProtocolsListsResponse -> f ListProtocolsListsResponse
listProtocolsListsResponse_httpStatus = (ListProtocolsListsResponse -> Int)
-> (ListProtocolsListsResponse
-> Int -> ListProtocolsListsResponse)
-> Lens
ListProtocolsListsResponse ListProtocolsListsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProtocolsListsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListProtocolsListsResponse' :: ListProtocolsListsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListProtocolsListsResponse
s@ListProtocolsListsResponse' {} Int
a -> ListProtocolsListsResponse
s {$sel:httpStatus:ListProtocolsListsResponse' :: Int
httpStatus = Int
a} :: ListProtocolsListsResponse)
instance Prelude.NFData ListProtocolsListsResponse