{-# 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-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.DashIsoMpdProfile
  ( DashIsoMpdProfile
      ( ..,
        DashIsoMpdProfile_MAIN_PROFILE,
        DashIsoMpdProfile_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 DashIsoMpdProfile = DashIsoMpdProfile'
  { DashIsoMpdProfile -> Text
fromDashIsoMpdProfile ::
      Core.Text
  }
  deriving stock
    ( Int -> DashIsoMpdProfile -> ShowS
[DashIsoMpdProfile] -> ShowS
DashIsoMpdProfile -> String
(Int -> DashIsoMpdProfile -> ShowS)
-> (DashIsoMpdProfile -> String)
-> ([DashIsoMpdProfile] -> ShowS)
-> Show DashIsoMpdProfile
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]
(Int -> ReadS DashIsoMpdProfile)
-> ReadS [DashIsoMpdProfile]
-> ReadPrec DashIsoMpdProfile
-> ReadPrec [DashIsoMpdProfile]
-> Read 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
(DashIsoMpdProfile -> DashIsoMpdProfile -> Bool)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> Bool)
-> Eq DashIsoMpdProfile
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
Eq DashIsoMpdProfile
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> Ordering)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> Bool)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> Bool)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> Bool)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> Bool)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> DashIsoMpdProfile)
-> (DashIsoMpdProfile -> DashIsoMpdProfile -> DashIsoMpdProfile)
-> Ord 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
$cp1Ord :: Eq DashIsoMpdProfile
Prelude.Ord,
      (forall x. DashIsoMpdProfile -> Rep DashIsoMpdProfile x)
-> (forall x. Rep DashIsoMpdProfile x -> DashIsoMpdProfile)
-> Generic DashIsoMpdProfile
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
    ( Int -> DashIsoMpdProfile -> Int
DashIsoMpdProfile -> Int
(Int -> DashIsoMpdProfile -> Int)
-> (DashIsoMpdProfile -> Int) -> Hashable DashIsoMpdProfile
forall 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 -> ()
(DashIsoMpdProfile -> ()) -> NFData DashIsoMpdProfile
forall a. (a -> ()) -> NFData a
rnf :: DashIsoMpdProfile -> ()
$crnf :: DashIsoMpdProfile -> ()
Prelude.NFData,
      Text -> Either String DashIsoMpdProfile
(Text -> Either String DashIsoMpdProfile)
-> FromText DashIsoMpdProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashIsoMpdProfile
$cfromText :: Text -> Either String DashIsoMpdProfile
Core.FromText,
      DashIsoMpdProfile -> Text
(DashIsoMpdProfile -> Text) -> ToText DashIsoMpdProfile
forall a. (a -> Text) -> ToText a
toText :: DashIsoMpdProfile -> Text
$ctoText :: DashIsoMpdProfile -> Text
Core.ToText,
      DashIsoMpdProfile -> ByteString
(DashIsoMpdProfile -> ByteString) -> ToByteString DashIsoMpdProfile
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashIsoMpdProfile -> ByteString
$ctoBS :: DashIsoMpdProfile -> ByteString
Core.ToByteString,
      DashIsoMpdProfile -> ByteStringBuilder
(DashIsoMpdProfile -> ByteStringBuilder) -> ToLog DashIsoMpdProfile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashIsoMpdProfile -> ByteStringBuilder
$cbuild :: DashIsoMpdProfile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DashIsoMpdProfile -> [Header]
(HeaderName -> DashIsoMpdProfile -> [Header])
-> ToHeader DashIsoMpdProfile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DashIsoMpdProfile -> [Header]
$ctoHeader :: HeaderName -> DashIsoMpdProfile -> [Header]
Core.ToHeader,
      DashIsoMpdProfile -> QueryString
(DashIsoMpdProfile -> QueryString) -> ToQuery DashIsoMpdProfile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashIsoMpdProfile -> QueryString
$ctoQuery :: DashIsoMpdProfile -> QueryString
Core.ToQuery,
      Value -> Parser [DashIsoMpdProfile]
Value -> Parser DashIsoMpdProfile
(Value -> Parser DashIsoMpdProfile)
-> (Value -> Parser [DashIsoMpdProfile])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DashIsoMpdProfile]
FromJSONKeyFunction DashIsoMpdProfile
FromJSONKeyFunction DashIsoMpdProfile
-> FromJSONKeyFunction [DashIsoMpdProfile]
-> FromJSONKey DashIsoMpdProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashIsoMpdProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [DashIsoMpdProfile]
fromJSONKey :: FromJSONKeyFunction DashIsoMpdProfile
$cfromJSONKey :: FromJSONKeyFunction DashIsoMpdProfile
Core.FromJSONKey,
      [DashIsoMpdProfile] -> Encoding
[DashIsoMpdProfile] -> Value
DashIsoMpdProfile -> Encoding
DashIsoMpdProfile -> Value
(DashIsoMpdProfile -> Value)
-> (DashIsoMpdProfile -> Encoding)
-> ([DashIsoMpdProfile] -> Value)
-> ([DashIsoMpdProfile] -> Encoding)
-> ToJSON DashIsoMpdProfile
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
Core.ToJSON,
      ToJSONKeyFunction [DashIsoMpdProfile]
ToJSONKeyFunction DashIsoMpdProfile
ToJSONKeyFunction DashIsoMpdProfile
-> ToJSONKeyFunction [DashIsoMpdProfile]
-> ToJSONKey DashIsoMpdProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashIsoMpdProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [DashIsoMpdProfile]
toJSONKey :: ToJSONKeyFunction DashIsoMpdProfile
$ctoJSONKey :: ToJSONKeyFunction DashIsoMpdProfile
Core.ToJSONKey,
      [Node] -> Either String DashIsoMpdProfile
([Node] -> Either String DashIsoMpdProfile)
-> FromXML DashIsoMpdProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashIsoMpdProfile
$cparseXML :: [Node] -> Either String DashIsoMpdProfile
Core.FromXML,
      DashIsoMpdProfile -> XML
(DashIsoMpdProfile -> XML) -> ToXML DashIsoMpdProfile
forall a. (a -> XML) -> ToXML a
toXML :: DashIsoMpdProfile -> XML
$ctoXML :: DashIsoMpdProfile -> XML
Core.ToXML
    )

pattern DashIsoMpdProfile_MAIN_PROFILE :: DashIsoMpdProfile
pattern $bDashIsoMpdProfile_MAIN_PROFILE :: DashIsoMpdProfile
$mDashIsoMpdProfile_MAIN_PROFILE :: forall r. DashIsoMpdProfile -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
DashIsoMpdProfile_ON_DEMAND_PROFILE = DashIsoMpdProfile' "ON_DEMAND_PROFILE"

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