{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.LexV2Models.DescribeBotLocale
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes the settings that a bot has for a specific locale.
module Amazonka.LexV2Models.DescribeBotLocale
  ( -- * Creating a Request
    DescribeBotLocale (..),
    newDescribeBotLocale,

    -- * Request Lenses
    describeBotLocale_botId,
    describeBotLocale_botVersion,
    describeBotLocale_localeId,

    -- * Destructuring the Response
    DescribeBotLocaleResponse (..),
    newDescribeBotLocaleResponse,

    -- * Response Lenses
    describeBotLocaleResponse_botId,
    describeBotLocaleResponse_botLocaleHistoryEvents,
    describeBotLocaleResponse_botLocaleStatus,
    describeBotLocaleResponse_botVersion,
    describeBotLocaleResponse_creationDateTime,
    describeBotLocaleResponse_description,
    describeBotLocaleResponse_failureReasons,
    describeBotLocaleResponse_intentsCount,
    describeBotLocaleResponse_lastBuildSubmittedDateTime,
    describeBotLocaleResponse_lastUpdatedDateTime,
    describeBotLocaleResponse_localeId,
    describeBotLocaleResponse_localeName,
    describeBotLocaleResponse_nluIntentConfidenceThreshold,
    describeBotLocaleResponse_recommendedActions,
    describeBotLocaleResponse_slotTypesCount,
    describeBotLocaleResponse_voiceSettings,
    describeBotLocaleResponse_httpStatus,
  )
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
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeBotLocale' smart constructor.
data DescribeBotLocale = DescribeBotLocale'
  { -- | The identifier of the bot associated with the locale.
    DescribeBotLocale -> Text
botId :: Prelude.Text,
    -- | The identifier of the version of the bot associated with the locale.
    DescribeBotLocale -> Text
botVersion :: Prelude.Text,
    -- | The unique identifier of the locale to describe. The string must match
    -- one of the supported locales. For more information, see
    -- <https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html Supported languages>.
    DescribeBotLocale -> Text
localeId :: Prelude.Text
  }
  deriving (DescribeBotLocale -> DescribeBotLocale -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBotLocale -> DescribeBotLocale -> Bool
$c/= :: DescribeBotLocale -> DescribeBotLocale -> Bool
== :: DescribeBotLocale -> DescribeBotLocale -> Bool
$c== :: DescribeBotLocale -> DescribeBotLocale -> Bool
Prelude.Eq, ReadPrec [DescribeBotLocale]
ReadPrec DescribeBotLocale
Int -> ReadS DescribeBotLocale
ReadS [DescribeBotLocale]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBotLocale]
$creadListPrec :: ReadPrec [DescribeBotLocale]
readPrec :: ReadPrec DescribeBotLocale
$creadPrec :: ReadPrec DescribeBotLocale
readList :: ReadS [DescribeBotLocale]
$creadList :: ReadS [DescribeBotLocale]
readsPrec :: Int -> ReadS DescribeBotLocale
$creadsPrec :: Int -> ReadS DescribeBotLocale
Prelude.Read, Int -> DescribeBotLocale -> ShowS
[DescribeBotLocale] -> ShowS
DescribeBotLocale -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBotLocale] -> ShowS
$cshowList :: [DescribeBotLocale] -> ShowS
show :: DescribeBotLocale -> String
$cshow :: DescribeBotLocale -> String
showsPrec :: Int -> DescribeBotLocale -> ShowS
$cshowsPrec :: Int -> DescribeBotLocale -> ShowS
Prelude.Show, forall x. Rep DescribeBotLocale x -> DescribeBotLocale
forall x. DescribeBotLocale -> Rep DescribeBotLocale x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeBotLocale x -> DescribeBotLocale
$cfrom :: forall x. DescribeBotLocale -> Rep DescribeBotLocale x
Prelude.Generic)

