{-# 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.MediaLive.Types.ReservationResourceType
-- 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.MediaLive.Types.ReservationResourceType
  ( ReservationResourceType
      ( ..,
        ReservationResourceType_CHANNEL,
        ReservationResourceType_INPUT,
        ReservationResourceType_MULTIPLEX,
        ReservationResourceType_OUTPUT
      ),
  )
where

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

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

pattern ReservationResourceType_CHANNEL :: ReservationResourceType
pattern $bReservationResourceType_CHANNEL :: ReservationResourceType
$mReservationResourceType_CHANNEL :: forall r.
ReservationResourceType -> (Void# -> r) -> (Void# -> r) -> r
ReservationResourceType_CHANNEL = ReservationResourceType' "CHANNEL"

pattern ReservationResourceType_INPUT :: ReservationResourceType
pattern $bReservationResourceType_INPUT :: ReservationResourceType
$mReservationResourceType_INPUT :: forall r.
ReservationResourceType -> (Void# -> r) -> (Void# -> r) -> r
ReservationResourceType_INPUT = ReservationResourceType' "INPUT"

pattern ReservationResourceType_MULTIPLEX :: ReservationResourceType
pattern $bReservationResourceType_MULTIPLEX :: ReservationResourceType
$mReservationResourceType_MULTIPLEX :: forall r.
ReservationResourceType -> (Void# -> r) -> (Void# -> r) -> r
ReservationResourceType_MULTIPLEX = ReservationResourceType' "MULTIPLEX"

pattern ReservationResourceType_OUTPUT :: ReservationResourceType
pattern $bReservationResourceType_OUTPUT :: ReservationResourceType
$mReservationResourceType_OUTPUT :: forall r.
ReservationResourceType -> (Void# -> r) -> (Void# -> r) -> r
ReservationResourceType_OUTPUT = ReservationResourceType' "OUTPUT"

{-# COMPLETE
  ReservationResourceType_CHANNEL,
  ReservationResourceType_INPUT,
  ReservationResourceType_MULTIPLEX,
  ReservationResourceType_OUTPUT,
  ReservationResourceType'
  #-}