{-# 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.ListAccelerators
(
ListAccelerators (..),
newListAccelerators,
listAccelerators_nextToken,
listAccelerators_maxResults,
ListAcceleratorsResponse (..),
newListAcceleratorsResponse,
listAcceleratorsResponse_nextToken,
listAcceleratorsResponse_accelerators,
listAcceleratorsResponse_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 ListAccelerators = ListAccelerators'
{
ListAccelerators -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAccelerators -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListAccelerators -> ListAccelerators -> Bool
(ListAccelerators -> ListAccelerators -> Bool)
-> (ListAccelerators -> ListAccelerators -> Bool)
-> Eq ListAccelerators
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAccelerators -> ListAccelerators -> Bool
$c/= :: ListAccelerators -> ListAccelerators -> Bool
== :: ListAccelerators -> ListAccelerators -> Bool
$c== :: ListAccelerators -> ListAccelerators -> Bool
Prelude.Eq, ReadPrec [ListAccelerators]
ReadPrec ListAccelerators
Int -> ReadS ListAccelerators
ReadS [ListAccelerators]
(Int -> ReadS ListAccelerators)
-> ReadS [ListAccelerators]
-> ReadPrec ListAccelerators
-> ReadPrec [ListAccelerators]
-> Read ListAccelerators
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAccelerators]
$creadListPrec :: ReadPrec [ListAccelerators]
readPrec :: ReadPrec ListAccelerators
$creadPrec :: ReadPrec ListAccelerators
readList :: ReadS [ListAccelerators]
$creadList :: ReadS [ListAccelerators]
readsPrec :: Int -> ReadS ListAccelerators
$creadsPrec :: Int -> ReadS ListAccelerators
Prelude.Read, Int -> ListAccelerators -> ShowS
[ListAccelerators] -> ShowS
ListAccelerators -> String
(Int -> ListAccelerators -> ShowS)
-> (ListAccelerators -> String)
-> ([ListAccelerators] -> ShowS)
-> Show ListAccelerators
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAccelerators] -> ShowS
$cshowList :: [ListAccelerators] -> ShowS
show :: ListAccelerators -> String
$cshow :: ListAccelerators -> String
showsPrec :: Int -> ListAccelerators -> ShowS
$cshowsPrec :: Int -> ListAccelerators -> ShowS
Prelude.Show, (forall x. ListAccelerators -> Rep ListAccelerators x)
-> (forall x. Rep ListAccelerators x -> ListAccelerators)
-> Generic ListAccelerators
forall x. Rep ListAccelerators x -> ListAccelerators
forall x. ListAccelerators -> Rep ListAccelerators x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAccelerators x -> ListAccelerators
$cfrom :: forall x. ListAccelerators -> Rep ListAccelerators x
Prelude.Generic)
newListAccelerators ::
ListAccelerators
newListAccelerators :: ListAccelerators
newListAccelerators =
ListAccelerators' :: Maybe Text -> Maybe Natural -> ListAccelerators
ListAccelerators'
{ $sel:nextToken:ListAccelerators' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAccelerators' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listAccelerators_nextToken :: Lens.Lens' ListAccelerators (Prelude.Maybe Prelude.Text)
listAccelerators_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAccelerators -> f ListAccelerators
listAccelerators_nextToken = (ListAccelerators -> Maybe Text)
-> (ListAccelerators -> Maybe Text -> ListAccelerators)
-> Lens ListAccelerators ListAccelerators (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccelerators' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAccelerators' :: ListAccelerators -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAccelerators
s@ListAccelerators' {} Maybe Text
a -> ListAccelerators
s {$sel:nextToken:ListAccelerators' :: Maybe Text
nextToken = Maybe Text
a} :: ListAccelerators)
listAccelerators_maxResults :: Lens.Lens' ListAccelerators (Prelude.Maybe Prelude.Natural)
listAccelerators_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAccelerators -> f ListAccelerators
listAccelerators_maxResults = (ListAccelerators -> Maybe Natural)
-> (ListAccelerators -> Maybe Natural -> ListAccelerators)
-> Lens
ListAccelerators ListAccelerators (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccelerators' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAccelerators' :: ListAccelerators -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAccelerators
s@ListAccelerators' {} Maybe Natural
a -> ListAccelerators
s {$sel:maxResults:ListAccelerators' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAccelerators)
instance Core.AWSPager ListAccelerators where
page :: ListAccelerators
-> AWSResponse ListAccelerators -> Maybe ListAccelerators
page ListAccelerators
rq AWSResponse ListAccelerators
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAccelerators
ListAcceleratorsResponse
rs
ListAcceleratorsResponse
-> Getting (First Text) ListAcceleratorsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAcceleratorsResponse
-> Const (First Text) ListAcceleratorsResponse
Lens' ListAcceleratorsResponse (Maybe Text)
listAcceleratorsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAcceleratorsResponse
-> Const (First Text) ListAcceleratorsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAcceleratorsResponse 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 ListAccelerators
forall a. Maybe a
Prelude.Nothing
| Maybe [Accelerator] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAccelerators
ListAcceleratorsResponse
rs
ListAcceleratorsResponse
-> Getting
(First [Accelerator]) ListAcceleratorsResponse [Accelerator]
-> Maybe [Accelerator]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Accelerator]
-> Const (First [Accelerator]) (Maybe [Accelerator]))
-> ListAcceleratorsResponse
-> Const (First [Accelerator]) ListAcceleratorsResponse
Lens' ListAcceleratorsResponse (Maybe [Accelerator])
listAcceleratorsResponse_accelerators
((Maybe [Accelerator]
-> Const (First [Accelerator]) (Maybe [Accelerator]))
-> ListAcceleratorsResponse
-> Const (First [Accelerator]) ListAcceleratorsResponse)
-> (([Accelerator] -> Const (First [Accelerator]) [Accelerator])
-> Maybe [Accelerator]
-> Const (First [Accelerator]) (Maybe [Accelerator]))
-> Getting
(First [Accelerator]) ListAcceleratorsResponse [Accelerator]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Accelerator] -> Const (First [Accelerator]) [Accelerator])
-> Maybe [Accelerator]
-> Const (First [Accelerator]) (Maybe [Accelerator])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListAccelerators
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAccelerators -> Maybe ListAccelerators
forall a. a -> Maybe a
Prelude.Just (ListAccelerators -> Maybe ListAccelerators)
-> ListAccelerators -> Maybe ListAccelerators
forall a b. (a -> b) -> a -> b
Prelude.$
ListAccelerators
rq
ListAccelerators
-> (ListAccelerators -> ListAccelerators) -> ListAccelerators
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAccelerators -> Identity ListAccelerators
Lens ListAccelerators ListAccelerators (Maybe Text) (Maybe Text)
listAccelerators_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListAccelerators -> Identity ListAccelerators)
-> Maybe Text -> ListAccelerators -> ListAccelerators
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAccelerators
ListAcceleratorsResponse
rs
ListAcceleratorsResponse
-> Getting (First Text) ListAcceleratorsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAcceleratorsResponse
-> Const (First Text) ListAcceleratorsResponse
Lens' ListAcceleratorsResponse (Maybe Text)
listAcceleratorsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAcceleratorsResponse
-> Const (First Text) ListAcceleratorsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAcceleratorsResponse 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 ListAccelerators where
type
AWSResponse ListAccelerators =
ListAcceleratorsResponse
request :: ListAccelerators -> Request ListAccelerators
request = Service -> ListAccelerators -> Request ListAccelerators
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListAccelerators
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAccelerators)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAccelerators))
-> Logger
-> Service
-> Proxy ListAccelerators
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAccelerators)))
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 [Accelerator] -> Int -> ListAcceleratorsResponse
ListAcceleratorsResponse'
(Maybe Text
-> Maybe [Accelerator] -> Int -> ListAcceleratorsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Accelerator] -> Int -> ListAcceleratorsResponse)
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 [Accelerator] -> Int -> ListAcceleratorsResponse)
-> Either String (Maybe [Accelerator])
-> Either String (Int -> ListAcceleratorsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Accelerator]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Accelerators" Either String (Maybe (Maybe [Accelerator]))
-> Maybe [Accelerator] -> Either String (Maybe [Accelerator])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Accelerator]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListAcceleratorsResponse)
-> Either String Int -> Either String ListAcceleratorsResponse
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 ListAccelerators
instance Prelude.NFData ListAccelerators
instance Core.ToHeaders ListAccelerators where
toHeaders :: ListAccelerators -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAccelerators -> 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.ListAccelerators" ::
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 ListAccelerators where
toJSON :: ListAccelerators -> Value
toJSON ListAccelerators' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListAccelerators' :: ListAccelerators -> Maybe Natural
$sel:nextToken:ListAccelerators' :: ListAccelerators -> 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
]
)
instance Core.ToPath ListAccelerators where
toPath :: ListAccelerators -> ByteString
toPath = ByteString -> ListAccelerators -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListAccelerators where
toQuery :: ListAccelerators -> QueryString
toQuery = QueryString -> ListAccelerators -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListAcceleratorsResponse = ListAcceleratorsResponse'
{
ListAcceleratorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAcceleratorsResponse -> Maybe [Accelerator]
accelerators :: Prelude.Maybe [Accelerator],
ListAcceleratorsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool
(ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool)
-> (ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool)
-> Eq ListAcceleratorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool
$c/= :: ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool
== :: ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool
$c== :: ListAcceleratorsResponse -> ListAcceleratorsResponse -> Bool
Prelude.Eq, ReadPrec [ListAcceleratorsResponse]
ReadPrec ListAcceleratorsResponse
Int -> ReadS ListAcceleratorsResponse
ReadS [ListAcceleratorsResponse]
(Int -> ReadS ListAcceleratorsResponse)
-> ReadS [ListAcceleratorsResponse]
-> ReadPrec ListAcceleratorsResponse
-> ReadPrec [ListAcceleratorsResponse]
-> Read ListAcceleratorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAcceleratorsResponse]
$creadListPrec :: ReadPrec [ListAcceleratorsResponse]
readPrec :: ReadPrec ListAcceleratorsResponse
$creadPrec :: ReadPrec ListAcceleratorsResponse
readList :: ReadS [ListAcceleratorsResponse]
$creadList :: ReadS [ListAcceleratorsResponse]
readsPrec :: Int -> ReadS ListAcceleratorsResponse
$creadsPrec :: Int -> ReadS ListAcceleratorsResponse
Prelude.Read, Int -> ListAcceleratorsResponse -> ShowS
[ListAcceleratorsResponse] -> ShowS
ListAcceleratorsResponse -> String
(Int -> ListAcceleratorsResponse -> ShowS)
-> (ListAcceleratorsResponse -> String)
-> ([ListAcceleratorsResponse] -> ShowS)
-> Show ListAcceleratorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAcceleratorsResponse] -> ShowS
$cshowList :: [ListAcceleratorsResponse] -> ShowS
show :: ListAcceleratorsResponse -> String
$cshow :: ListAcceleratorsResponse -> String
showsPrec :: Int -> ListAcceleratorsResponse -> ShowS
$cshowsPrec :: Int -> ListAcceleratorsResponse -> ShowS
Prelude.Show, (forall x.
ListAcceleratorsResponse -> Rep ListAcceleratorsResponse x)
-> (forall x.
Rep ListAcceleratorsResponse x -> ListAcceleratorsResponse)
-> Generic ListAcceleratorsResponse
forall x.
Rep ListAcceleratorsResponse x -> ListAcceleratorsResponse
forall x.
ListAcceleratorsResponse -> Rep ListAcceleratorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAcceleratorsResponse x -> ListAcceleratorsResponse
$cfrom :: forall x.
ListAcceleratorsResponse -> Rep ListAcceleratorsResponse x
Prelude.Generic)
newListAcceleratorsResponse ::
Prelude.Int ->
ListAcceleratorsResponse
newListAcceleratorsResponse :: Int -> ListAcceleratorsResponse
newListAcceleratorsResponse Int
pHttpStatus_ =
ListAcceleratorsResponse' :: Maybe Text
-> Maybe [Accelerator] -> Int -> ListAcceleratorsResponse
ListAcceleratorsResponse'
{ $sel:nextToken:ListAcceleratorsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accelerators:ListAcceleratorsResponse' :: Maybe [Accelerator]
accelerators = Maybe [Accelerator]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAcceleratorsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAcceleratorsResponse_nextToken :: Lens.Lens' ListAcceleratorsResponse (Prelude.Maybe Prelude.Text)
listAcceleratorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAcceleratorsResponse -> f ListAcceleratorsResponse
listAcceleratorsResponse_nextToken = (ListAcceleratorsResponse -> Maybe Text)
-> (ListAcceleratorsResponse
-> Maybe Text -> ListAcceleratorsResponse)
-> Lens' ListAcceleratorsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAcceleratorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAcceleratorsResponse' :: ListAcceleratorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAcceleratorsResponse
s@ListAcceleratorsResponse' {} Maybe Text
a -> ListAcceleratorsResponse
s {$sel:nextToken:ListAcceleratorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAcceleratorsResponse)
listAcceleratorsResponse_accelerators :: Lens.Lens' ListAcceleratorsResponse (Prelude.Maybe [Accelerator])
listAcceleratorsResponse_accelerators :: (Maybe [Accelerator] -> f (Maybe [Accelerator]))
-> ListAcceleratorsResponse -> f ListAcceleratorsResponse
listAcceleratorsResponse_accelerators = (ListAcceleratorsResponse -> Maybe [Accelerator])
-> (ListAcceleratorsResponse
-> Maybe [Accelerator] -> ListAcceleratorsResponse)
-> Lens' ListAcceleratorsResponse (Maybe [Accelerator])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAcceleratorsResponse' {Maybe [Accelerator]
accelerators :: Maybe [Accelerator]
$sel:accelerators:ListAcceleratorsResponse' :: ListAcceleratorsResponse -> Maybe [Accelerator]
accelerators} -> Maybe [Accelerator]
accelerators) (\s :: ListAcceleratorsResponse
s@ListAcceleratorsResponse' {} Maybe [Accelerator]
a -> ListAcceleratorsResponse
s {$sel:accelerators:ListAcceleratorsResponse' :: Maybe [Accelerator]
accelerators = Maybe [Accelerator]
a} :: ListAcceleratorsResponse) ((Maybe [Accelerator] -> f (Maybe [Accelerator]))
-> ListAcceleratorsResponse -> f ListAcceleratorsResponse)
-> ((Maybe [Accelerator] -> f (Maybe [Accelerator]))
-> Maybe [Accelerator] -> f (Maybe [Accelerator]))
-> (Maybe [Accelerator] -> f (Maybe [Accelerator]))
-> ListAcceleratorsResponse
-> f ListAcceleratorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Accelerator] [Accelerator] [Accelerator] [Accelerator]
-> Iso
(Maybe [Accelerator])
(Maybe [Accelerator])
(Maybe [Accelerator])
(Maybe [Accelerator])
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 [Accelerator] [Accelerator] [Accelerator] [Accelerator]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAcceleratorsResponse_httpStatus :: Lens.Lens' ListAcceleratorsResponse Prelude.Int
listAcceleratorsResponse_httpStatus :: (Int -> f Int)
-> ListAcceleratorsResponse -> f ListAcceleratorsResponse
listAcceleratorsResponse_httpStatus = (ListAcceleratorsResponse -> Int)
-> (ListAcceleratorsResponse -> Int -> ListAcceleratorsResponse)
-> Lens ListAcceleratorsResponse ListAcceleratorsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAcceleratorsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAcceleratorsResponse' :: ListAcceleratorsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAcceleratorsResponse
s@ListAcceleratorsResponse' {} Int
a -> ListAcceleratorsResponse
s {$sel:httpStatus:ListAcceleratorsResponse' :: Int
httpStatus = Int
a} :: ListAcceleratorsResponse)
instance Prelude.NFData ListAcceleratorsResponse