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

pattern CmafMpdProfile_MAIN_PROFILE :: CmafMpdProfile
pattern $bCmafMpdProfile_MAIN_PROFILE :: CmafMpdProfile
$mCmafMpdProfile_MAIN_PROFILE :: forall {r}. CmafMpdProfile -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
CmafMpdProfile_ON_DEMAND_PROFILE = CmafMpdProfile' "ON_DEMAND_PROFILE"

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