{-# 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.BillingConductor.Types.PricingRuleListElement
-- 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.BillingConductor.Types.PricingRuleListElement where

import Amazonka.BillingConductor.Types.PricingRuleScope
import Amazonka.BillingConductor.Types.PricingRuleType
import Amazonka.BillingConductor.Types.Tiering
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | A representation of a pricing rule.
--
-- /See:/ 'newPricingRuleListElement' smart constructor.
data PricingRuleListElement = PricingRuleListElement'
  { -- | The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
    PricingRuleListElement -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The pricing plans count that this pricing rule is associated with.
    PricingRuleListElement -> Maybe Natural
associatedPricingPlanCount :: Prelude.Maybe Prelude.Natural,
    -- | The seller of services provided by Amazon Web Services, their
    -- affiliates, or third-party providers selling services via Amazon Web
    -- Services Marketplace.
    PricingRuleListElement -> Maybe Text
billingEntity :: Prelude.Maybe Prelude.Text,
    -- | The time when the pricing rule was created.
    PricingRuleListElement -> Maybe Integer
creationTime :: Prelude.Maybe Prelude.Integer,
    -- | The pricing rule description.
    PricingRuleListElement -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The most recent time when the pricing rule was modified.
    PricingRuleListElement -> Maybe Integer
lastModifiedTime :: Prelude.Maybe Prelude.Integer,
    -- | A percentage modifier applied on the public pricing rates.
    PricingRuleListElement -> Maybe Double
modifierPercentage :: Prelude.Maybe Prelude.Double,
    -- | The name of a pricing rule.
    PricingRuleListElement -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The scope of pricing rule that indicates if it is globally applicable,
    -- or if it is service-specific.
    PricingRuleListElement -> Maybe PricingRuleScope
scope :: Prelude.Maybe PricingRuleScope,
    -- | If the @Scope@ attribute is @SERVICE@, this attribute indicates which
    -- service the @PricingRule@ is applicable for.
    PricingRuleListElement -> Maybe Text
service :: Prelude.Maybe Prelude.Text,
    -- | The set of tiering configurations for the pricing rule.
    PricingRuleListElement -> Maybe Tiering
tiering :: Prelude.Maybe Tiering,
    -- | The type of pricing rule.
    PricingRuleListElement -> Maybe PricingRuleType
type' :: Prelude.Maybe PricingRuleType
  }
  deriving (PricingRuleListElement -> PricingRuleListElement -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PricingRuleListElement -> PricingRuleListElement -> Bool
$c/= :: PricingRuleListElement -> PricingRuleListElement -> Bool
== :: PricingRuleListElement -> PricingRuleListElement -> Bool
$c== :: PricingRuleListElement -> PricingRuleListElement -> Bool
Prelude.Eq, Int -> PricingRuleListElement -> ShowS
[PricingRuleListElement] -> ShowS
PricingRuleListElement -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PricingRuleListElement] -> ShowS
$cshowList :: [PricingRuleListElement] -> ShowS
show :: PricingRuleListElement -> String
$cshow :: PricingRuleListElement -> String
showsPrec :: Int -> PricingRuleListElement -> ShowS
$cshowsPrec :: Int -> PricingRuleListElement -> ShowS
Prelude.Show, forall x. Rep PricingRuleListElement x -> PricingRuleListElement
forall x. PricingRuleListElement -> Rep PricingRuleListElement x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PricingRuleListElement x -> PricingRuleListElement
$cfrom :: forall x. PricingRuleListElement -> Rep PricingRuleListElement x
Prelude.Generic)

-- |
-- Create a value of 'PricingRuleListElement' 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:
--
-- 'arn', 'pricingRuleListElement_arn' - The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
--
-- 'associatedPricingPlanCount', 'pricingRuleListElement_associatedPricingPlanCount' - The pricing plans count that this pricing rule is associated with.
--
-- 'billingEntity', 'pricingRuleListElement_billingEntity' - The seller of services provided by Amazon Web Services, their
-- affiliates, or third-party providers selling services via Amazon Web
-- Services Marketplace.
--
-- 'creationTime', 'pricingRuleListElement_creationTime' - The time when the pricing rule was created.
--
-- 'description', 'pricingRuleListElement_description' - The pricing rule description.
--
-- 'lastModifiedTime', 'pricingRuleListElement_lastModifiedTime' - The most recent time when the pricing rule was modified.
--
-- 'modifierPercentage', 'pricingRuleListElement_modifierPercentage' - A percentage modifier applied on the public pricing rates.
--
-- 'name', 'pricingRuleListElement_name' - The name of a pricing rule.
--
-- 'scope', 'pricingRuleListElement_scope' - The scope of pricing rule that indicates if it is globally applicable,
-- or if it is service-specific.
--
-- 'service', 'pricingRuleListElement_service' - If the @Scope@ attribute is @SERVICE@, this attribute indicates which
-- service the @PricingRule@ is applicable for.
--
-- 'tiering', 'pricingRuleListElement_tiering' - The set of tiering configurations for the pricing rule.
--
-- 'type'', 'pricingRuleListElement_type' - The type of pricing rule.
newPricingRuleListElement ::
  PricingRuleListElement
