{-# 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.InputMaximumBitrate
-- 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.InputMaximumBitrate
  ( InputMaximumBitrate
      ( ..,
        InputMaximumBitrate_MAX_10_MBPS,
        InputMaximumBitrate_MAX_20_MBPS,
        InputMaximumBitrate_MAX_50_MBPS
      ),
  )
where

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

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

pattern InputMaximumBitrate_MAX_10_MBPS :: InputMaximumBitrate
pattern $bInputMaximumBitrate_MAX_10_MBPS :: InputMaximumBitrate
$mInputMaximumBitrate_MAX_10_MBPS :: forall r. InputMaximumBitrate -> (Void# -> r) -> (Void# -> r) -> r
InputMaximumBitrate_MAX_10_MBPS = InputMaximumBitrate' "MAX_10_MBPS"

pattern InputMaximumBitrate_MAX_20_MBPS :: InputMaximumBitrate
pattern $bInputMaximumBitrate_MAX_20_MBPS :: InputMaximumBitrate
$mInputMaximumBitrate_MAX_20_MBPS :: forall r. InputMaximumBitrate -> (Void# -> r) -> (Void# -> r) -> r
InputMaximumBitrate_MAX_20_MBPS = InputMaximumBitrate' "MAX_20_MBPS"

pattern InputMaximumBitrate_MAX_50_MBPS :: InputMaximumBitrate
pattern $bInputMaximumBitrate_MAX_50_MBPS :: InputMaximumBitrate
$mInputMaximumBitrate_MAX_50_MBPS :: forall r. InputMaximumBitrate -> (Void# -> r) -> (Void# -> r) -> r
InputMaximumBitrate_MAX_50_MBPS = InputMaximumBitrate' "MAX_50_MBPS"

{-# COMPLETE
  InputMaximumBitrate_MAX_10_MBPS,
  InputMaximumBitrate_MAX_20_MBPS,
  InputMaximumBitrate_MAX_50_MBPS,
  InputMaximumBitrate'
  #-}