-- |
-- Create a value of 'DescribeBotLocale' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'botId', 'describeBotLocale_botId' - The identifier of the bot associated with the locale.
--
-- 'botVersion', 'describeBotLocale_botVersion' - The identifier of the version of the bot associated with the locale.
--
-- 'localeId', 'describeBotLocale_localeId' - The unique identifier of the locale to describe. The string must match
-- one of the supported locales. For more information, see
-- <https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html Supported languages>.
newDescribeBotLocale ::
  -- | 'botId'
  Prelude.Text ->
  -- | 'botVersion'
  Prelude.Text ->
  -- | 'localeId'
  Prelude.Text ->
  DescribeBotLocale
newDescribeBotLocale :: Text -> Text -> Text -> DescribeBotLocale
newDescribeBotLocale Text
pBotId_ Text
pBotVersion_ Text
pLocaleId_ =
  DescribeBotLocale'
    { $sel:botId:DescribeBotLocale' :: Text
botId = Text
pBotId_,
      $sel:botVersion:DescribeBotLocale' :: Text
botVersion = Text
pBotVersion_,
      $sel:localeId:DescribeBotLocale' :: Text
localeId = Text
pLocaleId_
    }

-- | The identifier of the bot associated with the locale.
describeBotLocale_botId :: Lens.Lens' DescribeBotLocale Prelude.Text
describeBotLocale_botId :: Lens' DescribeBotLocale Text
describeBotLocale_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocale' {Text
botId :: Text
$sel:botId:DescribeBotLocale' :: DescribeBotLocale -> Text
botId} -> Text
botId) (\s :: DescribeBotLocale
s@DescribeBotLocale' {} Text
a -> DescribeBotLocale
s {$sel:botId:DescribeBotLocale' :: Text
botId = Text
a} :: DescribeBotLocale)

-- | The identifier of the version of the bot associated with the locale.
describeBotLocale_botVersion :: Lens.Lens' DescribeBotLocale Prelude.Text
describeBotLocale_botVersion :: Lens' DescribeBotLocale Text
describeBotLocale_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocale' {Text
botVersion :: Text
$sel:botVersion:DescribeBotLocale' :: DescribeBotLocale -> Text
botVersion} -> Text
botVersion) (\s :: DescribeBotLocale
s@DescribeBotLocale' {} Text
a -> DescribeBotLocale
s {$sel:botVersion:DescribeBotLocale' :: Text
botVersion = Text
a} :: DescribeBotLocale)

-- | The unique identifier of the locale to describe. The string must match
-- one of the supported locales. For more information, see
-- <https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html Supported languages>.
describeBotLocale_localeId :: Lens.Lens' DescribeBotLocale Prelude.Text
describeBotLocale_localeId :: Lens' DescribeBotLocale Text
describeBotLocale_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocale' {Text
localeId :: Text
$sel:localeId:DescribeBotLocale' :: DescribeBotLocale -> Text
localeId} -> Text
localeId) (\s :: DescribeBotLocale
s@DescribeBotLocale' {} Text
a -> DescribeBotLocale
s {$sel:localeId:DescribeBotLocale' :: Text
localeId = Text
a} :: DescribeBotLocale)

instance Core.AWSRequest DescribeBotLocale where
  type
    AWSResponse DescribeBotLocale =
      DescribeBotLocaleResponse
  request :: (Service -> Service)
-> DescribeBotLocale -> Request DescribeBotLocale
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeBotLocale
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeBotLocale)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [BotLocaleHistoryEvent]
-> Maybe BotLocaleStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe [Text]
-> Maybe Int
-> Maybe VoiceSettings
-> Int
-> DescribeBotLocaleResponse
DescribeBotLocaleResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botLocaleHistoryEvents"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botLocaleStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"creationDateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"failureReasons" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"intentsCount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"lastBuildSubmittedDateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"lastUpdatedDateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"localeId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"localeName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nluIntentConfidenceThreshold")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"recommendedActions"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"slotTypesCount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"voiceSettings")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeBotLocale where
  hashWithSalt :: Int -> DescribeBotLocale -> Int
hashWithSalt Int
_salt DescribeBotLocale' {Text
localeId :: Text
botVersion :: Text
botId :: Text
$sel:localeId:DescribeBotLocale' :: DescribeBotLocale -> Text
$sel:botVersion:DescribeBotLocale' :: DescribeBotLocale -> Text
$sel:botId:DescribeBotLocale' :: DescribeBotLocale -> Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
localeId

