{-# 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.CostExplorer.DeleteCostCategoryDefinition
-- 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 Cost Category. Expenses from this month going forward will no
-- longer be categorized with this Cost Category.
module Amazonka.CostExplorer.DeleteCostCategoryDefinition
  ( -- * Creating a Request
    DeleteCostCategoryDefinition (..),
    newDeleteCostCategoryDefinition,

    -- * Request Lenses
    deleteCostCategoryDefinition_costCategoryArn,

    -- * Destructuring the Response
    DeleteCostCategoryDefinitionResponse (..),
    newDeleteCostCategoryDefinitionResponse,

    -- * Response Lenses
    deleteCostCategoryDefinitionResponse_costCategoryArn,
    deleteCostCategoryDefinitionResponse_effectiveEnd,
    deleteCostCategoryDefinitionResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDeleteCostCategoryDefinition' smart constructor.
data DeleteCostCategoryDefinition = DeleteCostCategoryDefinition'
  { -- | The unique identifier for your Cost Category.
    DeleteCostCategoryDefinition -> Text
costCategoryArn :: Prelude.Text
  }
  deriving (DeleteCostCategoryDefinition
-> DeleteCostCategoryDefinition -> Bool
(DeleteCostCategoryDefinition
 -> DeleteCostCategoryDefinition -> Bool)
-> (DeleteCostCategoryDefinition
    -> DeleteCostCategoryDefinition -> Bool)
-> Eq DeleteCostCategoryDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteCostCategoryDefinition
-> DeleteCostCategoryDefinition -> Bool
$c/= :: DeleteCostCategoryDefinition
-> DeleteCostCategoryDefinition -> Bool
== :: DeleteCostCategoryDefinition
-> DeleteCostCategoryDefinition -> Bool
$c== :: DeleteCostCategoryDefinition
-> DeleteCostCategoryDefinition -> Bool
Prelude.Eq, ReadPrec [DeleteCostCategoryDefinition]
ReadPrec DeleteCostCategoryDefinition
Int -> ReadS DeleteCostCategoryDefinition
ReadS [DeleteCostCategoryDefinition]
(Int -> ReadS DeleteCostCategoryDefinition)
-> ReadS [DeleteCostCategoryDefinition]
-> ReadPrec DeleteCostCategoryDefinition
-> ReadPrec [DeleteCostCategoryDefinition]
-> Read DeleteCostCategoryDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteCostCategoryDefinition]
$creadListPrec :: ReadPrec [DeleteCostCategoryDefinition]
readPrec :: ReadPrec DeleteCostCategoryDefinition
$creadPrec :: ReadPrec DeleteCostCategoryDefinition
readList :: ReadS [DeleteCostCategoryDefinition]
$creadList :: ReadS [DeleteCostCategoryDefinition]
readsPrec :: Int -> ReadS DeleteCostCategoryDefinition
$creadsPrec :: Int -> ReadS DeleteCostCategoryDefinition
Prelude.Read, Int -> DeleteCostCategoryDefinition -> ShowS
[DeleteCostCategoryDefinition] -> ShowS
DeleteCostCategoryDefinition -> String
(Int -> DeleteCostCategoryDefinition -> ShowS)
-> (DeleteCostCategoryDefinition -> String)
-> ([DeleteCostCategoryDefinition] -> ShowS)
-> Show DeleteCostCategoryDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteCostCategoryDefinition] -> ShowS
$cshowList :: [DeleteCostCategoryDefinition] -> ShowS
show :: DeleteCostCategoryDefinition -> String
$cshow :: DeleteCostCategoryDefinition -> String
showsPrec :: Int -> DeleteCostCategoryDefinition -> ShowS
$cshowsPrec :: Int -> DeleteCostCategoryDefinition -> ShowS
Prelude.Show, (forall x.
 DeleteCostCategoryDefinition -> Rep DeleteCostCategoryDefinition x)
-> (forall x.
    Rep DeleteCostCategoryDefinition x -> DeleteCostCategoryDefinition)
-> Generic DeleteCostCategoryDefinition
forall x.
Rep DeleteCostCategoryDefinition x -> DeleteCostCategoryDefinition
forall x.
DeleteCostCategoryDefinition -> Rep DeleteCostCategoryDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteCostCategoryDefinition x -> DeleteCostCategoryDefinition
$cfrom :: forall x.
DeleteCostCategoryDefinition -> Rep DeleteCostCategoryDefinition x
Prelude.Generic)

