{-# 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.CmafMpdProfile
-- 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.CmafMpdProfile
  ( CmafMpdProfile
      ( ..,
        CmafMpdProfile_MAIN_PROFILE,
        CmafMpdProfile_ON_DEMAND_PROFILE
      ),
  )
where

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

-- | Specify whether your DASH profile is on-demand or main. When you choose
-- Main profile (MAIN_PROFILE), the service signals
-- urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When
-- you choose On-demand (ON_DEMAND_PROFILE), the service signals
-- urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose
-- On-demand, you must also set the output group setting Segment control
-- (SegmentControl) to Single file (SINGLE_FILE).
newtype CmafMpdProfile = CmafMpdProfile'
  { CmafMpdProfile -> Text
fromCmafMpdProfile ::
      Core.Text
  }
  deriving stock
    ( Int -> CmafMpdProfile -> ShowS
[CmafMpdProfile] -> ShowS
CmafMpdProfile -> String
(Int -> CmafMpdProfile -> ShowS)
-> (CmafMpdProfile -> String)
-> ([CmafMpdProfile] -> ShowS)
-> Show CmafMpdProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmafMpdProfile] -> ShowS
$cshowList :: [CmafMpdProfile] -> ShowS
show :: CmafMpdProfile -> String
$cshow :: CmafMpdProfile -> String
showsPrec :: Int -> CmafMpdProfile -> ShowS
$cshowsPrec :: Int -> CmafMpdProfile -> ShowS
Prelude.Show,
      ReadPrec [CmafMpdProfile]
ReadPrec CmafMpdProfile
Int -> ReadS CmafMpdProfile
ReadS [CmafMpdProfile]
(Int -> ReadS CmafMpdProfile)
-> ReadS [CmafMpdProfile]
-> ReadPrec CmafMpdProfile
-> ReadPrec [CmafMpdProfile]
-> Read CmafMpdProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmafMpdProfile]
$creadListPrec :: ReadPrec [CmafMpdProfile]
readPrec :: ReadPrec CmafMpdProfile
$creadPrec :: ReadPrec CmafMpdProfile
readList :: ReadS [CmafMpdProfile]
$creadList :: ReadS [CmafMpdProfile]
readsPrec :: Int -> ReadS CmafMpdProfile
$creadsPrec :: Int -> ReadS CmafMpdProfile
Prelude.Read,
      CmafMpdProfile -> CmafMpdProfile -> Bool
(CmafMpdProfile -> CmafMpdProfile -> Bool)
-> (CmafMpdProfile -> CmafMpdProfile -> Bool) -> Eq CmafMpdProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmafMpdProfile -> CmafMpdProfile -> Bool
$c/= :: CmafMpdProfile -> CmafMpdProfile -> Bool
== :: CmafMpdProfile -> CmafMpdProfile -> Bool
$c== :: CmafMpdProfile -> CmafMpdProfile -> Bool
Prelude.Eq,
      Eq CmafMpdProfile
Eq CmafMpdProfile
-> (CmafMpdProfile -> CmafMpdProfile -> Ordering)
-> (CmafMpdProfile -> CmafMpdProfile -> Bool)
-> (CmafMpdProfile -> CmafMpdProfile -> Bool)
-> (CmafMpdProfile -> CmafMpdProfile -> Bool)
-> (CmafMpdProfile -> CmafMpdProfile -> Bool)
-> (CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile)
-> (CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile)
-> Ord CmafMpdProfile
CmafMpdProfile -> CmafMpdProfile -> Bool
CmafMpdProfile -> CmafMpdProfile -> Ordering
CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile
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 :: CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile
$cmin :: CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile
max :: CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile
$cmax :: CmafMpdProfile -> CmafMpdProfile -> CmafMpdProfile
>= :: CmafMpdProfile -> CmafMpdProfile -> Bool
$c>= :: CmafMpdProfile -> CmafMpdProfile -> Bool
> :: CmafMpdProfile -> CmafMpdProfile -> Bool
$c> :: CmafMpdProfile -> CmafMpdProfile -> Bool
<= :: CmafMpdProfile -> CmafMpdProfile -> Bool
$c<= :: CmafMpdProfile -> CmafMpdProfile -> Bool
< :: CmafMpdProfile -> CmafMpdProfile -> Bool
$c< :: CmafMpdProfile -> CmafMpdProfile -> Bool
compare :: CmafMpdProfile -> CmafMpdProfile -> Ordering
$ccompare :: CmafMpdProfile -> CmafMpdProfile -> Ordering
$cp1Ord :: Eq CmafMpdProfile
Prelude.Ord,
      (forall x. CmafMpdProfile -> Rep CmafMpdProfile x)