instance Prelude.NFData DescribeBotLocale where
  rnf :: DescribeBotLocale -> ()
rnf DescribeBotLocale' {Text
localeId :: Text
botVersion :: Text
botId :: Text
$sel:localeId:DescribeBotLocale' :: DescribeBotLocale -> Text
$sel:botVersion:DescribeBotLocale' :: DescribeBotLocale -> Text
$sel:botId:DescribeBotLocale' :: DescribeBotLocale -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
botId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
botVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
localeId

instance Data.ToHeaders DescribeBotLocale where
  toHeaders :: DescribeBotLocale -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath DescribeBotLocale where
  toPath :: DescribeBotLocale -> ByteString
toPath DescribeBotLocale' {Text
localeId :: Text
botVersion :: Text
botId :: Text
$sel:localeId:DescribeBotLocale' :: DescribeBotLocale -> Text
$sel:botVersion:DescribeBotLocale' :: DescribeBotLocale -> Text
$sel:botId:DescribeBotLocale' :: DescribeBotLocale -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/bots/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
botId,
        ByteString
"/botversions/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
botVersion,
        ByteString
"/botlocales/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
localeId,
        ByteString
"/"
      ]

instance Data.ToQuery DescribeBotLocale where
  toQuery :: DescribeBotLocale -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeBotLocaleResponse' smart constructor.
