{-# 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.DeleteTheme
-- 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)
--
-- Deletes a theme.
module Amazonka.QuickSight.DeleteTheme
  ( -- * Creating a Request
    DeleteTheme (..),
    newDeleteTheme,

    -- * Request Lenses
    deleteTheme_versionNumber,
    deleteTheme_awsAccountId,
    deleteTheme_themeId,

    -- * Destructuring the Response
    DeleteThemeResponse (..),
    newDeleteThemeResponse,

    -- * Response Lenses
    deleteThemeResponse_requestId,
    deleteThemeResponse_themeId,
    deleteThemeResponse_arn,
    deleteThemeResponse_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:/ 'newDeleteTheme' smart constructor.
data DeleteTheme = DeleteTheme'
  { -- | The version of the theme that you want to delete.
    --
    -- __Note:__ If you don\'t provide a version number, you\'re using this
    -- call to @DeleteTheme@ to delete all versions of the theme.
    DeleteTheme -> Maybe Natural
versionNumber :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the Amazon Web Services account that contains the theme that
    -- you\'re deleting.
    DeleteTheme -> Text
awsAccountId :: Prelude.Text,
    -- | An ID for the theme that you want to delete.
    DeleteTheme -> Text
themeId :: Prelude.Text
  }
  deriving (DeleteTheme -> DeleteTheme -> Bool
(DeleteTheme -> DeleteTheme -> Bool)
-> (DeleteTheme -> DeleteTheme -> Bool) -> Eq DeleteTheme
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteTheme -> DeleteTheme -> Bool
$c/= :: DeleteTheme -> DeleteTheme -> Bool
== :: DeleteTheme -> DeleteTheme -> Bool
$c== :: DeleteTheme -> DeleteTheme -> Bool
Prelude.Eq, ReadPrec [DeleteTheme]
ReadPrec DeleteTheme
Int -> ReadS DeleteTheme
ReadS [DeleteTheme]
(Int -> ReadS DeleteTheme)
-> ReadS [DeleteTheme]
-> ReadPrec DeleteTheme
-> ReadPrec [DeleteTheme]
-> Read DeleteTheme
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteTheme]
$creadListPrec :: ReadPrec [DeleteTheme]
readPrec :: ReadPrec DeleteTheme
$creadPrec :: ReadPrec DeleteTheme
readList :: ReadS [DeleteTheme]
$creadList :: ReadS [DeleteTheme]
readsPrec :: Int -> ReadS DeleteTheme
$creadsPrec :: Int -> ReadS DeleteTheme
Prelude.Read, Int -> DeleteTheme -> ShowS
[DeleteTheme] -> ShowS
DeleteTheme -> String
(Int -> DeleteTheme -> ShowS)
-> (DeleteTheme -> String)
-> ([DeleteTheme] -> ShowS)
-> Show DeleteTheme
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteTheme] -> ShowS
$cshowList :: [DeleteTheme] -> ShowS
show :: DeleteTheme -> String
$cshow :: DeleteTheme -> String
showsPrec :: Int -> DeleteTheme -> ShowS
$cshowsPrec :: Int -> DeleteTheme -> ShowS
Prelude.Show, (forall x. DeleteTheme -> Rep DeleteTheme x)
-> (forall x. Rep DeleteTheme x -> DeleteTheme)
-> Generic DeleteTheme
forall x. Rep DeleteTheme x -> DeleteTheme
forall x. DeleteTheme -> Rep DeleteTheme x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteTheme x -> DeleteTheme
$cfrom :: forall x. DeleteTheme -> Rep DeleteTheme x
Prelude.Generic)

-- |
-- Create a value of 'DeleteTheme' 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:
--
-- 'versionNumber', 'deleteTheme_versionNumber' - The version of the theme that you want to delete.
--
-- __Note:__ If you don\'t provide a version number, you\'re using this
-- call to @DeleteTheme@ to delete all versions of the theme.
--
-- 'awsAccountId', 'deleteTheme_awsAccountId' - The ID of the Amazon Web Services account that contains the theme that
-- you\'re deleting.
--
-- 'themeId', 'deleteTheme_themeId' - An ID for the theme that you want to delete.
newDeleteTheme ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'themeId'
  Prelude.Text ->
  DeleteTheme
