{-# 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.QuickSight.DescribeTheme
-- 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)
--
-- Describes a theme.
module Amazonka.QuickSight.DescribeTheme
  ( -- * Creating a Request
    DescribeTheme (..),
    newDescribeTheme,

    -- * Request Lenses
    describeTheme_aliasName,
    describeTheme_versionNumber,
    describeTheme_awsAccountId,
    describeTheme_themeId,

    -- * Destructuring the Response
    DescribeThemeResponse (..),
    newDescribeThemeResponse,

    -- * Response Lenses
    describeThemeResponse_requestId,
    describeThemeResponse_theme,
    describeThemeResponse_status,
  )
where

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

-- | /See:/ 'newDescribeTheme' smart constructor.
data DescribeTheme = DescribeTheme'
  { -- | The alias of the theme that you want to describe. If you name a specific
    -- alias, you describe the version that the alias points to. You can
    -- specify the latest version of the theme by providing the keyword
    -- @$LATEST@ in the @AliasName@ parameter. The keyword @$PUBLISHED@
    -- doesn\'t apply to themes.
    DescribeTheme -> Maybe Text
aliasName :: Prelude.Maybe Prelude.Text,
    -- | The version number for the version to describe. If a @VersionNumber@
    -- parameter value isn\'t provided, the latest version of the theme is
    -- described.
    DescribeTheme -> Maybe Natural
versionNumber :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the Amazon Web Services account that contains the theme that
    -- you\'re describing.
    DescribeTheme -> Text
awsAccountId :: Prelude.Text,
    -- | The ID for the theme.
    DescribeTheme -> Text
themeId :: Prelude.Text
  }
  deriving (DescribeTheme -> DescribeTheme -> Bool
(DescribeTheme -> DescribeTheme -> Bool)
-> (DescribeTheme -> DescribeTheme -> Bool) -> Eq DescribeTheme
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTheme -> DescribeTheme -> Bool
$c/= :: DescribeTheme -> DescribeTheme -> Bool
== :: DescribeTheme -> DescribeTheme -> Bool
$c== :: DescribeTheme -> DescribeTheme -> Bool
Prelude.Eq, ReadPrec [DescribeTheme]
ReadPrec DescribeTheme
Int -> ReadS DescribeTheme
ReadS [DescribeTheme]
(Int -> ReadS DescribeTheme)
-> ReadS [DescribeTheme]
-> ReadPrec DescribeTheme
-> ReadPrec [DescribeTheme]
-> Read DescribeTheme
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTheme]
$creadListPrec :: ReadPrec [DescribeTheme]
readPrec :: ReadPrec DescribeTheme
$creadPrec :: ReadPrec DescribeTheme
readList :: ReadS [DescribeTheme]
$creadList :: ReadS [DescribeTheme]
readsPrec :: Int -> ReadS DescribeTheme
$creadsPrec :: Int -> ReadS DescribeTheme
Prelude.Read, Int -> DescribeTheme -> ShowS
[DescribeTheme] -> ShowS
DescribeTheme -> String
(Int -> DescribeTheme -> ShowS)
-> (DescribeTheme -> String)
-> ([DescribeTheme] -> ShowS)
-> Show DescribeTheme
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTheme] -> ShowS
$cshowList :: [DescribeTheme] -> ShowS
show :: DescribeTheme -> String
$cshow :: DescribeTheme -> String
showsPrec :: Int -> DescribeTheme -> ShowS
$cshowsPrec :: Int -> DescribeTheme -> ShowS
Prelude.Show, (forall x. DescribeTheme -> Rep DescribeTheme x)
-> (forall x. Rep DescribeTheme x -> DescribeTheme)
-> Generic DescribeTheme
forall x. Rep DescribeTheme x -> DescribeTheme
forall x. DescribeTheme -> Rep DescribeTheme x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeTheme x -> DescribeTheme
$cfrom :: forall x. DescribeTheme -> Rep DescribeTheme x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTheme' 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:
--
-- 'aliasName', 'describeTheme_aliasName' - The alias of the theme that you want to describe. If you name a specific
-- alias, you describe the version that the alias points to. You can
-- specify the latest version of the theme by providing the keyword
-- @$LATEST@ in the @AliasName@ parameter. The keyword @$PUBLISHED@
-- doesn\'t apply to themes.
--
-- 'versionNumber', 'describeTheme_versionNumber' - The version number for the version to describe. If a @VersionNumber@
-- parameter value isn\'t provided, the latest version of the theme is
-- described.
--
-- 'awsAccountId', 'describeTheme_awsAccountId' - The ID of the Amazon Web Services account that contains the theme that
-- you\'re describing.
--
-- 'themeId', 'describeTheme_themeId' - The ID for the theme.
newDescribeTheme ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'themeId'
  Prelude.Text ->
  DescribeTheme