newPricingRuleListElement :: PricingRuleListElement
newPricingRuleListElement =
  PricingRuleListElement'
    { $sel:arn:PricingRuleListElement' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:associatedPricingPlanCount:PricingRuleListElement' :: Maybe Natural
associatedPricingPlanCount = forall a. Maybe a
Prelude.Nothing,
      $sel:billingEntity:PricingRuleListElement' :: Maybe Text
billingEntity = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:PricingRuleListElement' :: Maybe Integer
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:description:PricingRuleListElement' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:PricingRuleListElement' :: Maybe Integer
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:modifierPercentage:PricingRuleListElement' :: Maybe Double
modifierPercentage = forall a. Maybe a
Prelude.Nothing,
      $sel:name:PricingRuleListElement' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing,
      $sel:scope:PricingRuleListElement' :: Maybe PricingRuleScope
scope = forall a. Maybe a
Prelude.Nothing,
      $sel:service:PricingRuleListElement' :: Maybe Text
service = forall a. Maybe a
Prelude.Nothing,
      $sel:tiering:PricingRuleListElement' :: Maybe Tiering
tiering = forall a. Maybe a
Prelude.Nothing,
      $sel:type':PricingRuleListElement' :: Maybe PricingRuleType
type' = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) used to uniquely identify a pricing rule.
pricingRuleListElement_arn :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Text)
pricingRuleListElement_arn :: Lens' PricingRuleListElement (Maybe Text)
pricingRuleListElement_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Text
arn :: Maybe Text
$sel:arn:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
arn} -> Maybe Text
arn) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Text
a -> PricingRuleListElement
s {$sel:arn:PricingRuleListElement' :: Maybe Text
arn = Maybe Text
a} :: PricingRuleListElement)

-- | The pricing plans count that this pricing rule is associated with.
pricingRuleListElement_associatedPricingPlanCount :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Natural)
pricingRuleListElement_associatedPricingPlanCount :: Lens' PricingRuleListElement (Maybe Natural)
pricingRuleListElement_associatedPricingPlanCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Natural
associatedPricingPlanCount :: Maybe Natural
$sel:associatedPricingPlanCount:PricingRuleListElement' :: PricingRuleListElement -> Maybe Natural
associatedPricingPlanCount} -> Maybe Natural
associatedPricingPlanCount) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Natural
a -> PricingRuleListElement
s {$sel:associatedPricingPlanCount:PricingRuleListElement' :: Maybe Natural
associatedPricingPlanCount = Maybe Natural
a} :: PricingRuleListElement)

-- | The seller of services provided by Amazon Web Services, their
-- affiliates, or third-party providers selling services via Amazon Web
-- Services Marketplace.
pricingRuleListElement_billingEntity :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Text)
pricingRuleListElement_billingEntity :: Lens' PricingRuleListElement (Maybe Text)
pricingRuleListElement_billingEntity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Text
billingEntity :: Maybe Text
$sel:billingEntity:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
billingEntity} -> Maybe Text
billingEntity) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Text
a -> PricingRuleListElement
s {$sel:billingEntity:PricingRuleListElement' :: Maybe Text
billingEntity = Maybe Text
a} :: PricingRuleListElement)

-- | The time when the pricing rule was created.
pricingRuleListElement_creationTime :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Integer)
pricingRuleListElement_creationTime :: Lens' PricingRuleListElement (Maybe Integer)
pricingRuleListElement_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Integer
creationTime :: Maybe Integer
$sel:creationTime:PricingRuleListElement' :: PricingRuleListElement -> Maybe Integer
creationTime} -> Maybe Integer
creationTime) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Integer
a -> PricingRuleListElement
s {$sel:creationTime:PricingRuleListElement' :: Maybe Integer
creationTime = Maybe Integer
a} :: PricingRuleListElement)

-- | The pricing rule description.
pricingRuleListElement_description :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Text)
pricingRuleListElement_description :: Lens' PricingRuleListElement (Maybe Text)
pricingRuleListElement_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:PricingRuleListElement' :: PricingRuleListElement -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe (Sensitive Text)
a -> PricingRuleListElement
s {$sel:description:PricingRuleListElement' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: PricingRuleListElement) 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 a. Iso' (Sensitive a) a
Data._Sensitive

-- | The most recent time when the pricing rule was modified.
pricingRuleListElement_lastModifiedTime :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Integer)
pricingRuleListElement_lastModifiedTime :: Lens' PricingRuleListElement (Maybe Integer)
pricingRuleListElement_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Integer
lastModifiedTime :: Maybe Integer
$sel:lastModifiedTime:PricingRuleListElement' :: PricingRuleListElement -> Maybe Integer
lastModifiedTime} -> Maybe Integer
lastModifiedTime) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Integer
a -> PricingRuleListElement
s {$sel:lastModifiedTime:PricingRuleListElement' :: Maybe Integer
lastModifiedTime = Maybe Integer
a} :: PricingRuleListElement)