data DescribeBotLocaleResponse = DescribeBotLocaleResponse'
  { -- | The identifier of the bot associated with the locale.
    DescribeBotLocaleResponse -> Maybe Text
botId :: Prelude.Maybe Prelude.Text,
    -- | History of changes, such as when a locale is used in an alias, that have
    -- taken place for the locale.
    DescribeBotLocaleResponse -> Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents :: Prelude.Maybe [BotLocaleHistoryEvent],
    -- | The status of the bot. If the status is @Failed@, the reasons for the
    -- failure are listed in the @failureReasons@ field.
    DescribeBotLocaleResponse -> Maybe BotLocaleStatus
botLocaleStatus :: Prelude.Maybe BotLocaleStatus,
    -- | The identifier of the version of the bot associated with the locale.
    DescribeBotLocaleResponse -> Maybe Text
botVersion :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the locale was created.
    DescribeBotLocaleResponse -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
    -- | The description of the locale.
    DescribeBotLocaleResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | if @botLocaleStatus@ is @Failed@, Amazon Lex explains why it failed to
    -- build the bot.
    DescribeBotLocaleResponse -> Maybe [Text]
failureReasons :: Prelude.Maybe [Prelude.Text],
    -- | The number of intents defined for the locale.
    DescribeBotLocaleResponse -> Maybe Int
intentsCount :: Prelude.Maybe Prelude.Int,
    -- | The date and time that the locale was last submitted for building.
    DescribeBotLocaleResponse -> Maybe POSIX
lastBuildSubmittedDateTime :: Prelude.Maybe Data.POSIX,
    -- | The date and time that the locale was last updated.
    DescribeBotLocaleResponse -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Data.POSIX,
    -- | The unique identifier of the described locale.
    DescribeBotLocaleResponse -> Maybe Text
localeId :: Prelude.Maybe Prelude.Text,
    -- | The name of the locale.
    DescribeBotLocaleResponse -> Maybe Text
localeName :: Prelude.Maybe Prelude.Text,
    -- | The confidence threshold where Amazon Lex inserts the
    -- @AMAZON.FallbackIntent@ and @AMAZON.KendraSearchIntent@ intents in the
    -- list of possible intents for an utterance.
    DescribeBotLocaleResponse -> Maybe Double
nluIntentConfidenceThreshold :: Prelude.Maybe Prelude.Double,
    -- | Recommended actions to take to resolve an error in the @failureReasons@
    -- field.
    DescribeBotLocaleResponse -> Maybe [Text]
recommendedActions :: Prelude.Maybe [Prelude.Text],
    -- | The number of slot types defined for the locale.
    DescribeBotLocaleResponse -> Maybe Int
slotTypesCount :: Prelude.Maybe Prelude.Int,
    -- | The Amazon Polly voice Amazon Lex uses for voice interaction with the
    -- user.
    DescribeBotLocaleResponse -> Maybe VoiceSettings
voiceSettings :: Prelude.Maybe VoiceSettings,
    -- | The response's http status code.
    DescribeBotLocaleResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeBotLocaleResponse -> DescribeBotLocaleResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBotLocaleResponse -> DescribeBotLocaleResponse -> Bool
$c/= :: DescribeBotLocaleResponse -> DescribeBotLocaleResponse -> Bool
== :: DescribeBotLocaleResponse -> DescribeBotLocaleResponse -> Bool
$c== :: DescribeBotLocaleResponse -> DescribeBotLocaleResponse -> Bool
Prelude.Eq, ReadPrec [DescribeBotLocaleResponse]
ReadPrec DescribeBotLocaleResponse
Int -> ReadS DescribeBotLocaleResponse
ReadS [DescribeBotLocaleResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBotLocaleResponse]
$creadListPrec :: ReadPrec [DescribeBotLocaleResponse]
readPrec :: ReadPrec DescribeBotLocaleResponse
$creadPrec :: ReadPrec DescribeBotLocaleResponse
readList :: ReadS [DescribeBotLocaleResponse]
$creadList :: ReadS [DescribeBotLocaleResponse]
readsPrec :: Int -> ReadS DescribeBotLocaleResponse
$creadsPrec :: Int -> ReadS DescribeBotLocaleResponse
Prelude.Read, Int -> DescribeBotLocaleResponse -> ShowS
[DescribeBotLocaleResponse] -> ShowS
DescribeBotLocaleResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBotLocaleResponse] -> ShowS
$cshowList :: [DescribeBotLocaleResponse] -> ShowS
show :: DescribeBotLocaleResponse -> String
$cshow :: DescribeBotLocaleResponse -> String
showsPrec :: Int -> DescribeBotLocaleResponse -> ShowS
$cshowsPrec :: Int -> DescribeBotLocaleResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeBotLocaleResponse x -> DescribeBotLocaleResponse
forall x.
DescribeBotLocaleResponse -> Rep DescribeBotLocaleResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBotLocaleResponse x -> DescribeBotLocaleResponse
$cfrom :: forall x.
DescribeBotLocaleResponse -> Rep DescribeBotLocaleResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeBotLocaleResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'botId', 'describeBotLocaleResponse_botId' - The identifier of the bot associated with the locale.
--
-- 'botLocaleHistoryEvents', 'describeBotLocaleResponse_botLocaleHistoryEvents' - History of changes, such as when a locale is used in an alias, that have
-- taken place for the locale.
--
-- 'botLocaleStatus', 'describeBotLocaleResponse_botLocaleStatus' - The status of the bot. If the status is @Failed@, the reasons for the
-- failure are listed in the @failureReasons@ field.
--
-- 'botVersion', 'describeBotLocaleResponse_botVersion' - The identifier of the version of the bot associated with the locale.
--
-- 'creationDateTime', 'describeBotLocaleResponse_creationDateTime' - The date and time that the locale was created.
--
-- 'description', 'describeBotLocaleResponse_description' - The description of the locale.
--
-- 'failureReasons', 'describeBotLocaleResponse_failureReasons' - if @botLocaleStatus@ is @Failed@, Amazon Lex explains why it failed to
-- build the bot.
--
-- 'intentsCount', 'describeBotLocaleResponse_intentsCount' - The number of intents defined for the locale.
--
-- 'lastBuildSubmittedDateTime', 'describeBotLocaleResponse_lastBuildSubmittedDateTime' - The date and time that the locale was last submitted for building.
--
-- 'lastUpdatedDateTime', 'describeBotLocaleResponse_lastUpdatedDateTime' - The date and time that the locale was last updated.
--
-- 'localeId', 'describeBotLocaleResponse_localeId' - The unique identifier of the described locale.
--
-- 'localeName', 'describeBotLocaleResponse_localeName' - The name of the locale.
--
-- 'nluIntentConfidenceThreshold', 'describeBotLocaleResponse_nluIntentConfidenceThreshold' - The confidence threshold where Amazon Lex inserts the
-- @AMAZON.FallbackIntent@ and @AMAZON.KendraSearchIntent@ intents in the
-- list of possible intents for an utterance.
--
-- 'recommendedActions', 'describeBotLocaleResponse_recommendedActions' - Recommended actions to take to resolve an error in the @failureReasons@
-- field.
--
-- 'slotTypesCount', 'describeBotLocaleResponse_slotTypesCount' - The number of slot types defined for the locale.
--
-- 'voiceSettings', 'describeBotLocaleResponse_voiceSettings' - The Amazon Polly voice Amazon Lex uses for voice interaction with the
-- user.
--
-- 'httpStatus', 'describeBotLocaleResponse_httpStatus' - The response's http status code.
newDescribeBotLocaleResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeBotLocaleResponse
newDescribeBotLocaleResponse :: Int -> DescribeBotLocaleResponse
newDescribeBotLocaleResponse Int
pHttpStatus_ =
  DescribeBotLocaleResponse'
    { $sel:botId:DescribeBotLocaleResponse' :: Maybe Text
botId = forall a. Maybe a
Prelude.Nothing,
      $sel:botLocaleHistoryEvents:DescribeBotLocaleResponse' :: Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents = forall a. Maybe a
Prelude.Nothing,
      $sel:botLocaleStatus:DescribeBotLocaleResponse' :: Maybe BotLocaleStatus
botLocaleStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:botVersion:DescribeBotLocaleResponse' :: Maybe Text
botVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:DescribeBotLocaleResponse' :: Maybe POSIX
creationDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:description:DescribeBotLocaleResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReasons:DescribeBotLocaleResponse' :: Maybe [Text]
failureReasons = forall a. Maybe a
Prelude.Nothing,
      $sel:intentsCount:DescribeBotLocaleResponse' :: Maybe Int
intentsCount = forall a. Maybe a
Prelude.Nothing,
      $sel:lastBuildSubmittedDateTime:DescribeBotLocaleResponse' :: Maybe POSIX
lastBuildSubmittedDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedDateTime:DescribeBotLocaleResponse' :: Maybe POSIX
lastUpdatedDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:localeId:DescribeBotLocaleResponse' :: Maybe Text
localeId = forall a. Maybe a
Prelude.Nothing,
      $sel:localeName:DescribeBotLocaleResponse' :: Maybe Text
localeName = forall a. Maybe a
Prelude.Nothing,
      $sel:nluIntentConfidenceThreshold:DescribeBotLocaleResponse' :: Maybe Double
nluIntentConfidenceThreshold = forall a. Maybe a
Prelude.Nothing,
      $sel:recommendedActions:DescribeBotLocaleResponse' :: Maybe [Text]
recommendedActions = forall a. Maybe a
Prelude.Nothing,
      $sel:slotTypesCount:DescribeBotLocaleResponse' :: Maybe Int
slotTypesCount = forall a. Maybe a
Prelude.Nothing,
      $sel:voiceSettings:DescribeBotLocaleResponse' :: Maybe VoiceSettings
voiceSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeBotLocaleResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The identifier of the bot associated with the locale.
describeBotLocaleResponse_botId :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Text)
describeBotLocaleResponse_botId :: Lens' DescribeBotLocaleResponse (Maybe Text)
describeBotLocaleResponse_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Text
botId :: Maybe Text
$sel:botId:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
botId} -> Maybe Text
botId) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Text
a -> DescribeBotLocaleResponse
s {$sel:botId:DescribeBotLocaleResponse' :: Maybe Text
botId = Maybe Text
a} :: DescribeBotLocaleResponse)