newDescribeTheme :: Text -> Text -> DescribeTheme
newDescribeTheme Text
pAwsAccountId_ Text
pThemeId_ =
  DescribeTheme' :: Maybe Text -> Maybe Natural -> Text -> Text -> DescribeTheme
DescribeTheme'
    { $sel:aliasName:DescribeTheme' :: Maybe Text
aliasName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:versionNumber:DescribeTheme' :: Maybe Natural
versionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:DescribeTheme' :: Text
awsAccountId = Text
pAwsAccountId_,
      $sel:themeId:DescribeTheme' :: Text
themeId = Text
pThemeId_
    }

-- | The alias of the theme that you want to describe. If you name a specific
-- alias, you describe the version that the alias points to. You can
-- specify the latest version of the theme by providing the keyword
-- @$LATEST@ in the @AliasName@ parameter. The keyword @$PUBLISHED@
-- doesn\'t apply to themes.
describeTheme_aliasName :: Lens.Lens' DescribeTheme (Prelude.Maybe Prelude.Text)
describeTheme_aliasName :: (Maybe Text -> f (Maybe Text)) -> DescribeTheme -> f DescribeTheme
describeTheme_aliasName = (DescribeTheme -> Maybe Text)
-> (DescribeTheme -> Maybe Text -> DescribeTheme)
-> Lens DescribeTheme DescribeTheme (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTheme' {Maybe Text
aliasName :: Maybe Text
$sel:aliasName:DescribeTheme' :: DescribeTheme -> Maybe Text
aliasName} -> Maybe Text
aliasName) (\s :: DescribeTheme
s@DescribeTheme' {} Maybe Text
a -> DescribeTheme
s {$sel:aliasName:DescribeTheme' :: Maybe Text
aliasName = Maybe Text
a} :: DescribeTheme)

-- | The version number for the version to describe. If a @VersionNumber@
-- parameter value isn\'t provided, the latest version of the theme is
-- described.
describeTheme_versionNumber :: Lens.Lens' DescribeTheme (Prelude.Maybe Prelude.Natural)
describeTheme_versionNumber :: (Maybe Natural -> f (Maybe Natural))
-> DescribeTheme -> f DescribeTheme
describeTheme_versionNumber = (DescribeTheme -> Maybe Natural)
-> (DescribeTheme -> Maybe Natural -> DescribeTheme)
-> Lens DescribeTheme DescribeTheme (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTheme' {Maybe Natural
versionNumber :: Maybe Natural
$sel:versionNumber:DescribeTheme' :: DescribeTheme -> Maybe Natural
versionNumber} -> Maybe Natural
versionNumber) (\s :: DescribeTheme
s@DescribeTheme' {} Maybe Natural
a -> DescribeTheme
s {$sel:versionNumber:DescribeTheme' :: Maybe Natural
versionNumber = Maybe Natural
a} :: DescribeTheme)

-- | The ID of the Amazon Web Services account that contains the theme that
-- you\'re describing.
describeTheme_awsAccountId :: Lens.Lens' DescribeTheme Prelude.Text
describeTheme_awsAccountId :: (Text -> f Text) -> DescribeTheme -> f DescribeTheme
describeTheme_awsAccountId = (DescribeTheme -> Text)
-> (DescribeTheme -> Text -> DescribeTheme)
-> Lens DescribeTheme DescribeTheme Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTheme' {Text
awsAccountId :: Text
$sel:awsAccountId:DescribeTheme' :: DescribeTheme -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DescribeTheme
s@DescribeTheme' {} Text
a -> DescribeTheme
s {$sel:awsAccountId:DescribeTheme' :: Text
awsAccountId = Text
a} :: DescribeTheme)

-- | The ID for the theme.
describeTheme_themeId :: Lens.Lens' DescribeTheme Prelude.Text
describeTheme_themeId :: (Text -> f Text) -> DescribeTheme -> f DescribeTheme
describeTheme_themeId = (DescribeTheme -> Text)
-> (DescribeTheme -> Text -> DescribeTheme)
-> Lens DescribeTheme DescribeTheme Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTheme' {Text
themeId :: Text
$sel:themeId:DescribeTheme' :: DescribeTheme -> Text
themeId} -> Text
themeId) (\s :: DescribeTheme
s@DescribeTheme' {} Text
a -> DescribeTheme
s {$sel:themeId:DescribeTheme' :: Text
themeId = Text
a} :: DescribeTheme)

