{-# 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.HlsStreamInfResolution
-- 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.HlsStreamInfResolution
  ( HlsStreamInfResolution
      ( ..,
        HlsStreamInfResolution_EXCLUDE,
        HlsStreamInfResolution_INCLUDE
      ),
  )
where

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

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

pattern HlsStreamInfResolution_EXCLUDE :: HlsStreamInfResolution
pattern $bHlsStreamInfResolution_EXCLUDE :: HlsStreamInfResolution
$mHlsStreamInfResolution_EXCLUDE :: forall {r}.
HlsStreamInfResolution -> ((# #) -> r) -> ((# #) -> r) -> r
HlsStreamInfResolution_EXCLUDE = HlsStreamInfResolution' "EXCLUDE"

pattern HlsStreamInfResolution_INCLUDE :: HlsStreamInfResolution
pattern $bHlsStreamInfResolution_INCLUDE :: HlsStreamInfResolution
$mHlsStreamInfResolution_INCLUDE :: forall {r}.
HlsStreamInfResolution -> ((# #) -> r) -> ((# #) -> r) -> r
HlsStreamInfResolution_INCLUDE = HlsStreamInfResolution' "INCLUDE"

{-# COMPLETE
  HlsStreamInfResolution_EXCLUDE,
  HlsStreamInfResolution_INCLUDE,
  HlsStreamInfResolution'
  #-}