{-# 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.IotTwinMaker.Types.PricingMode
-- 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.IotTwinMaker.Types.PricingMode
  ( PricingMode
      ( ..,
        PricingMode_BASIC,
        PricingMode_STANDARD,
        PricingMode_TIERED_BUNDLE
      ),
  )
where

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

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

pattern PricingMode_BASIC :: PricingMode
pattern $bPricingMode_BASIC :: PricingMode
$mPricingMode_BASIC :: forall {r}. PricingMode -> ((# #) -> r) -> ((# #) -> r) -> r
PricingMode_BASIC = PricingMode' "BASIC"

pattern PricingMode_STANDARD :: PricingMode
pattern $bPricingMode_STANDARD :: PricingMode
$mPricingMode_STANDARD :: forall {r}. PricingMode -> ((# #) -> r) -> ((# #) -> r) -> r
PricingMode_STANDARD = PricingMode' "STANDARD"

pattern PricingMode_TIERED_BUNDLE :: PricingMode
pattern $bPricingMode_TIERED_BUNDLE :: PricingMode
$mPricingMode_TIERED_BUNDLE :: forall {r}. PricingMode -> ((# #) -> r) -> ((# #) -> r) -> r
PricingMode_TIERED_BUNDLE = PricingMode' "TIERED_BUNDLE"

{-# COMPLETE
  PricingMode_BASIC,
  PricingMode_STANDARD,
  PricingMode_TIERED_BUNDLE,
  PricingMode'
  #-}