instance Core.AWSRequest DescribeTheme where
  type
    AWSResponse DescribeTheme =
      DescribeThemeResponse
  request :: DescribeTheme -> Request DescribeTheme
request = Service -> DescribeTheme -> Request DescribeTheme
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeTheme
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeTheme)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeTheme))
-> Logger
-> Service
-> Proxy DescribeTheme
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeTheme)))
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 Theme -> Int -> DescribeThemeResponse
DescribeThemeResponse'
            (Maybe Text -> Maybe Theme -> Int -> DescribeThemeResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Theme -> Int -> DescribeThemeResponse)
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
"RequestId")
            Either String (Maybe Theme -> Int -> DescribeThemeResponse)
-> Either String (Maybe Theme)
-> Either String (Int -> DescribeThemeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Theme)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Theme")
            Either String (Int -> DescribeThemeResponse)
-> Either String Int -> Either String DescribeThemeResponse
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 DescribeTheme

instance Prelude.NFData DescribeTheme

instance Core.ToHeaders DescribeTheme where
  toHeaders :: DescribeTheme -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeTheme -> 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.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeTheme where
  toPath :: DescribeTheme -> ByteString
toPath DescribeTheme' {Maybe Natural
Maybe Text
Text
themeId :: Text
awsAccountId :: Text
versionNumber :: Maybe Natural
aliasName :: Maybe Text
$sel:themeId:DescribeTheme' :: DescribeTheme -> Text
$sel:awsAccountId:DescribeTheme' :: DescribeTheme -> Text
$sel:versionNumber:DescribeTheme' :: DescribeTheme -> Maybe Natural
$sel:aliasName:DescribeTheme' :: DescribeTheme -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/accounts/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
        ByteString
"/themes/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
themeId
      ]

instance Core.ToQuery DescribeTheme where
  toQuery :: DescribeTheme -> QueryString
toQuery DescribeTheme' {Maybe Natural
Maybe Text
Text
themeId :: Text
awsAccountId :: Text
versionNumber :: Maybe Natural
aliasName :: Maybe Text
$sel:themeId:DescribeTheme' :: DescribeTheme -> Text
$sel:awsAccountId:DescribeTheme' :: DescribeTheme -> Text
$sel:versionNumber:DescribeTheme' :: DescribeTheme -> Maybe Natural
$sel:aliasName:DescribeTheme' :: DescribeTheme -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"alias-name" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
aliasName,
        ByteString
"version-number" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
versionNumber
      ]

-- | /See:/ 'newDescribeThemeResponse' smart constructor.
data DescribeThemeResponse = DescribeThemeResponse'
  { -- | The Amazon Web Services request ID for this operation.
    DescribeThemeResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The information about the theme that you are describing.
    DescribeThemeResponse -> Maybe Theme
theme :: Prelude.Maybe Theme,
    -- | The HTTP status of the request.
    DescribeThemeResponse -> Int
status :: Prelude.Int
  }
  deriving (DescribeThemeResponse -> DescribeThemeResponse -> Bool
(DescribeThemeResponse -> DescribeThemeResponse -> Bool)
-> (DescribeThemeResponse -> DescribeThemeResponse -> Bool)
-> Eq DescribeThemeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThemeResponse -> DescribeThemeResponse -> Bool
$c/= :: DescribeThemeResponse -> DescribeThemeResponse -> Bool
== :: DescribeThemeResponse -> DescribeThemeResponse -> Bool
$c== :: DescribeThemeResponse -> DescribeThemeResponse -> Bool
Prelude.Eq, ReadPrec [DescribeThemeResponse]
ReadPrec DescribeThemeResponse
Int -> ReadS DescribeThemeResponse
ReadS [DescribeThemeResponse]
(Int -> ReadS DescribeThemeResponse)
-> ReadS [DescribeThemeResponse]
-> ReadPrec DescribeThemeResponse
-> ReadPrec [DescribeThemeResponse]
-> Read DescribeThemeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThemeResponse]
$creadListPrec :: ReadPrec [DescribeThemeResponse]
readPrec :: ReadPrec DescribeThemeResponse
$creadPrec :: ReadPrec DescribeThemeResponse
readList :: ReadS [DescribeThemeResponse]
$creadList :: ReadS [DescribeThemeResponse]
readsPrec :: Int -> ReadS DescribeThemeResponse
$creadsPrec :: Int -> ReadS DescribeThemeResponse
Prelude.Read, Int -> DescribeThemeResponse -> ShowS
[DescribeThemeResponse] -> ShowS
DescribeThemeResponse -> String
(Int -> DescribeThemeResponse -> ShowS)
-> (DescribeThemeResponse -> String)
-> ([DescribeThemeResponse] -> ShowS)
-> Show DescribeThemeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThemeResponse] -> ShowS
$cshowList :: [DescribeThemeResponse] -> ShowS
show :: DescribeThemeResponse -> String
$cshow :: DescribeThemeResponse -> String
showsPrec :: Int -> DescribeThemeResponse -> ShowS
$cshowsPrec :: Int -> DescribeThemeResponse -> ShowS
Prelude.Show, (forall x. DescribeThemeResponse -> Rep DescribeThemeResponse x)
-> (forall x. Rep DescribeThemeResponse x -> DescribeThemeResponse)
-> Generic DescribeThemeResponse
forall x. Rep DescribeThemeResponse x -> DescribeThemeResponse
forall x. DescribeThemeResponse -> Rep DescribeThemeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeThemeResponse x -> DescribeThemeResponse
$cfrom :: forall x. DescribeThemeResponse -> Rep DescribeThemeResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeThemeResponse' 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:
--
-- 'requestId', 'describeThemeResponse_requestId' - The Amazon Web Services request ID for this operation.
--
-- 'theme', 'describeThemeResponse_theme' - The information about the theme that you are describing.
--
-- 'status', 'describeThemeResponse_status' - The HTTP status of the request.
newDescribeThemeResponse ::
  -- | 'status'
  Prelude.Int ->
  DescribeThemeResponse
