{-# 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.WorkDocs.DescribeNotificationSubscriptions
(
DescribeNotificationSubscriptions (..),
newDescribeNotificationSubscriptions,
describeNotificationSubscriptions_marker,
describeNotificationSubscriptions_limit,
describeNotificationSubscriptions_organizationId,
DescribeNotificationSubscriptionsResponse (..),
newDescribeNotificationSubscriptionsResponse,
describeNotificationSubscriptionsResponse_marker,
describeNotificationSubscriptionsResponse_subscriptions,
describeNotificationSubscriptionsResponse_httpStatus,
)
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.WorkDocs.Types
data DescribeNotificationSubscriptions = DescribeNotificationSubscriptions'
{
DescribeNotificationSubscriptions -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeNotificationSubscriptions -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeNotificationSubscriptions -> Text
organizationId :: Prelude.Text
}
deriving (DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool
(DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool)
-> (DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool)
-> Eq DescribeNotificationSubscriptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool
$c/= :: DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool
== :: DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool
$c== :: DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions -> Bool
Prelude.Eq, ReadPrec [DescribeNotificationSubscriptions]
ReadPrec DescribeNotificationSubscriptions
Int -> ReadS DescribeNotificationSubscriptions
ReadS [DescribeNotificationSubscriptions]
(Int -> ReadS DescribeNotificationSubscriptions)
-> ReadS [DescribeNotificationSubscriptions]
-> ReadPrec DescribeNotificationSubscriptions
-> ReadPrec [DescribeNotificationSubscriptions]
-> Read DescribeNotificationSubscriptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNotificationSubscriptions]
$creadListPrec :: ReadPrec [DescribeNotificationSubscriptions]
readPrec :: ReadPrec DescribeNotificationSubscriptions
$creadPrec :: ReadPrec DescribeNotificationSubscriptions
readList :: ReadS [DescribeNotificationSubscriptions]
$creadList :: ReadS [DescribeNotificationSubscriptions]
readsPrec :: Int -> ReadS DescribeNotificationSubscriptions
$creadsPrec :: Int -> ReadS DescribeNotificationSubscriptions
Prelude.Read, Int -> DescribeNotificationSubscriptions -> ShowS
[DescribeNotificationSubscriptions] -> ShowS
DescribeNotificationSubscriptions -> String
(Int -> DescribeNotificationSubscriptions -> ShowS)
-> (DescribeNotificationSubscriptions -> String)
-> ([DescribeNotificationSubscriptions] -> ShowS)
-> Show DescribeNotificationSubscriptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNotificationSubscriptions] -> ShowS
$cshowList :: [DescribeNotificationSubscriptions] -> ShowS
show :: DescribeNotificationSubscriptions -> String
$cshow :: DescribeNotificationSubscriptions -> String
showsPrec :: Int -> DescribeNotificationSubscriptions -> ShowS
$cshowsPrec :: Int -> DescribeNotificationSubscriptions -> ShowS
Prelude.Show, (forall x.
DescribeNotificationSubscriptions
-> Rep DescribeNotificationSubscriptions x)
-> (forall x.
Rep DescribeNotificationSubscriptions x
-> DescribeNotificationSubscriptions)
-> Generic DescribeNotificationSubscriptions
forall x.
Rep DescribeNotificationSubscriptions x
-> DescribeNotificationSubscriptions
forall x.
DescribeNotificationSubscriptions
-> Rep DescribeNotificationSubscriptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNotificationSubscriptions x
-> DescribeNotificationSubscriptions
$cfrom :: forall x.
DescribeNotificationSubscriptions
-> Rep DescribeNotificationSubscriptions x
Prelude.Generic)
newDescribeNotificationSubscriptions ::
Prelude.Text ->
DescribeNotificationSubscriptions
newDescribeNotificationSubscriptions :: Text -> DescribeNotificationSubscriptions
newDescribeNotificationSubscriptions Text
pOrganizationId_ =
DescribeNotificationSubscriptions' :: Maybe Text
-> Maybe Natural -> Text -> DescribeNotificationSubscriptions
DescribeNotificationSubscriptions'
{ $sel:marker:DescribeNotificationSubscriptions' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeNotificationSubscriptions' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:organizationId:DescribeNotificationSubscriptions' :: Text
organizationId = Text
pOrganizationId_
}
describeNotificationSubscriptions_marker :: Lens.Lens' DescribeNotificationSubscriptions (Prelude.Maybe Prelude.Text)
describeNotificationSubscriptions_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeNotificationSubscriptions
-> f DescribeNotificationSubscriptions
describeNotificationSubscriptions_marker = (DescribeNotificationSubscriptions -> Maybe Text)
-> (DescribeNotificationSubscriptions
-> Maybe Text -> DescribeNotificationSubscriptions)
-> Lens
DescribeNotificationSubscriptions
DescribeNotificationSubscriptions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotificationSubscriptions' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeNotificationSubscriptions
s@DescribeNotificationSubscriptions' {} Maybe Text
a -> DescribeNotificationSubscriptions
s {$sel:marker:DescribeNotificationSubscriptions' :: Maybe Text
marker = Maybe Text
a} :: DescribeNotificationSubscriptions)
describeNotificationSubscriptions_limit :: Lens.Lens' DescribeNotificationSubscriptions (Prelude.Maybe Prelude.Natural)
describeNotificationSubscriptions_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeNotificationSubscriptions
-> f DescribeNotificationSubscriptions
describeNotificationSubscriptions_limit = (DescribeNotificationSubscriptions -> Maybe Natural)
-> (DescribeNotificationSubscriptions
-> Maybe Natural -> DescribeNotificationSubscriptions)
-> Lens
DescribeNotificationSubscriptions
DescribeNotificationSubscriptions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotificationSubscriptions' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeNotificationSubscriptions
s@DescribeNotificationSubscriptions' {} Maybe Natural
a -> DescribeNotificationSubscriptions
s {$sel:limit:DescribeNotificationSubscriptions' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeNotificationSubscriptions)
describeNotificationSubscriptions_organizationId :: Lens.Lens' DescribeNotificationSubscriptions Prelude.Text
describeNotificationSubscriptions_organizationId :: (Text -> f Text)
-> DescribeNotificationSubscriptions
-> f DescribeNotificationSubscriptions
describeNotificationSubscriptions_organizationId = (DescribeNotificationSubscriptions -> Text)
-> (DescribeNotificationSubscriptions
-> Text -> DescribeNotificationSubscriptions)
-> Lens
DescribeNotificationSubscriptions
DescribeNotificationSubscriptions
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotificationSubscriptions' {Text
organizationId :: Text
$sel:organizationId:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Text
organizationId} -> Text
organizationId) (\s :: DescribeNotificationSubscriptions
s@DescribeNotificationSubscriptions' {} Text
a -> DescribeNotificationSubscriptions
s {$sel:organizationId:DescribeNotificationSubscriptions' :: Text
organizationId = Text
a} :: DescribeNotificationSubscriptions)
instance
Core.AWSPager
DescribeNotificationSubscriptions
where
page :: DescribeNotificationSubscriptions
-> AWSResponse DescribeNotificationSubscriptions
-> Maybe DescribeNotificationSubscriptions
page DescribeNotificationSubscriptions
rq AWSResponse DescribeNotificationSubscriptions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeNotificationSubscriptions
DescribeNotificationSubscriptionsResponse
rs
DescribeNotificationSubscriptionsResponse
-> Getting
(First Text) DescribeNotificationSubscriptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeNotificationSubscriptionsResponse
-> Const (First Text) DescribeNotificationSubscriptionsResponse
Lens' DescribeNotificationSubscriptionsResponse (Maybe Text)
describeNotificationSubscriptionsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeNotificationSubscriptionsResponse
-> Const (First Text) DescribeNotificationSubscriptionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeNotificationSubscriptionsResponse 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 DescribeNotificationSubscriptions
forall a. Maybe a
Prelude.Nothing
| Maybe [Subscription] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeNotificationSubscriptions
DescribeNotificationSubscriptionsResponse
rs
DescribeNotificationSubscriptionsResponse
-> Getting
(First [Subscription])
DescribeNotificationSubscriptionsResponse
[Subscription]
-> Maybe [Subscription]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription]))
-> DescribeNotificationSubscriptionsResponse
-> Const
(First [Subscription]) DescribeNotificationSubscriptionsResponse
Lens'
DescribeNotificationSubscriptionsResponse (Maybe [Subscription])
describeNotificationSubscriptionsResponse_subscriptions
((Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription]))
-> DescribeNotificationSubscriptionsResponse
-> Const
(First [Subscription]) DescribeNotificationSubscriptionsResponse)
-> (([Subscription] -> Const (First [Subscription]) [Subscription])
-> Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription]))
-> Getting
(First [Subscription])
DescribeNotificationSubscriptionsResponse
[Subscription]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Subscription] -> Const (First [Subscription]) [Subscription])
-> Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeNotificationSubscriptions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeNotificationSubscriptions
-> Maybe DescribeNotificationSubscriptions
forall a. a -> Maybe a
Prelude.Just (DescribeNotificationSubscriptions
-> Maybe DescribeNotificationSubscriptions)
-> DescribeNotificationSubscriptions
-> Maybe DescribeNotificationSubscriptions
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeNotificationSubscriptions
rq
DescribeNotificationSubscriptions
-> (DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions)
-> DescribeNotificationSubscriptions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeNotificationSubscriptions
-> Identity DescribeNotificationSubscriptions
Lens
DescribeNotificationSubscriptions
DescribeNotificationSubscriptions
(Maybe Text)
(Maybe Text)
describeNotificationSubscriptions_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeNotificationSubscriptions
-> Identity DescribeNotificationSubscriptions)
-> Maybe Text
-> DescribeNotificationSubscriptions
-> DescribeNotificationSubscriptions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeNotificationSubscriptions
DescribeNotificationSubscriptionsResponse
rs
DescribeNotificationSubscriptionsResponse
-> Getting
(First Text) DescribeNotificationSubscriptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeNotificationSubscriptionsResponse
-> Const (First Text) DescribeNotificationSubscriptionsResponse
Lens' DescribeNotificationSubscriptionsResponse (Maybe Text)
describeNotificationSubscriptionsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeNotificationSubscriptionsResponse
-> Const (First Text) DescribeNotificationSubscriptionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeNotificationSubscriptionsResponse 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
DescribeNotificationSubscriptions
where
type
AWSResponse DescribeNotificationSubscriptions =
DescribeNotificationSubscriptionsResponse
request :: DescribeNotificationSubscriptions
-> Request DescribeNotificationSubscriptions
request = Service
-> DescribeNotificationSubscriptions
-> Request DescribeNotificationSubscriptions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeNotificationSubscriptions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeNotificationSubscriptions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeNotificationSubscriptions))
-> Logger
-> Service
-> Proxy DescribeNotificationSubscriptions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeNotificationSubscriptions)))
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 [Subscription]
-> Int
-> DescribeNotificationSubscriptionsResponse
DescribeNotificationSubscriptionsResponse'
(Maybe Text
-> Maybe [Subscription]
-> Int
-> DescribeNotificationSubscriptionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Subscription]
-> Int -> DescribeNotificationSubscriptionsResponse)
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
"Marker")
Either
String
(Maybe [Subscription]
-> Int -> DescribeNotificationSubscriptionsResponse)
-> Either String (Maybe [Subscription])
-> Either String (Int -> DescribeNotificationSubscriptionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Subscription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Subscriptions" Either String (Maybe (Maybe [Subscription]))
-> Maybe [Subscription] -> Either String (Maybe [Subscription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Subscription]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeNotificationSubscriptionsResponse)
-> Either String Int
-> Either String DescribeNotificationSubscriptionsResponse
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
DescribeNotificationSubscriptions
instance
Prelude.NFData
DescribeNotificationSubscriptions
instance
Core.ToHeaders
DescribeNotificationSubscriptions
where
toHeaders :: DescribeNotificationSubscriptions -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeNotificationSubscriptions -> 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
DescribeNotificationSubscriptions
where
toPath :: DescribeNotificationSubscriptions -> ByteString
toPath DescribeNotificationSubscriptions' {Maybe Natural
Maybe Text
Text
organizationId :: Text
limit :: Maybe Natural
marker :: Maybe Text
$sel:organizationId:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Text
$sel:limit:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Maybe Natural
$sel:marker:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/api/v1/organizations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
organizationId,
ByteString
"/subscriptions"
]
instance
Core.ToQuery
DescribeNotificationSubscriptions
where
toQuery :: DescribeNotificationSubscriptions -> QueryString
toQuery DescribeNotificationSubscriptions' {Maybe Natural
Maybe Text
Text
organizationId :: Text
limit :: Maybe Natural
marker :: Maybe Text
$sel:organizationId:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Text
$sel:limit:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Maybe Natural
$sel:marker:DescribeNotificationSubscriptions' :: DescribeNotificationSubscriptions -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker, ByteString
"limit" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
limit]
data DescribeNotificationSubscriptionsResponse = DescribeNotificationSubscriptionsResponse'
{
DescribeNotificationSubscriptionsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeNotificationSubscriptionsResponse -> Maybe [Subscription]
subscriptions :: Prelude.Maybe [Subscription],
DescribeNotificationSubscriptionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool
(DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool)
-> (DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool)
-> Eq DescribeNotificationSubscriptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool
$c/= :: DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool
== :: DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool
$c== :: DescribeNotificationSubscriptionsResponse
-> DescribeNotificationSubscriptionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeNotificationSubscriptionsResponse]
ReadPrec DescribeNotificationSubscriptionsResponse
Int -> ReadS DescribeNotificationSubscriptionsResponse
ReadS [DescribeNotificationSubscriptionsResponse]
(Int -> ReadS DescribeNotificationSubscriptionsResponse)
-> ReadS [DescribeNotificationSubscriptionsResponse]
-> ReadPrec DescribeNotificationSubscriptionsResponse
-> ReadPrec [DescribeNotificationSubscriptionsResponse]
-> Read DescribeNotificationSubscriptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNotificationSubscriptionsResponse]
$creadListPrec :: ReadPrec [DescribeNotificationSubscriptionsResponse]
readPrec :: ReadPrec DescribeNotificationSubscriptionsResponse
$creadPrec :: ReadPrec DescribeNotificationSubscriptionsResponse
readList :: ReadS [DescribeNotificationSubscriptionsResponse]
$creadList :: ReadS [DescribeNotificationSubscriptionsResponse]
readsPrec :: Int -> ReadS DescribeNotificationSubscriptionsResponse
$creadsPrec :: Int -> ReadS DescribeNotificationSubscriptionsResponse
Prelude.Read, Int -> DescribeNotificationSubscriptionsResponse -> ShowS
[DescribeNotificationSubscriptionsResponse] -> ShowS
DescribeNotificationSubscriptionsResponse -> String
(Int -> DescribeNotificationSubscriptionsResponse -> ShowS)
-> (DescribeNotificationSubscriptionsResponse -> String)
-> ([DescribeNotificationSubscriptionsResponse] -> ShowS)
-> Show DescribeNotificationSubscriptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNotificationSubscriptionsResponse] -> ShowS
$cshowList :: [DescribeNotificationSubscriptionsResponse] -> ShowS
show :: DescribeNotificationSubscriptionsResponse -> String
$cshow :: DescribeNotificationSubscriptionsResponse -> String
showsPrec :: Int -> DescribeNotificationSubscriptionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeNotificationSubscriptionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeNotificationSubscriptionsResponse
-> Rep DescribeNotificationSubscriptionsResponse x)
-> (forall x.
Rep DescribeNotificationSubscriptionsResponse x
-> DescribeNotificationSubscriptionsResponse)
-> Generic DescribeNotificationSubscriptionsResponse
forall x.
Rep DescribeNotificationSubscriptionsResponse x
-> DescribeNotificationSubscriptionsResponse
forall x.
DescribeNotificationSubscriptionsResponse
-> Rep DescribeNotificationSubscriptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNotificationSubscriptionsResponse x
-> DescribeNotificationSubscriptionsResponse
$cfrom :: forall x.
DescribeNotificationSubscriptionsResponse
-> Rep DescribeNotificationSubscriptionsResponse x
Prelude.Generic)
newDescribeNotificationSubscriptionsResponse ::
Prelude.Int ->
DescribeNotificationSubscriptionsResponse
newDescribeNotificationSubscriptionsResponse :: Int -> DescribeNotificationSubscriptionsResponse
newDescribeNotificationSubscriptionsResponse
Int
pHttpStatus_ =
DescribeNotificationSubscriptionsResponse' :: Maybe Text
-> Maybe [Subscription]
-> Int
-> DescribeNotificationSubscriptionsResponse
DescribeNotificationSubscriptionsResponse'
{ $sel:marker:DescribeNotificationSubscriptionsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:subscriptions:DescribeNotificationSubscriptionsResponse' :: Maybe [Subscription]
subscriptions = Maybe [Subscription]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeNotificationSubscriptionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeNotificationSubscriptionsResponse_marker :: Lens.Lens' DescribeNotificationSubscriptionsResponse (Prelude.Maybe Prelude.Text)
describeNotificationSubscriptionsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeNotificationSubscriptionsResponse
-> f DescribeNotificationSubscriptionsResponse
describeNotificationSubscriptionsResponse_marker = (DescribeNotificationSubscriptionsResponse -> Maybe Text)
-> (DescribeNotificationSubscriptionsResponse
-> Maybe Text -> DescribeNotificationSubscriptionsResponse)
-> Lens' DescribeNotificationSubscriptionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotificationSubscriptionsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeNotificationSubscriptionsResponse' :: DescribeNotificationSubscriptionsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeNotificationSubscriptionsResponse
s@DescribeNotificationSubscriptionsResponse' {} Maybe Text
a -> DescribeNotificationSubscriptionsResponse
s {$sel:marker:DescribeNotificationSubscriptionsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeNotificationSubscriptionsResponse)
describeNotificationSubscriptionsResponse_subscriptions :: Lens.Lens' DescribeNotificationSubscriptionsResponse (Prelude.Maybe [Subscription])
describeNotificationSubscriptionsResponse_subscriptions :: (Maybe [Subscription] -> f (Maybe [Subscription]))
-> DescribeNotificationSubscriptionsResponse
-> f DescribeNotificationSubscriptionsResponse
describeNotificationSubscriptionsResponse_subscriptions = (DescribeNotificationSubscriptionsResponse -> Maybe [Subscription])
-> (DescribeNotificationSubscriptionsResponse
-> Maybe [Subscription]
-> DescribeNotificationSubscriptionsResponse)
-> Lens'
DescribeNotificationSubscriptionsResponse (Maybe [Subscription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotificationSubscriptionsResponse' {Maybe [Subscription]
subscriptions :: Maybe [Subscription]
$sel:subscriptions:DescribeNotificationSubscriptionsResponse' :: DescribeNotificationSubscriptionsResponse -> Maybe [Subscription]
subscriptions} -> Maybe [Subscription]
subscriptions) (\s :: DescribeNotificationSubscriptionsResponse
s@DescribeNotificationSubscriptionsResponse' {} Maybe [Subscription]
a -> DescribeNotificationSubscriptionsResponse
s {$sel:subscriptions:DescribeNotificationSubscriptionsResponse' :: Maybe [Subscription]
subscriptions = Maybe [Subscription]
a} :: DescribeNotificationSubscriptionsResponse) ((Maybe [Subscription] -> f (Maybe [Subscription]))
-> DescribeNotificationSubscriptionsResponse
-> f DescribeNotificationSubscriptionsResponse)
-> ((Maybe [Subscription] -> f (Maybe [Subscription]))
-> Maybe [Subscription] -> f (Maybe [Subscription]))
-> (Maybe [Subscription] -> f (Maybe [Subscription]))
-> DescribeNotificationSubscriptionsResponse
-> f DescribeNotificationSubscriptionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Subscription] [Subscription] [Subscription] [Subscription]
-> Iso
(Maybe [Subscription])
(Maybe [Subscription])
(Maybe [Subscription])
(Maybe [Subscription])
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 [Subscription] [Subscription] [Subscription] [Subscription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeNotificationSubscriptionsResponse_httpStatus :: Lens.Lens' DescribeNotificationSubscriptionsResponse Prelude.Int
describeNotificationSubscriptionsResponse_httpStatus :: (Int -> f Int)
-> DescribeNotificationSubscriptionsResponse
-> f DescribeNotificationSubscriptionsResponse
describeNotificationSubscriptionsResponse_httpStatus = (DescribeNotificationSubscriptionsResponse -> Int)
-> (DescribeNotificationSubscriptionsResponse
-> Int -> DescribeNotificationSubscriptionsResponse)
-> Lens
DescribeNotificationSubscriptionsResponse
DescribeNotificationSubscriptionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotificationSubscriptionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeNotificationSubscriptionsResponse' :: DescribeNotificationSubscriptionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeNotificationSubscriptionsResponse
s@DescribeNotificationSubscriptionsResponse' {} Int
a -> DescribeNotificationSubscriptionsResponse
s {$sel:httpStatus:DescribeNotificationSubscriptionsResponse' :: Int
httpStatus = Int
a} :: DescribeNotificationSubscriptionsResponse)
instance
Prelude.NFData
DescribeNotificationSubscriptionsResponse