{-# 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.LexModels.GetBuiltinIntent
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about a built-in intent.
--
-- This operation requires permission for the @lex:GetBuiltinIntent@
-- action.
module Amazonka.LexModels.GetBuiltinIntent
  ( -- * Creating a Request
    GetBuiltinIntent (..),
    newGetBuiltinIntent,

    -- * Request Lenses
    getBuiltinIntent_signature,

    -- * Destructuring the Response
    GetBuiltinIntentResponse (..),
    newGetBuiltinIntentResponse,

    -- * Response Lenses
    getBuiltinIntentResponse_signature,
    getBuiltinIntentResponse_slots,
    getBuiltinIntentResponse_supportedLocales,
    getBuiltinIntentResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LexModels.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetBuiltinIntent' smart constructor.
data GetBuiltinIntent = GetBuiltinIntent'
  { -- | The unique identifier for a built-in intent. To find the signature for
    -- an intent, see
    -- <https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents Standard Built-in Intents>
    -- in the /Alexa Skills Kit/.
    GetBuiltinIntent -> Text
signature :: Prelude.Text
  }
  deriving (GetBuiltinIntent -> GetBuiltinIntent -> Bool
(GetBuiltinIntent -> GetBuiltinIntent -> Bool)
-> (GetBuiltinIntent -> GetBuiltinIntent -> Bool)
-> Eq GetBuiltinIntent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBuiltinIntent -> GetBuiltinIntent -> Bool
$c/= :: GetBuiltinIntent -> GetBuiltinIntent -> Bool
== :: GetBuiltinIntent -> GetBuiltinIntent -> Bool
$c== :: GetBuiltinIntent -> GetBuiltinIntent -> Bool
Prelude.Eq, ReadPrec [GetBuiltinIntent]
ReadPrec GetBuiltinIntent
Int -> ReadS GetBuiltinIntent
ReadS [GetBuiltinIntent]
(Int -> ReadS GetBuiltinIntent)
-> ReadS [GetBuiltinIntent]
-> ReadPrec GetBuiltinIntent
-> ReadPrec [GetBuiltinIntent]
-> Read GetBuiltinIntent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBuiltinIntent]
$creadListPrec :: ReadPrec [GetBuiltinIntent]
readPrec :: ReadPrec GetBuiltinIntent
$creadPrec :: ReadPrec GetBuiltinIntent
readList :: ReadS [GetBuiltinIntent]
$creadList :: ReadS [GetBuiltinIntent]
readsPrec :: Int -> ReadS GetBuiltinIntent
$creadsPrec :: Int -> ReadS GetBuiltinIntent
Prelude.Read, Int -> GetBuiltinIntent -> ShowS
[GetBuiltinIntent] -> ShowS
GetBuiltinIntent -> String
(Int -> GetBuiltinIntent -> ShowS)
-> (GetBuiltinIntent -> String)
-> ([GetBuiltinIntent] -> ShowS)
-> Show GetBuiltinIntent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBuiltinIntent] -> ShowS
$cshowList :: [GetBuiltinIntent] -> ShowS
show :: GetBuiltinIntent -> String
$cshow :: GetBuiltinIntent -> String
showsPrec :: Int -> GetBuiltinIntent -> ShowS
$cshowsPrec :: Int -> GetBuiltinIntent -> ShowS
Prelude.Show, (forall x. GetBuiltinIntent -> Rep GetBuiltinIntent x)
-> (forall x. Rep GetBuiltinIntent x -> GetBuiltinIntent)
-> Generic GetBuiltinIntent
forall x. Rep GetBuiltinIntent x -> GetBuiltinIntent
forall x. GetBuiltinIntent -> Rep GetBuiltinIntent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBuiltinIntent x -> GetBuiltinIntent
$cfrom :: forall x. GetBuiltinIntent -> Rep GetBuiltinIntent x
Prelude.Generic)

-- |
-- Create a value of 'GetBuiltinIntent' 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:
--
-- 'signature', 'getBuiltinIntent_signature' - The unique identifier for a built-in intent. To find the signature for
-- an intent, see
-- <https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents Standard Built-in Intents>
-- in the /Alexa Skills Kit/.
newGetBuiltinIntent ::
  -- | 'signature'
  Prelude.Text ->
  GetBuiltinIntent
newGetBuiltinIntent :: Text -> GetBuiltinIntent
newGetBuiltinIntent Text
pSignature_ =
  GetBuiltinIntent' :: Text -> GetBuiltinIntent
GetBuiltinIntent' {$sel:signature:GetBuiltinIntent' :: Text
signature = Text
pSignature_}

