{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.BillingConductor.Types.PricingRuleScope
-- 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.PricingRuleScope
  ( PricingRuleScope
      ( ..,
        PricingRuleScope_BILLING_ENTITY,
        PricingRuleScope_GLOBAL,
        PricingRuleScope_SERVICE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype PricingRuleScope = PricingRuleScope'
  { PricingRuleScope -> Text
fromPricingRuleScope ::
      Data.Text
  }
  deriving stock
    ( Int -> PricingRuleScope -> ShowS
[PricingRuleScope] -> ShowS
PricingRuleScope -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PricingRuleScope] -> ShowS
$cshowList :: [PricingRuleScope] -> ShowS
show :: PricingRuleScope -> String
$cshow :: PricingRuleScope -> String
showsPrec :: Int -> PricingRuleScope -> ShowS
$cshowsPrec :: Int -> PricingRuleScope -> ShowS
Prelude.Show,
      ReadPrec [PricingRuleScope]
ReadPrec PricingRuleScope
Int -> ReadS PricingRuleScope
ReadS [PricingRuleScope]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PricingRuleScope]
$creadListPrec :: ReadPrec [PricingRuleScope]
readPrec :: ReadPrec PricingRuleScope
$creadPrec :: ReadPrec PricingRuleScope
readList :: ReadS [PricingRuleScope]
$creadList :: ReadS [PricingRuleScope]
readsPrec :: Int -> ReadS PricingRuleScope
$creadsPrec :: Int -> ReadS PricingRuleScope
Prelude.Read,
      PricingRuleScope -> PricingRuleScope -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PricingRuleScope -> PricingRuleScope -> Bool
$c/= :: PricingRuleScope -> PricingRuleScope -> Bool
== :: PricingRuleScope -> PricingRuleScope -> Bool
$c== :: PricingRuleScope -> PricingRuleScope -> Bool
Prelude.Eq,
      Eq PricingRuleScope
PricingRuleScope -> PricingRuleScope -> Bool
PricingRuleScope -> PricingRuleScope -> Ordering
PricingRuleScope -> PricingRuleScope -> PricingRuleScope
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: PricingRuleScope -> PricingRuleScope -> PricingRuleScope
$cmin :: PricingRuleScope -> PricingRuleScope -> PricingRuleScope
max :: PricingRuleScope -> PricingRuleScope -> PricingRuleScope
$cmax :: PricingRuleScope -> PricingRuleScope -> PricingRuleScope
>= :: PricingRuleScope -> PricingRuleScope -> Bool
$c>= :: PricingRuleScope -> PricingRuleScope -> Bool
> :: PricingRuleScope -> PricingRuleScope -> Bool
$c> :: PricingRuleScope -> PricingRuleScope -> Bool
<= :: PricingRuleScope -> PricingRuleScope -> Bool
$c<= :: PricingRuleScope -> PricingRuleScope -> Bool
< :: PricingRuleScope -> PricingRuleScope -> Bool
$c< :: PricingRuleScope -> PricingRuleScope -> Bool
compare :: PricingRuleScope -> PricingRuleScope -> Ordering
$ccompare :: PricingRuleScope -> PricingRuleScope -> Ordering
Prelude.Ord,
      forall x. Rep PricingRuleScope x -> PricingRuleScope
forall x. PricingRuleScope -> Rep PricingRuleScope x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PricingRuleScope x -> PricingRuleScope
$cfrom :: forall x. PricingRuleScope -> Rep PricingRuleScope x
Prelude.Generic
    )
  deriving newtype
    ( Eq PricingRuleScope
Int -> PricingRuleScope -> Int
PricingRuleScope -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PricingRuleScope -> Int
$chash :: PricingRuleScope -> Int
hashWithSalt :: Int -> PricingRuleScope -> Int
$chashWithSalt :: Int -> PricingRuleScope -> Int
Prelude.Hashable,
      PricingRuleScope -> ()
forall a. (a -> ()) -> NFData a
rnf :: PricingRuleScope -> ()
$crnf :: PricingRuleScope -> ()
Prelude.NFData,
      Text -> Either String PricingRuleScope
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PricingRuleScope
$cfromText :: Text -> Either String PricingRuleScope
Data.FromText,
      PricingRuleScope -> Text
forall a. (a -> Text) -> ToText a
toText :: PricingRuleScope -> Text
$ctoText :: PricingRuleScope -> Text
Data.ToText,
      PricingRuleScope -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PricingRuleScope -> ByteString
$ctoBS :: PricingRuleScope -> ByteString
Data.ToByteString,
      PricingRuleScope -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PricingRuleScope -> ByteStringBuilder
$cbuild :: PricingRuleScope -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PricingRuleScope -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PricingRuleScope -> [Header]
$ctoHeader :: HeaderName -> PricingRuleScope -> [Header]
Data.ToHeader,
      PricingRuleScope -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PricingRuleScope -> QueryString
$ctoQuery :: PricingRuleScope -> QueryString
Data.ToQuery,
      Value -> Parser [PricingRuleScope]
Value -> Parser PricingRuleScope
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PricingRuleScope]
$cparseJSONList :: Value -> Parser [PricingRuleScope]
parseJSON :: Value -> Parser PricingRuleScope
$cparseJSON :: Value -> Parser PricingRuleScope
Data.FromJSON,
      FromJSONKeyFunction [PricingRuleScope]
FromJSONKeyFunction PricingRuleScope
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PricingRuleScope]
$cfromJSONKeyList :: FromJSONKeyFunction [PricingRuleScope]
fromJSONKey :: FromJSONKeyFunction PricingRuleScope
$cfromJSONKey :: FromJSONKeyFunction PricingRuleScope
Data.FromJSONKey,
      [PricingRuleScope] -> Encoding
