{-# 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.ReservationMaximumFramerate
-- 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.ReservationMaximumFramerate
  ( ReservationMaximumFramerate
      ( ..,
        ReservationMaximumFramerate_MAX_30_FPS,
        ReservationMaximumFramerate_MAX_60_FPS
      ),
  )
where

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

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

pattern ReservationMaximumFramerate_MAX_30_FPS :: ReservationMaximumFramerate
pattern $bReservationMaximumFramerate_MAX_30_FPS :: ReservationMaximumFramerate
$mReservationMaximumFramerate_MAX_30_FPS :: forall r.
ReservationMaximumFramerate -> (Void# -> r) -> (Void# -> r) -> r
ReservationMaximumFramerate_MAX_30_FPS = ReservationMaximumFramerate' "MAX_30_FPS"

pattern ReservationMaximumFramerate_MAX_60_FPS :: ReservationMaximumFramerate
pattern $bReservationMaximumFramerate_MAX_60_FPS :: ReservationMaximumFramerate
$mReservationMaximumFramerate_MAX_60_FPS :: forall r.
ReservationMaximumFramerate -> (Void# -> r) -> (Void# -> r) -> r
ReservationMaximumFramerate_MAX_60_FPS = ReservationMaximumFramerate' "MAX_60_FPS"

{-# COMPLETE
  ReservationMaximumFramerate_MAX_30_FPS,
  ReservationMaximumFramerate_MAX_60_FPS,
  ReservationMaximumFramerate'
  #-}