-- | History of changes, such as when a locale is used in an alias, that have
-- taken place for the locale.
describeBotLocaleResponse_botLocaleHistoryEvents :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe [BotLocaleHistoryEvent])
describeBotLocaleResponse_botLocaleHistoryEvents :: Lens' DescribeBotLocaleResponse (Maybe [BotLocaleHistoryEvent])
describeBotLocaleResponse_botLocaleHistoryEvents = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents :: Maybe [BotLocaleHistoryEvent]
$sel:botLocaleHistoryEvents:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents} -> Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe [BotLocaleHistoryEvent]
a -> DescribeBotLocaleResponse
s {$sel:botLocaleHistoryEvents:DescribeBotLocaleResponse' :: Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents = Maybe [BotLocaleHistoryEvent]
a} :: DescribeBotLocaleResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The status of the bot. If the status is @Failed@, the reasons for the
-- failure are listed in the @failureReasons@ field.
describeBotLocaleResponse_botLocaleStatus :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe BotLocaleStatus)
describeBotLocaleResponse_botLocaleStatus :: Lens' DescribeBotLocaleResponse (Maybe BotLocaleStatus)
describeBotLocaleResponse_botLocaleStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe BotLocaleStatus
botLocaleStatus :: Maybe BotLocaleStatus
$sel:botLocaleStatus:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe BotLocaleStatus
botLocaleStatus} -> Maybe BotLocaleStatus
botLocaleStatus) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe BotLocaleStatus
a -> DescribeBotLocaleResponse
s {$sel:botLocaleStatus:DescribeBotLocaleResponse' :: Maybe BotLocaleStatus
botLocaleStatus = Maybe BotLocaleStatus
a} :: DescribeBotLocaleResponse)