newDeleteTheme :: Text -> Text -> DeleteTheme
newDeleteTheme Text
pAwsAccountId_ Text
pThemeId_ =
  DeleteTheme' :: Maybe Natural -> Text -> Text -> DeleteTheme
DeleteTheme'
    { $sel:versionNumber:DeleteTheme' :: Maybe Natural
versionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:DeleteTheme' :: Text
awsAccountId = Text
pAwsAccountId_,
      $sel:themeId:DeleteTheme' :: Text
themeId = Text
pThemeId_
    }

-- | The version of the theme that you want to delete.
--
-- __Note:__ If you don\'t provide a version number, you\'re using this
-- call to @DeleteTheme@ to delete all versions of the theme.
deleteTheme_versionNumber :: Lens.Lens' DeleteTheme (Prelude.Maybe Prelude.Natural)
deleteTheme_versionNumber :: (Maybe Natural -> f (Maybe Natural))
-> DeleteTheme -> f DeleteTheme
deleteTheme_versionNumber = (DeleteTheme -> Maybe Natural)
-> (DeleteTheme -> Maybe Natural -> DeleteTheme)
-> Lens DeleteTheme DeleteTheme (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTheme' {Maybe Natural
versionNumber :: Maybe Natural
$sel:versionNumber:DeleteTheme' :: DeleteTheme -> Maybe Natural
versionNumber} -> Maybe Natural
versionNumber) (\s :: DeleteTheme
s@DeleteTheme' {} Maybe Natural
a -> DeleteTheme
s {$sel:versionNumber:DeleteTheme' :: Maybe Natural
versionNumber = Maybe Natural
a} :: DeleteTheme)

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

-- | An ID for the theme that you want to delete.
deleteTheme_themeId :: Lens.Lens' DeleteTheme Prelude.Text
deleteTheme_themeId :: (Text -> f Text) -> DeleteTheme -> f DeleteTheme
deleteTheme_themeId = (DeleteTheme -> Text)
-> (DeleteTheme -> Text -> DeleteTheme)
-> Lens DeleteTheme DeleteTheme Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTheme' {Text
themeId :: Text
$sel:themeId:DeleteTheme' :: DeleteTheme -> Text
themeId} -> Text
themeId) (\s :: DeleteTheme
s@DeleteTheme' {} Text
a -> DeleteTheme
s {$sel:themeId:DeleteTheme' :: Text
themeId = Text
a} :: DeleteTheme)

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

instance Prelude.NFData DeleteTheme

instance Core.ToHeaders DeleteTheme where
  toHeaders :: DeleteTheme -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteTheme -> 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 DeleteTheme where
  toPath :: DeleteTheme -> ByteString
toPath DeleteTheme' {Maybe Natural
Text
themeId :: Text
awsAccountId :: Text
versionNumber :: Maybe Natural
$sel:themeId:DeleteTheme' :: DeleteTheme -> Text
$sel:awsAccountId:DeleteTheme' :: DeleteTheme -> Text
$sel:versionNumber:DeleteTheme' :: DeleteTheme -> Maybe Natural
..} =
    [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 DeleteTheme where
  toQuery :: DeleteTheme -> QueryString
toQuery DeleteTheme' {Maybe Natural
Text
themeId :: Text
awsAccountId :: Text
versionNumber :: Maybe Natural
$sel:themeId:DeleteTheme' :: DeleteTheme -> Text
$sel:awsAccountId:DeleteTheme' :: DeleteTheme -> Text
$sel:versionNumber:DeleteTheme' :: DeleteTheme -> Maybe Natural
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"version-number" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
versionNumber]