-> (forall x. Rep CmafMpdProfile x -> CmafMpdProfile)
-> Generic CmafMpdProfile
forall x. Rep CmafMpdProfile x -> CmafMpdProfile
forall x. CmafMpdProfile -> Rep CmafMpdProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CmafMpdProfile x -> CmafMpdProfile
$cfrom :: forall x. CmafMpdProfile -> Rep CmafMpdProfile x
Prelude.Generic
    )
  deriving newtype
    ( Int -> CmafMpdProfile -> Int
CmafMpdProfile -> Int
(Int -> CmafMpdProfile -> Int)
-> (CmafMpdProfile -> Int) -> Hashable CmafMpdProfile
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CmafMpdProfile -> Int
$chash :: CmafMpdProfile -> Int
hashWithSalt :: Int -> CmafMpdProfile -> Int
$chashWithSalt :: Int -> CmafMpdProfile -> Int
Prelude.Hashable,
      CmafMpdProfile -> ()
(CmafMpdProfile -> ()) -> NFData CmafMpdProfile
forall a. (a -> ()) -> NFData a
rnf :: CmafMpdProfile -> ()
$crnf :: CmafMpdProfile -> ()
Prelude.NFData,
      Text -> Either String CmafMpdProfile
(Text -> Either String CmafMpdProfile) -> FromText CmafMpdProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmafMpdProfile
$cfromText :: Text -> Either String CmafMpdProfile
Core.FromText,
      CmafMpdProfile -> Text
(CmafMpdProfile -> Text) -> ToText CmafMpdProfile
forall a. (a -> Text) -> ToText a
toText :: CmafMpdProfile -> Text
$ctoText :: CmafMpdProfile -> Text
Core.ToText,
      CmafMpdProfile -> ByteString
(CmafMpdProfile -> ByteString) -> ToByteString CmafMpdProfile
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmafMpdProfile -> ByteString
$ctoBS :: CmafMpdProfile -> ByteString
Core.ToByteString,
      CmafMpdProfile -> ByteStringBuilder
(CmafMpdProfile -> ByteStringBuilder) -> ToLog CmafMpdProfile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmafMpdProfile -> ByteStringBuilder
$cbuild :: CmafMpdProfile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CmafMpdProfile -> [Header]
(HeaderName -> CmafMpdProfile -> [Header])
-> ToHeader CmafMpdProfile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmafMpdProfile -> [Header]
$ctoHeader :: HeaderName -> CmafMpdProfile -> [Header]
Core.ToHeader,
      CmafMpdProfile -> QueryString
(CmafMpdProfile -> QueryString) -> ToQuery CmafMpdProfile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmafMpdProfile -> QueryString
$ctoQuery :: CmafMpdProfile -> QueryString
Core.ToQuery,
      Value -> Parser [CmafMpdProfile]
Value -> Parser CmafMpdProfile
(Value -> Parser CmafMpdProfile)
-> (Value -> Parser [CmafMpdProfile]) -> FromJSON CmafMpdProfile
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CmafMpdProfile]
$cparseJSONList :: Value -> Parser [CmafMpdProfile]
parseJSON :: Value -> Parser CmafMpdProfile
$cparseJSON :: Value -> Parser CmafMpdProfile
Core.FromJSON,
      FromJSONKeyFunction [CmafMpdProfile]
FromJSONKeyFunction CmafMpdProfile
FromJSONKeyFunction CmafMpdProfile
-> FromJSONKeyFunction [CmafMpdProfile]
-> FromJSONKey CmafMpdProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmafMpdProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [CmafMpdProfile]
fromJSONKey :: FromJSONKeyFunction CmafMpdProfile
$cfromJSONKey :: FromJSONKeyFunction CmafMpdProfile
Core.FromJSONKey,
      [CmafMpdProfile] -> Encoding
[CmafMpdProfile] -> Value
CmafMpdProfile -> Encoding
CmafMpdProfile -> Value
(CmafMpdProfile -> Value)
-> (CmafMpdProfile -> Encoding)
-> ([CmafMpdProfile] -> Value)
-> ([CmafMpdProfile] -> Encoding)
-> ToJSON CmafMpdProfile
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CmafMpdProfile] -> Encoding
$ctoEncodingList :: [CmafMpdProfile] -> Encoding
toJSONList :: [CmafMpdProfile] -> Value
$ctoJSONList :: [CmafMpdProfile] -> Value
toEncoding :: CmafMpdProfile -> Encoding
$ctoEncoding :: CmafMpdProfile -> Encoding
toJSON :: CmafMpdProfile -> Value
$ctoJSON :: CmafMpdProfile -> Value
Core.ToJSON,
      ToJSONKeyFunction [CmafMpdProfile]
ToJSONKeyFunction CmafMpdProfile
ToJSONKeyFunction CmafMpdProfile
-> ToJSONKeyFunction [CmafMpdProfile] -> ToJSONKey CmafMpdProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmafMpdProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [CmafMpdProfile]
toJSONKey :: ToJSONKeyFunction CmafMpdProfile
$ctoJSONKey :: ToJSONKeyFunction CmafMpdProfile
Core.ToJSONKey,
      [Node] -> Either String CmafMpdProfile
([Node] -> Either String CmafMpdProfile) -> FromXML CmafMpdProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmafMpdProfile
$cparseXML :: [Node] -> Either String CmafMpdProfile
Core.FromXML,
      CmafMpdProfile -> XML
(CmafMpdProfile -> XML) -> ToXML CmafMpdProfile
forall a. (a -> XML) -> ToXML a
toXML :: CmafMpdProfile -> XML
$ctoXML :: CmafMpdProfile -> XML
Core.ToXML
    )

pattern CmafMpdProfile_MAIN_PROFILE :: CmafMpdProfile
pattern $bCmafMpdProfile_MAIN_PROFILE :: CmafMpdProfile
$mCmafMpdProfile_MAIN_PROFILE :: forall r. CmafMpdProfile -> (Void# -> r) -> (Void# -> r) -> r
CmafMpdProfile_MAIN_PROFILE = CmafMpdProfile' "MAIN_PROFILE"

pattern CmafMpdProfile_ON_DEMAND_PROFILE :: CmafMpdProfile
pattern $bCmafMpdProfile_ON_DEMAND_PROFILE :: CmafMpdProfile
$mCmafMpdProfile_ON_DEMAND_PROFILE :: forall r. CmafMpdProfile -> (Void# -> r) -> (Void# -> r) -> r
CmafMpdProfile_ON_DEMAND_PROFILE = CmafMpdProfile' "ON_DEMAND_PROFILE"

{-# COMPLETE
  CmafMpdProfile_MAIN_PROFILE,
  CmafMpdProfile_ON_DEMAND_PROFILE,
  CmafMpdProfile'
  #-}