{-# 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.MediaConvert.Types.CmafStreamInfResolution
-- 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.MediaConvert.Types.CmafStreamInfResolution
  ( CmafStreamInfResolution
      ( ..,
        CmafStreamInfResolution_EXCLUDE,
        CmafStreamInfResolution_INCLUDE
      ),
  )
where

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

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

pattern CmafStreamInfResolution_EXCLUDE :: CmafStreamInfResolution
pattern $bCmafStreamInfResolution_EXCLUDE :: CmafStreamInfResolution
$mCmafStreamInfResolution_EXCLUDE :: forall r.
CmafStreamInfResolution -> (Void# -> r) -> (Void# -> r) -> r
CmafStreamInfResolution_EXCLUDE = CmafStreamInfResolution' "EXCLUDE"

pattern CmafStreamInfResolution_INCLUDE :: CmafStreamInfResolution
pattern $bCmafStreamInfResolution_INCLUDE :: CmafStreamInfResolution
$mCmafStreamInfResolution_INCLUDE :: forall r.
CmafStreamInfResolution -> (Void# -> r) -> (Void# -> r) -> r
CmafStreamInfResolution_INCLUDE = CmafStreamInfResolution' "INCLUDE"

{-# COMPLETE
  CmafStreamInfResolution_EXCLUDE,
  CmafStreamInfResolution_INCLUDE,
  CmafStreamInfResolution'
  #-}