-- | The unique identifier for a built-in intent. To find the signature for
-- an intent, see
-- <https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents Standard Built-in Intents>
-- in the /Alexa Skills Kit/.
getBuiltinIntent_signature :: Lens.Lens' GetBuiltinIntent Prelude.Text
getBuiltinIntent_signature :: (Text -> f Text) -> GetBuiltinIntent -> f GetBuiltinIntent
getBuiltinIntent_signature = (GetBuiltinIntent -> Text)
-> (GetBuiltinIntent -> Text -> GetBuiltinIntent)
-> Lens GetBuiltinIntent GetBuiltinIntent Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinIntent' {Text
signature :: Text
$sel:signature:GetBuiltinIntent' :: GetBuiltinIntent -> Text
signature} -> Text
signature) (\s :: GetBuiltinIntent
s@GetBuiltinIntent' {} Text
a -> GetBuiltinIntent
s {$sel:signature:GetBuiltinIntent' :: Text
signature = Text
a} :: GetBuiltinIntent)

instance Core.AWSRequest GetBuiltinIntent where
  type
    AWSResponse GetBuiltinIntent =
      GetBuiltinIntentResponse
  request :: GetBuiltinIntent -> Request GetBuiltinIntent
request = Service -> GetBuiltinIntent -> Request GetBuiltinIntent
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetBuiltinIntent
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetBuiltinIntent)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetBuiltinIntent))
-> Logger
-> Service
-> Proxy GetBuiltinIntent
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetBuiltinIntent)))
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 Text
-> Maybe [BuiltinIntentSlot]
-> Maybe [Locale]
-> Int
-> GetBuiltinIntentResponse
GetBuiltinIntentResponse'
            (Maybe Text
 -> Maybe [BuiltinIntentSlot]
 -> Maybe [Locale]
 -> Int
 -> GetBuiltinIntentResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [BuiltinIntentSlot]
      -> Maybe [Locale] -> Int -> GetBuiltinIntentResponse)
forall (f :: * -> *) a b. Functor 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
"signature")
            Either
  String
  (Maybe [BuiltinIntentSlot]
   -> Maybe [Locale] -> Int -> GetBuiltinIntentResponse)
-> Either String (Maybe [BuiltinIntentSlot])
-> Either
     String (Maybe [Locale] -> Int -> GetBuiltinIntentResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [BuiltinIntentSlot]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"slots" Either String (Maybe (Maybe [BuiltinIntentSlot]))
-> Maybe [BuiltinIntentSlot]
-> Either String (Maybe [BuiltinIntentSlot])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BuiltinIntentSlot]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe [Locale] -> Int -> GetBuiltinIntentResponse)
-> Either String (Maybe [Locale])
-> Either String (Int -> GetBuiltinIntentResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Locale]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"supportedLocales"
                            Either String (Maybe (Maybe [Locale]))
-> Maybe [Locale] -> Either String (Maybe [Locale])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Locale]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> GetBuiltinIntentResponse)
-> Either String Int -> Either String GetBuiltinIntentResponse
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 GetBuiltinIntent

instance Prelude.NFData GetBuiltinIntent

instance Core.ToHeaders GetBuiltinIntent where
  toHeaders :: GetBuiltinIntent -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetBuiltinIntent -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath GetBuiltinIntent where
  toPath :: GetBuiltinIntent -> ByteString
toPath GetBuiltinIntent' {Text
signature :: Text
$sel:signature:GetBuiltinIntent' :: GetBuiltinIntent -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/builtins/intents/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
signature]

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