-- |
-- Create a value of 'DeleteCostCategoryDefinition' 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:
--
-- 'costCategoryArn', 'deleteCostCategoryDefinition_costCategoryArn' - The unique identifier for your Cost Category.
newDeleteCostCategoryDefinition ::
  -- | 'costCategoryArn'
  Prelude.Text ->
  DeleteCostCategoryDefinition
newDeleteCostCategoryDefinition :: Text -> DeleteCostCategoryDefinition
newDeleteCostCategoryDefinition Text
pCostCategoryArn_ =
  DeleteCostCategoryDefinition' :: Text -> DeleteCostCategoryDefinition
DeleteCostCategoryDefinition'
    { $sel:costCategoryArn:DeleteCostCategoryDefinition' :: Text
costCategoryArn =
        Text
pCostCategoryArn_
    }

-- | The unique identifier for your Cost Category.
deleteCostCategoryDefinition_costCategoryArn :: Lens.Lens' DeleteCostCategoryDefinition Prelude.Text
deleteCostCategoryDefinition_costCategoryArn :: (Text -> f Text)
-> DeleteCostCategoryDefinition -> f DeleteCostCategoryDefinition
deleteCostCategoryDefinition_costCategoryArn = (DeleteCostCategoryDefinition -> Text)
-> (DeleteCostCategoryDefinition
    -> Text -> DeleteCostCategoryDefinition)
-> Lens
     DeleteCostCategoryDefinition DeleteCostCategoryDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCostCategoryDefinition' {Text
costCategoryArn :: Text
$sel:costCategoryArn:DeleteCostCategoryDefinition' :: DeleteCostCategoryDefinition -> Text
costCategoryArn} -> Text
costCategoryArn) (\s :: DeleteCostCategoryDefinition
s@DeleteCostCategoryDefinition' {} Text
a -> DeleteCostCategoryDefinition
s {$sel:costCategoryArn:DeleteCostCategoryDefinition' :: Text
costCategoryArn = Text
a} :: DeleteCostCategoryDefinition)

instance Core.AWSRequest DeleteCostCategoryDefinition where
  type
    AWSResponse DeleteCostCategoryDefinition =
      DeleteCostCategoryDefinitionResponse
  request :: DeleteCostCategoryDefinition
-> Request DeleteCostCategoryDefinition
request = Service
-> DeleteCostCategoryDefinition
-> Request DeleteCostCategoryDefinition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteCostCategoryDefinition
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteCostCategoryDefinition)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DeleteCostCategoryDefinition))
-> Logger
-> Service
-> Proxy DeleteCostCategoryDefinition
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteCostCategoryDefinition)))
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 -> Int -> DeleteCostCategoryDefinitionResponse
DeleteCostCategoryDefinitionResponse'
            (Maybe Text
 -> Maybe Text -> Int -> DeleteCostCategoryDefinitionResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> DeleteCostCategoryDefinitionResponse)
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
"CostCategoryArn")
            Either
  String (Maybe Text -> Int -> DeleteCostCategoryDefinitionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DeleteCostCategoryDefinitionResponse)
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
"EffectiveEnd")
            Either String (Int -> DeleteCostCategoryDefinitionResponse)
-> Either String Int
-> Either String DeleteCostCategoryDefinitionResponse
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
    DeleteCostCategoryDefinition

instance Prelude.NFData DeleteCostCategoryDefinition

instance Core.ToHeaders DeleteCostCategoryDefinition where
  toHeaders :: DeleteCostCategoryDefinition -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteCostCategoryDefinition -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSInsightsIndexService.DeleteCostCategoryDefinition" ::
                          Prelude.ByteString
                      ),
            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.ToJSON DeleteCostCategoryDefinition where
  toJSON :: DeleteCostCategoryDefinition -> Value
toJSON DeleteCostCategoryDefinition' {Text
costCategoryArn :: Text
$sel:costCategoryArn:DeleteCostCategoryDefinition' :: DeleteCostCategoryDefinition -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"CostCategoryArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
costCategoryArn)
          ]
      )

instance Core.ToPath DeleteCostCategoryDefinition where
  toPath :: DeleteCostCategoryDefinition -> ByteString
toPath = ByteString -> DeleteCostCategoryDefinition -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newDeleteCostCategoryDefinitionResponse' smart constructor.
data DeleteCostCategoryDefinitionResponse = DeleteCostCategoryDefinitionResponse'
  { -- | The unique identifier for your Cost Category.
    DeleteCostCategoryDefinitionResponse -> Maybe Text
costCategoryArn :: Prelude.Maybe Prelude.Text,
    -- | The effective end date of the Cost Category as a result of deleting it.
    -- No costs after this date will be categorized by the deleted Cost
    -- Category.
    DeleteCostCategoryDefinitionResponse -> Maybe Text
effectiveEnd :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DeleteCostCategoryDefinitionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteCostCategoryDefinitionResponse
-> DeleteCostCategoryDefinitionResponse -> Bool
(DeleteCostCategoryDefinitionResponse
 -> DeleteCostCategoryDefinitionResponse -> Bool)
-> (DeleteCostCategoryDefinitionResponse
    -> DeleteCostCategoryDefinitionResponse -> Bool)
-> Eq DeleteCostCategoryDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteCostCategoryDefinitionResponse
-> DeleteCostCategoryDefinitionResponse -> Bool
$c/= :: DeleteCostCategoryDefinitionResponse
-> DeleteCostCategoryDefinitionResponse -> Bool
== :: DeleteCostCategoryDefinitionResponse
-> DeleteCostCategoryDefinitionResponse -> Bool
$c== :: DeleteCostCategoryDefinitionResponse
-> DeleteCostCategoryDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [DeleteCostCategoryDefinitionResponse]
ReadPrec DeleteCostCategoryDefinitionResponse
Int -> ReadS DeleteCostCategoryDefinitionResponse
ReadS [DeleteCostCategoryDefinitionResponse]
(Int -> ReadS DeleteCostCategoryDefinitionResponse)
-> ReadS [DeleteCostCategoryDefinitionResponse]
-> ReadPrec DeleteCostCategoryDefinitionResponse
-> ReadPrec [DeleteCostCategoryDefinitionResponse]
-> Read DeleteCostCategoryDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteCostCategoryDefinitionResponse]
$creadListPrec :: ReadPrec [DeleteCostCategoryDefinitionResponse]
readPrec :: ReadPrec DeleteCostCategoryDefinitionResponse
$creadPrec :: ReadPrec DeleteCostCategoryDefinitionResponse
readList :: ReadS [DeleteCostCategoryDefinitionResponse]
$creadList :: ReadS [DeleteCostCategoryDefinitionResponse]
readsPrec :: Int -> ReadS DeleteCostCategoryDefinitionResponse
$creadsPrec :: Int -> ReadS DeleteCostCategoryDefinitionResponse
Prelude.Read, Int -> DeleteCostCategoryDefinitionResponse -> ShowS
[DeleteCostCategoryDefinitionResponse] -> ShowS
DeleteCostCategoryDefinitionResponse -> String
(Int -> DeleteCostCategoryDefinitionResponse -> ShowS)
-> (DeleteCostCategoryDefinitionResponse -> String)
-> ([DeleteCostCategoryDefinitionResponse] -> ShowS)
-> Show DeleteCostCategoryDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteCostCategoryDefinitionResponse] -> ShowS
$cshowList :: [DeleteCostCategoryDefinitionResponse] -> ShowS
show :: DeleteCostCategoryDefinitionResponse -> String
$cshow :: DeleteCostCategoryDefinitionResponse -> String
showsPrec :: Int -> DeleteCostCategoryDefinitionResponse -> ShowS
$cshowsPrec :: Int -> DeleteCostCategoryDefinitionResponse -> ShowS
Prelude.Show, (forall x.
 DeleteCostCategoryDefinitionResponse
 -> Rep DeleteCostCategoryDefinitionResponse x)
-> (forall x.
    Rep DeleteCostCategoryDefinitionResponse x
    -> DeleteCostCategoryDefinitionResponse)
-> Generic DeleteCostCategoryDefinitionResponse
forall x.
Rep DeleteCostCategoryDefinitionResponse x
-> DeleteCostCategoryDefinitionResponse
forall x.
DeleteCostCategoryDefinitionResponse
-> Rep DeleteCostCategoryDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteCostCategoryDefinitionResponse x
-> DeleteCostCategoryDefinitionResponse
$cfrom :: forall x.
DeleteCostCategoryDefinitionResponse
-> Rep DeleteCostCategoryDefinitionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteCostCategoryDefinitionResponse' 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:
--
-- 'costCategoryArn', 'deleteCostCategoryDefinitionResponse_costCategoryArn' - The unique identifier for your Cost Category.
--
-- 'effectiveEnd', 'deleteCostCategoryDefinitionResponse_effectiveEnd' - The effective end date of the Cost Category as a result of deleting it.
-- No costs after this date will be categorized by the deleted Cost
-- Category.
--
-- 'httpStatus', 'deleteCostCategoryDefinitionResponse_httpStatus' - The response's http status code.
newDeleteCostCategoryDefinitionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteCostCategoryDefinitionResponse
newDeleteCostCategoryDefinitionResponse :: Int -> DeleteCostCategoryDefinitionResponse
newDeleteCostCategoryDefinitionResponse Int
pHttpStatus_ =
  DeleteCostCategoryDefinitionResponse' :: Maybe Text
-> Maybe Text -> Int -> DeleteCostCategoryDefinitionResponse
DeleteCostCategoryDefinitionResponse'
    { $sel:costCategoryArn:DeleteCostCategoryDefinitionResponse' :: Maybe Text
costCategoryArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:effectiveEnd:DeleteCostCategoryDefinitionResponse' :: Maybe Text
effectiveEnd = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DeleteCostCategoryDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The unique identifier for your Cost Category.
deleteCostCategoryDefinitionResponse_costCategoryArn :: Lens.Lens' DeleteCostCategoryDefinitionResponse (Prelude.Maybe Prelude.Text)
deleteCostCategoryDefinitionResponse_costCategoryArn :: (Maybe Text -> f (Maybe Text))
-> DeleteCostCategoryDefinitionResponse
-> f DeleteCostCategoryDefinitionResponse
deleteCostCategoryDefinitionResponse_costCategoryArn = (DeleteCostCategoryDefinitionResponse -> Maybe Text)
-> (DeleteCostCategoryDefinitionResponse
    -> Maybe Text -> DeleteCostCategoryDefinitionResponse)
-> Lens
     DeleteCostCategoryDefinitionResponse
     DeleteCostCategoryDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCostCategoryDefinitionResponse' {Maybe Text
costCategoryArn :: Maybe Text
$sel:costCategoryArn:DeleteCostCategoryDefinitionResponse' :: DeleteCostCategoryDefinitionResponse -> Maybe Text
costCategoryArn} -> Maybe Text
costCategoryArn) (\s :: DeleteCostCategoryDefinitionResponse
s@DeleteCostCategoryDefinitionResponse' {} Maybe Text
a -> DeleteCostCategoryDefinitionResponse
s {$sel:costCategoryArn:DeleteCostCategoryDefinitionResponse' :: Maybe Text
costCategoryArn = Maybe Text
a} :: DeleteCostCategoryDefinitionResponse)

-- | The effective end date of the Cost Category as a result of deleting it.
-- No costs after this date will be categorized by the deleted Cost
-- Category.
deleteCostCategoryDefinitionResponse_effectiveEnd :: Lens.Lens' DeleteCostCategoryDefinitionResponse (Prelude.Maybe Prelude.Text)
deleteCostCategoryDefinitionResponse_effectiveEnd :: (Maybe Text -> f (Maybe Text))
-> DeleteCostCategoryDefinitionResponse
-> f DeleteCostCategoryDefinitionResponse
deleteCostCategoryDefinitionResponse_effectiveEnd = (DeleteCostCategoryDefinitionResponse -> Maybe Text)
-> (DeleteCostCategoryDefinitionResponse
    -> Maybe Text -> DeleteCostCategoryDefinitionResponse)
-> Lens
     DeleteCostCategoryDefinitionResponse
     DeleteCostCategoryDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCostCategoryDefinitionResponse' {Maybe Text
effectiveEnd :: Maybe Text
$sel:effectiveEnd:DeleteCostCategoryDefinitionResponse' :: DeleteCostCategoryDefinitionResponse -> Maybe Text
effectiveEnd} -> Maybe Text
effectiveEnd) (\s :: DeleteCostCategoryDefinitionResponse
s@DeleteCostCategoryDefinitionResponse' {} Maybe Text
a -> DeleteCostCategoryDefinitionResponse
s {$sel:effectiveEnd:DeleteCostCategoryDefinitionResponse' :: Maybe Text
effectiveEnd = Maybe Text
a} :: DeleteCostCategoryDefinitionResponse)

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

instance
  Prelude.NFData
    DeleteCostCategoryDefinitionResponse