{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.LexV2Models.Types.BotRecommendationResults where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LexV2Models.Types.BotRecommendationResultStatistics
import qualified Amazonka.Prelude as Prelude
data BotRecommendationResults = BotRecommendationResults'
{
BotRecommendationResults -> Maybe Text
associatedTranscriptsUrl :: Prelude.Maybe Prelude.Text,
BotRecommendationResults -> Maybe Text
botLocaleExportUrl :: Prelude.Maybe Prelude.Text,
BotRecommendationResults -> Maybe BotRecommendationResultStatistics
statistics :: Prelude.Maybe BotRecommendationResultStatistics
}
deriving (BotRecommendationResults -> BotRecommendationResults -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BotRecommendationResults -> BotRecommendationResults -> Bool
$c/= :: BotRecommendationResults -> BotRecommendationResults -> Bool
== :: BotRecommendationResults -> BotRecommendationResults -> Bool
$c== :: BotRecommendationResults -> BotRecommendationResults -> Bool
Prelude.Eq, ReadPrec [BotRecommendationResults]
ReadPrec BotRecommendationResults
Int -> ReadS BotRecommendationResults
ReadS [BotRecommendationResults]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BotRecommendationResults]
$creadListPrec :: ReadPrec [BotRecommendationResults]
readPrec :: ReadPrec BotRecommendationResults
$creadPrec :: ReadPrec BotRecommendationResults
readList :: ReadS [BotRecommendationResults]
$creadList :: ReadS [BotRecommendationResults]
readsPrec :: Int -> ReadS BotRecommendationResults
$creadsPrec :: Int -> ReadS BotRecommendationResults
Prelude.Read, Int -> BotRecommendationResults -> ShowS
[BotRecommendationResults] -> ShowS
BotRecommendationResults -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BotRecommendationResults] -> ShowS
$cshowList :: [BotRecommendationResults] -> ShowS
show :: BotRecommendationResults -> String
$cshow :: BotRecommendationResults -> String
showsPrec :: Int -> BotRecommendationResults -> ShowS
$cshowsPrec :: Int -> BotRecommendationResults -> ShowS
Prelude.Show, forall x.
Rep BotRecommendationResults x -> BotRecommendationResults
forall x.
BotRecommendationResults -> Rep BotRecommendationResults x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BotRecommendationResults x -> BotRecommendationResults
$cfrom :: forall x.
BotRecommendationResults -> Rep BotRecommendationResults x
Prelude.Generic)
newBotRecommendationResults ::
BotRecommendationResults
newBotRecommendationResults :: BotRecommendationResults
newBotRecommendationResults =
BotRecommendationResults'
{ $sel:associatedTranscriptsUrl:BotRecommendationResults' :: Maybe Text
associatedTranscriptsUrl =
forall a. Maybe a
Prelude.Nothing,
$sel:botLocaleExportUrl:BotRecommendationResults' :: Maybe Text
botLocaleExportUrl = forall a. Maybe a
Prelude.Nothing,
$sel:statistics:BotRecommendationResults' :: Maybe BotRecommendationResultStatistics
statistics = forall a. Maybe a
Prelude.Nothing
}
botRecommendationResults_associatedTranscriptsUrl :: Lens.Lens' BotRecommendationResults (Prelude.Maybe Prelude.Text)
botRecommendationResults_associatedTranscriptsUrl :: Lens' BotRecommendationResults (Maybe Text)
botRecommendationResults_associatedTranscriptsUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BotRecommendationResults' {Maybe Text
associatedTranscriptsUrl :: Maybe Text
$sel:associatedTranscriptsUrl:BotRecommendationResults' :: BotRecommendationResults -> Maybe Text
associatedTranscriptsUrl} -> Maybe Text
associatedTranscriptsUrl) (\s :: BotRecommendationResults
s@BotRecommendationResults' {} Maybe Text
a -> BotRecommendationResults
s {$sel:associatedTranscriptsUrl:BotRecommendationResults' :: Maybe Text
associatedTranscriptsUrl = Maybe Text
a} :: BotRecommendationResults)
botRecommendationResults_botLocaleExportUrl :: Lens.Lens' BotRecommendationResults (Prelude.Maybe Prelude.Text)
botRecommendationResults_botLocaleExportUrl :: Lens' BotRecommendationResults (Maybe Text)
botRecommendationResults_botLocaleExportUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BotRecommendationResults' {Maybe Text
botLocaleExportUrl :: Maybe Text
$sel:botLocaleExportUrl:BotRecommendationResults' :: BotRecommendationResults -> Maybe Text
botLocaleExportUrl} -> Maybe Text
botLocaleExportUrl) (\s :: BotRecommendationResults
s@BotRecommendationResults' {} Maybe Text
a -> BotRecommendationResults
s {$sel:botLocaleExportUrl:BotRecommendationResults' :: Maybe Text
botLocaleExportUrl = Maybe Text
a} :: BotRecommendationResults)
botRecommendationResults_statistics :: Lens.Lens' BotRecommendationResults (Prelude.Maybe BotRecommendationResultStatistics)
botRecommendationResults_statistics :: Lens'
BotRecommendationResults (Maybe BotRecommendationResultStatistics)
botRecommendationResults_statistics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BotRecommendationResults' {Maybe BotRecommendationResultStatistics
statistics :: Maybe BotRecommendationResultStatistics
$sel:statistics:BotRecommendationResults' :: BotRecommendationResults -> Maybe BotRecommendationResultStatistics
statistics} -> Maybe BotRecommendationResultStatistics
statistics) (\s :: BotRecommendationResults
s@BotRecommendationResults' {} Maybe BotRecommendationResultStatistics
a -> BotRecommendationResults
s {$sel:statistics:BotRecommendationResults' :: Maybe BotRecommendationResultStatistics
statistics = Maybe BotRecommendationResultStatistics
a} :: BotRecommendationResults)
instance Data.FromJSON BotRecommendationResults where
parseJSON :: Value -> Parser BotRecommendationResults
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BotRecommendationResults"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe BotRecommendationResultStatistics
-> BotRecommendationResults
BotRecommendationResults'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"associatedTranscriptsUrl")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"botLocaleExportUrl")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"statistics")
)
instance Prelude.Hashable BotRecommendationResults where
hashWithSalt :: Int -> BotRecommendationResults -> Int
hashWithSalt Int
_salt BotRecommendationResults' {Maybe Text
Maybe BotRecommendationResultStatistics
statistics :: Maybe BotRecommendationResultStatistics
botLocaleExportUrl :: Maybe Text
associatedTranscriptsUrl :: Maybe Text
$sel:statistics:BotRecommendationResults' :: BotRecommendationResults -> Maybe BotRecommendationResultStatistics
$sel:botLocaleExportUrl:BotRecommendationResults' :: BotRecommendationResults -> Maybe Text
$sel:associatedTranscriptsUrl:BotRecommendationResults' :: BotRecommendationResults -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
associatedTranscriptsUrl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
botLocaleExportUrl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BotRecommendationResultStatistics
statistics
instance Prelude.NFData BotRecommendationResults where
rnf :: BotRecommendationResults -> ()
rnf BotRecommendationResults' {Maybe Text
Maybe BotRecommendationResultStatistics
statistics :: Maybe BotRecommendationResultStatistics
botLocaleExportUrl :: Maybe Text
associatedTranscriptsUrl :: Maybe Text
$sel:statistics:BotRecommendationResults' :: BotRecommendationResults -> Maybe BotRecommendationResultStatistics
$sel:botLocaleExportUrl:BotRecommendationResults' :: BotRecommendationResults -> Maybe Text
$sel:associatedTranscriptsUrl:BotRecommendationResults' :: BotRecommendationResults -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
associatedTranscriptsUrl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botLocaleExportUrl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BotRecommendationResultStatistics
statistics