-- | A percentage modifier applied on the public pricing rates.
pricingRuleListElement_modifierPercentage :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Double)
pricingRuleListElement_modifierPercentage :: Lens' PricingRuleListElement (Maybe Double)
pricingRuleListElement_modifierPercentage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Double
modifierPercentage :: Maybe Double
$sel:modifierPercentage:PricingRuleListElement' :: PricingRuleListElement -> Maybe Double
modifierPercentage} -> Maybe Double
modifierPercentage) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Double
a -> PricingRuleListElement
s {$sel:modifierPercentage:PricingRuleListElement' :: Maybe Double
modifierPercentage = Maybe Double
a} :: PricingRuleListElement)

-- | The name of a pricing rule.
pricingRuleListElement_name :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Text)
pricingRuleListElement_name :: Lens' PricingRuleListElement (Maybe Text)
pricingRuleListElement_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:PricingRuleListElement' :: PricingRuleListElement -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe (Sensitive Text)
a -> PricingRuleListElement
s {$sel:name:PricingRuleListElement' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: PricingRuleListElement) 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 a. Iso' (Sensitive a) a
Data._Sensitive

-- | The scope of pricing rule that indicates if it is globally applicable,
-- or if it is service-specific.
pricingRuleListElement_scope :: Lens.Lens' PricingRuleListElement (Prelude.Maybe PricingRuleScope)
pricingRuleListElement_scope :: Lens' PricingRuleListElement (Maybe PricingRuleScope)
pricingRuleListElement_scope = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe PricingRuleScope
scope :: Maybe PricingRuleScope
$sel:scope:PricingRuleListElement' :: PricingRuleListElement -> Maybe PricingRuleScope
scope} -> Maybe PricingRuleScope
scope) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe PricingRuleScope
a -> PricingRuleListElement
s {$sel:scope:PricingRuleListElement' :: Maybe PricingRuleScope
scope = Maybe PricingRuleScope
a} :: PricingRuleListElement)

-- | If the @Scope@ attribute is @SERVICE@, this attribute indicates which
-- service the @PricingRule@ is applicable for.
pricingRuleListElement_service :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Prelude.Text)
pricingRuleListElement_service :: Lens' PricingRuleListElement (Maybe Text)
pricingRuleListElement_service = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Text
service :: Maybe Text
$sel:service:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
service} -> Maybe Text
service) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Text
a -> PricingRuleListElement
s {$sel:service:PricingRuleListElement' :: Maybe Text
service = Maybe Text
a} :: PricingRuleListElement)

-- | The set of tiering configurations for the pricing rule.
pricingRuleListElement_tiering :: Lens.Lens' PricingRuleListElement (Prelude.Maybe Tiering)
pricingRuleListElement_tiering :: Lens' PricingRuleListElement (Maybe Tiering)
pricingRuleListElement_tiering = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe Tiering
tiering :: Maybe Tiering
$sel:tiering:PricingRuleListElement' :: PricingRuleListElement -> Maybe Tiering
tiering} -> Maybe Tiering
tiering) (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe Tiering
a -> PricingRuleListElement
s {$sel:tiering:PricingRuleListElement' :: Maybe Tiering
tiering = Maybe Tiering
a} :: PricingRuleListElement)

-- | The type of pricing rule.
pricingRuleListElement_type :: Lens.Lens' PricingRuleListElement (Prelude.Maybe PricingRuleType)
pricingRuleListElement_type :: Lens' PricingRuleListElement (Maybe PricingRuleType)
pricingRuleListElement_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PricingRuleListElement' {Maybe PricingRuleType
type' :: Maybe PricingRuleType
$sel:type':PricingRuleListElement' :: PricingRuleListElement -> Maybe PricingRuleType
type'} -> Maybe PricingRuleType
type') (\s :: PricingRuleListElement
s@PricingRuleListElement' {} Maybe PricingRuleType
a -> PricingRuleListElement
s {$sel:type':PricingRuleListElement' :: Maybe PricingRuleType
type' = Maybe PricingRuleType
a} :: PricingRuleListElement)

