{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> InputMaximumBitrate -> ShowS
[InputMaximumBitrate] -> ShowS
InputMaximumBitrate -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq InputMaximumBitrate
Int -> InputMaximumBitrate -> Int
InputMaximumBitrate -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: InputMaximumBitrate -> ()
$crnf :: InputMaximumBitrate -> ()
Prelude.NFData,
      Text -> Either String InputMaximumBitrate
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputMaximumBitrate
$cfromText :: Text -> Either String InputMaximumBitrate
Data.FromText,
      InputMaximumBitrate -> Text
forall a. (a -> Text) -> ToText a
toText :: InputMaximumBitrate -> Text
$ctoText :: InputMaximumBitrate -> Text
Data.ToText,
      InputMaximumBitrate -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputMaximumBitrate -> ByteString
$ctoBS :: InputMaximumBitrate -> ByteString
Data.ToByteString,
      InputMaximumBitrate -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputMaximumBitrate -> ByteStringBuilder
$cbuild :: InputMaximumBitrate -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InputMaximumBitrate -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputMaximumBitrate -> [Header]
$ctoHeader :: HeaderName -> InputMaximumBitrate -> [Header]
Data.ToHeader,
      InputMaximumBitrate -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputMaximumBitrate -> QueryString
$ctoQuery :: InputMaximumBitrate -> QueryString
Data.ToQuery,
      Value -> Parser [InputMaximumBitrate]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [InputMaximumBitrate]
FromJSONKeyFunction InputMaximumBitrate
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputMaximumBitrate]
$cfromJSONKeyList :: FromJSONKeyFunction [InputMaximumBitrate]
fromJSONKey :: FromJSONKeyFunction InputMaximumBitrate
$cfromJSONKey :: FromJSONKeyFunction InputMaximumBitrate
Data.FromJSONKey,
      [InputMaximumBitrate] -> Encoding
[InputMaximumBitrate] -> Value
InputMaximumBitrate -> Encoding
InputMaximumBitrate -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [InputMaximumBitrate]
ToJSONKeyFunction InputMaximumBitrate
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputMaximumBitrate]
$ctoJSONKeyList :: ToJSONKeyFunction [InputMaximumBitrate]
toJSONKey :: ToJSONKeyFunction InputMaximumBitrate
$ctoJSONKey :: ToJSONKeyFunction InputMaximumBitrate
Data.ToJSONKey,
      [Node] -> Either String InputMaximumBitrate
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputMaximumBitrate
$cparseXML :: [Node] -> Either String InputMaximumBitrate
Data.FromXML,
      InputMaximumBitrate -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InputMaximumBitrate -> XML
$ctoXML :: InputMaximumBitrate -> XML
Data.ToXML
    )

pattern InputMaximumBitrate_MAX_10_MBPS :: InputMaximumBitrate
pattern $bInputMaximumBitrate_MAX_10_MBPS :: InputMaximumBitrate
$mInputMaximumBitrate_MAX_10_MBPS :: forall {r}.
InputMaximumBitrate -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
InputMaximumBitrate_MAX_50_MBPS = InputMaximumBitrate' "MAX_50_MBPS"

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