{-# 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.Route53Domains.ListOperations
(
ListOperations (..),
newListOperations,
listOperations_marker,
listOperations_maxItems,
listOperations_submittedSince,
ListOperationsResponse (..),
newListOperationsResponse,
listOperationsResponse_nextPageMarker,
listOperationsResponse_httpStatus,
listOperationsResponse_operations,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53Domains.Types
data ListOperations = ListOperations'
{
ListOperations -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListOperations -> Maybe Int
maxItems :: Prelude.Maybe Prelude.Int,
ListOperations -> Maybe POSIX
submittedSince :: Prelude.Maybe Core.POSIX
}
deriving (ListOperations -> ListOperations -> Bool
(ListOperations -> ListOperations -> Bool)
-> (ListOperations -> ListOperations -> Bool) -> Eq ListOperations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOperations -> ListOperations -> Bool
$c/= :: ListOperations -> ListOperations -> Bool
== :: ListOperations -> ListOperations -> Bool
$c== :: ListOperations -> ListOperations -> Bool
Prelude.Eq, ReadPrec [ListOperations]
ReadPrec ListOperations
Int -> ReadS ListOperations
ReadS [ListOperations]
(Int -> ReadS ListOperations)
-> ReadS [ListOperations]
-> ReadPrec ListOperations
-> ReadPrec [ListOperations]
-> Read ListOperations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOperations]
$creadListPrec :: ReadPrec [ListOperations]
readPrec :: ReadPrec ListOperations
$creadPrec :: ReadPrec ListOperations
readList :: ReadS [ListOperations]
$creadList :: ReadS [ListOperations]
readsPrec :: Int -> ReadS ListOperations
$creadsPrec :: Int -> ReadS ListOperations
Prelude.Read, Int -> ListOperations -> ShowS
[ListOperations] -> ShowS
ListOperations -> String
(Int -> ListOperations -> ShowS)
-> (ListOperations -> String)
-> ([ListOperations] -> ShowS)
-> Show ListOperations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOperations] -> ShowS
$cshowList :: [ListOperations] -> ShowS
show :: ListOperations -> String
$cshow :: ListOperations -> String
showsPrec :: Int -> ListOperations -> ShowS
$cshowsPrec :: Int -> ListOperations -> ShowS
Prelude.Show, (forall x. ListOperations -> Rep ListOperations x)
-> (forall x. Rep ListOperations x -> ListOperations)
-> Generic ListOperations
forall x. Rep ListOperations x -> ListOperations
forall x. ListOperations -> Rep ListOperations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOperations x -> ListOperations
$cfrom :: forall x. ListOperations -> Rep ListOperations x
Prelude.Generic)
newListOperations ::
ListOperations
newListOperations :: ListOperations
newListOperations =
ListOperations' :: Maybe Text -> Maybe Int -> Maybe POSIX -> ListOperations
ListOperations'
{ $sel:marker:ListOperations' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListOperations' :: Maybe Int
maxItems = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:submittedSince:ListOperations' :: Maybe POSIX
submittedSince = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
listOperations_marker :: Lens.Lens' ListOperations (Prelude.Maybe Prelude.Text)
listOperations_marker :: (Maybe Text -> f (Maybe Text))
-> ListOperations -> f ListOperations
listOperations_marker = (ListOperations -> Maybe Text)
-> (ListOperations -> Maybe Text -> ListOperations)
-> Lens ListOperations ListOperations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperations' {Maybe Text
marker :: Maybe Text
$sel:marker:ListOperations' :: ListOperations -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListOperations
s@ListOperations' {} Maybe Text
a -> ListOperations
s {$sel:marker:ListOperations' :: Maybe Text
marker = Maybe Text
a} :: ListOperations)
listOperations_maxItems :: Lens.Lens' ListOperations (Prelude.Maybe Prelude.Int)
listOperations_maxItems :: (Maybe Int -> f (Maybe Int)) -> ListOperations -> f ListOperations
listOperations_maxItems = (ListOperations -> Maybe Int)
-> (ListOperations -> Maybe Int -> ListOperations)
-> Lens ListOperations ListOperations (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperations' {Maybe Int
maxItems :: Maybe Int
$sel:maxItems:ListOperations' :: ListOperations -> Maybe Int
maxItems} -> Maybe Int
maxItems) (\s :: ListOperations
s@ListOperations' {} Maybe Int
a -> ListOperations
s {$sel:maxItems:ListOperations' :: Maybe Int
maxItems = Maybe Int
a} :: ListOperations)
listOperations_submittedSince :: Lens.Lens' ListOperations (Prelude.Maybe Prelude.UTCTime)
listOperations_submittedSince :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListOperations -> f ListOperations
listOperations_submittedSince = (ListOperations -> Maybe POSIX)
-> (ListOperations -> Maybe POSIX -> ListOperations)
-> Lens ListOperations ListOperations (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperations' {Maybe POSIX
submittedSince :: Maybe POSIX
$sel:submittedSince:ListOperations' :: ListOperations -> Maybe POSIX
submittedSince} -> Maybe POSIX
submittedSince) (\s :: ListOperations
s@ListOperations' {} Maybe POSIX
a -> ListOperations
s {$sel:submittedSince:ListOperations' :: Maybe POSIX
submittedSince = Maybe POSIX
a} :: ListOperations) ((Maybe POSIX -> f (Maybe POSIX))
-> ListOperations -> f ListOperations)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListOperations
-> f ListOperations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Core.AWSPager ListOperations where
page :: ListOperations
-> AWSResponse ListOperations -> Maybe ListOperations
page ListOperations
rq AWSResponse ListOperations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOperations
ListOperationsResponse
rs
ListOperationsResponse
-> Getting (First Text) ListOperationsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOperationsResponse
-> Const (First Text) ListOperationsResponse
Lens' ListOperationsResponse (Maybe Text)
listOperationsResponse_nextPageMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListOperationsResponse
-> Const (First Text) ListOperationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOperationsResponse 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 ListOperations
forall a. Maybe a
Prelude.Nothing
| [OperationSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListOperations
ListOperationsResponse
rs ListOperationsResponse
-> Getting
[OperationSummary] ListOperationsResponse [OperationSummary]
-> [OperationSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[OperationSummary] ListOperationsResponse [OperationSummary]
Lens' ListOperationsResponse [OperationSummary]
listOperationsResponse_operations) =
Maybe ListOperations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListOperations -> Maybe ListOperations
forall a. a -> Maybe a
Prelude.Just (ListOperations -> Maybe ListOperations)
-> ListOperations -> Maybe ListOperations
forall a b. (a -> b) -> a -> b
Prelude.$
ListOperations
rq
ListOperations
-> (ListOperations -> ListOperations) -> ListOperations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListOperations -> Identity ListOperations
Lens ListOperations ListOperations (Maybe Text) (Maybe Text)
listOperations_marker
((Maybe Text -> Identity (Maybe Text))
-> ListOperations -> Identity ListOperations)
-> Maybe Text -> ListOperations -> ListOperations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListOperations
ListOperationsResponse
rs
ListOperationsResponse
-> Getting (First Text) ListOperationsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOperationsResponse
-> Const (First Text) ListOperationsResponse
Lens' ListOperationsResponse (Maybe Text)
listOperationsResponse_nextPageMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListOperationsResponse
-> Const (First Text) ListOperationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOperationsResponse 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 ListOperations where
type
AWSResponse ListOperations =
ListOperationsResponse
request :: ListOperations -> Request ListOperations
request = Service -> ListOperations -> Request ListOperations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListOperations
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListOperations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListOperations))
-> Logger
-> Service
-> Proxy ListOperations
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListOperations)))
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 -> Int -> [OperationSummary] -> ListOperationsResponse
ListOperationsResponse'
(Maybe Text -> Int -> [OperationSummary] -> ListOperationsResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [OperationSummary] -> ListOperationsResponse)
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
"NextPageMarker")
Either String (Int -> [OperationSummary] -> ListOperationsResponse)
-> Either String Int
-> Either String ([OperationSummary] -> ListOperationsResponse)
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))
Either String ([OperationSummary] -> ListOperationsResponse)
-> Either String [OperationSummary]
-> Either String ListOperationsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [OperationSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Operations" Either String (Maybe [OperationSummary])
-> [OperationSummary] -> Either String [OperationSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [OperationSummary]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListOperations
instance Prelude.NFData ListOperations
instance Core.ToHeaders ListOperations where
toHeaders :: ListOperations -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListOperations -> 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
"Route53Domains_v20140515.ListOperations" ::
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 ListOperations where
toJSON :: ListOperations -> Value
toJSON ListOperations' {Maybe Int
Maybe Text
Maybe POSIX
submittedSince :: Maybe POSIX
maxItems :: Maybe Int
marker :: Maybe Text
$sel:submittedSince:ListOperations' :: ListOperations -> Maybe POSIX
$sel:maxItems:ListOperations' :: ListOperations -> Maybe Int
$sel:marker:ListOperations' :: ListOperations -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Marker" 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
marker,
(Text
"MaxItems" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxItems,
(Text
"SubmittedSince" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
submittedSince
]
)
instance Core.ToPath ListOperations where
toPath :: ListOperations -> ByteString
toPath = ByteString -> ListOperations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListOperations where
toQuery :: ListOperations -> QueryString
toQuery = QueryString -> ListOperations -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListOperationsResponse = ListOperationsResponse'
{
ListOperationsResponse -> Maybe Text
nextPageMarker :: Prelude.Maybe Prelude.Text,
ListOperationsResponse -> Int
httpStatus :: Prelude.Int,
ListOperationsResponse -> [OperationSummary]
operations :: [OperationSummary]
}
deriving (ListOperationsResponse -> ListOperationsResponse -> Bool
(ListOperationsResponse -> ListOperationsResponse -> Bool)
-> (ListOperationsResponse -> ListOperationsResponse -> Bool)
-> Eq ListOperationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOperationsResponse -> ListOperationsResponse -> Bool
$c/= :: ListOperationsResponse -> ListOperationsResponse -> Bool
== :: ListOperationsResponse -> ListOperationsResponse -> Bool
$c== :: ListOperationsResponse -> ListOperationsResponse -> Bool
Prelude.Eq, ReadPrec [ListOperationsResponse]
ReadPrec ListOperationsResponse
Int -> ReadS ListOperationsResponse
ReadS [ListOperationsResponse]
(Int -> ReadS ListOperationsResponse)
-> ReadS [ListOperationsResponse]
-> ReadPrec ListOperationsResponse
-> ReadPrec [ListOperationsResponse]
-> Read ListOperationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOperationsResponse]
$creadListPrec :: ReadPrec [ListOperationsResponse]
readPrec :: ReadPrec ListOperationsResponse
$creadPrec :: ReadPrec ListOperationsResponse
readList :: ReadS [ListOperationsResponse]
$creadList :: ReadS [ListOperationsResponse]
readsPrec :: Int -> ReadS ListOperationsResponse
$creadsPrec :: Int -> ReadS ListOperationsResponse
Prelude.Read, Int -> ListOperationsResponse -> ShowS
[ListOperationsResponse] -> ShowS
ListOperationsResponse -> String
(Int -> ListOperationsResponse -> ShowS)
-> (ListOperationsResponse -> String)
-> ([ListOperationsResponse] -> ShowS)
-> Show ListOperationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOperationsResponse] -> ShowS
$cshowList :: [ListOperationsResponse] -> ShowS
show :: ListOperationsResponse -> String
$cshow :: ListOperationsResponse -> String
showsPrec :: Int -> ListOperationsResponse -> ShowS
$cshowsPrec :: Int -> ListOperationsResponse -> ShowS
Prelude.Show, (forall x. ListOperationsResponse -> Rep ListOperationsResponse x)
-> (forall x.
Rep ListOperationsResponse x -> ListOperationsResponse)
-> Generic ListOperationsResponse
forall x. Rep ListOperationsResponse x -> ListOperationsResponse
forall x. ListOperationsResponse -> Rep ListOperationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOperationsResponse x -> ListOperationsResponse
$cfrom :: forall x. ListOperationsResponse -> Rep ListOperationsResponse x
Prelude.Generic)
newListOperationsResponse ::
Prelude.Int ->
ListOperationsResponse
newListOperationsResponse :: Int -> ListOperationsResponse
newListOperationsResponse Int
pHttpStatus_ =
ListOperationsResponse' :: Maybe Text -> Int -> [OperationSummary] -> ListOperationsResponse
ListOperationsResponse'
{ $sel:nextPageMarker:ListOperationsResponse' :: Maybe Text
nextPageMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListOperationsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:operations:ListOperationsResponse' :: [OperationSummary]
operations = [OperationSummary]
forall a. Monoid a => a
Prelude.mempty
}
listOperationsResponse_nextPageMarker :: Lens.Lens' ListOperationsResponse (Prelude.Maybe Prelude.Text)
listOperationsResponse_nextPageMarker :: (Maybe Text -> f (Maybe Text))
-> ListOperationsResponse -> f ListOperationsResponse
listOperationsResponse_nextPageMarker = (ListOperationsResponse -> Maybe Text)
-> (ListOperationsResponse -> Maybe Text -> ListOperationsResponse)
-> Lens' ListOperationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperationsResponse' {Maybe Text
nextPageMarker :: Maybe Text
$sel:nextPageMarker:ListOperationsResponse' :: ListOperationsResponse -> Maybe Text
nextPageMarker} -> Maybe Text
nextPageMarker) (\s :: ListOperationsResponse
s@ListOperationsResponse' {} Maybe Text
a -> ListOperationsResponse
s {$sel:nextPageMarker:ListOperationsResponse' :: Maybe Text
nextPageMarker = Maybe Text
a} :: ListOperationsResponse)
listOperationsResponse_httpStatus :: Lens.Lens' ListOperationsResponse Prelude.Int
listOperationsResponse_httpStatus :: (Int -> f Int)
-> ListOperationsResponse -> f ListOperationsResponse
listOperationsResponse_httpStatus = (ListOperationsResponse -> Int)
-> (ListOperationsResponse -> Int -> ListOperationsResponse)
-> Lens ListOperationsResponse ListOperationsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListOperationsResponse' :: ListOperationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListOperationsResponse
s@ListOperationsResponse' {} Int
a -> ListOperationsResponse
s {$sel:httpStatus:ListOperationsResponse' :: Int
httpStatus = Int
a} :: ListOperationsResponse)
listOperationsResponse_operations :: Lens.Lens' ListOperationsResponse [OperationSummary]
listOperationsResponse_operations :: ([OperationSummary] -> f [OperationSummary])
-> ListOperationsResponse -> f ListOperationsResponse
listOperationsResponse_operations = (ListOperationsResponse -> [OperationSummary])
-> (ListOperationsResponse
-> [OperationSummary] -> ListOperationsResponse)
-> Lens' ListOperationsResponse [OperationSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperationsResponse' {[OperationSummary]
operations :: [OperationSummary]
$sel:operations:ListOperationsResponse' :: ListOperationsResponse -> [OperationSummary]
operations} -> [OperationSummary]
operations) (\s :: ListOperationsResponse
s@ListOperationsResponse' {} [OperationSummary]
a -> ListOperationsResponse
s {$sel:operations:ListOperationsResponse' :: [OperationSummary]
operations = [OperationSummary]
a} :: ListOperationsResponse) (([OperationSummary] -> f [OperationSummary])
-> ListOperationsResponse -> f ListOperationsResponse)
-> (([OperationSummary] -> f [OperationSummary])
-> [OperationSummary] -> f [OperationSummary])
-> ([OperationSummary] -> f [OperationSummary])
-> ListOperationsResponse
-> f ListOperationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([OperationSummary] -> f [OperationSummary])
-> [OperationSummary] -> f [OperationSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListOperationsResponse