{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.CostCategory
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CostExplorer.Types.CostCategory where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.CostExplorer.Types.CostCategoryProcessingStatus
import Amazonka.CostExplorer.Types.CostCategoryRule
import Amazonka.CostExplorer.Types.CostCategoryRuleVersion
import Amazonka.CostExplorer.Types.CostCategorySplitChargeRule
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The structure of Cost Categories. This includes detailed metadata and
-- the set of rules for the @CostCategory@ object.
--
-- /See:/ 'newCostCategory' smart constructor.
data CostCategory = CostCategory'
  { CostCategory -> Maybe Text
defaultValue :: Prelude.Maybe Prelude.Text,
    -- | The effective end date of your Cost Category.
    CostCategory -> Maybe Text
effectiveEnd :: Prelude.Maybe Prelude.Text,
    -- | The list of processing statuses for Cost Management products for a
    -- specific cost category.
    CostCategory -> Maybe [CostCategoryProcessingStatus]
processingStatus :: Prelude.Maybe [CostCategoryProcessingStatus],
    -- | The split charge rules that are used to allocate your charges between
    -- your Cost Category values.
    CostCategory -> Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules :: Prelude.Maybe (Prelude.NonEmpty CostCategorySplitChargeRule),
    -- | The unique identifier for your Cost Category.
    CostCategory -> Text
costCategoryArn :: Prelude.Text,
    -- | The effective start date of your Cost Category.
    CostCategory -> Text
effectiveStart :: Prelude.Text,
    CostCategory -> Text
name :: Prelude.Text,
    CostCategory -> CostCategoryRuleVersion
ruleVersion :: CostCategoryRuleVersion,
    -- | The rules are processed in order. If there are multiple rules that match
    -- the line item, then the first rule to match is used to determine that
    -- Cost Category value.
    CostCategory -> NonEmpty CostCategoryRule
rules :: Prelude.NonEmpty CostCategoryRule
  }
  deriving (CostCategory -> CostCategory -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CostCategory -> CostCategory -> Bool
$c/= :: CostCategory -> CostCategory -> Bool
== :: CostCategory -> CostCategory -> Bool
$c== :: CostCategory -> CostCategory -> Bool
Prelude.Eq, ReadPrec [CostCategory]
ReadPrec CostCategory
Int -> ReadS CostCategory
ReadS [CostCategory]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CostCategory]
$creadListPrec :: ReadPrec [CostCategory]
readPrec :: ReadPrec CostCategory
$creadPrec :: ReadPrec CostCategory
readList :: ReadS [CostCategory]
$creadList :: ReadS [CostCategory]
readsPrec :: Int -> ReadS CostCategory
$creadsPrec :: Int -> ReadS CostCategory
Prelude.Read, Int -> CostCategory -> ShowS
[CostCategory] -> ShowS
CostCategory -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CostCategory] -> ShowS
$cshowList :: [CostCategory] -> ShowS
show :: CostCategory -> String
$cshow :: CostCategory -> String
showsPrec :: Int -> CostCategory -> ShowS
$cshowsPrec :: Int -> CostCategory -> ShowS
Prelude.Show, forall x. Rep CostCategory x -> CostCategory
forall x. CostCategory -> Rep CostCategory x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CostCategory x -> CostCategory
$cfrom :: forall x. CostCategory -> Rep CostCategory x
Prelude.Generic)

-- |
-- Create a value of 'CostCategory' 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:
--
-- 'defaultValue', 'costCategory_defaultValue' - Undocumented member.
--
-- 'effectiveEnd', 'costCategory_effectiveEnd' - The effective end date of your Cost Category.
--
-- 'processingStatus', 'costCategory_processingStatus' - The list of processing statuses for Cost Management products for a
-- specific cost category.
--
-- 'splitChargeRules', 'costCategory_splitChargeRules' - The split charge rules that are used to allocate your charges between
-- your Cost Category values.
--
-- 'costCategoryArn', 'costCategory_costCategoryArn' - The unique identifier for your Cost Category.
--
-- 'effectiveStart', 'costCategory_effectiveStart' - The effective start date of your Cost Category.
--
-- 'name', 'costCategory_name' - Undocumented member.
--
-- 'ruleVersion', 'costCategory_ruleVersion' - Undocumented member.
--
-- 'rules', 'costCategory_rules' - The rules are processed in order. If there are multiple rules that match
-- the line item, then the first rule to match is used to determine that
-- Cost Category value.
newCostCategory ::
  -- | 'costCategoryArn'
  Prelude.Text ->
  -- | 'effectiveStart'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  -- | 'ruleVersion'
  CostCategoryRuleVersion ->
  -- | 'rules'
  Prelude.NonEmpty CostCategoryRule ->
  CostCategory
newCostCategory :: Text
-> Text
-> Text
-> CostCategoryRuleVersion
-> NonEmpty CostCategoryRule
-> CostCategory
newCostCategory
  Text
pCostCategoryArn_
  Text
pEffectiveStart_
  Text
pName_
  CostCategoryRuleVersion
pRuleVersion_
  NonEmpty CostCategoryRule
pRules_ =
    CostCategory'
      { $sel:defaultValue:CostCategory' :: Maybe Text
defaultValue = forall a. Maybe a
Prelude.Nothing,
        $sel:effectiveEnd:CostCategory' :: Maybe Text
effectiveEnd = forall a. Maybe a
Prelude.Nothing,
        $sel:processingStatus:CostCategory' :: Maybe [CostCategoryProcessingStatus]
processingStatus = forall a. Maybe a
Prelude.Nothing,
        $sel:splitChargeRules:CostCategory' :: Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules = forall a. Maybe a
Prelude.Nothing,
        $sel:costCategoryArn:CostCategory' :: Text
costCategoryArn = Text
pCostCategoryArn_,
        $sel:effectiveStart:CostCategory' :: Text
effectiveStart = Text
pEffectiveStart_,
        $sel:name:CostCategory' :: Text
name = Text
pName_,
        $sel:ruleVersion:CostCategory' :: CostCategoryRuleVersion
ruleVersion = CostCategoryRuleVersion
pRuleVersion_,
        $sel:rules:CostCategory' :: NonEmpty CostCategoryRule
rules = forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced forall t b. AReview t b -> b -> t
Lens.# NonEmpty CostCategoryRule
pRules_
      }

-- | Undocumented member.
costCategory_defaultValue :: Lens.Lens' CostCategory (Prelude.Maybe Prelude.Text)
costCategory_defaultValue :: Lens' CostCategory (Maybe Text)
costCategory_defaultValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Maybe Text
defaultValue :: Maybe Text
$sel:defaultValue:CostCategory' :: CostCategory -> Maybe Text
defaultValue} -> Maybe Text
defaultValue) (\s :: CostCategory
s@CostCategory' {} Maybe Text
a -> CostCategory
s {$sel:defaultValue:CostCategory' :: Maybe Text
defaultValue = Maybe Text
a} :: CostCategory)

-- | The effective end date of your Cost Category.
costCategory_effectiveEnd :: Lens.Lens' CostCategory (Prelude.Maybe Prelude.Text)
costCategory_effectiveEnd :: Lens' CostCategory (Maybe Text)
costCategory_effectiveEnd = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Maybe Text
effectiveEnd :: Maybe Text
$sel:effectiveEnd:CostCategory' :: CostCategory -> Maybe Text
effectiveEnd} -> Maybe Text
effectiveEnd) (\s :: CostCategory
s@CostCategory' {} Maybe Text
a -> CostCategory
s {$sel:effectiveEnd:CostCategory' :: Maybe Text
effectiveEnd = Maybe Text
a} :: CostCategory)

-- | The list of processing statuses for Cost Management products for a
-- specific cost category.
costCategory_processingStatus :: Lens.Lens' CostCategory (Prelude.Maybe [CostCategoryProcessingStatus])
costCategory_processingStatus :: Lens' CostCategory (Maybe [CostCategoryProcessingStatus])
costCategory_processingStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Maybe [CostCategoryProcessingStatus]
processingStatus :: Maybe [CostCategoryProcessingStatus]
$sel:processingStatus:CostCategory' :: CostCategory -> Maybe [CostCategoryProcessingStatus]
processingStatus} -> Maybe [CostCategoryProcessingStatus]
processingStatus) (\s :: CostCategory
s@CostCategory' {} Maybe [CostCategoryProcessingStatus]
a -> CostCategory
s {$sel:processingStatus:CostCategory' :: Maybe [CostCategoryProcessingStatus]
processingStatus = Maybe [CostCategoryProcessingStatus]
a} :: CostCategory) 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 split charge rules that are used to allocate your charges between
-- your Cost Category values.
costCategory_splitChargeRules :: Lens.Lens' CostCategory (Prelude.Maybe (Prelude.NonEmpty CostCategorySplitChargeRule))
costCategory_splitChargeRules :: Lens' CostCategory (Maybe (NonEmpty CostCategorySplitChargeRule))
costCategory_splitChargeRules = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules :: Maybe (NonEmpty CostCategorySplitChargeRule)
$sel:splitChargeRules:CostCategory' :: CostCategory -> Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules} -> Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules) (\s :: CostCategory
s@CostCategory' {} Maybe (NonEmpty CostCategorySplitChargeRule)
a -> CostCategory
s {$sel:splitChargeRules:CostCategory' :: Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules = Maybe (NonEmpty CostCategorySplitChargeRule)
a} :: CostCategory) 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 unique identifier for your Cost Category.
costCategory_costCategoryArn :: Lens.Lens' CostCategory Prelude.Text
costCategory_costCategoryArn :: Lens' CostCategory Text
costCategory_costCategoryArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Text
costCategoryArn :: Text
$sel:costCategoryArn:CostCategory' :: CostCategory -> Text
costCategoryArn} -> Text
costCategoryArn) (\s :: CostCategory
s@CostCategory' {} Text
a -> CostCategory
s {$sel:costCategoryArn:CostCategory' :: Text
costCategoryArn = Text
a} :: CostCategory)

-- | The effective start date of your Cost Category.
costCategory_effectiveStart :: Lens.Lens' CostCategory Prelude.Text
costCategory_effectiveStart :: Lens' CostCategory Text
costCategory_effectiveStart = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Text
effectiveStart :: Text
$sel:effectiveStart:CostCategory' :: CostCategory -> Text
effectiveStart} -> Text
effectiveStart) (\s :: CostCategory
s@CostCategory' {} Text
a -> CostCategory
s {$sel:effectiveStart:CostCategory' :: Text
effectiveStart = Text
a} :: CostCategory)

-- | Undocumented member.
costCategory_name :: Lens.Lens' CostCategory Prelude.Text
costCategory_name :: Lens' CostCategory Text
costCategory_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {Text
name :: Text
$sel:name:CostCategory' :: CostCategory -> Text
name} -> Text
name) (\s :: CostCategory
s@CostCategory' {} Text
a -> CostCategory
s {$sel:name:CostCategory' :: Text
name = Text
a} :: CostCategory)

-- | Undocumented member.
costCategory_ruleVersion :: Lens.Lens' CostCategory CostCategoryRuleVersion
costCategory_ruleVersion :: Lens' CostCategory CostCategoryRuleVersion
costCategory_ruleVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {CostCategoryRuleVersion
ruleVersion :: CostCategoryRuleVersion
$sel:ruleVersion:CostCategory' :: CostCategory -> CostCategoryRuleVersion
ruleVersion} -> CostCategoryRuleVersion
ruleVersion) (\s :: CostCategory
s@CostCategory' {} CostCategoryRuleVersion
a -> CostCategory
s {$sel:ruleVersion:CostCategory' :: CostCategoryRuleVersion
ruleVersion = CostCategoryRuleVersion
a} :: CostCategory)

-- | The rules are processed in order. If there are multiple rules that match
-- the line item, then the first rule to match is used to determine that
-- Cost Category value.
costCategory_rules :: Lens.Lens' CostCategory (Prelude.NonEmpty CostCategoryRule)
costCategory_rules :: Lens' CostCategory (NonEmpty CostCategoryRule)
costCategory_rules = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CostCategory' {NonEmpty CostCategoryRule
rules :: NonEmpty CostCategoryRule
$sel:rules:CostCategory' :: CostCategory -> NonEmpty CostCategoryRule
rules} -> NonEmpty CostCategoryRule
rules) (\s :: CostCategory
s@CostCategory' {} NonEmpty CostCategoryRule
a -> CostCategory
s {$sel:rules:CostCategory' :: NonEmpty CostCategoryRule
rules = NonEmpty CostCategoryRule
a} :: CostCategory) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON CostCategory where
  parseJSON :: Value -> Parser CostCategory
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"CostCategory"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe [CostCategoryProcessingStatus]
-> Maybe (NonEmpty CostCategorySplitChargeRule)
-> Text
-> Text
-> Text
-> CostCategoryRuleVersion
-> NonEmpty CostCategoryRule
-> CostCategory
CostCategory'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DefaultValue")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EffectiveEnd")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProcessingStatus"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= 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 -> Parser (Maybe a)
Data..:? Key
"SplitChargeRules")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CostCategoryArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"EffectiveStart")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RuleVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Rules")
      )

instance Prelude.Hashable CostCategory where
  hashWithSalt :: Int -> CostCategory -> Int
hashWithSalt Int
_salt CostCategory' {Maybe [CostCategoryProcessingStatus]
Maybe (NonEmpty CostCategorySplitChargeRule)
Maybe Text
NonEmpty CostCategoryRule
Text
CostCategoryRuleVersion
rules :: NonEmpty CostCategoryRule
ruleVersion :: CostCategoryRuleVersion
name :: Text
effectiveStart :: Text
costCategoryArn :: Text
splitChargeRules :: Maybe (NonEmpty CostCategorySplitChargeRule)
processingStatus :: Maybe [CostCategoryProcessingStatus]
effectiveEnd :: Maybe Text
defaultValue :: Maybe Text
$sel:rules:CostCategory' :: CostCategory -> NonEmpty CostCategoryRule
$sel:ruleVersion:CostCategory' :: CostCategory -> CostCategoryRuleVersion
$sel:name:CostCategory' :: CostCategory -> Text
$sel:effectiveStart:CostCategory' :: CostCategory -> Text
$sel:costCategoryArn:CostCategory' :: CostCategory -> Text
$sel:splitChargeRules:CostCategory' :: CostCategory -> Maybe (NonEmpty CostCategorySplitChargeRule)
$sel:processingStatus:CostCategory' :: CostCategory -> Maybe [CostCategoryProcessingStatus]
$sel:effectiveEnd:CostCategory' :: CostCategory -> Maybe Text
$sel:defaultValue:CostCategory' :: CostCategory -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
defaultValue
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
effectiveEnd
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [CostCategoryProcessingStatus]
processingStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
costCategoryArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
effectiveStart
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` CostCategoryRuleVersion
ruleVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` NonEmpty CostCategoryRule
rules

instance Prelude.NFData CostCategory where
  rnf :: CostCategory -> ()
rnf CostCategory' {Maybe [CostCategoryProcessingStatus]
Maybe (NonEmpty CostCategorySplitChargeRule)
Maybe Text
NonEmpty CostCategoryRule
Text
CostCategoryRuleVersion
rules :: NonEmpty CostCategoryRule
ruleVersion :: CostCategoryRuleVersion
name :: Text
effectiveStart :: Text
costCategoryArn :: Text
splitChargeRules :: Maybe (NonEmpty CostCategorySplitChargeRule)
processingStatus :: Maybe [CostCategoryProcessingStatus]
effectiveEnd :: Maybe Text
defaultValue :: Maybe Text
$sel:rules:CostCategory' :: CostCategory -> NonEmpty CostCategoryRule
$sel:ruleVersion:CostCategory' :: CostCategory -> CostCategoryRuleVersion
$sel:name:CostCategory' :: CostCategory -> Text
$sel:effectiveStart:CostCategory' :: CostCategory -> Text
$sel:costCategoryArn:CostCategory' :: CostCategory -> Text
$sel:splitChargeRules:CostCategory' :: CostCategory -> Maybe (NonEmpty CostCategorySplitChargeRule)
$sel:processingStatus:CostCategory' :: CostCategory -> Maybe [CostCategoryProcessingStatus]
$sel:effectiveEnd:CostCategory' :: CostCategory -> Maybe Text
$sel:defaultValue:CostCategory' :: CostCategory -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
defaultValue
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
effectiveEnd
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [CostCategoryProcessingStatus]
processingStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty CostCategorySplitChargeRule)
splitChargeRules
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
costCategoryArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
effectiveStart
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf CostCategoryRuleVersion
ruleVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf NonEmpty CostCategoryRule
rules