instance Data.FromJSON PricingRuleListElement where
  parseJSON :: Value -> Parser PricingRuleListElement
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"PricingRuleListElement"
      ( \Object
x ->
          Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Integer
-> Maybe (Sensitive Text)
-> Maybe Integer
-> Maybe Double
-> Maybe (Sensitive Text)
-> Maybe PricingRuleScope
-> Maybe Text
-> Maybe Tiering
-> Maybe PricingRuleType
-> PricingRuleListElement
PricingRuleListElement'
            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
"Arn")
            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
"AssociatedPricingPlanCount")
            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
"BillingEntity")
            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
"CreationTime")
            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
"Description")
            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
"LastModifiedTime")
            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
"ModifierPercentage")
            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
"Name")
            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
"Scope")
            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
"Service")
            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
"Tiering")
            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
"Type")
      )

instance Prelude.Hashable PricingRuleListElement where
  hashWithSalt :: Int -> PricingRuleListElement -> Int
hashWithSalt Int
_salt PricingRuleListElement' {Maybe Double
Maybe Integer
Maybe Natural
Maybe Text
Maybe (Sensitive Text)
Maybe PricingRuleScope
Maybe PricingRuleType
Maybe Tiering
type' :: Maybe PricingRuleType
tiering :: Maybe Tiering
service :: Maybe Text
scope :: Maybe PricingRuleScope
name :: Maybe (Sensitive Text)
modifierPercentage :: Maybe Double
lastModifiedTime :: Maybe Integer
description :: Maybe (Sensitive Text)
creationTime :: Maybe Integer
billingEntity :: Maybe Text
associatedPricingPlanCount :: Maybe Natural
arn :: Maybe Text
$sel:type':PricingRuleListElement' :: PricingRuleListElement -> Maybe PricingRuleType
$sel:tiering:PricingRuleListElement' :: PricingRuleListElement -> Maybe Tiering
$sel:service:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
$sel:scope:PricingRuleListElement' :: PricingRuleListElement -> Maybe PricingRuleScope
$sel:name:PricingRuleListElement' :: PricingRuleListElement -> Maybe (Sensitive Text)
$sel:modifierPercentage:PricingRuleListElement' :: PricingRuleListElement -> Maybe Double
$sel:lastModifiedTime:PricingRuleListElement' :: PricingRuleListElement -> Maybe Integer
$sel:description:PricingRuleListElement' :: PricingRuleListElement -> Maybe (Sensitive Text)
$sel:creationTime:PricingRuleListElement' :: PricingRuleListElement -> Maybe Integer
$sel:billingEntity:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
$sel:associatedPricingPlanCount:PricingRuleListElement' :: PricingRuleListElement -> Maybe Natural
$sel:arn:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
associatedPricingPlanCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
billingEntity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
lastModifiedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
modifierPercentage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PricingRuleScope
scope
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
service
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Tiering
tiering
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PricingRuleType
type'

instance Prelude.NFData PricingRuleListElement where
  rnf :: PricingRuleListElement -> ()
rnf PricingRuleListElement' {Maybe Double
Maybe Integer
Maybe Natural
Maybe Text
Maybe (Sensitive Text)
Maybe PricingRuleScope
Maybe PricingRuleType
Maybe Tiering
type' :: Maybe PricingRuleType
tiering :: Maybe Tiering
service :: Maybe Text
scope :: Maybe PricingRuleScope
name :: Maybe (Sensitive Text)
modifierPercentage :: Maybe Double
lastModifiedTime :: Maybe Integer
description :: Maybe (Sensitive Text)
creationTime :: Maybe Integer
billingEntity :: Maybe Text
associatedPricingPlanCount :: Maybe Natural
arn :: Maybe Text
$sel:type':PricingRuleListElement' :: PricingRuleListElement -> Maybe PricingRuleType
$sel:tiering:PricingRuleListElement' :: PricingRuleListElement -> Maybe Tiering
$sel:service:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
$sel:scope:PricingRuleListElement' :: PricingRuleListElement -> Maybe PricingRuleScope
$sel:name:PricingRuleListElement' :: PricingRuleListElement -> Maybe (Sensitive Text)
$sel:modifierPercentage:PricingRuleListElement' :: PricingRuleListElement -> Maybe Double
$sel:lastModifiedTime:PricingRuleListElement' :: PricingRuleListElement -> Maybe Integer
$sel:description:PricingRuleListElement' :: PricingRuleListElement -> Maybe (Sensitive Text)
$sel:creationTime:PricingRuleListElement' :: PricingRuleListElement -> Maybe Integer
$sel:billingEntity:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
$sel:associatedPricingPlanCount:PricingRuleListElement' :: PricingRuleListElement -> Maybe Natural
$sel:arn:PricingRuleListElement' :: PricingRuleListElement -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
associatedPricingPlanCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
billingEntity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
modifierPercentage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PricingRuleScope
scope
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
service
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Tiering
tiering
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PricingRuleType
type'