{-# 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.MediaPackage.ListOriginEndpoints
(
ListOriginEndpoints (..),
newListOriginEndpoints,
listOriginEndpoints_channelId,
listOriginEndpoints_nextToken,
listOriginEndpoints_maxResults,
ListOriginEndpointsResponse (..),
newListOriginEndpointsResponse,
listOriginEndpointsResponse_originEndpoints,
listOriginEndpointsResponse_nextToken,
listOriginEndpointsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaPackage.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListOriginEndpoints = ListOriginEndpoints'
{
ListOriginEndpoints -> Maybe Text
channelId :: Prelude.Maybe Prelude.Text,
ListOriginEndpoints -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListOriginEndpoints -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListOriginEndpoints -> ListOriginEndpoints -> Bool
(ListOriginEndpoints -> ListOriginEndpoints -> Bool)
-> (ListOriginEndpoints -> ListOriginEndpoints -> Bool)
-> Eq ListOriginEndpoints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOriginEndpoints -> ListOriginEndpoints -> Bool
$c/= :: ListOriginEndpoints -> ListOriginEndpoints -> Bool
== :: ListOriginEndpoints -> ListOriginEndpoints -> Bool
$c== :: ListOriginEndpoints -> ListOriginEndpoints -> Bool
Prelude.Eq, ReadPrec [ListOriginEndpoints]
ReadPrec ListOriginEndpoints
Int -> ReadS ListOriginEndpoints
ReadS [ListOriginEndpoints]
(Int -> ReadS ListOriginEndpoints)
-> ReadS [ListOriginEndpoints]
-> ReadPrec ListOriginEndpoints
-> ReadPrec [ListOriginEndpoints]
-> Read ListOriginEndpoints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOriginEndpoints]
$creadListPrec :: ReadPrec [ListOriginEndpoints]
readPrec :: ReadPrec ListOriginEndpoints
$creadPrec :: ReadPrec ListOriginEndpoints
readList :: ReadS [ListOriginEndpoints]
$creadList :: ReadS [ListOriginEndpoints]
readsPrec :: Int -> ReadS ListOriginEndpoints
$creadsPrec :: Int -> ReadS ListOriginEndpoints
Prelude.Read, Int -> ListOriginEndpoints -> ShowS
[ListOriginEndpoints] -> ShowS
ListOriginEndpoints -> String
(Int -> ListOriginEndpoints -> ShowS)
-> (ListOriginEndpoints -> String)
-> ([ListOriginEndpoints] -> ShowS)
-> Show ListOriginEndpoints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOriginEndpoints] -> ShowS
$cshowList :: [ListOriginEndpoints] -> ShowS
show :: ListOriginEndpoints -> String
$cshow :: ListOriginEndpoints -> String
showsPrec :: Int -> ListOriginEndpoints -> ShowS
$cshowsPrec :: Int -> ListOriginEndpoints -> ShowS
Prelude.Show, (forall x. ListOriginEndpoints -> Rep ListOriginEndpoints x)
-> (forall x. Rep ListOriginEndpoints x -> ListOriginEndpoints)
-> Generic ListOriginEndpoints
forall x. Rep ListOriginEndpoints x -> ListOriginEndpoints
forall x. ListOriginEndpoints -> Rep ListOriginEndpoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOriginEndpoints x -> ListOriginEndpoints
$cfrom :: forall x. ListOriginEndpoints -> Rep ListOriginEndpoints x
Prelude.Generic)
newListOriginEndpoints ::
ListOriginEndpoints
newListOriginEndpoints :: ListOriginEndpoints
newListOriginEndpoints =
ListOriginEndpoints' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListOriginEndpoints
ListOriginEndpoints'
{ $sel:channelId:ListOriginEndpoints' :: Maybe Text
channelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListOriginEndpoints' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListOriginEndpoints' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listOriginEndpoints_channelId :: Lens.Lens' ListOriginEndpoints (Prelude.Maybe Prelude.Text)
listOriginEndpoints_channelId :: (Maybe Text -> f (Maybe Text))
-> ListOriginEndpoints -> f ListOriginEndpoints
listOriginEndpoints_channelId = (ListOriginEndpoints -> Maybe Text)
-> (ListOriginEndpoints -> Maybe Text -> ListOriginEndpoints)
-> Lens
ListOriginEndpoints ListOriginEndpoints (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOriginEndpoints' {Maybe Text
channelId :: Maybe Text
$sel:channelId:ListOriginEndpoints' :: ListOriginEndpoints -> Maybe Text
channelId} -> Maybe Text
channelId) (\s :: ListOriginEndpoints
s@ListOriginEndpoints' {} Maybe Text
a -> ListOriginEndpoints
s {$sel:channelId:ListOriginEndpoints' :: Maybe Text
channelId = Maybe Text
a} :: ListOriginEndpoints)
listOriginEndpoints_nextToken :: Lens.Lens' ListOriginEndpoints (Prelude.Maybe Prelude.Text)
listOriginEndpoints_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListOriginEndpoints -> f ListOriginEndpoints
listOriginEndpoints_nextToken = (ListOriginEndpoints -> Maybe Text)
-> (ListOriginEndpoints -> Maybe Text -> ListOriginEndpoints)
-> Lens
ListOriginEndpoints ListOriginEndpoints (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOriginEndpoints' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOriginEndpoints' :: ListOriginEndpoints -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOriginEndpoints
s@ListOriginEndpoints' {} Maybe Text
a -> ListOriginEndpoints
s {$sel:nextToken:ListOriginEndpoints' :: Maybe Text
nextToken = Maybe Text
a} :: ListOriginEndpoints)
listOriginEndpoints_maxResults :: Lens.Lens' ListOriginEndpoints (Prelude.Maybe Prelude.Natural)
listOriginEndpoints_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListOriginEndpoints -> f ListOriginEndpoints
listOriginEndpoints_maxResults = (ListOriginEndpoints -> Maybe Natural)
-> (ListOriginEndpoints -> Maybe Natural -> ListOriginEndpoints)
-> Lens
ListOriginEndpoints
ListOriginEndpoints
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOriginEndpoints' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOriginEndpoints' :: ListOriginEndpoints -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOriginEndpoints
s@ListOriginEndpoints' {} Maybe Natural
a -> ListOriginEndpoints
s {$sel:maxResults:ListOriginEndpoints' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOriginEndpoints)
instance Core.AWSPager ListOriginEndpoints where
page :: ListOriginEndpoints
-> AWSResponse ListOriginEndpoints -> Maybe ListOriginEndpoints
page ListOriginEndpoints
rq AWSResponse ListOriginEndpoints
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOriginEndpoints
ListOriginEndpointsResponse
rs
ListOriginEndpointsResponse
-> Getting (First Text) ListOriginEndpointsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOriginEndpointsResponse
-> Const (First Text) ListOriginEndpointsResponse
Lens' ListOriginEndpointsResponse (Maybe Text)
listOriginEndpointsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListOriginEndpointsResponse
-> Const (First Text) ListOriginEndpointsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOriginEndpointsResponse 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 ListOriginEndpoints
forall a. Maybe a
Prelude.Nothing
| Maybe [OriginEndpoint] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOriginEndpoints
ListOriginEndpointsResponse
rs
ListOriginEndpointsResponse
-> Getting
(First [OriginEndpoint])
ListOriginEndpointsResponse
[OriginEndpoint]
-> Maybe [OriginEndpoint]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [OriginEndpoint]
-> Const (First [OriginEndpoint]) (Maybe [OriginEndpoint]))
-> ListOriginEndpointsResponse
-> Const (First [OriginEndpoint]) ListOriginEndpointsResponse
Lens' ListOriginEndpointsResponse (Maybe [OriginEndpoint])
listOriginEndpointsResponse_originEndpoints
((Maybe [OriginEndpoint]
-> Const (First [OriginEndpoint]) (Maybe [OriginEndpoint]))
-> ListOriginEndpointsResponse
-> Const (First [OriginEndpoint]) ListOriginEndpointsResponse)
-> (([OriginEndpoint]
-> Const (First [OriginEndpoint]) [OriginEndpoint])
-> Maybe [OriginEndpoint]
-> Const (First [OriginEndpoint]) (Maybe [OriginEndpoint]))
-> Getting
(First [OriginEndpoint])
ListOriginEndpointsResponse
[OriginEndpoint]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([OriginEndpoint]
-> Const (First [OriginEndpoint]) [OriginEndpoint])
-> Maybe [OriginEndpoint]
-> Const (First [OriginEndpoint]) (Maybe [OriginEndpoint])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListOriginEndpoints
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListOriginEndpoints -> Maybe ListOriginEndpoints
forall a. a -> Maybe a
Prelude.Just (ListOriginEndpoints -> Maybe ListOriginEndpoints)
-> ListOriginEndpoints -> Maybe ListOriginEndpoints
forall a b. (a -> b) -> a -> b
Prelude.$
ListOriginEndpoints
rq
ListOriginEndpoints
-> (ListOriginEndpoints -> ListOriginEndpoints)
-> ListOriginEndpoints
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListOriginEndpoints -> Identity ListOriginEndpoints
Lens
ListOriginEndpoints ListOriginEndpoints (Maybe Text) (Maybe Text)
listOriginEndpoints_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListOriginEndpoints -> Identity ListOriginEndpoints)
-> Maybe Text -> ListOriginEndpoints -> ListOriginEndpoints
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListOriginEndpoints
ListOriginEndpointsResponse
rs
ListOriginEndpointsResponse
-> Getting (First Text) ListOriginEndpointsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOriginEndpointsResponse
-> Const (First Text) ListOriginEndpointsResponse
Lens' ListOriginEndpointsResponse (Maybe Text)
listOriginEndpointsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListOriginEndpointsResponse
-> Const (First Text) ListOriginEndpointsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOriginEndpointsResponse 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 ListOriginEndpoints where
type
AWSResponse ListOriginEndpoints =
ListOriginEndpointsResponse
request :: ListOriginEndpoints -> Request ListOriginEndpoints
request = Service -> ListOriginEndpoints -> Request ListOriginEndpoints
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListOriginEndpoints
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListOriginEndpoints)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListOriginEndpoints))
-> Logger
-> Service
-> Proxy ListOriginEndpoints
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListOriginEndpoints)))
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 [OriginEndpoint]
-> Maybe Text -> Int -> ListOriginEndpointsResponse
ListOriginEndpointsResponse'
(Maybe [OriginEndpoint]
-> Maybe Text -> Int -> ListOriginEndpointsResponse)
-> Either String (Maybe [OriginEndpoint])
-> Either String (Maybe Text -> Int -> ListOriginEndpointsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [OriginEndpoint]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"originEndpoints"
Either String (Maybe (Maybe [OriginEndpoint]))
-> Maybe [OriginEndpoint] -> Either String (Maybe [OriginEndpoint])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OriginEndpoint]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListOriginEndpointsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListOriginEndpointsResponse)
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 -> ListOriginEndpointsResponse)
-> Either String Int -> Either String ListOriginEndpointsResponse
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 ListOriginEndpoints
instance Prelude.NFData ListOriginEndpoints
instance Core.ToHeaders ListOriginEndpoints where
toHeaders :: ListOriginEndpoints -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListOriginEndpoints -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListOriginEndpoints where
toPath :: ListOriginEndpoints -> ByteString
toPath = ByteString -> ListOriginEndpoints -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/origin_endpoints"
instance Core.ToQuery ListOriginEndpoints where
toQuery :: ListOriginEndpoints -> QueryString
toQuery ListOriginEndpoints' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
channelId :: Maybe Text
$sel:maxResults:ListOriginEndpoints' :: ListOriginEndpoints -> Maybe Natural
$sel:nextToken:ListOriginEndpoints' :: ListOriginEndpoints -> Maybe Text
$sel:channelId:ListOriginEndpoints' :: ListOriginEndpoints -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"channelId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
channelId,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListOriginEndpointsResponse = ListOriginEndpointsResponse'
{
ListOriginEndpointsResponse -> Maybe [OriginEndpoint]
originEndpoints :: Prelude.Maybe [OriginEndpoint],
ListOriginEndpointsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListOriginEndpointsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListOriginEndpointsResponse -> ListOriginEndpointsResponse -> Bool
(ListOriginEndpointsResponse
-> ListOriginEndpointsResponse -> Bool)
-> (ListOriginEndpointsResponse
-> ListOriginEndpointsResponse -> Bool)
-> Eq ListOriginEndpointsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOriginEndpointsResponse -> ListOriginEndpointsResponse -> Bool
$c/= :: ListOriginEndpointsResponse -> ListOriginEndpointsResponse -> Bool
== :: ListOriginEndpointsResponse -> ListOriginEndpointsResponse -> Bool
$c== :: ListOriginEndpointsResponse -> ListOriginEndpointsResponse -> Bool
Prelude.Eq, ReadPrec [ListOriginEndpointsResponse]
ReadPrec ListOriginEndpointsResponse
Int -> ReadS ListOriginEndpointsResponse
ReadS [ListOriginEndpointsResponse]
(Int -> ReadS ListOriginEndpointsResponse)
-> ReadS [ListOriginEndpointsResponse]
-> ReadPrec ListOriginEndpointsResponse
-> ReadPrec [ListOriginEndpointsResponse]
-> Read ListOriginEndpointsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOriginEndpointsResponse]
$creadListPrec :: ReadPrec [ListOriginEndpointsResponse]
readPrec :: ReadPrec ListOriginEndpointsResponse
$creadPrec :: ReadPrec ListOriginEndpointsResponse
readList :: ReadS [ListOriginEndpointsResponse]
$creadList :: ReadS [ListOriginEndpointsResponse]
readsPrec :: Int -> ReadS ListOriginEndpointsResponse
$creadsPrec :: Int -> ReadS ListOriginEndpointsResponse
Prelude.Read, Int -> ListOriginEndpointsResponse -> ShowS
[ListOriginEndpointsResponse] -> ShowS
ListOriginEndpointsResponse -> String
(Int -> ListOriginEndpointsResponse -> ShowS)
-> (ListOriginEndpointsResponse -> String)
-> ([ListOriginEndpointsResponse] -> ShowS)
-> Show ListOriginEndpointsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOriginEndpointsResponse] -> ShowS
$cshowList :: [ListOriginEndpointsResponse] -> ShowS
show :: ListOriginEndpointsResponse -> String
$cshow :: ListOriginEndpointsResponse -> String
showsPrec :: Int -> ListOriginEndpointsResponse -> ShowS
$cshowsPrec :: Int -> ListOriginEndpointsResponse -> ShowS
Prelude.Show, (forall x.
ListOriginEndpointsResponse -> Rep ListOriginEndpointsResponse x)
-> (forall x.
Rep ListOriginEndpointsResponse x -> ListOriginEndpointsResponse)
-> Generic ListOriginEndpointsResponse
forall x.
Rep ListOriginEndpointsResponse x -> ListOriginEndpointsResponse
forall x.
ListOriginEndpointsResponse -> Rep ListOriginEndpointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListOriginEndpointsResponse x -> ListOriginEndpointsResponse
$cfrom :: forall x.
ListOriginEndpointsResponse -> Rep ListOriginEndpointsResponse x
Prelude.Generic)
newListOriginEndpointsResponse ::
Prelude.Int ->
ListOriginEndpointsResponse
newListOriginEndpointsResponse :: Int -> ListOriginEndpointsResponse
newListOriginEndpointsResponse Int
pHttpStatus_ =
ListOriginEndpointsResponse' :: Maybe [OriginEndpoint]
-> Maybe Text -> Int -> ListOriginEndpointsResponse
ListOriginEndpointsResponse'
{ $sel:originEndpoints:ListOriginEndpointsResponse' :: Maybe [OriginEndpoint]
originEndpoints =
Maybe [OriginEndpoint]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListOriginEndpointsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListOriginEndpointsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listOriginEndpointsResponse_originEndpoints :: Lens.Lens' ListOriginEndpointsResponse (Prelude.Maybe [OriginEndpoint])
listOriginEndpointsResponse_originEndpoints :: (Maybe [OriginEndpoint] -> f (Maybe [OriginEndpoint]))
-> ListOriginEndpointsResponse -> f ListOriginEndpointsResponse
listOriginEndpointsResponse_originEndpoints = (ListOriginEndpointsResponse -> Maybe [OriginEndpoint])
-> (ListOriginEndpointsResponse
-> Maybe [OriginEndpoint] -> ListOriginEndpointsResponse)
-> Lens' ListOriginEndpointsResponse (Maybe [OriginEndpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOriginEndpointsResponse' {Maybe [OriginEndpoint]
originEndpoints :: Maybe [OriginEndpoint]
$sel:originEndpoints:ListOriginEndpointsResponse' :: ListOriginEndpointsResponse -> Maybe [OriginEndpoint]
originEndpoints} -> Maybe [OriginEndpoint]
originEndpoints) (\s :: ListOriginEndpointsResponse
s@ListOriginEndpointsResponse' {} Maybe [OriginEndpoint]
a -> ListOriginEndpointsResponse
s {$sel:originEndpoints:ListOriginEndpointsResponse' :: Maybe [OriginEndpoint]
originEndpoints = Maybe [OriginEndpoint]
a} :: ListOriginEndpointsResponse) ((Maybe [OriginEndpoint] -> f (Maybe [OriginEndpoint]))
-> ListOriginEndpointsResponse -> f ListOriginEndpointsResponse)
-> ((Maybe [OriginEndpoint] -> f (Maybe [OriginEndpoint]))
-> Maybe [OriginEndpoint] -> f (Maybe [OriginEndpoint]))
-> (Maybe [OriginEndpoint] -> f (Maybe [OriginEndpoint]))
-> ListOriginEndpointsResponse
-> f ListOriginEndpointsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OriginEndpoint] [OriginEndpoint] [OriginEndpoint] [OriginEndpoint]
-> Iso
(Maybe [OriginEndpoint])
(Maybe [OriginEndpoint])
(Maybe [OriginEndpoint])
(Maybe [OriginEndpoint])
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
[OriginEndpoint] [OriginEndpoint] [OriginEndpoint] [OriginEndpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listOriginEndpointsResponse_nextToken :: Lens.Lens' ListOriginEndpointsResponse (Prelude.Maybe Prelude.Text)
listOriginEndpointsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListOriginEndpointsResponse -> f ListOriginEndpointsResponse
listOriginEndpointsResponse_nextToken = (ListOriginEndpointsResponse -> Maybe Text)
-> (ListOriginEndpointsResponse
-> Maybe Text -> ListOriginEndpointsResponse)
-> Lens' ListOriginEndpointsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOriginEndpointsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOriginEndpointsResponse' :: ListOriginEndpointsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOriginEndpointsResponse
s@ListOriginEndpointsResponse' {} Maybe Text
a -> ListOriginEndpointsResponse
s {$sel:nextToken:ListOriginEndpointsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListOriginEndpointsResponse)
listOriginEndpointsResponse_httpStatus :: Lens.Lens' ListOriginEndpointsResponse Prelude.Int
listOriginEndpointsResponse_httpStatus :: (Int -> f Int)
-> ListOriginEndpointsResponse -> f ListOriginEndpointsResponse
listOriginEndpointsResponse_httpStatus = (ListOriginEndpointsResponse -> Int)
-> (ListOriginEndpointsResponse
-> Int -> ListOriginEndpointsResponse)
-> Lens
ListOriginEndpointsResponse ListOriginEndpointsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOriginEndpointsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListOriginEndpointsResponse' :: ListOriginEndpointsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListOriginEndpointsResponse
s@ListOriginEndpointsResponse' {} Int
a -> ListOriginEndpointsResponse
s {$sel:httpStatus:ListOriginEndpointsResponse' :: Int
httpStatus = Int
a} :: ListOriginEndpointsResponse)
instance Prelude.NFData ListOriginEndpointsResponse