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

pattern DashIsoMpdProfile_MAIN_PROFILE :: DashIsoMpdProfile
pattern $bDashIsoMpdProfile_MAIN_PROFILE :: DashIsoMpdProfile
$mDashIsoMpdProfile_MAIN_PROFILE :: forall {r}. DashIsoMpdProfile -> ((# #) -> r) -> ((# #) -> r) -> r
DashIsoMpdProfile_MAIN_PROFILE = DashIsoMpdProfile' "MAIN_PROFILE"

pattern DashIsoMpdProfile_ON_DEMAND_PROFILE :: DashIsoMpdProfile
pattern $bDashIsoMpdProfile_ON_DEMAND_PROFILE :: DashIsoMpdProfile
$mDashIsoMpdProfile_ON_DEMAND_PROFILE :: forall {r}. DashIsoMpdProfile -> ((# #) -> r) -> ((# #) -> r) -> r
DashIsoMpdProfile_ON_DEMAND_PROFILE = DashIsoMpdProfile' "ON_DEMAND_PROFILE"

{-# COMPLETE
  DashIsoMpdProfile_MAIN_PROFILE,
  DashIsoMpdProfile_ON_DEMAND_PROFILE,
  DashIsoMpdProfile'
  #-}