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