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

pattern ReservationPlanStatus_ACTIVE :: ReservationPlanStatus
pattern $bReservationPlanStatus_ACTIVE :: ReservationPlanStatus
$mReservationPlanStatus_ACTIVE :: forall {r}.
ReservationPlanStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationPlanStatus_ACTIVE = ReservationPlanStatus' "ACTIVE"

pattern ReservationPlanStatus_EXPIRED :: ReservationPlanStatus
pattern $bReservationPlanStatus_EXPIRED :: ReservationPlanStatus
$mReservationPlanStatus_EXPIRED :: forall {r}.
ReservationPlanStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationPlanStatus_EXPIRED = ReservationPlanStatus' "EXPIRED"

{-# COMPLETE
  ReservationPlanStatus_ACTIVE,
  ReservationPlanStatus_EXPIRED,
  ReservationPlanStatus'
  #-}