[PricingRuleScope] -> Value
PricingRuleScope -> Encoding
PricingRuleScope -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PricingRuleScope] -> Encoding
$ctoEncodingList :: [PricingRuleScope] -> Encoding
toJSONList :: [PricingRuleScope] -> Value
$ctoJSONList :: [PricingRuleScope] -> Value
toEncoding :: PricingRuleScope -> Encoding
$ctoEncoding :: PricingRuleScope -> Encoding
toJSON :: PricingRuleScope -> Value
$ctoJSON :: PricingRuleScope -> Value
Data.ToJSON,
      ToJSONKeyFunction [PricingRuleScope]
ToJSONKeyFunction PricingRuleScope
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PricingRuleScope]
$ctoJSONKeyList :: ToJSONKeyFunction [PricingRuleScope]
toJSONKey :: ToJSONKeyFunction PricingRuleScope
$ctoJSONKey :: ToJSONKeyFunction PricingRuleScope
Data.ToJSONKey,
      [Node] -> Either String PricingRuleScope
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PricingRuleScope
$cparseXML :: [Node] -> Either String PricingRuleScope
Data.FromXML,
      PricingRuleScope -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PricingRuleScope -> XML
$ctoXML :: PricingRuleScope -> XML
Data.ToXML
    )

pattern PricingRuleScope_BILLING_ENTITY :: PricingRuleScope
pattern $bPricingRuleScope_BILLING_ENTITY :: PricingRuleScope
$mPricingRuleScope_BILLING_ENTITY :: forall {r}. PricingRuleScope -> ((# #) -> r) -> ((# #) -> r) -> r
PricingRuleScope_BILLING_ENTITY = PricingRuleScope' "BILLING_ENTITY"

pattern PricingRuleScope_GLOBAL :: PricingRuleScope
pattern $bPricingRuleScope_GLOBAL :: PricingRuleScope
$mPricingRuleScope_GLOBAL :: forall {r}. PricingRuleScope -> ((# #) -> r) -> ((# #) -> r) -> r
PricingRuleScope_GLOBAL = PricingRuleScope' "GLOBAL"

pattern PricingRuleScope_SERVICE :: PricingRuleScope
pattern $bPricingRuleScope_SERVICE :: PricingRuleScope
$mPricingRuleScope_SERVICE :: forall {r}. PricingRuleScope -> ((# #) -> r) -> ((# #) -> r) -> r
PricingRuleScope_SERVICE = PricingRuleScope' "SERVICE"

{-# COMPLETE
  PricingRuleScope_BILLING_ENTITY,
  PricingRuleScope_GLOBAL,
  PricingRuleScope_SERVICE,
  PricingRuleScope'
  #-}