{-# 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.VoiceId.EvaluateSession
(
EvaluateSession (..),
newEvaluateSession,
evaluateSession_domainId,
evaluateSession_sessionNameOrId,
EvaluateSessionResponse (..),
newEvaluateSessionResponse,
evaluateSessionResponse_fraudDetectionResult,
evaluateSessionResponse_streamingStatus,
evaluateSessionResponse_authenticationResult,
evaluateSessionResponse_domainId,
evaluateSessionResponse_sessionId,
evaluateSessionResponse_sessionName,
evaluateSessionResponse_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.VoiceId.Types
data EvaluateSession = EvaluateSession'
{
EvaluateSession -> Text
domainId :: Prelude.Text,
EvaluateSession -> Text
sessionNameOrId :: Prelude.Text
}
deriving (EvaluateSession -> EvaluateSession -> Bool
(EvaluateSession -> EvaluateSession -> Bool)
-> (EvaluateSession -> EvaluateSession -> Bool)
-> Eq EvaluateSession
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EvaluateSession -> EvaluateSession -> Bool
$c/= :: EvaluateSession -> EvaluateSession -> Bool
== :: EvaluateSession -> EvaluateSession -> Bool
$c== :: EvaluateSession -> EvaluateSession -> Bool
Prelude.Eq, ReadPrec [EvaluateSession]
ReadPrec EvaluateSession
Int -> ReadS EvaluateSession
ReadS [EvaluateSession]
(Int -> ReadS EvaluateSession)
-> ReadS [EvaluateSession]
-> ReadPrec EvaluateSession
-> ReadPrec [EvaluateSession]
-> Read EvaluateSession
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EvaluateSession]
$creadListPrec :: ReadPrec [EvaluateSession]
readPrec :: ReadPrec EvaluateSession
$creadPrec :: ReadPrec EvaluateSession
readList :: ReadS [EvaluateSession]
$creadList :: ReadS [EvaluateSession]
readsPrec :: Int -> ReadS EvaluateSession
$creadsPrec :: Int -> ReadS EvaluateSession
Prelude.Read, Int -> EvaluateSession -> ShowS
[EvaluateSession] -> ShowS
EvaluateSession -> String
(Int -> EvaluateSession -> ShowS)
-> (EvaluateSession -> String)
-> ([EvaluateSession] -> ShowS)
-> Show EvaluateSession
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EvaluateSession] -> ShowS
$cshowList :: [EvaluateSession] -> ShowS
show :: EvaluateSession -> String
$cshow :: EvaluateSession -> String
showsPrec :: Int -> EvaluateSession -> ShowS
$cshowsPrec :: Int -> EvaluateSession -> ShowS
Prelude.Show, (forall x. EvaluateSession -> Rep EvaluateSession x)
-> (forall x. Rep EvaluateSession x -> EvaluateSession)
-> Generic EvaluateSession
forall x. Rep EvaluateSession x -> EvaluateSession
forall x. EvaluateSession -> Rep EvaluateSession x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EvaluateSession x -> EvaluateSession
$cfrom :: forall x. EvaluateSession -> Rep EvaluateSession x
Prelude.Generic)
newEvaluateSession ::
Prelude.Text ->
Prelude.Text ->
EvaluateSession
newEvaluateSession :: Text -> Text -> EvaluateSession
newEvaluateSession Text
pDomainId_ Text
pSessionNameOrId_ =
EvaluateSession' :: Text -> Text -> EvaluateSession
EvaluateSession'
{ $sel:domainId:EvaluateSession' :: Text
domainId = Text
pDomainId_,
$sel:sessionNameOrId:EvaluateSession' :: Text
sessionNameOrId = Text
pSessionNameOrId_
}
evaluateSession_domainId :: Lens.Lens' EvaluateSession Prelude.Text
evaluateSession_domainId :: (Text -> f Text) -> EvaluateSession -> f EvaluateSession
evaluateSession_domainId = (EvaluateSession -> Text)
-> (EvaluateSession -> Text -> EvaluateSession)
-> Lens EvaluateSession EvaluateSession Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSession' {Text
domainId :: Text
$sel:domainId:EvaluateSession' :: EvaluateSession -> Text
domainId} -> Text
domainId) (\s :: EvaluateSession
s@EvaluateSession' {} Text
a -> EvaluateSession
s {$sel:domainId:EvaluateSession' :: Text
domainId = Text
a} :: EvaluateSession)
evaluateSession_sessionNameOrId :: Lens.Lens' EvaluateSession Prelude.Text
evaluateSession_sessionNameOrId :: (Text -> f Text) -> EvaluateSession -> f EvaluateSession
evaluateSession_sessionNameOrId = (EvaluateSession -> Text)
-> (EvaluateSession -> Text -> EvaluateSession)
-> Lens EvaluateSession EvaluateSession Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSession' {Text
sessionNameOrId :: Text
$sel:sessionNameOrId:EvaluateSession' :: EvaluateSession -> Text
sessionNameOrId} -> Text
sessionNameOrId) (\s :: EvaluateSession
s@EvaluateSession' {} Text
a -> EvaluateSession
s {$sel:sessionNameOrId:EvaluateSession' :: Text
sessionNameOrId = Text
a} :: EvaluateSession)
instance Core.AWSRequest EvaluateSession where
type
AWSResponse EvaluateSession =
EvaluateSessionResponse
request :: EvaluateSession -> Request EvaluateSession
request = Service -> EvaluateSession -> Request EvaluateSession
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy EvaluateSession
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse EvaluateSession)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse EvaluateSession))
-> Logger
-> Service
-> Proxy EvaluateSession
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse EvaluateSession)))
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 FraudDetectionResult
-> Maybe StreamingStatus
-> Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse
EvaluateSessionResponse'
(Maybe FraudDetectionResult
-> Maybe StreamingStatus
-> Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse)
-> Either String (Maybe FraudDetectionResult)
-> Either
String
(Maybe StreamingStatus
-> Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe FraudDetectionResult)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FraudDetectionResult")
Either
String
(Maybe StreamingStatus
-> Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse)
-> Either String (Maybe StreamingStatus)
-> Either
String
(Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe StreamingStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StreamingStatus")
Either
String
(Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse)
-> Either String (Maybe AuthenticationResult)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> EvaluateSessionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AuthenticationResult)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AuthenticationResult")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> EvaluateSessionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> Int -> EvaluateSessionResponse)
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
"DomainId")
Either
String (Maybe Text -> Maybe Text -> Int -> EvaluateSessionResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> EvaluateSessionResponse)
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
"SessionId")
Either String (Maybe Text -> Int -> EvaluateSessionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> EvaluateSessionResponse)
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
"SessionName")
Either String (Int -> EvaluateSessionResponse)
-> Either String Int -> Either String EvaluateSessionResponse
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 EvaluateSession
instance Prelude.NFData EvaluateSession
instance Core.ToHeaders EvaluateSession where
toHeaders :: EvaluateSession -> ResponseHeaders
toHeaders =
ResponseHeaders -> EvaluateSession -> 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
"VoiceID.EvaluateSession" :: Prelude.ByteString),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON EvaluateSession where
toJSON :: EvaluateSession -> Value
toJSON EvaluateSession' {Text
sessionNameOrId :: Text
domainId :: Text
$sel:sessionNameOrId:EvaluateSession' :: EvaluateSession -> Text
$sel:domainId:EvaluateSession' :: EvaluateSession -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"SessionNameOrId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
sessionNameOrId)
]
)
instance Core.ToPath EvaluateSession where
toPath :: EvaluateSession -> ByteString
toPath = ByteString -> EvaluateSession -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery EvaluateSession where
toQuery :: EvaluateSession -> QueryString
toQuery = QueryString -> EvaluateSession -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data EvaluateSessionResponse = EvaluateSessionResponse'
{
EvaluateSessionResponse -> Maybe FraudDetectionResult
fraudDetectionResult :: Prelude.Maybe FraudDetectionResult,
EvaluateSessionResponse -> Maybe StreamingStatus
streamingStatus :: Prelude.Maybe StreamingStatus,
EvaluateSessionResponse -> Maybe AuthenticationResult
authenticationResult :: Prelude.Maybe AuthenticationResult,
EvaluateSessionResponse -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
EvaluateSessionResponse -> Maybe Text
sessionId :: Prelude.Maybe Prelude.Text,
EvaluateSessionResponse -> Maybe Text
sessionName :: Prelude.Maybe Prelude.Text,
EvaluateSessionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (EvaluateSessionResponse -> EvaluateSessionResponse -> Bool
(EvaluateSessionResponse -> EvaluateSessionResponse -> Bool)
-> (EvaluateSessionResponse -> EvaluateSessionResponse -> Bool)
-> Eq EvaluateSessionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EvaluateSessionResponse -> EvaluateSessionResponse -> Bool
$c/= :: EvaluateSessionResponse -> EvaluateSessionResponse -> Bool
== :: EvaluateSessionResponse -> EvaluateSessionResponse -> Bool
$c== :: EvaluateSessionResponse -> EvaluateSessionResponse -> Bool
Prelude.Eq, Int -> EvaluateSessionResponse -> ShowS
[EvaluateSessionResponse] -> ShowS
EvaluateSessionResponse -> String
(Int -> EvaluateSessionResponse -> ShowS)
-> (EvaluateSessionResponse -> String)
-> ([EvaluateSessionResponse] -> ShowS)
-> Show EvaluateSessionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EvaluateSessionResponse] -> ShowS
$cshowList :: [EvaluateSessionResponse] -> ShowS
show :: EvaluateSessionResponse -> String
$cshow :: EvaluateSessionResponse -> String
showsPrec :: Int -> EvaluateSessionResponse -> ShowS
$cshowsPrec :: Int -> EvaluateSessionResponse -> ShowS
Prelude.Show, (forall x.
EvaluateSessionResponse -> Rep EvaluateSessionResponse x)
-> (forall x.
Rep EvaluateSessionResponse x -> EvaluateSessionResponse)
-> Generic EvaluateSessionResponse
forall x. Rep EvaluateSessionResponse x -> EvaluateSessionResponse
forall x. EvaluateSessionResponse -> Rep EvaluateSessionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EvaluateSessionResponse x -> EvaluateSessionResponse
$cfrom :: forall x. EvaluateSessionResponse -> Rep EvaluateSessionResponse x
Prelude.Generic)
newEvaluateSessionResponse ::
Prelude.Int ->
EvaluateSessionResponse
newEvaluateSessionResponse :: Int -> EvaluateSessionResponse
newEvaluateSessionResponse Int
pHttpStatus_ =
EvaluateSessionResponse' :: Maybe FraudDetectionResult
-> Maybe StreamingStatus
-> Maybe AuthenticationResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> EvaluateSessionResponse
EvaluateSessionResponse'
{ $sel:fraudDetectionResult:EvaluateSessionResponse' :: Maybe FraudDetectionResult
fraudDetectionResult =
Maybe FraudDetectionResult
forall a. Maybe a
Prelude.Nothing,
$sel:streamingStatus:EvaluateSessionResponse' :: Maybe StreamingStatus
streamingStatus = Maybe StreamingStatus
forall a. Maybe a
Prelude.Nothing,
$sel:authenticationResult:EvaluateSessionResponse' :: Maybe AuthenticationResult
authenticationResult = Maybe AuthenticationResult
forall a. Maybe a
Prelude.Nothing,
$sel:domainId:EvaluateSessionResponse' :: Maybe Text
domainId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sessionId:EvaluateSessionResponse' :: Maybe Text
sessionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sessionName:EvaluateSessionResponse' :: Maybe Text
sessionName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:EvaluateSessionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
evaluateSessionResponse_fraudDetectionResult :: Lens.Lens' EvaluateSessionResponse (Prelude.Maybe FraudDetectionResult)
evaluateSessionResponse_fraudDetectionResult :: (Maybe FraudDetectionResult -> f (Maybe FraudDetectionResult))
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_fraudDetectionResult = (EvaluateSessionResponse -> Maybe FraudDetectionResult)
-> (EvaluateSessionResponse
-> Maybe FraudDetectionResult -> EvaluateSessionResponse)
-> Lens
EvaluateSessionResponse
EvaluateSessionResponse
(Maybe FraudDetectionResult)
(Maybe FraudDetectionResult)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Maybe FraudDetectionResult
fraudDetectionResult :: Maybe FraudDetectionResult
$sel:fraudDetectionResult:EvaluateSessionResponse' :: EvaluateSessionResponse -> Maybe FraudDetectionResult
fraudDetectionResult} -> Maybe FraudDetectionResult
fraudDetectionResult) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Maybe FraudDetectionResult
a -> EvaluateSessionResponse
s {$sel:fraudDetectionResult:EvaluateSessionResponse' :: Maybe FraudDetectionResult
fraudDetectionResult = Maybe FraudDetectionResult
a} :: EvaluateSessionResponse)
evaluateSessionResponse_streamingStatus :: Lens.Lens' EvaluateSessionResponse (Prelude.Maybe StreamingStatus)
evaluateSessionResponse_streamingStatus :: (Maybe StreamingStatus -> f (Maybe StreamingStatus))
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_streamingStatus = (EvaluateSessionResponse -> Maybe StreamingStatus)
-> (EvaluateSessionResponse
-> Maybe StreamingStatus -> EvaluateSessionResponse)
-> Lens
EvaluateSessionResponse
EvaluateSessionResponse
(Maybe StreamingStatus)
(Maybe StreamingStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Maybe StreamingStatus
streamingStatus :: Maybe StreamingStatus
$sel:streamingStatus:EvaluateSessionResponse' :: EvaluateSessionResponse -> Maybe StreamingStatus
streamingStatus} -> Maybe StreamingStatus
streamingStatus) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Maybe StreamingStatus
a -> EvaluateSessionResponse
s {$sel:streamingStatus:EvaluateSessionResponse' :: Maybe StreamingStatus
streamingStatus = Maybe StreamingStatus
a} :: EvaluateSessionResponse)
evaluateSessionResponse_authenticationResult :: Lens.Lens' EvaluateSessionResponse (Prelude.Maybe AuthenticationResult)
evaluateSessionResponse_authenticationResult :: (Maybe AuthenticationResult -> f (Maybe AuthenticationResult))
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_authenticationResult = (EvaluateSessionResponse -> Maybe AuthenticationResult)
-> (EvaluateSessionResponse
-> Maybe AuthenticationResult -> EvaluateSessionResponse)
-> Lens
EvaluateSessionResponse
EvaluateSessionResponse
(Maybe AuthenticationResult)
(Maybe AuthenticationResult)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Maybe AuthenticationResult
authenticationResult :: Maybe AuthenticationResult
$sel:authenticationResult:EvaluateSessionResponse' :: EvaluateSessionResponse -> Maybe AuthenticationResult
authenticationResult} -> Maybe AuthenticationResult
authenticationResult) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Maybe AuthenticationResult
a -> EvaluateSessionResponse
s {$sel:authenticationResult:EvaluateSessionResponse' :: Maybe AuthenticationResult
authenticationResult = Maybe AuthenticationResult
a} :: EvaluateSessionResponse)
evaluateSessionResponse_domainId :: Lens.Lens' EvaluateSessionResponse (Prelude.Maybe Prelude.Text)
evaluateSessionResponse_domainId :: (Maybe Text -> f (Maybe Text))
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_domainId = (EvaluateSessionResponse -> Maybe Text)
-> (EvaluateSessionResponse
-> Maybe Text -> EvaluateSessionResponse)
-> Lens
EvaluateSessionResponse
EvaluateSessionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Maybe Text
domainId :: Maybe Text
$sel:domainId:EvaluateSessionResponse' :: EvaluateSessionResponse -> Maybe Text
domainId} -> Maybe Text
domainId) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Maybe Text
a -> EvaluateSessionResponse
s {$sel:domainId:EvaluateSessionResponse' :: Maybe Text
domainId = Maybe Text
a} :: EvaluateSessionResponse)
evaluateSessionResponse_sessionId :: Lens.Lens' EvaluateSessionResponse (Prelude.Maybe Prelude.Text)
evaluateSessionResponse_sessionId :: (Maybe Text -> f (Maybe Text))
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_sessionId = (EvaluateSessionResponse -> Maybe Text)
-> (EvaluateSessionResponse
-> Maybe Text -> EvaluateSessionResponse)
-> Lens
EvaluateSessionResponse
EvaluateSessionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Maybe Text
sessionId :: Maybe Text
$sel:sessionId:EvaluateSessionResponse' :: EvaluateSessionResponse -> Maybe Text
sessionId} -> Maybe Text
sessionId) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Maybe Text
a -> EvaluateSessionResponse
s {$sel:sessionId:EvaluateSessionResponse' :: Maybe Text
sessionId = Maybe Text
a} :: EvaluateSessionResponse)
evaluateSessionResponse_sessionName :: Lens.Lens' EvaluateSessionResponse (Prelude.Maybe Prelude.Text)
evaluateSessionResponse_sessionName :: (Maybe Text -> f (Maybe Text))
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_sessionName = (EvaluateSessionResponse -> Maybe Text)
-> (EvaluateSessionResponse
-> Maybe Text -> EvaluateSessionResponse)
-> Lens
EvaluateSessionResponse
EvaluateSessionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Maybe Text
sessionName :: Maybe Text
$sel:sessionName:EvaluateSessionResponse' :: EvaluateSessionResponse -> Maybe Text
sessionName} -> Maybe Text
sessionName) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Maybe Text
a -> EvaluateSessionResponse
s {$sel:sessionName:EvaluateSessionResponse' :: Maybe Text
sessionName = Maybe Text
a} :: EvaluateSessionResponse)
evaluateSessionResponse_httpStatus :: Lens.Lens' EvaluateSessionResponse Prelude.Int
evaluateSessionResponse_httpStatus :: (Int -> f Int)
-> EvaluateSessionResponse -> f EvaluateSessionResponse
evaluateSessionResponse_httpStatus = (EvaluateSessionResponse -> Int)
-> (EvaluateSessionResponse -> Int -> EvaluateSessionResponse)
-> Lens EvaluateSessionResponse EvaluateSessionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EvaluateSessionResponse' {Int
httpStatus :: Int
$sel:httpStatus:EvaluateSessionResponse' :: EvaluateSessionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: EvaluateSessionResponse
s@EvaluateSessionResponse' {} Int
a -> EvaluateSessionResponse
s {$sel:httpStatus:EvaluateSessionResponse' :: Int
httpStatus = Int
a} :: EvaluateSessionResponse)
instance Prelude.NFData EvaluateSessionResponse