-- | /See:/ 'newDeleteThemeResponse' smart constructor.
data DeleteThemeResponse = DeleteThemeResponse'
  { -- | The Amazon Web Services request ID for this operation.
    DeleteThemeResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | An ID for the theme.
    DeleteThemeResponse -> Maybe Text
themeId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the resource.
    DeleteThemeResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The HTTP status of the request.
    DeleteThemeResponse -> Int
status :: Prelude.Int
  }
  deriving (DeleteThemeResponse -> DeleteThemeResponse -> Bool
(DeleteThemeResponse -> DeleteThemeResponse -> Bool)
-> (DeleteThemeResponse -> DeleteThemeResponse -> Bool)
-> Eq DeleteThemeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteThemeResponse -> DeleteThemeResponse -> Bool
$c/= :: DeleteThemeResponse -> DeleteThemeResponse -> Bool
== :: DeleteThemeResponse -> DeleteThemeResponse -> Bool
$c== :: DeleteThemeResponse -> DeleteThemeResponse -> Bool
Prelude.Eq, ReadPrec [DeleteThemeResponse]
ReadPrec DeleteThemeResponse
Int -> ReadS DeleteThemeResponse
ReadS [DeleteThemeResponse]
(Int -> ReadS DeleteThemeResponse)
-> ReadS [DeleteThemeResponse]
-> ReadPrec DeleteThemeResponse
-> ReadPrec [DeleteThemeResponse]
-> Read DeleteThemeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteThemeResponse]
$creadListPrec :: ReadPrec [DeleteThemeResponse]
readPrec :: ReadPrec DeleteThemeResponse
$creadPrec :: ReadPrec DeleteThemeResponse
readList :: ReadS [DeleteThemeResponse]
$creadList :: ReadS [DeleteThemeResponse]
readsPrec :: Int -> ReadS DeleteThemeResponse
$creadsPrec :: Int -> ReadS DeleteThemeResponse
Prelude.Read, Int -> DeleteThemeResponse -> ShowS
[DeleteThemeResponse] -> ShowS
DeleteThemeResponse -> String
(Int -> DeleteThemeResponse -> ShowS)
-> (DeleteThemeResponse -> String)
-> ([DeleteThemeResponse] -> ShowS)
-> Show DeleteThemeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteThemeResponse] -> ShowS
$cshowList :: [DeleteThemeResponse] -> ShowS
show :: DeleteThemeResponse -> String
$cshow :: DeleteThemeResponse -> String
showsPrec :: Int -> DeleteThemeResponse -> ShowS
$cshowsPrec :: Int -> DeleteThemeResponse -> ShowS
Prelude.Show, (forall x. DeleteThemeResponse -> Rep DeleteThemeResponse x)
-> (forall x. Rep DeleteThemeResponse x -> DeleteThemeResponse)
-> Generic DeleteThemeResponse
forall x. Rep DeleteThemeResponse x -> DeleteThemeResponse
forall x. DeleteThemeResponse -> Rep DeleteThemeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteThemeResponse x -> DeleteThemeResponse
$cfrom :: forall x. DeleteThemeResponse -> Rep DeleteThemeResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteThemeResponse' 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', 'deleteThemeResponse_requestId' - The Amazon Web Services request ID for this operation.
--
-- 'themeId', 'deleteThemeResponse_themeId' - An ID for the theme.
--
-- 'arn', 'deleteThemeResponse_arn' - The Amazon Resource Name (ARN) of the resource.
--
-- 'status', 'deleteThemeResponse_status' - The HTTP status of the request.
newDeleteThemeResponse ::
  -- | 'status'
  Prelude.Int ->
  DeleteThemeResponse
newDeleteThemeResponse :: Int -> DeleteThemeResponse
newDeleteThemeResponse Int
pStatus_ =
  DeleteThemeResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DeleteThemeResponse
DeleteThemeResponse'
    { $sel:requestId:DeleteThemeResponse' :: Maybe Text
requestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:themeId:DeleteThemeResponse' :: Maybe Text
themeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DeleteThemeResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DeleteThemeResponse' :: Int
status = Int
pStatus_
    }

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

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

-- | The Amazon Resource Name (ARN) of the resource.
deleteThemeResponse_arn :: Lens.Lens' DeleteThemeResponse (Prelude.Maybe Prelude.Text)
deleteThemeResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DeleteThemeResponse -> f DeleteThemeResponse
deleteThemeResponse_arn = (DeleteThemeResponse -> Maybe Text)
-> (DeleteThemeResponse -> Maybe Text -> DeleteThemeResponse)
-> Lens
     DeleteThemeResponse DeleteThemeResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteThemeResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DeleteThemeResponse' :: DeleteThemeResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DeleteThemeResponse
s@DeleteThemeResponse' {} Maybe Text
a -> DeleteThemeResponse
s {$sel:arn:DeleteThemeResponse' :: Maybe Text
arn = Maybe Text
a} :: DeleteThemeResponse)

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

instance Prelude.NFData DeleteThemeResponse