{-# 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.EMR.ListStudioSessionMappings
(
ListStudioSessionMappings (..),
newListStudioSessionMappings,
listStudioSessionMappings_studioId,
listStudioSessionMappings_identityType,
listStudioSessionMappings_marker,
ListStudioSessionMappingsResponse (..),
newListStudioSessionMappingsResponse,
listStudioSessionMappingsResponse_sessionMappings,
listStudioSessionMappingsResponse_marker,
listStudioSessionMappingsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EMR.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 ListStudioSessionMappings = ListStudioSessionMappings'
{
ListStudioSessionMappings -> Maybe Text
studioId :: Prelude.Maybe Prelude.Text,
ListStudioSessionMappings -> Maybe IdentityType
identityType :: Prelude.Maybe IdentityType,
ListStudioSessionMappings -> Maybe Text
marker :: Prelude.Maybe Prelude.Text
}
deriving (ListStudioSessionMappings -> ListStudioSessionMappings -> Bool
(ListStudioSessionMappings -> ListStudioSessionMappings -> Bool)
-> (ListStudioSessionMappings -> ListStudioSessionMappings -> Bool)
-> Eq ListStudioSessionMappings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStudioSessionMappings -> ListStudioSessionMappings -> Bool
$c/= :: ListStudioSessionMappings -> ListStudioSessionMappings -> Bool
== :: ListStudioSessionMappings -> ListStudioSessionMappings -> Bool
$c== :: ListStudioSessionMappings -> ListStudioSessionMappings -> Bool
Prelude.Eq, ReadPrec [ListStudioSessionMappings]
ReadPrec ListStudioSessionMappings
Int -> ReadS ListStudioSessionMappings
ReadS [ListStudioSessionMappings]
(Int -> ReadS ListStudioSessionMappings)
-> ReadS [ListStudioSessionMappings]
-> ReadPrec ListStudioSessionMappings
-> ReadPrec [ListStudioSessionMappings]
-> Read ListStudioSessionMappings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStudioSessionMappings]
$creadListPrec :: ReadPrec [ListStudioSessionMappings]
readPrec :: ReadPrec ListStudioSessionMappings
$creadPrec :: ReadPrec ListStudioSessionMappings
readList :: ReadS [ListStudioSessionMappings]
$creadList :: ReadS [ListStudioSessionMappings]
readsPrec :: Int -> ReadS ListStudioSessionMappings
$creadsPrec :: Int -> ReadS ListStudioSessionMappings
Prelude.Read, Int -> ListStudioSessionMappings -> ShowS
[ListStudioSessionMappings] -> ShowS
ListStudioSessionMappings -> String
(Int -> ListStudioSessionMappings -> ShowS)
-> (ListStudioSessionMappings -> String)
-> ([ListStudioSessionMappings] -> ShowS)
-> Show ListStudioSessionMappings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStudioSessionMappings] -> ShowS
$cshowList :: [ListStudioSessionMappings] -> ShowS
show :: ListStudioSessionMappings -> String
$cshow :: ListStudioSessionMappings -> String
showsPrec :: Int -> ListStudioSessionMappings -> ShowS
$cshowsPrec :: Int -> ListStudioSessionMappings -> ShowS
Prelude.Show, (forall x.
ListStudioSessionMappings -> Rep ListStudioSessionMappings x)
-> (forall x.
Rep ListStudioSessionMappings x -> ListStudioSessionMappings)
-> Generic ListStudioSessionMappings
forall x.
Rep ListStudioSessionMappings x -> ListStudioSessionMappings
forall x.
ListStudioSessionMappings -> Rep ListStudioSessionMappings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListStudioSessionMappings x -> ListStudioSessionMappings
$cfrom :: forall x.
ListStudioSessionMappings -> Rep ListStudioSessionMappings x
Prelude.Generic)
newListStudioSessionMappings ::
ListStudioSessionMappings
newListStudioSessionMappings :: ListStudioSessionMappings
newListStudioSessionMappings =
ListStudioSessionMappings' :: Maybe Text
-> Maybe IdentityType -> Maybe Text -> ListStudioSessionMappings
ListStudioSessionMappings'
{ $sel:studioId:ListStudioSessionMappings' :: Maybe Text
studioId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:identityType:ListStudioSessionMappings' :: Maybe IdentityType
identityType = Maybe IdentityType
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListStudioSessionMappings' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listStudioSessionMappings_studioId :: Lens.Lens' ListStudioSessionMappings (Prelude.Maybe Prelude.Text)
listStudioSessionMappings_studioId :: (Maybe Text -> f (Maybe Text))
-> ListStudioSessionMappings -> f ListStudioSessionMappings
listStudioSessionMappings_studioId = (ListStudioSessionMappings -> Maybe Text)
-> (ListStudioSessionMappings
-> Maybe Text -> ListStudioSessionMappings)
-> Lens
ListStudioSessionMappings
ListStudioSessionMappings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioSessionMappings' {Maybe Text
studioId :: Maybe Text
$sel:studioId:ListStudioSessionMappings' :: ListStudioSessionMappings -> Maybe Text
studioId} -> Maybe Text
studioId) (\s :: ListStudioSessionMappings
s@ListStudioSessionMappings' {} Maybe Text
a -> ListStudioSessionMappings
s {$sel:studioId:ListStudioSessionMappings' :: Maybe Text
studioId = Maybe Text
a} :: ListStudioSessionMappings)
listStudioSessionMappings_identityType :: Lens.Lens' ListStudioSessionMappings (Prelude.Maybe IdentityType)
listStudioSessionMappings_identityType :: (Maybe IdentityType -> f (Maybe IdentityType))
-> ListStudioSessionMappings -> f ListStudioSessionMappings
listStudioSessionMappings_identityType = (ListStudioSessionMappings -> Maybe IdentityType)
-> (ListStudioSessionMappings
-> Maybe IdentityType -> ListStudioSessionMappings)
-> Lens
ListStudioSessionMappings
ListStudioSessionMappings
(Maybe IdentityType)
(Maybe IdentityType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioSessionMappings' {Maybe IdentityType
identityType :: Maybe IdentityType
$sel:identityType:ListStudioSessionMappings' :: ListStudioSessionMappings -> Maybe IdentityType
identityType} -> Maybe IdentityType
identityType) (\s :: ListStudioSessionMappings
s@ListStudioSessionMappings' {} Maybe IdentityType
a -> ListStudioSessionMappings
s {$sel:identityType:ListStudioSessionMappings' :: Maybe IdentityType
identityType = Maybe IdentityType
a} :: ListStudioSessionMappings)
listStudioSessionMappings_marker :: Lens.Lens' ListStudioSessionMappings (Prelude.Maybe Prelude.Text)
listStudioSessionMappings_marker :: (Maybe Text -> f (Maybe Text))
-> ListStudioSessionMappings -> f ListStudioSessionMappings
listStudioSessionMappings_marker = (ListStudioSessionMappings -> Maybe Text)
-> (ListStudioSessionMappings
-> Maybe Text -> ListStudioSessionMappings)
-> Lens
ListStudioSessionMappings
ListStudioSessionMappings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioSessionMappings' {Maybe Text
marker :: Maybe Text
$sel:marker:ListStudioSessionMappings' :: ListStudioSessionMappings -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListStudioSessionMappings
s@ListStudioSessionMappings' {} Maybe Text
a -> ListStudioSessionMappings
s {$sel:marker:ListStudioSessionMappings' :: Maybe Text
marker = Maybe Text
a} :: ListStudioSessionMappings)
instance Core.AWSPager ListStudioSessionMappings where
page :: ListStudioSessionMappings
-> AWSResponse ListStudioSessionMappings
-> Maybe ListStudioSessionMappings
page ListStudioSessionMappings
rq AWSResponse ListStudioSessionMappings
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStudioSessionMappings
ListStudioSessionMappingsResponse
rs
ListStudioSessionMappingsResponse
-> Getting (First Text) ListStudioSessionMappingsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioSessionMappingsResponse
-> Const (First Text) ListStudioSessionMappingsResponse
Lens' ListStudioSessionMappingsResponse (Maybe Text)
listStudioSessionMappingsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioSessionMappingsResponse
-> Const (First Text) ListStudioSessionMappingsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStudioSessionMappingsResponse 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 ListStudioSessionMappings
forall a. Maybe a
Prelude.Nothing
| Maybe [SessionMappingSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStudioSessionMappings
ListStudioSessionMappingsResponse
rs
ListStudioSessionMappingsResponse
-> Getting
(First [SessionMappingSummary])
ListStudioSessionMappingsResponse
[SessionMappingSummary]
-> Maybe [SessionMappingSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SessionMappingSummary]
-> Const
(First [SessionMappingSummary]) (Maybe [SessionMappingSummary]))
-> ListStudioSessionMappingsResponse
-> Const
(First [SessionMappingSummary]) ListStudioSessionMappingsResponse
Lens'
ListStudioSessionMappingsResponse (Maybe [SessionMappingSummary])
listStudioSessionMappingsResponse_sessionMappings
((Maybe [SessionMappingSummary]
-> Const
(First [SessionMappingSummary]) (Maybe [SessionMappingSummary]))
-> ListStudioSessionMappingsResponse
-> Const
(First [SessionMappingSummary]) ListStudioSessionMappingsResponse)
-> (([SessionMappingSummary]
-> Const (First [SessionMappingSummary]) [SessionMappingSummary])
-> Maybe [SessionMappingSummary]
-> Const
(First [SessionMappingSummary]) (Maybe [SessionMappingSummary]))
-> Getting
(First [SessionMappingSummary])
ListStudioSessionMappingsResponse
[SessionMappingSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SessionMappingSummary]
-> Const (First [SessionMappingSummary]) [SessionMappingSummary])
-> Maybe [SessionMappingSummary]
-> Const
(First [SessionMappingSummary]) (Maybe [SessionMappingSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListStudioSessionMappings
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListStudioSessionMappings -> Maybe ListStudioSessionMappings
forall a. a -> Maybe a
Prelude.Just (ListStudioSessionMappings -> Maybe ListStudioSessionMappings)
-> ListStudioSessionMappings -> Maybe ListStudioSessionMappings
forall a b. (a -> b) -> a -> b
Prelude.$
ListStudioSessionMappings
rq
ListStudioSessionMappings
-> (ListStudioSessionMappings -> ListStudioSessionMappings)
-> ListStudioSessionMappings
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListStudioSessionMappings -> Identity ListStudioSessionMappings
Lens
ListStudioSessionMappings
ListStudioSessionMappings
(Maybe Text)
(Maybe Text)
listStudioSessionMappings_marker
((Maybe Text -> Identity (Maybe Text))
-> ListStudioSessionMappings -> Identity ListStudioSessionMappings)
-> Maybe Text
-> ListStudioSessionMappings
-> ListStudioSessionMappings
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListStudioSessionMappings
ListStudioSessionMappingsResponse
rs
ListStudioSessionMappingsResponse
-> Getting (First Text) ListStudioSessionMappingsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioSessionMappingsResponse
-> Const (First Text) ListStudioSessionMappingsResponse
Lens' ListStudioSessionMappingsResponse (Maybe Text)
listStudioSessionMappingsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioSessionMappingsResponse
-> Const (First Text) ListStudioSessionMappingsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStudioSessionMappingsResponse 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 ListStudioSessionMappings where
type
AWSResponse ListStudioSessionMappings =
ListStudioSessionMappingsResponse
request :: ListStudioSessionMappings -> Request ListStudioSessionMappings
request = Service
-> ListStudioSessionMappings -> Request ListStudioSessionMappings
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListStudioSessionMappings
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListStudioSessionMappings)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListStudioSessionMappings))
-> Logger
-> Service
-> Proxy ListStudioSessionMappings
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListStudioSessionMappings)))
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 [SessionMappingSummary]
-> Maybe Text -> Int -> ListStudioSessionMappingsResponse
ListStudioSessionMappingsResponse'
(Maybe [SessionMappingSummary]
-> Maybe Text -> Int -> ListStudioSessionMappingsResponse)
-> Either String (Maybe [SessionMappingSummary])
-> Either
String (Maybe Text -> Int -> ListStudioSessionMappingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [SessionMappingSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SessionMappings"
Either String (Maybe (Maybe [SessionMappingSummary]))
-> Maybe [SessionMappingSummary]
-> Either String (Maybe [SessionMappingSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SessionMappingSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListStudioSessionMappingsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListStudioSessionMappingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Marker")
Either String (Int -> ListStudioSessionMappingsResponse)
-> Either String Int
-> Either String ListStudioSessionMappingsResponse
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 ListStudioSessionMappings
instance Prelude.NFData ListStudioSessionMappings
instance Core.ToHeaders ListStudioSessionMappings where
toHeaders :: ListStudioSessionMappings -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListStudioSessionMappings -> 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
"ElasticMapReduce.ListStudioSessionMappings" ::
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 ListStudioSessionMappings where
toJSON :: ListStudioSessionMappings -> Value
toJSON ListStudioSessionMappings' {Maybe Text
Maybe IdentityType
marker :: Maybe Text
identityType :: Maybe IdentityType
studioId :: Maybe Text
$sel:marker:ListStudioSessionMappings' :: ListStudioSessionMappings -> Maybe Text
$sel:identityType:ListStudioSessionMappings' :: ListStudioSessionMappings -> Maybe IdentityType
$sel:studioId:ListStudioSessionMappings' :: ListStudioSessionMappings -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"StudioId" 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
studioId,
(Text
"IdentityType" Text -> IdentityType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (IdentityType -> Pair) -> Maybe IdentityType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IdentityType
identityType,
(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
]
)
instance Core.ToPath ListStudioSessionMappings where
toPath :: ListStudioSessionMappings -> ByteString
toPath = ByteString -> ListStudioSessionMappings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListStudioSessionMappings where
toQuery :: ListStudioSessionMappings -> QueryString
toQuery = QueryString -> ListStudioSessionMappings -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListStudioSessionMappingsResponse = ListStudioSessionMappingsResponse'
{
ListStudioSessionMappingsResponse -> Maybe [SessionMappingSummary]
sessionMappings :: Prelude.Maybe [SessionMappingSummary],
ListStudioSessionMappingsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListStudioSessionMappingsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool
(ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool)
-> (ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool)
-> Eq ListStudioSessionMappingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool
$c/= :: ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool
== :: ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool
$c== :: ListStudioSessionMappingsResponse
-> ListStudioSessionMappingsResponse -> Bool
Prelude.Eq, ReadPrec [ListStudioSessionMappingsResponse]
ReadPrec ListStudioSessionMappingsResponse
Int -> ReadS ListStudioSessionMappingsResponse
ReadS [ListStudioSessionMappingsResponse]
(Int -> ReadS ListStudioSessionMappingsResponse)
-> ReadS [ListStudioSessionMappingsResponse]
-> ReadPrec ListStudioSessionMappingsResponse
-> ReadPrec [ListStudioSessionMappingsResponse]
-> Read ListStudioSessionMappingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStudioSessionMappingsResponse]
$creadListPrec :: ReadPrec [ListStudioSessionMappingsResponse]
readPrec :: ReadPrec ListStudioSessionMappingsResponse
$creadPrec :: ReadPrec ListStudioSessionMappingsResponse
readList :: ReadS [ListStudioSessionMappingsResponse]
$creadList :: ReadS [ListStudioSessionMappingsResponse]
readsPrec :: Int -> ReadS ListStudioSessionMappingsResponse
$creadsPrec :: Int -> ReadS ListStudioSessionMappingsResponse
Prelude.Read, Int -> ListStudioSessionMappingsResponse -> ShowS
[ListStudioSessionMappingsResponse] -> ShowS
ListStudioSessionMappingsResponse -> String
(Int -> ListStudioSessionMappingsResponse -> ShowS)
-> (ListStudioSessionMappingsResponse -> String)
-> ([ListStudioSessionMappingsResponse] -> ShowS)
-> Show ListStudioSessionMappingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStudioSessionMappingsResponse] -> ShowS
$cshowList :: [ListStudioSessionMappingsResponse] -> ShowS
show :: ListStudioSessionMappingsResponse -> String
$cshow :: ListStudioSessionMappingsResponse -> String
showsPrec :: Int -> ListStudioSessionMappingsResponse -> ShowS
$cshowsPrec :: Int -> ListStudioSessionMappingsResponse -> ShowS
Prelude.Show, (forall x.
ListStudioSessionMappingsResponse
-> Rep ListStudioSessionMappingsResponse x)
-> (forall x.
Rep ListStudioSessionMappingsResponse x
-> ListStudioSessionMappingsResponse)
-> Generic ListStudioSessionMappingsResponse
forall x.
Rep ListStudioSessionMappingsResponse x
-> ListStudioSessionMappingsResponse
forall x.
ListStudioSessionMappingsResponse
-> Rep ListStudioSessionMappingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListStudioSessionMappingsResponse x
-> ListStudioSessionMappingsResponse
$cfrom :: forall x.
ListStudioSessionMappingsResponse
-> Rep ListStudioSessionMappingsResponse x
Prelude.Generic)
newListStudioSessionMappingsResponse ::
Prelude.Int ->
ListStudioSessionMappingsResponse
newListStudioSessionMappingsResponse :: Int -> ListStudioSessionMappingsResponse
newListStudioSessionMappingsResponse Int
pHttpStatus_ =
ListStudioSessionMappingsResponse' :: Maybe [SessionMappingSummary]
-> Maybe Text -> Int -> ListStudioSessionMappingsResponse
ListStudioSessionMappingsResponse'
{ $sel:sessionMappings:ListStudioSessionMappingsResponse' :: Maybe [SessionMappingSummary]
sessionMappings =
Maybe [SessionMappingSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListStudioSessionMappingsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListStudioSessionMappingsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listStudioSessionMappingsResponse_sessionMappings :: Lens.Lens' ListStudioSessionMappingsResponse (Prelude.Maybe [SessionMappingSummary])
listStudioSessionMappingsResponse_sessionMappings :: (Maybe [SessionMappingSummary]
-> f (Maybe [SessionMappingSummary]))
-> ListStudioSessionMappingsResponse
-> f ListStudioSessionMappingsResponse
listStudioSessionMappingsResponse_sessionMappings = (ListStudioSessionMappingsResponse
-> Maybe [SessionMappingSummary])
-> (ListStudioSessionMappingsResponse
-> Maybe [SessionMappingSummary]
-> ListStudioSessionMappingsResponse)
-> Lens'
ListStudioSessionMappingsResponse (Maybe [SessionMappingSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioSessionMappingsResponse' {Maybe [SessionMappingSummary]
sessionMappings :: Maybe [SessionMappingSummary]
$sel:sessionMappings:ListStudioSessionMappingsResponse' :: ListStudioSessionMappingsResponse -> Maybe [SessionMappingSummary]
sessionMappings} -> Maybe [SessionMappingSummary]
sessionMappings) (\s :: ListStudioSessionMappingsResponse
s@ListStudioSessionMappingsResponse' {} Maybe [SessionMappingSummary]
a -> ListStudioSessionMappingsResponse
s {$sel:sessionMappings:ListStudioSessionMappingsResponse' :: Maybe [SessionMappingSummary]
sessionMappings = Maybe [SessionMappingSummary]
a} :: ListStudioSessionMappingsResponse) ((Maybe [SessionMappingSummary]
-> f (Maybe [SessionMappingSummary]))
-> ListStudioSessionMappingsResponse
-> f ListStudioSessionMappingsResponse)
-> ((Maybe [SessionMappingSummary]
-> f (Maybe [SessionMappingSummary]))
-> Maybe [SessionMappingSummary]
-> f (Maybe [SessionMappingSummary]))
-> (Maybe [SessionMappingSummary]
-> f (Maybe [SessionMappingSummary]))
-> ListStudioSessionMappingsResponse
-> f ListStudioSessionMappingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SessionMappingSummary]
[SessionMappingSummary]
[SessionMappingSummary]
[SessionMappingSummary]
-> Iso
(Maybe [SessionMappingSummary])
(Maybe [SessionMappingSummary])
(Maybe [SessionMappingSummary])
(Maybe [SessionMappingSummary])
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
[SessionMappingSummary]
[SessionMappingSummary]
[SessionMappingSummary]
[SessionMappingSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listStudioSessionMappingsResponse_marker :: Lens.Lens' ListStudioSessionMappingsResponse (Prelude.Maybe Prelude.Text)
listStudioSessionMappingsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListStudioSessionMappingsResponse
-> f ListStudioSessionMappingsResponse
listStudioSessionMappingsResponse_marker = (ListStudioSessionMappingsResponse -> Maybe Text)
-> (ListStudioSessionMappingsResponse
-> Maybe Text -> ListStudioSessionMappingsResponse)
-> Lens' ListStudioSessionMappingsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioSessionMappingsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListStudioSessionMappingsResponse' :: ListStudioSessionMappingsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListStudioSessionMappingsResponse
s@ListStudioSessionMappingsResponse' {} Maybe Text
a -> ListStudioSessionMappingsResponse
s {$sel:marker:ListStudioSessionMappingsResponse' :: Maybe Text
marker = Maybe Text
a} :: ListStudioSessionMappingsResponse)
listStudioSessionMappingsResponse_httpStatus :: Lens.Lens' ListStudioSessionMappingsResponse Prelude.Int
listStudioSessionMappingsResponse_httpStatus :: (Int -> f Int)
-> ListStudioSessionMappingsResponse
-> f ListStudioSessionMappingsResponse
listStudioSessionMappingsResponse_httpStatus = (ListStudioSessionMappingsResponse -> Int)
-> (ListStudioSessionMappingsResponse
-> Int -> ListStudioSessionMappingsResponse)
-> Lens
ListStudioSessionMappingsResponse
ListStudioSessionMappingsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioSessionMappingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListStudioSessionMappingsResponse' :: ListStudioSessionMappingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListStudioSessionMappingsResponse
s@ListStudioSessionMappingsResponse' {} Int
a -> ListStudioSessionMappingsResponse
s {$sel:httpStatus:ListStudioSessionMappingsResponse' :: Int
httpStatus = Int
a} :: ListStudioSessionMappingsResponse)
instance
Prelude.NFData
ListStudioSessionMappingsResponse