{-# 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.MediaConvert.Types.PricingPlan
-- 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.MediaConvert.Types.PricingPlan
  ( PricingPlan
      ( ..,
        PricingPlan_ON_DEMAND,
        PricingPlan_RESERVED
      ),
  )
where

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

-- | Specifies whether the pricing plan for the queue is on-demand or
-- reserved. For on-demand, you pay per minute, billed in increments of .01
-- minute. For reserved, you pay for the transcoding capacity of the entire
-- queue, regardless of how much or how little you use it. Reserved pricing
-- requires a 12-month commitment.
newtype PricingPlan = PricingPlan'
  { PricingPlan -> Text
fromPricingPlan ::
      Data.Text
  }
  deriving stock
    ( Int -> PricingPlan -> ShowS
[PricingPlan] -> ShowS
PricingPlan -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PricingPlan] -> ShowS
$cshowList :: [PricingPlan] -> ShowS
show :: PricingPlan -> String
$cshow :: PricingPlan -> String
showsPrec :: Int -> PricingPlan -> ShowS
$cshowsPrec :: Int -> PricingPlan -> ShowS
Prelude.Show,
      ReadPrec [PricingPlan]
ReadPrec PricingPlan
Int -> ReadS PricingPlan
ReadS [PricingPlan]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PricingPlan]
$creadListPrec :: ReadPrec [PricingPlan]
readPrec :: ReadPrec PricingPlan
$creadPrec :: ReadPrec PricingPlan
readList :: ReadS [PricingPlan]
$creadList :: ReadS [PricingPlan]
readsPrec :: Int -> ReadS PricingPlan
$creadsPrec :: Int -> ReadS PricingPlan
Prelude.Read,
      PricingPlan -> PricingPlan -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PricingPlan -> PricingPlan -> Bool
$c/= :: PricingPlan -> PricingPlan -> Bool
== :: PricingPlan -> PricingPlan -> Bool
$c== :: PricingPlan -> PricingPlan -> Bool
Prelude.Eq,
      Eq PricingPlan
PricingPlan -> PricingPlan -> Bool
PricingPlan -> PricingPlan -> Ordering
PricingPlan -> PricingPlan -> PricingPlan
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 :: PricingPlan -> PricingPlan -> PricingPlan
$cmin :: PricingPlan -> PricingPlan -> PricingPlan
max :: PricingPlan -> PricingPlan -> PricingPlan
$cmax :: PricingPlan -> PricingPlan -> PricingPlan
>= :: PricingPlan -> PricingPlan -> Bool
$c>= :: PricingPlan -> PricingPlan -> Bool
> :: PricingPlan -> PricingPlan -> Bool
$c> :: PricingPlan -> PricingPlan -> Bool
<= :: PricingPlan -> PricingPlan -> Bool
$c<= :: PricingPlan -> PricingPlan -> Bool
< :: PricingPlan -> PricingPlan -> Bool
$c< :: PricingPlan -> PricingPlan -> Bool
compare :: PricingPlan -> PricingPlan -> Ordering
$ccompare :: PricingPlan -> PricingPlan -> Ordering
Prelude.Ord,
      forall x. Rep PricingPlan x -> PricingPlan
forall x. PricingPlan -> Rep PricingPlan x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PricingPlan x -> PricingPlan
$cfrom :: forall x. PricingPlan -> Rep PricingPlan x
Prelude.Generic
    )
  deriving newtype
    ( Eq PricingPlan
Int -> PricingPlan -> Int
PricingPlan -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PricingPlan -> Int
$chash :: PricingPlan -> Int
hashWithSalt :: Int -> PricingPlan -> Int
$chashWithSalt :: Int -> PricingPlan -> Int
Prelude.Hashable,
      PricingPlan -> ()
forall a. (a -> ()) -> NFData a
rnf :: PricingPlan -> ()
$crnf :: PricingPlan -> ()
Prelude.NFData,
      Text -> Either String PricingPlan
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PricingPlan
$cfromText :: Text -> Either String PricingPlan
Data.FromText,
      PricingPlan -> Text
forall a. (a -> Text) -> ToText a
toText :: PricingPlan -> Text
$ctoText :: PricingPlan -> Text
Data.ToText,
      PricingPlan -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PricingPlan -> ByteString
$ctoBS :: PricingPlan -> ByteString
Data.ToByteString,
      PricingPlan -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PricingPlan -> ByteStringBuilder
$cbuild :: PricingPlan -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PricingPlan -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PricingPlan -> [Header]
$ctoHeader :: HeaderName -> PricingPlan -> [Header]
Data.ToHeader,
      PricingPlan -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PricingPlan -> QueryString
$ctoQuery :: PricingPlan -> QueryString
Data.ToQuery,
      Value -> Parser [PricingPlan]
Value -> Parser PricingPlan
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PricingPlan]
$cparseJSONList :: Value -> Parser [PricingPlan]
parseJSON :: Value -> Parser PricingPlan
$cparseJSON :: Value -> Parser PricingPlan
Data.FromJSON,
      FromJSONKeyFunction [PricingPlan]
FromJSONKeyFunction PricingPlan
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PricingPlan]
$cfromJSONKeyList :: FromJSONKeyFunction [PricingPlan]
fromJSONKey :: FromJSONKeyFunction PricingPlan
$cfromJSONKey :: FromJSONKeyFunction PricingPlan
Data.FromJSONKey,
      [PricingPlan] -> Encoding
[PricingPlan] -> Value
PricingPlan -> Encoding
PricingPlan -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PricingPlan] -> Encoding
$ctoEncodingList :: [PricingPlan] -> Encoding
toJSONList :: [PricingPlan] -> Value
$ctoJSONList :: [PricingPlan] -> Value
toEncoding :: PricingPlan -> Encoding
$ctoEncoding :: PricingPlan -> Encoding
toJSON :: PricingPlan -> Value
$ctoJSON :: PricingPlan -> Value
Data.ToJSON,
      ToJSONKeyFunction [PricingPlan]
ToJSONKeyFunction PricingPlan
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PricingPlan]
$ctoJSONKeyList :: ToJSONKeyFunction [PricingPlan]
toJSONKey :: ToJSONKeyFunction PricingPlan
$ctoJSONKey :: ToJSONKeyFunction PricingPlan
Data.ToJSONKey,
      [Node] -> Either String PricingPlan
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PricingPlan
$cparseXML :: [Node] -> Either String PricingPlan
Data.FromXML,
      PricingPlan -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PricingPlan -> XML
$ctoXML :: PricingPlan -> XML
Data.ToXML
    )

pattern PricingPlan_ON_DEMAND :: PricingPlan
pattern $bPricingPlan_ON_DEMAND :: PricingPlan
$mPricingPlan_ON_DEMAND :: forall {r}. PricingPlan -> ((# #) -> r) -> ((# #) -> r) -> r
PricingPlan_ON_DEMAND = PricingPlan' "ON_DEMAND"

pattern PricingPlan_RESERVED :: PricingPlan
pattern $bPricingPlan_RESERVED :: PricingPlan
$mPricingPlan_RESERVED :: forall {r}. PricingPlan -> ((# #) -> r) -> ((# #) -> r) -> r
PricingPlan_RESERVED = PricingPlan' "RESERVED"

{-# COMPLETE
  PricingPlan_ON_DEMAND,
  PricingPlan_RESERVED,
  PricingPlan'
  #-}