-- | /See:/ 'newGetBuiltinIntentResponse' smart constructor.
data GetBuiltinIntentResponse = GetBuiltinIntentResponse'
  { -- | The unique identifier for a built-in intent.
    GetBuiltinIntentResponse -> Maybe Text
signature :: Prelude.Maybe Prelude.Text,
    -- | An array of @BuiltinIntentSlot@ objects, one entry for each slot type in
    -- the intent.
    GetBuiltinIntentResponse -> Maybe [BuiltinIntentSlot]
slots :: Prelude.Maybe [BuiltinIntentSlot],
    -- | A list of locales that the intent supports.
    GetBuiltinIntentResponse -> Maybe [Locale]
supportedLocales :: Prelude.Maybe [Locale],
    -- | The response's http status code.
    GetBuiltinIntentResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool
(GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool)
-> (GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool)
-> Eq GetBuiltinIntentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool
$c/= :: GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool
== :: GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool
$c== :: GetBuiltinIntentResponse -> GetBuiltinIntentResponse -> Bool
Prelude.Eq, ReadPrec [GetBuiltinIntentResponse]
ReadPrec GetBuiltinIntentResponse
Int -> ReadS GetBuiltinIntentResponse
ReadS [GetBuiltinIntentResponse]
(Int -> ReadS GetBuiltinIntentResponse)
-> ReadS [GetBuiltinIntentResponse]
-> ReadPrec GetBuiltinIntentResponse
-> ReadPrec [GetBuiltinIntentResponse]
-> Read GetBuiltinIntentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBuiltinIntentResponse]
$creadListPrec :: ReadPrec [GetBuiltinIntentResponse]
readPrec :: ReadPrec GetBuiltinIntentResponse
$creadPrec :: ReadPrec GetBuiltinIntentResponse
readList :: ReadS [GetBuiltinIntentResponse]
$creadList :: ReadS [GetBuiltinIntentResponse]
readsPrec :: Int -> ReadS GetBuiltinIntentResponse
$creadsPrec :: Int -> ReadS GetBuiltinIntentResponse
Prelude.Read, Int -> GetBuiltinIntentResponse -> ShowS
[GetBuiltinIntentResponse] -> ShowS
GetBuiltinIntentResponse -> String
(Int -> GetBuiltinIntentResponse -> ShowS)
-> (GetBuiltinIntentResponse -> String)
-> ([GetBuiltinIntentResponse] -> ShowS)
-> Show GetBuiltinIntentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBuiltinIntentResponse] -> ShowS
$cshowList :: [GetBuiltinIntentResponse] -> ShowS
show :: GetBuiltinIntentResponse -> String
$cshow :: GetBuiltinIntentResponse -> String
showsPrec :: Int -> GetBuiltinIntentResponse -> ShowS
$cshowsPrec :: Int -> GetBuiltinIntentResponse -> ShowS
Prelude.Show, (forall x.
 GetBuiltinIntentResponse -> Rep GetBuiltinIntentResponse x)
-> (forall x.
    Rep GetBuiltinIntentResponse x -> GetBuiltinIntentResponse)
-> Generic GetBuiltinIntentResponse
forall x.
Rep GetBuiltinIntentResponse x -> GetBuiltinIntentResponse
forall x.
GetBuiltinIntentResponse -> Rep GetBuiltinIntentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBuiltinIntentResponse x -> GetBuiltinIntentResponse
$cfrom :: forall x.
GetBuiltinIntentResponse -> Rep GetBuiltinIntentResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetBuiltinIntentResponse' 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:
--
-- 'signature', 'getBuiltinIntentResponse_signature' - The unique identifier for a built-in intent.
--
-- 'slots', 'getBuiltinIntentResponse_slots' - An array of @BuiltinIntentSlot@ objects, one entry for each slot type in
-- the intent.
--
-- 'supportedLocales', 'getBuiltinIntentResponse_supportedLocales' - A list of locales that the intent supports.
--
-- 'httpStatus', 'getBuiltinIntentResponse_httpStatus' - The response's http status code.
newGetBuiltinIntentResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetBuiltinIntentResponse
newGetBuiltinIntentResponse :: Int -> GetBuiltinIntentResponse
newGetBuiltinIntentResponse Int
pHttpStatus_ =
  GetBuiltinIntentResponse' :: Maybe Text
-> Maybe [BuiltinIntentSlot]
-> Maybe [Locale]
-> Int
-> GetBuiltinIntentResponse
GetBuiltinIntentResponse'
    { $sel:signature:GetBuiltinIntentResponse' :: Maybe Text
signature =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:slots:GetBuiltinIntentResponse' :: Maybe [BuiltinIntentSlot]
slots = Maybe [BuiltinIntentSlot]
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedLocales:GetBuiltinIntentResponse' :: Maybe [Locale]
supportedLocales = Maybe [Locale]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetBuiltinIntentResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The unique identifier for a built-in intent.
getBuiltinIntentResponse_signature :: Lens.Lens' GetBuiltinIntentResponse (Prelude.Maybe Prelude.Text)
getBuiltinIntentResponse_signature :: (Maybe Text -> f (Maybe Text))
-> GetBuiltinIntentResponse -> f GetBuiltinIntentResponse
getBuiltinIntentResponse_signature = (GetBuiltinIntentResponse -> Maybe Text)
-> (GetBuiltinIntentResponse
    -> Maybe Text -> GetBuiltinIntentResponse)
-> Lens
     GetBuiltinIntentResponse
     GetBuiltinIntentResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinIntentResponse' {Maybe Text
signature :: Maybe Text
$sel:signature:GetBuiltinIntentResponse' :: GetBuiltinIntentResponse -> Maybe Text
signature} -> Maybe Text
signature) (\s :: GetBuiltinIntentResponse
s@GetBuiltinIntentResponse' {} Maybe Text
a -> GetBuiltinIntentResponse
s {$sel:signature:GetBuiltinIntentResponse' :: Maybe Text
signature = Maybe Text
a} :: GetBuiltinIntentResponse)

