{-# 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.Chime.ListChannelsModeratedByAppInstanceUser
(
ListChannelsModeratedByAppInstanceUser (..),
newListChannelsModeratedByAppInstanceUser,
listChannelsModeratedByAppInstanceUser_appInstanceUserArn,
listChannelsModeratedByAppInstanceUser_chimeBearer,
listChannelsModeratedByAppInstanceUser_nextToken,
listChannelsModeratedByAppInstanceUser_maxResults,
ListChannelsModeratedByAppInstanceUserResponse (..),
newListChannelsModeratedByAppInstanceUserResponse,
listChannelsModeratedByAppInstanceUserResponse_channels,
listChannelsModeratedByAppInstanceUserResponse_nextToken,
listChannelsModeratedByAppInstanceUserResponse_httpStatus,
)
where
import Amazonka.Chime.Types
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
data ListChannelsModeratedByAppInstanceUser = ListChannelsModeratedByAppInstanceUser'
{
ListChannelsModeratedByAppInstanceUser -> Maybe Text
appInstanceUserArn :: Prelude.Maybe Prelude.Text,
ListChannelsModeratedByAppInstanceUser -> Maybe Text
chimeBearer :: Prelude.Maybe Prelude.Text,
ListChannelsModeratedByAppInstanceUser -> Maybe (Sensitive Text)
nextToken :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ListChannelsModeratedByAppInstanceUser -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool
(ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool)
-> (ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool)
-> Eq ListChannelsModeratedByAppInstanceUser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool
$c/= :: ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool
== :: ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool
$c== :: ListChannelsModeratedByAppInstanceUser
-> ListChannelsModeratedByAppInstanceUser -> Bool
Prelude.Eq, Int -> ListChannelsModeratedByAppInstanceUser -> ShowS
[ListChannelsModeratedByAppInstanceUser] -> ShowS
ListChannelsModeratedByAppInstanceUser -> String
(Int -> ListChannelsModeratedByAppInstanceUser -> ShowS)
-> (ListChannelsModeratedByAppInstanceUser -> String)
-> ([ListChannelsModeratedByAppInstanceUser] -> ShowS)
-> Show ListChannelsModeratedByAppInstanceUser
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListChannelsModeratedByAppInstanceUser] -> ShowS
$cshowList :: [ListChannelsModeratedByAppInstanceUser] -> ShowS
show :: ListChannelsModeratedByAppInstanceUser -> String
$cshow :: ListChannelsModeratedByAppInstanceUser -> String
showsPrec :: Int -> ListChannelsModeratedByAppInstanceUser -> ShowS
$cshowsPrec :: Int -> ListChannelsModeratedByAppInstanceUser -> ShowS
Prelude.Show, (forall x.
ListChannelsModeratedByAppInstanceUser
-> Rep ListChannelsModeratedByAppInstanceUser x)
-> (forall x.
Rep ListChannelsModeratedByAppInstanceUser x
-> ListChannelsModeratedByAppInstanceUser)
-> Generic ListChannelsModeratedByAppInstanceUser
forall x.
Rep ListChannelsModeratedByAppInstanceUser x
-> ListChannelsModeratedByAppInstanceUser
forall x.
ListChannelsModeratedByAppInstanceUser
-> Rep ListChannelsModeratedByAppInstanceUser x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListChannelsModeratedByAppInstanceUser x
-> ListChannelsModeratedByAppInstanceUser
$cfrom :: forall x.
ListChannelsModeratedByAppInstanceUser
-> Rep ListChannelsModeratedByAppInstanceUser x
Prelude.Generic)
newListChannelsModeratedByAppInstanceUser ::
ListChannelsModeratedByAppInstanceUser
newListChannelsModeratedByAppInstanceUser :: ListChannelsModeratedByAppInstanceUser
newListChannelsModeratedByAppInstanceUser =
ListChannelsModeratedByAppInstanceUser' :: Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Natural
-> ListChannelsModeratedByAppInstanceUser
ListChannelsModeratedByAppInstanceUser'
{ $sel:appInstanceUserArn:ListChannelsModeratedByAppInstanceUser' :: Maybe Text
appInstanceUserArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:chimeBearer:ListChannelsModeratedByAppInstanceUser' :: Maybe Text
chimeBearer = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListChannelsModeratedByAppInstanceUser' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListChannelsModeratedByAppInstanceUser' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listChannelsModeratedByAppInstanceUser_appInstanceUserArn :: Lens.Lens' ListChannelsModeratedByAppInstanceUser (Prelude.Maybe Prelude.Text)
listChannelsModeratedByAppInstanceUser_appInstanceUserArn :: (Maybe Text -> f (Maybe Text))
-> ListChannelsModeratedByAppInstanceUser
-> f ListChannelsModeratedByAppInstanceUser
listChannelsModeratedByAppInstanceUser_appInstanceUserArn = (ListChannelsModeratedByAppInstanceUser -> Maybe Text)
-> (ListChannelsModeratedByAppInstanceUser
-> Maybe Text -> ListChannelsModeratedByAppInstanceUser)
-> Lens
ListChannelsModeratedByAppInstanceUser
ListChannelsModeratedByAppInstanceUser
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUser' {Maybe Text
appInstanceUserArn :: Maybe Text
$sel:appInstanceUserArn:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Text
appInstanceUserArn} -> Maybe Text
appInstanceUserArn) (\s :: ListChannelsModeratedByAppInstanceUser
s@ListChannelsModeratedByAppInstanceUser' {} Maybe Text
a -> ListChannelsModeratedByAppInstanceUser
s {$sel:appInstanceUserArn:ListChannelsModeratedByAppInstanceUser' :: Maybe Text
appInstanceUserArn = Maybe Text
a} :: ListChannelsModeratedByAppInstanceUser)
listChannelsModeratedByAppInstanceUser_chimeBearer :: Lens.Lens' ListChannelsModeratedByAppInstanceUser (Prelude.Maybe Prelude.Text)
listChannelsModeratedByAppInstanceUser_chimeBearer :: (Maybe Text -> f (Maybe Text))
-> ListChannelsModeratedByAppInstanceUser
-> f ListChannelsModeratedByAppInstanceUser
listChannelsModeratedByAppInstanceUser_chimeBearer = (ListChannelsModeratedByAppInstanceUser -> Maybe Text)
-> (ListChannelsModeratedByAppInstanceUser
-> Maybe Text -> ListChannelsModeratedByAppInstanceUser)
-> Lens
ListChannelsModeratedByAppInstanceUser
ListChannelsModeratedByAppInstanceUser
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUser' {Maybe Text
chimeBearer :: Maybe Text
$sel:chimeBearer:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Text
chimeBearer} -> Maybe Text
chimeBearer) (\s :: ListChannelsModeratedByAppInstanceUser
s@ListChannelsModeratedByAppInstanceUser' {} Maybe Text
a -> ListChannelsModeratedByAppInstanceUser
s {$sel:chimeBearer:ListChannelsModeratedByAppInstanceUser' :: Maybe Text
chimeBearer = Maybe Text
a} :: ListChannelsModeratedByAppInstanceUser)
listChannelsModeratedByAppInstanceUser_nextToken :: Lens.Lens' ListChannelsModeratedByAppInstanceUser (Prelude.Maybe Prelude.Text)
listChannelsModeratedByAppInstanceUser_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListChannelsModeratedByAppInstanceUser
-> f ListChannelsModeratedByAppInstanceUser
listChannelsModeratedByAppInstanceUser_nextToken = (ListChannelsModeratedByAppInstanceUser -> Maybe (Sensitive Text))
-> (ListChannelsModeratedByAppInstanceUser
-> Maybe (Sensitive Text)
-> ListChannelsModeratedByAppInstanceUser)
-> Lens
ListChannelsModeratedByAppInstanceUser
ListChannelsModeratedByAppInstanceUser
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUser' {Maybe (Sensitive Text)
nextToken :: Maybe (Sensitive Text)
$sel:nextToken:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe (Sensitive Text)
nextToken} -> Maybe (Sensitive Text)
nextToken) (\s :: ListChannelsModeratedByAppInstanceUser
s@ListChannelsModeratedByAppInstanceUser' {} Maybe (Sensitive Text)
a -> ListChannelsModeratedByAppInstanceUser
s {$sel:nextToken:ListChannelsModeratedByAppInstanceUser' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
a} :: ListChannelsModeratedByAppInstanceUser) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ListChannelsModeratedByAppInstanceUser
-> f ListChannelsModeratedByAppInstanceUser)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ListChannelsModeratedByAppInstanceUser
-> f ListChannelsModeratedByAppInstanceUser
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
listChannelsModeratedByAppInstanceUser_maxResults :: Lens.Lens' ListChannelsModeratedByAppInstanceUser (Prelude.Maybe Prelude.Natural)
listChannelsModeratedByAppInstanceUser_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListChannelsModeratedByAppInstanceUser
-> f ListChannelsModeratedByAppInstanceUser
listChannelsModeratedByAppInstanceUser_maxResults = (ListChannelsModeratedByAppInstanceUser -> Maybe Natural)
-> (ListChannelsModeratedByAppInstanceUser
-> Maybe Natural -> ListChannelsModeratedByAppInstanceUser)
-> Lens
ListChannelsModeratedByAppInstanceUser
ListChannelsModeratedByAppInstanceUser
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUser' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListChannelsModeratedByAppInstanceUser
s@ListChannelsModeratedByAppInstanceUser' {} Maybe Natural
a -> ListChannelsModeratedByAppInstanceUser
s {$sel:maxResults:ListChannelsModeratedByAppInstanceUser' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListChannelsModeratedByAppInstanceUser)
instance
Core.AWSRequest
ListChannelsModeratedByAppInstanceUser
where
type
AWSResponse
ListChannelsModeratedByAppInstanceUser =
ListChannelsModeratedByAppInstanceUserResponse
request :: ListChannelsModeratedByAppInstanceUser
-> Request ListChannelsModeratedByAppInstanceUser
request = Service
-> ListChannelsModeratedByAppInstanceUser
-> Request ListChannelsModeratedByAppInstanceUser
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListChannelsModeratedByAppInstanceUser
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListChannelsModeratedByAppInstanceUser)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse ListChannelsModeratedByAppInstanceUser))
-> Logger
-> Service
-> Proxy ListChannelsModeratedByAppInstanceUser
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListChannelsModeratedByAppInstanceUser)))
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 [ChannelModeratedByAppInstanceUserSummary]
-> Maybe (Sensitive Text)
-> Int
-> ListChannelsModeratedByAppInstanceUserResponse
ListChannelsModeratedByAppInstanceUserResponse'
(Maybe [ChannelModeratedByAppInstanceUserSummary]
-> Maybe (Sensitive Text)
-> Int
-> ListChannelsModeratedByAppInstanceUserResponse)
-> Either String (Maybe [ChannelModeratedByAppInstanceUserSummary])
-> Either
String
(Maybe (Sensitive Text)
-> Int -> ListChannelsModeratedByAppInstanceUserResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either
String (Maybe (Maybe [ChannelModeratedByAppInstanceUserSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Channels" Either
String (Maybe (Maybe [ChannelModeratedByAppInstanceUserSummary]))
-> Maybe [ChannelModeratedByAppInstanceUserSummary]
-> Either String (Maybe [ChannelModeratedByAppInstanceUserSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ChannelModeratedByAppInstanceUserSummary]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe (Sensitive Text)
-> Int -> ListChannelsModeratedByAppInstanceUserResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String (Int -> ListChannelsModeratedByAppInstanceUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String (Int -> ListChannelsModeratedByAppInstanceUserResponse)
-> Either String Int
-> Either String ListChannelsModeratedByAppInstanceUserResponse
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
ListChannelsModeratedByAppInstanceUser
instance
Prelude.NFData
ListChannelsModeratedByAppInstanceUser
instance
Core.ToHeaders
ListChannelsModeratedByAppInstanceUser
where
toHeaders :: ListChannelsModeratedByAppInstanceUser -> ResponseHeaders
toHeaders ListChannelsModeratedByAppInstanceUser' {Maybe Natural
Maybe Text
Maybe (Sensitive Text)
maxResults :: Maybe Natural
nextToken :: Maybe (Sensitive Text)
chimeBearer :: Maybe Text
appInstanceUserArn :: Maybe Text
$sel:maxResults:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Natural
$sel:nextToken:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe (Sensitive Text)
$sel:chimeBearer:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Text
$sel:appInstanceUserArn:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[HeaderName
"x-amz-chime-bearer" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
chimeBearer]
instance
Core.ToPath
ListChannelsModeratedByAppInstanceUser
where
toPath :: ListChannelsModeratedByAppInstanceUser -> ByteString
toPath = ByteString -> ListChannelsModeratedByAppInstanceUser -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/channels"
instance
Core.ToQuery
ListChannelsModeratedByAppInstanceUser
where
toQuery :: ListChannelsModeratedByAppInstanceUser -> QueryString
toQuery ListChannelsModeratedByAppInstanceUser' {Maybe Natural
Maybe Text
Maybe (Sensitive Text)
maxResults :: Maybe Natural
nextToken :: Maybe (Sensitive Text)
chimeBearer :: Maybe Text
appInstanceUserArn :: Maybe Text
$sel:maxResults:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Natural
$sel:nextToken:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe (Sensitive Text)
$sel:chimeBearer:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Text
$sel:appInstanceUserArn:ListChannelsModeratedByAppInstanceUser' :: ListChannelsModeratedByAppInstanceUser -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"app-instance-user-arn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
appInstanceUserArn,
ByteString
"next-token" ByteString -> Maybe (Sensitive Text) -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe (Sensitive Text)
nextToken,
ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
QueryString
"scope=app-instance-user-moderated-channels"
]
data ListChannelsModeratedByAppInstanceUserResponse = ListChannelsModeratedByAppInstanceUserResponse'
{
ListChannelsModeratedByAppInstanceUserResponse
-> Maybe [ChannelModeratedByAppInstanceUserSummary]
channels :: Prelude.Maybe [ChannelModeratedByAppInstanceUserSummary],
ListChannelsModeratedByAppInstanceUserResponse
-> Maybe (Sensitive Text)
nextToken :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ListChannelsModeratedByAppInstanceUserResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool
(ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool)
-> (ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool)
-> Eq ListChannelsModeratedByAppInstanceUserResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool
$c/= :: ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool
== :: ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool
$c== :: ListChannelsModeratedByAppInstanceUserResponse
-> ListChannelsModeratedByAppInstanceUserResponse -> Bool
Prelude.Eq, Int -> ListChannelsModeratedByAppInstanceUserResponse -> ShowS
[ListChannelsModeratedByAppInstanceUserResponse] -> ShowS
ListChannelsModeratedByAppInstanceUserResponse -> String
(Int -> ListChannelsModeratedByAppInstanceUserResponse -> ShowS)
-> (ListChannelsModeratedByAppInstanceUserResponse -> String)
-> ([ListChannelsModeratedByAppInstanceUserResponse] -> ShowS)
-> Show ListChannelsModeratedByAppInstanceUserResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListChannelsModeratedByAppInstanceUserResponse] -> ShowS
$cshowList :: [ListChannelsModeratedByAppInstanceUserResponse] -> ShowS
show :: ListChannelsModeratedByAppInstanceUserResponse -> String
$cshow :: ListChannelsModeratedByAppInstanceUserResponse -> String
showsPrec :: Int -> ListChannelsModeratedByAppInstanceUserResponse -> ShowS
$cshowsPrec :: Int -> ListChannelsModeratedByAppInstanceUserResponse -> ShowS
Prelude.Show, (forall x.
ListChannelsModeratedByAppInstanceUserResponse
-> Rep ListChannelsModeratedByAppInstanceUserResponse x)
-> (forall x.
Rep ListChannelsModeratedByAppInstanceUserResponse x
-> ListChannelsModeratedByAppInstanceUserResponse)
-> Generic ListChannelsModeratedByAppInstanceUserResponse
forall x.
Rep ListChannelsModeratedByAppInstanceUserResponse x
-> ListChannelsModeratedByAppInstanceUserResponse
forall x.
ListChannelsModeratedByAppInstanceUserResponse
-> Rep ListChannelsModeratedByAppInstanceUserResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListChannelsModeratedByAppInstanceUserResponse x
-> ListChannelsModeratedByAppInstanceUserResponse
$cfrom :: forall x.
ListChannelsModeratedByAppInstanceUserResponse
-> Rep ListChannelsModeratedByAppInstanceUserResponse x
Prelude.Generic)
newListChannelsModeratedByAppInstanceUserResponse ::
Prelude.Int ->
ListChannelsModeratedByAppInstanceUserResponse
newListChannelsModeratedByAppInstanceUserResponse :: Int -> ListChannelsModeratedByAppInstanceUserResponse
newListChannelsModeratedByAppInstanceUserResponse
Int
pHttpStatus_ =
ListChannelsModeratedByAppInstanceUserResponse' :: Maybe [ChannelModeratedByAppInstanceUserSummary]
-> Maybe (Sensitive Text)
-> Int
-> ListChannelsModeratedByAppInstanceUserResponse
ListChannelsModeratedByAppInstanceUserResponse'
{ $sel:channels:ListChannelsModeratedByAppInstanceUserResponse' :: Maybe [ChannelModeratedByAppInstanceUserSummary]
channels =
Maybe [ChannelModeratedByAppInstanceUserSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListChannelsModeratedByAppInstanceUserResponse' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListChannelsModeratedByAppInstanceUserResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listChannelsModeratedByAppInstanceUserResponse_channels :: Lens.Lens' ListChannelsModeratedByAppInstanceUserResponse (Prelude.Maybe [ChannelModeratedByAppInstanceUserSummary])
listChannelsModeratedByAppInstanceUserResponse_channels :: (Maybe [ChannelModeratedByAppInstanceUserSummary]
-> f (Maybe [ChannelModeratedByAppInstanceUserSummary]))
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse
listChannelsModeratedByAppInstanceUserResponse_channels = (ListChannelsModeratedByAppInstanceUserResponse
-> Maybe [ChannelModeratedByAppInstanceUserSummary])
-> (ListChannelsModeratedByAppInstanceUserResponse
-> Maybe [ChannelModeratedByAppInstanceUserSummary]
-> ListChannelsModeratedByAppInstanceUserResponse)
-> Lens
ListChannelsModeratedByAppInstanceUserResponse
ListChannelsModeratedByAppInstanceUserResponse
(Maybe [ChannelModeratedByAppInstanceUserSummary])
(Maybe [ChannelModeratedByAppInstanceUserSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUserResponse' {Maybe [ChannelModeratedByAppInstanceUserSummary]
channels :: Maybe [ChannelModeratedByAppInstanceUserSummary]
$sel:channels:ListChannelsModeratedByAppInstanceUserResponse' :: ListChannelsModeratedByAppInstanceUserResponse
-> Maybe [ChannelModeratedByAppInstanceUserSummary]
channels} -> Maybe [ChannelModeratedByAppInstanceUserSummary]
channels) (\s :: ListChannelsModeratedByAppInstanceUserResponse
s@ListChannelsModeratedByAppInstanceUserResponse' {} Maybe [ChannelModeratedByAppInstanceUserSummary]
a -> ListChannelsModeratedByAppInstanceUserResponse
s {$sel:channels:ListChannelsModeratedByAppInstanceUserResponse' :: Maybe [ChannelModeratedByAppInstanceUserSummary]
channels = Maybe [ChannelModeratedByAppInstanceUserSummary]
a} :: ListChannelsModeratedByAppInstanceUserResponse) ((Maybe [ChannelModeratedByAppInstanceUserSummary]
-> f (Maybe [ChannelModeratedByAppInstanceUserSummary]))
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse)
-> ((Maybe [ChannelModeratedByAppInstanceUserSummary]
-> f (Maybe [ChannelModeratedByAppInstanceUserSummary]))
-> Maybe [ChannelModeratedByAppInstanceUserSummary]
-> f (Maybe [ChannelModeratedByAppInstanceUserSummary]))
-> (Maybe [ChannelModeratedByAppInstanceUserSummary]
-> f (Maybe [ChannelModeratedByAppInstanceUserSummary]))
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ChannelModeratedByAppInstanceUserSummary]
[ChannelModeratedByAppInstanceUserSummary]
[ChannelModeratedByAppInstanceUserSummary]
[ChannelModeratedByAppInstanceUserSummary]
-> Iso
(Maybe [ChannelModeratedByAppInstanceUserSummary])
(Maybe [ChannelModeratedByAppInstanceUserSummary])
(Maybe [ChannelModeratedByAppInstanceUserSummary])
(Maybe [ChannelModeratedByAppInstanceUserSummary])
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
[ChannelModeratedByAppInstanceUserSummary]
[ChannelModeratedByAppInstanceUserSummary]
[ChannelModeratedByAppInstanceUserSummary]
[ChannelModeratedByAppInstanceUserSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listChannelsModeratedByAppInstanceUserResponse_nextToken :: Lens.Lens' ListChannelsModeratedByAppInstanceUserResponse (Prelude.Maybe Prelude.Text)
listChannelsModeratedByAppInstanceUserResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse
listChannelsModeratedByAppInstanceUserResponse_nextToken = (ListChannelsModeratedByAppInstanceUserResponse
-> Maybe (Sensitive Text))
-> (ListChannelsModeratedByAppInstanceUserResponse
-> Maybe (Sensitive Text)
-> ListChannelsModeratedByAppInstanceUserResponse)
-> Lens
ListChannelsModeratedByAppInstanceUserResponse
ListChannelsModeratedByAppInstanceUserResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUserResponse' {Maybe (Sensitive Text)
nextToken :: Maybe (Sensitive Text)
$sel:nextToken:ListChannelsModeratedByAppInstanceUserResponse' :: ListChannelsModeratedByAppInstanceUserResponse
-> Maybe (Sensitive Text)
nextToken} -> Maybe (Sensitive Text)
nextToken) (\s :: ListChannelsModeratedByAppInstanceUserResponse
s@ListChannelsModeratedByAppInstanceUserResponse' {} Maybe (Sensitive Text)
a -> ListChannelsModeratedByAppInstanceUserResponse
s {$sel:nextToken:ListChannelsModeratedByAppInstanceUserResponse' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
a} :: ListChannelsModeratedByAppInstanceUserResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
listChannelsModeratedByAppInstanceUserResponse_httpStatus :: Lens.Lens' ListChannelsModeratedByAppInstanceUserResponse Prelude.Int
listChannelsModeratedByAppInstanceUserResponse_httpStatus :: (Int -> f Int)
-> ListChannelsModeratedByAppInstanceUserResponse
-> f ListChannelsModeratedByAppInstanceUserResponse
listChannelsModeratedByAppInstanceUserResponse_httpStatus = (ListChannelsModeratedByAppInstanceUserResponse -> Int)
-> (ListChannelsModeratedByAppInstanceUserResponse
-> Int -> ListChannelsModeratedByAppInstanceUserResponse)
-> Lens
ListChannelsModeratedByAppInstanceUserResponse
ListChannelsModeratedByAppInstanceUserResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelsModeratedByAppInstanceUserResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListChannelsModeratedByAppInstanceUserResponse' :: ListChannelsModeratedByAppInstanceUserResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListChannelsModeratedByAppInstanceUserResponse
s@ListChannelsModeratedByAppInstanceUserResponse' {} Int
a -> ListChannelsModeratedByAppInstanceUserResponse
s {$sel:httpStatus:ListChannelsModeratedByAppInstanceUserResponse' :: Int
httpStatus = Int
a} :: ListChannelsModeratedByAppInstanceUserResponse)
instance
Prelude.NFData
ListChannelsModeratedByAppInstanceUserResponse