{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

-- | Specifies whether the pricing plan for your reserved queue is ACTIVE or
-- EXPIRED.
newtype ReservationPlanStatus = ReservationPlanStatus'
  { ReservationPlanStatus -> Text
fromReservationPlanStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ReservationPlanStatus -> ShowS
[ReservationPlanStatus] -> ShowS
ReservationPlanStatus -> String
(Int -> ReservationPlanStatus -> ShowS)
-> (ReservationPlanStatus -> String)
-> ([ReservationPlanStatus] -> ShowS)
-> Show ReservationPlanStatus
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]
(Int -> ReadS ReservationPlanStatus)
-> ReadS [ReservationPlanStatus]
-> ReadPrec ReservationPlanStatus
-> ReadPrec [ReservationPlanStatus]
-> Read 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
(ReservationPlanStatus -> ReservationPlanStatus -> Bool)
-> (ReservationPlanStatus -> ReservationPlanStatus -> Bool)
-> Eq ReservationPlanStatus
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
Eq ReservationPlanStatus
-> (ReservationPlanStatus -> ReservationPlanStatus -> Ordering)
-> (ReservationPlanStatus -> ReservationPlanStatus -> Bool)
-> (ReservationPlanStatus -> ReservationPlanStatus -> Bool)
-> (ReservationPlanStatus -> ReservationPlanStatus -> Bool)
-> (ReservationPlanStatus -> ReservationPlanStatus -> Bool)
-> (ReservationPlanStatus
    -> ReservationPlanStatus -> ReservationPlanStatus)
-> (ReservationPlanStatus
    -> ReservationPlanStatus -> ReservationPlanStatus)
-> Ord 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
$cp1Ord :: Eq ReservationPlanStatus
Prelude.Ord,
      (forall x. ReservationPlanStatus -> Rep ReservationPlanStatus x)
-> (forall x. Rep ReservationPlanStatus x -> ReservationPlanStatus)
-> Generic ReservationPlanStatus
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
    ( Int -> ReservationPlanStatus -> Int
ReservationPlanStatus -> Int
(Int -> ReservationPlanStatus -> Int)
-> (ReservationPlanStatus -> Int) -> Hashable ReservationPlanStatus
forall 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 -> ()
(ReservationPlanStatus -> ()) -> NFData ReservationPlanStatus
forall a. (a -> ()) -> NFData a
rnf :: ReservationPlanStatus -> ()
$crnf :: ReservationPlanStatus -> ()
Prelude.NFData,
      Text -> Either String ReservationPlanStatus
(Text -> Either String ReservationPlanStatus)
-> FromText ReservationPlanStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReservationPlanStatus
$cfromText :: Text -> Either String ReservationPlanStatus
Core.FromText,
      ReservationPlanStatus -> Text
(ReservationPlanStatus -> Text) -> ToText ReservationPlanStatus
forall a. (a -> Text) -> ToText a
toText :: ReservationPlanStatus -> Text
$ctoText :: ReservationPlanStatus -> Text
Core.ToText,
      ReservationPlanStatus -> ByteString
(ReservationPlanStatus -> ByteString)
-> ToByteString ReservationPlanStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReservationPlanStatus -> ByteString
$ctoBS :: ReservationPlanStatus -> ByteString
Core.ToByteString,
      ReservationPlanStatus -> ByteStringBuilder
(ReservationPlanStatus -> ByteStringBuilder)
-> ToLog ReservationPlanStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReservationPlanStatus -> ByteStringBuilder
$cbuild :: ReservationPlanStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ReservationPlanStatus -> [Header]
(HeaderName -> ReservationPlanStatus -> [Header])
-> ToHeader ReservationPlanStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReservationPlanStatus -> [Header]
$ctoHeader :: HeaderName -> ReservationPlanStatus -> [Header]
Core.ToHeader,
      ReservationPlanStatus -> QueryString
(ReservationPlanStatus -> QueryString)
-> ToQuery ReservationPlanStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReservationPlanStatus -> QueryString
$ctoQuery :: ReservationPlanStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ReservationPlanStatus]
Value -> Parser ReservationPlanStatus
(Value -> Parser ReservationPlanStatus)
-> (Value -> Parser [ReservationPlanStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ReservationPlanStatus]
FromJSONKeyFunction ReservationPlanStatus
FromJSONKeyFunction ReservationPlanStatus
-> FromJSONKeyFunction [ReservationPlanStatus]
-> FromJSONKey ReservationPlanStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReservationPlanStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ReservationPlanStatus]
fromJSONKey :: FromJSONKeyFunction ReservationPlanStatus
$cfromJSONKey :: FromJSONKeyFunction ReservationPlanStatus
Core.FromJSONKey,
      [ReservationPlanStatus] -> Encoding
[ReservationPlanStatus] -> Value
ReservationPlanStatus -> Encoding
ReservationPlanStatus -> Value
(ReservationPlanStatus -> Value)
-> (ReservationPlanStatus -> Encoding)
-> ([ReservationPlanStatus] -> Value)
-> ([ReservationPlanStatus] -> Encoding)
-> ToJSON ReservationPlanStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ReservationPlanStatus]
ToJSONKeyFunction ReservationPlanStatus
ToJSONKeyFunction ReservationPlanStatus
-> ToJSONKeyFunction [ReservationPlanStatus]
-> ToJSONKey ReservationPlanStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReservationPlanStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ReservationPlanStatus]
toJSONKey :: ToJSONKeyFunction ReservationPlanStatus
$ctoJSONKey :: ToJSONKeyFunction ReservationPlanStatus
Core.ToJSONKey,
      [Node] -> Either String ReservationPlanStatus
([Node] -> Either String ReservationPlanStatus)
-> FromXML ReservationPlanStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReservationPlanStatus
$cparseXML :: [Node] -> Either String ReservationPlanStatus
Core.FromXML,
      ReservationPlanStatus -> XML
(ReservationPlanStatus -> XML) -> ToXML ReservationPlanStatus
forall a. (a -> XML) -> ToXML a
toXML :: ReservationPlanStatus -> XML
$ctoXML :: ReservationPlanStatus -> XML
Core.ToXML
    )

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

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

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