-- | An array of @BuiltinIntentSlot@ objects, one entry for each slot type in
-- the intent.
getBuiltinIntentResponse_slots :: Lens.Lens' GetBuiltinIntentResponse (Prelude.Maybe [BuiltinIntentSlot])
getBuiltinIntentResponse_slots :: (Maybe [BuiltinIntentSlot] -> f (Maybe [BuiltinIntentSlot]))
-> GetBuiltinIntentResponse -> f GetBuiltinIntentResponse
getBuiltinIntentResponse_slots = (GetBuiltinIntentResponse -> Maybe [BuiltinIntentSlot])
-> (GetBuiltinIntentResponse
    -> Maybe [BuiltinIntentSlot] -> GetBuiltinIntentResponse)
-> Lens
     GetBuiltinIntentResponse
     GetBuiltinIntentResponse
     (Maybe [BuiltinIntentSlot])
     (Maybe [BuiltinIntentSlot])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinIntentResponse' {Maybe [BuiltinIntentSlot]
slots :: Maybe [BuiltinIntentSlot]
$sel:slots:GetBuiltinIntentResponse' :: GetBuiltinIntentResponse -> Maybe [BuiltinIntentSlot]
slots} -> Maybe [BuiltinIntentSlot]
slots) (\s :: GetBuiltinIntentResponse
s@GetBuiltinIntentResponse' {} Maybe [BuiltinIntentSlot]
a -> GetBuiltinIntentResponse
s {$sel:slots:GetBuiltinIntentResponse' :: Maybe [BuiltinIntentSlot]
slots = Maybe [BuiltinIntentSlot]
a} :: GetBuiltinIntentResponse) ((Maybe [BuiltinIntentSlot] -> f (Maybe [BuiltinIntentSlot]))
 -> GetBuiltinIntentResponse -> f GetBuiltinIntentResponse)
-> ((Maybe [BuiltinIntentSlot] -> f (Maybe [BuiltinIntentSlot]))
    -> Maybe [BuiltinIntentSlot] -> f (Maybe [BuiltinIntentSlot]))
-> (Maybe [BuiltinIntentSlot] -> f (Maybe [BuiltinIntentSlot]))
-> GetBuiltinIntentResponse
-> f GetBuiltinIntentResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [BuiltinIntentSlot]
  [BuiltinIntentSlot]
  [BuiltinIntentSlot]
  [BuiltinIntentSlot]
-> Iso
     (Maybe [BuiltinIntentSlot])
     (Maybe [BuiltinIntentSlot])
     (Maybe [BuiltinIntentSlot])
     (Maybe [BuiltinIntentSlot])
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
  [BuiltinIntentSlot]
  [BuiltinIntentSlot]
  [BuiltinIntentSlot]
  [BuiltinIntentSlot]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of locales that the intent supports.
getBuiltinIntentResponse_supportedLocales :: Lens.Lens' GetBuiltinIntentResponse (Prelude.Maybe [Locale])
getBuiltinIntentResponse_supportedLocales :: (Maybe [Locale] -> f (Maybe [Locale]))
-> GetBuiltinIntentResponse -> f GetBuiltinIntentResponse
getBuiltinIntentResponse_supportedLocales = (GetBuiltinIntentResponse -> Maybe [Locale])
-> (GetBuiltinIntentResponse
    -> Maybe [Locale] -> GetBuiltinIntentResponse)
-> Lens
     GetBuiltinIntentResponse
     GetBuiltinIntentResponse
     (Maybe [Locale])
     (Maybe [Locale])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinIntentResponse' {Maybe [Locale]
supportedLocales :: Maybe [Locale]
$sel:supportedLocales:GetBuiltinIntentResponse' :: GetBuiltinIntentResponse -> Maybe [Locale]
supportedLocales} -> Maybe [Locale]
supportedLocales) (\s :: GetBuiltinIntentResponse
s@GetBuiltinIntentResponse' {} Maybe [Locale]
a -> GetBuiltinIntentResponse
s {$sel:supportedLocales:GetBuiltinIntentResponse' :: Maybe [Locale]
supportedLocales = Maybe [Locale]
a} :: GetBuiltinIntentResponse) ((Maybe [Locale] -> f (Maybe [Locale]))
 -> GetBuiltinIntentResponse -> f GetBuiltinIntentResponse)
-> ((Maybe [Locale] -> f (Maybe [Locale]))
    -> Maybe [Locale] -> f (Maybe [Locale]))
-> (Maybe [Locale] -> f (Maybe [Locale]))
-> GetBuiltinIntentResponse
-> f GetBuiltinIntentResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Locale] [Locale] [Locale] [Locale]
-> Iso
     (Maybe [Locale]) (Maybe [Locale]) (Maybe [Locale]) (Maybe [Locale])
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 [Locale] [Locale] [Locale] [Locale]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData GetBuiltinIntentResponse