-- | The identifier of the version of the bot associated with the locale.
describeBotLocaleResponse_botVersion :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Text)
describeBotLocaleResponse_botVersion :: Lens' DescribeBotLocaleResponse (Maybe Text)
describeBotLocaleResponse_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Text
botVersion :: Maybe Text
$sel:botVersion:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
botVersion} -> Maybe Text
botVersion) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Text
a -> DescribeBotLocaleResponse
s {$sel:botVersion:DescribeBotLocaleResponse' :: Maybe Text
botVersion = Maybe Text
a} :: DescribeBotLocaleResponse)

-- | The date and time that the locale was created.
describeBotLocaleResponse_creationDateTime :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.UTCTime)
describeBotLocaleResponse_creationDateTime :: Lens' DescribeBotLocaleResponse (Maybe UTCTime)
describeBotLocaleResponse_creationDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe POSIX
a -> DescribeBotLocaleResponse
s {$sel:creationDateTime:DescribeBotLocaleResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: DescribeBotLocaleResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The description of the locale.
describeBotLocaleResponse_description :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Text)
describeBotLocaleResponse_description :: Lens' DescribeBotLocaleResponse (Maybe Text)
describeBotLocaleResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Text
a -> DescribeBotLocaleResponse
s {$sel:description:DescribeBotLocaleResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeBotLocaleResponse)

-- | if @botLocaleStatus@ is @Failed@, Amazon Lex explains why it failed to
-- build the bot.
describeBotLocaleResponse_failureReasons :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe [Prelude.Text])
describeBotLocaleResponse_failureReasons :: Lens' DescribeBotLocaleResponse (Maybe [Text])
describeBotLocaleResponse_failureReasons = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe [Text]
failureReasons :: Maybe [Text]
$sel:failureReasons:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe [Text]
failureReasons} -> Maybe [Text]
failureReasons) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe [Text]
a -> DescribeBotLocaleResponse
s {$sel:failureReasons:DescribeBotLocaleResponse' :: Maybe [Text]
failureReasons = Maybe [Text]
a} :: DescribeBotLocaleResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The number of intents defined for the locale.
describeBotLocaleResponse_intentsCount :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Int)
describeBotLocaleResponse_intentsCount :: Lens' DescribeBotLocaleResponse (Maybe Int)
describeBotLocaleResponse_intentsCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Int
intentsCount :: Maybe Int
$sel:intentsCount:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Int
intentsCount} -> Maybe Int
intentsCount) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Int
a -> DescribeBotLocaleResponse
s {$sel:intentsCount:DescribeBotLocaleResponse' :: Maybe Int
intentsCount = Maybe Int
a} :: DescribeBotLocaleResponse)