newDescribeThemeResponse :: Int -> DescribeThemeResponse
newDescribeThemeResponse Int
pStatus_ =
  DescribeThemeResponse' :: Maybe Text -> Maybe Theme -> Int -> DescribeThemeResponse
DescribeThemeResponse'
    { $sel:requestId:DescribeThemeResponse' :: Maybe Text
requestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:theme:DescribeThemeResponse' :: Maybe Theme
theme = Maybe Theme
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DescribeThemeResponse' :: Int
status = Int
pStatus_
    }

-- | The Amazon Web Services request ID for this operation.
describeThemeResponse_requestId :: Lens.Lens' DescribeThemeResponse (Prelude.Maybe Prelude.Text)
describeThemeResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DescribeThemeResponse -> f DescribeThemeResponse
describeThemeResponse_requestId = (DescribeThemeResponse -> Maybe Text)
-> (DescribeThemeResponse -> Maybe Text -> DescribeThemeResponse)
-> Lens
     DescribeThemeResponse
     DescribeThemeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemeResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DescribeThemeResponse' :: DescribeThemeResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DescribeThemeResponse
s@DescribeThemeResponse' {} Maybe Text
a -> DescribeThemeResponse
s {$sel:requestId:DescribeThemeResponse' :: Maybe Text
requestId = Maybe Text
a} :: DescribeThemeResponse)

-- | The information about the theme that you are describing.
describeThemeResponse_theme :: Lens.Lens' DescribeThemeResponse (Prelude.Maybe Theme)
describeThemeResponse_theme :: (Maybe Theme -> f (Maybe Theme))
-> DescribeThemeResponse -> f DescribeThemeResponse
describeThemeResponse_theme = (DescribeThemeResponse -> Maybe Theme)
-> (DescribeThemeResponse -> Maybe Theme -> DescribeThemeResponse)
-> Lens
     DescribeThemeResponse
     DescribeThemeResponse
     (Maybe Theme)
     (Maybe Theme)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemeResponse' {Maybe Theme
theme :: Maybe Theme
$sel:theme:DescribeThemeResponse' :: DescribeThemeResponse -> Maybe Theme
theme} -> Maybe Theme
theme) (\s :: DescribeThemeResponse
s@DescribeThemeResponse' {} Maybe Theme
a -> DescribeThemeResponse
s {$sel:theme:DescribeThemeResponse' :: Maybe Theme
theme = Maybe Theme
a} :: DescribeThemeResponse)

-- | The HTTP status of the request.
describeThemeResponse_status :: Lens.Lens' DescribeThemeResponse Prelude.Int
describeThemeResponse_status :: (Int -> f Int) -> DescribeThemeResponse -> f DescribeThemeResponse
describeThemeResponse_status = (DescribeThemeResponse -> Int)
-> (DescribeThemeResponse -> Int -> DescribeThemeResponse)
-> Lens DescribeThemeResponse DescribeThemeResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemeResponse' {Int
status :: Int
$sel:status:DescribeThemeResponse' :: DescribeThemeResponse -> Int
status} -> Int
status) (\s :: DescribeThemeResponse
s@DescribeThemeResponse' {} Int
a -> DescribeThemeResponse
s {$sel:status:DescribeThemeResponse' :: Int
status = Int
a} :: DescribeThemeResponse)

instance Prelude.NFData DescribeThemeResponse