-- | The date and time that the locale was last submitted for building.
describeBotLocaleResponse_lastBuildSubmittedDateTime :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.UTCTime)
describeBotLocaleResponse_lastBuildSubmittedDateTime :: Lens' DescribeBotLocaleResponse (Maybe UTCTime)
describeBotLocaleResponse_lastBuildSubmittedDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe POSIX
lastBuildSubmittedDateTime :: Maybe POSIX
$sel:lastBuildSubmittedDateTime:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe POSIX
lastBuildSubmittedDateTime} -> Maybe POSIX
lastBuildSubmittedDateTime) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe POSIX
a -> DescribeBotLocaleResponse
s {$sel:lastBuildSubmittedDateTime:DescribeBotLocaleResponse' :: Maybe POSIX
lastBuildSubmittedDateTime = Maybe POSIX
a} :: DescribeBotLocaleResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The date and time that the locale was last updated.
describeBotLocaleResponse_lastUpdatedDateTime :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.UTCTime)
describeBotLocaleResponse_lastUpdatedDateTime :: Lens' DescribeBotLocaleResponse (Maybe UTCTime)
describeBotLocaleResponse_lastUpdatedDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe POSIX
a -> DescribeBotLocaleResponse
s {$sel:lastUpdatedDateTime:DescribeBotLocaleResponse' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: DescribeBotLocaleResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The unique identifier of the described locale.
describeBotLocaleResponse_localeId :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Text)
describeBotLocaleResponse_localeId :: Lens' DescribeBotLocaleResponse (Maybe Text)
describeBotLocaleResponse_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Text
localeId :: Maybe Text
$sel:localeId:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
localeId} -> Maybe Text
localeId) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Text
a -> DescribeBotLocaleResponse
s {$sel:localeId:DescribeBotLocaleResponse' :: Maybe Text
localeId = Maybe Text
a} :: DescribeBotLocaleResponse)

-- | The name of the locale.
describeBotLocaleResponse_localeName :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Text)
describeBotLocaleResponse_localeName :: Lens' DescribeBotLocaleResponse (Maybe Text)
describeBotLocaleResponse_localeName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Text
localeName :: Maybe Text
$sel:localeName:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
localeName} -> Maybe Text
localeName) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Text
a -> DescribeBotLocaleResponse
s {$sel:localeName:DescribeBotLocaleResponse' :: Maybe Text
localeName = Maybe Text
a} :: DescribeBotLocaleResponse)

-- | The confidence threshold where Amazon Lex inserts the
-- @AMAZON.FallbackIntent@ and @AMAZON.KendraSearchIntent@ intents in the
-- list of possible intents for an utterance.
describeBotLocaleResponse_nluIntentConfidenceThreshold :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Double)
describeBotLocaleResponse_nluIntentConfidenceThreshold :: Lens' DescribeBotLocaleResponse (Maybe Double)
describeBotLocaleResponse_nluIntentConfidenceThreshold = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Double
nluIntentConfidenceThreshold :: Maybe Double
$sel:nluIntentConfidenceThreshold:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Double
nluIntentConfidenceThreshold} -> Maybe Double
nluIntentConfidenceThreshold) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Double
a -> DescribeBotLocaleResponse
s {$sel:nluIntentConfidenceThreshold:DescribeBotLocaleResponse' :: Maybe Double
nluIntentConfidenceThreshold = Maybe Double
a} :: DescribeBotLocaleResponse)

-- | Recommended actions to take to resolve an error in the @failureReasons@
-- field.
describeBotLocaleResponse_recommendedActions :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe [Prelude.Text])
describeBotLocaleResponse_recommendedActions :: Lens' DescribeBotLocaleResponse (Maybe [Text])
describeBotLocaleResponse_recommendedActions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe [Text]
recommendedActions :: Maybe [Text]
$sel:recommendedActions:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe [Text]
recommendedActions} -> Maybe [Text]
recommendedActions) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe [Text]
a -> DescribeBotLocaleResponse
s {$sel:recommendedActions:DescribeBotLocaleResponse' :: Maybe [Text]
recommendedActions = Maybe [Text]
a} :: DescribeBotLocaleResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The number of slot types defined for the locale.
describeBotLocaleResponse_slotTypesCount :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe Prelude.Int)
describeBotLocaleResponse_slotTypesCount :: Lens' DescribeBotLocaleResponse (Maybe Int)
describeBotLocaleResponse_slotTypesCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe Int
slotTypesCount :: Maybe Int
$sel:slotTypesCount:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Int
slotTypesCount} -> Maybe Int
slotTypesCount) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe Int
a -> DescribeBotLocaleResponse
s {$sel:slotTypesCount:DescribeBotLocaleResponse' :: Maybe Int
slotTypesCount = Maybe Int
a} :: DescribeBotLocaleResponse)

-- | The Amazon Polly voice Amazon Lex uses for voice interaction with the
-- user.
describeBotLocaleResponse_voiceSettings :: Lens.Lens' DescribeBotLocaleResponse (Prelude.Maybe VoiceSettings)
describeBotLocaleResponse_voiceSettings :: Lens' DescribeBotLocaleResponse (Maybe VoiceSettings)
describeBotLocaleResponse_voiceSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Maybe VoiceSettings
voiceSettings :: Maybe VoiceSettings
$sel:voiceSettings:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe VoiceSettings
voiceSettings} -> Maybe VoiceSettings
voiceSettings) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Maybe VoiceSettings
a -> DescribeBotLocaleResponse
s {$sel:voiceSettings:DescribeBotLocaleResponse' :: Maybe VoiceSettings
voiceSettings = Maybe VoiceSettings
a} :: DescribeBotLocaleResponse)

-- | The response's http status code.
describeBotLocaleResponse_httpStatus :: Lens.Lens' DescribeBotLocaleResponse Prelude.Int
describeBotLocaleResponse_httpStatus :: Lens' DescribeBotLocaleResponse Int
describeBotLocaleResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotLocaleResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeBotLocaleResponse
s@DescribeBotLocaleResponse' {} Int
a -> DescribeBotLocaleResponse
s {$sel:httpStatus:DescribeBotLocaleResponse' :: Int
httpStatus = Int
a} :: DescribeBotLocaleResponse)

instance Prelude.NFData DescribeBotLocaleResponse where
  rnf :: DescribeBotLocaleResponse -> ()
rnf DescribeBotLocaleResponse' {Int
Maybe Double
Maybe Int
Maybe [Text]
Maybe [BotLocaleHistoryEvent]
Maybe Text
Maybe POSIX
Maybe BotLocaleStatus
Maybe VoiceSettings
httpStatus :: Int
voiceSettings :: Maybe VoiceSettings
slotTypesCount :: Maybe Int
recommendedActions :: Maybe [Text]
nluIntentConfidenceThreshold :: Maybe Double
localeName :: Maybe Text
localeId :: Maybe Text
lastUpdatedDateTime :: Maybe POSIX
lastBuildSubmittedDateTime :: Maybe POSIX
intentsCount :: Maybe Int
failureReasons :: Maybe [Text]
description :: Maybe Text
creationDateTime :: Maybe POSIX
botVersion :: Maybe Text
botLocaleStatus :: Maybe BotLocaleStatus
botLocaleHistoryEvents :: Maybe [BotLocaleHistoryEvent]
botId :: Maybe Text
$sel:httpStatus:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Int
$sel:voiceSettings:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe VoiceSettings
$sel:slotTypesCount:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Int
$sel:recommendedActions:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe [Text]
$sel:nluIntentConfidenceThreshold:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Double
$sel:localeName:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
$sel:localeId:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
$sel:lastUpdatedDateTime:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe POSIX
$sel:lastBuildSubmittedDateTime:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe POSIX
$sel:intentsCount:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Int
$sel:failureReasons:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe [Text]
$sel:description:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
$sel:creationDateTime:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe POSIX
$sel:botVersion:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
$sel:botLocaleStatus:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe BotLocaleStatus
$sel:botLocaleHistoryEvents:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe [BotLocaleHistoryEvent]
$sel:botId:DescribeBotLocaleResponse' :: DescribeBotLocaleResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [BotLocaleHistoryEvent]
botLocaleHistoryEvents
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BotLocaleStatus
botLocaleStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
failureReasons
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
intentsCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastBuildSubmittedDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localeId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localeName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
nluIntentConfidenceThreshold
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
recommendedActions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
slotTypesCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VoiceSettings
voiceSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus