{-# 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.DashIsoImageBasedTrickPlay
-- 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.DashIsoImageBasedTrickPlay
  ( DashIsoImageBasedTrickPlay
      ( ..,
        DashIsoImageBasedTrickPlay_ADVANCED,
        DashIsoImageBasedTrickPlay_NONE,
        DashIsoImageBasedTrickPlay_THUMBNAIL,
        DashIsoImageBasedTrickPlay_THUMBNAIL_AND_FULLFRAME
      ),
  )
where

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

-- | Specify whether MediaConvert generates images for trick play. Keep the
-- default value, None (NONE), to not generate any images. Choose Thumbnail
-- (THUMBNAIL) to generate tiled thumbnails. Choose Thumbnail and full
-- frame (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and
-- full-resolution images of single frames. MediaConvert adds an entry in
-- the .mpd manifest for each set of images that you generate. A common
-- application for these images is Roku trick mode. The thumbnails and
-- full-frame images that MediaConvert creates with this feature are
-- compatible with this Roku specification:
-- https:\/\/developer.roku.com\/docs\/developer-program\/media-playback\/trick-mode\/hls-and-dash.md
newtype DashIsoImageBasedTrickPlay = DashIsoImageBasedTrickPlay'
  { DashIsoImageBasedTrickPlay -> Text
fromDashIsoImageBasedTrickPlay ::
      Core.Text
  }
  deriving stock
    ( Int -> DashIsoImageBasedTrickPlay -> ShowS
[DashIsoImageBasedTrickPlay] -> ShowS
DashIsoImageBasedTrickPlay -> String
(Int -> DashIsoImageBasedTrickPlay -> ShowS)
-> (DashIsoImageBasedTrickPlay -> String)
-> ([DashIsoImageBasedTrickPlay] -> ShowS)
-> Show DashIsoImageBasedTrickPlay
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashIsoImageBasedTrickPlay] -> ShowS
$cshowList :: [DashIsoImageBasedTrickPlay] -> ShowS
show :: DashIsoImageBasedTrickPlay -> String
$cshow :: DashIsoImageBasedTrickPlay -> String
showsPrec :: Int -> DashIsoImageBasedTrickPlay -> ShowS
$cshowsPrec :: Int -> DashIsoImageBasedTrickPlay -> ShowS
Prelude.Show,
      ReadPrec [DashIsoImageBasedTrickPlay]
ReadPrec DashIsoImageBasedTrickPlay
Int -> ReadS DashIsoImageBasedTrickPlay
ReadS [DashIsoImageBasedTrickPlay]
(Int -> ReadS DashIsoImageBasedTrickPlay)
-> ReadS [DashIsoImageBasedTrickPlay]
-> ReadPrec DashIsoImageBasedTrickPlay
-> ReadPrec [DashIsoImageBasedTrickPlay]
-> Read DashIsoImageBasedTrickPlay
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashIsoImageBasedTrickPlay]
$creadListPrec :: ReadPrec [DashIsoImageBasedTrickPlay]
readPrec :: ReadPrec DashIsoImageBasedTrickPlay
$creadPrec :: ReadPrec DashIsoImageBasedTrickPlay
readList :: ReadS [DashIsoImageBasedTrickPlay]
$creadList :: ReadS [DashIsoImageBasedTrickPlay]
readsPrec :: Int -> ReadS DashIsoImageBasedTrickPlay
$creadsPrec :: Int -> ReadS DashIsoImageBasedTrickPlay
Prelude.Read,
      DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
(DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> Bool)
-> Eq DashIsoImageBasedTrickPlay
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
$c/= :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
== :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
$c== :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
Prelude.Eq,
      Eq DashIsoImageBasedTrickPlay
Eq DashIsoImageBasedTrickPlay
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> Ordering)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> Bool)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> Bool)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> Bool)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> Bool)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay)
-> (DashIsoImageBasedTrickPlay
    -> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay)
-> Ord DashIsoImageBasedTrickPlay
DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> Ordering
DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay
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 :: DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay
$cmin :: DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay
max :: DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay
$cmax :: DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay
>= :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
$c>= :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
> :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
$c> :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
<= :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
$c<= :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
< :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
$c< :: DashIsoImageBasedTrickPlay -> DashIsoImageBasedTrickPlay -> Bool
compare :: DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> Ordering
$ccompare :: DashIsoImageBasedTrickPlay
-> DashIsoImageBasedTrickPlay -> Ordering
$cp1Ord :: Eq DashIsoImageBasedTrickPlay
Prelude.Ord,
      (forall x.
 DashIsoImageBasedTrickPlay -> Rep DashIsoImageBasedTrickPlay x)
-> (forall x.
    Rep DashIsoImageBasedTrickPlay x -> DashIsoImageBasedTrickPlay)
-> Generic DashIsoImageBasedTrickPlay
forall x.
Rep DashIsoImageBasedTrickPlay x -> DashIsoImageBasedTrickPlay
forall x.
DashIsoImageBasedTrickPlay -> Rep DashIsoImageBasedTrickPlay x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DashIsoImageBasedTrickPlay x -> DashIsoImageBasedTrickPlay
$cfrom :: forall x.
DashIsoImageBasedTrickPlay -> Rep DashIsoImageBasedTrickPlay x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DashIsoImageBasedTrickPlay -> Int
DashIsoImageBasedTrickPlay -> Int
(Int -> DashIsoImageBasedTrickPlay -> Int)
-> (DashIsoImageBasedTrickPlay -> Int)
-> Hashable DashIsoImageBasedTrickPlay
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DashIsoImageBasedTrickPlay -> Int
$chash :: DashIsoImageBasedTrickPlay -> Int
hashWithSalt :: Int -> DashIsoImageBasedTrickPlay -> Int
$chashWithSalt :: Int -> DashIsoImageBasedTrickPlay -> Int
Prelude.Hashable,
      DashIsoImageBasedTrickPlay -> ()
(DashIsoImageBasedTrickPlay -> ())
-> NFData DashIsoImageBasedTrickPlay
forall a. (a -> ()) -> NFData a
rnf :: DashIsoImageBasedTrickPlay -> ()
$crnf :: DashIsoImageBasedTrickPlay -> ()
Prelude.NFData,
      Text -> Either String DashIsoImageBasedTrickPlay
(Text -> Either String DashIsoImageBasedTrickPlay)
-> FromText DashIsoImageBasedTrickPlay
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashIsoImageBasedTrickPlay
$cfromText :: Text -> Either String DashIsoImageBasedTrickPlay
Core.FromText,
      DashIsoImageBasedTrickPlay -> Text
(DashIsoImageBasedTrickPlay -> Text)
-> ToText DashIsoImageBasedTrickPlay
forall a. (a -> Text) -> ToText a
toText :: DashIsoImageBasedTrickPlay -> Text
$ctoText :: DashIsoImageBasedTrickPlay -> Text
Core.ToText,
      DashIsoImageBasedTrickPlay -> ByteString
(DashIsoImageBasedTrickPlay -> ByteString)
-> ToByteString DashIsoImageBasedTrickPlay
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashIsoImageBasedTrickPlay -> ByteString
$ctoBS :: DashIsoImageBasedTrickPlay -> ByteString
Core.ToByteString,
      DashIsoImageBasedTrickPlay -> ByteStringBuilder
(DashIsoImageBasedTrickPlay -> ByteStringBuilder)
-> ToLog DashIsoImageBasedTrickPlay
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashIsoImageBasedTrickPlay -> ByteStringBuilder
$cbuild :: DashIsoImageBasedTrickPlay -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DashIsoImageBasedTrickPlay -> [Header]
(HeaderName -> DashIsoImageBasedTrickPlay -> [Header])
-> ToHeader DashIsoImageBasedTrickPlay
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DashIsoImageBasedTrickPlay -> [Header]
$ctoHeader :: HeaderName -> DashIsoImageBasedTrickPlay -> [Header]
Core.ToHeader,
      DashIsoImageBasedTrickPlay -> QueryString
(DashIsoImageBasedTrickPlay -> QueryString)
-> ToQuery DashIsoImageBasedTrickPlay
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashIsoImageBasedTrickPlay -> QueryString
$ctoQuery :: DashIsoImageBasedTrickPlay -> QueryString
Core.ToQuery,
      Value -> Parser [DashIsoImageBasedTrickPlay]
Value -> Parser DashIsoImageBasedTrickPlay
(Value -> Parser DashIsoImageBasedTrickPlay)
-> (Value -> Parser [DashIsoImageBasedTrickPlay])
-> FromJSON DashIsoImageBasedTrickPlay
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DashIsoImageBasedTrickPlay]
$cparseJSONList :: Value -> Parser [DashIsoImageBasedTrickPlay]
parseJSON :: Value -> Parser DashIsoImageBasedTrickPlay
$cparseJSON :: Value -> Parser DashIsoImageBasedTrickPlay
Core.FromJSON,
      FromJSONKeyFunction [DashIsoImageBasedTrickPlay]
FromJSONKeyFunction DashIsoImageBasedTrickPlay
FromJSONKeyFunction DashIsoImageBasedTrickPlay
-> FromJSONKeyFunction [DashIsoImageBasedTrickPlay]
-> FromJSONKey DashIsoImageBasedTrickPlay
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashIsoImageBasedTrickPlay]
$cfromJSONKeyList :: FromJSONKeyFunction [DashIsoImageBasedTrickPlay]
fromJSONKey :: FromJSONKeyFunction DashIsoImageBasedTrickPlay
$cfromJSONKey :: FromJSONKeyFunction DashIsoImageBasedTrickPlay
Core.FromJSONKey,
      [DashIsoImageBasedTrickPlay] -> Encoding
[DashIsoImageBasedTrickPlay] -> Value
DashIsoImageBasedTrickPlay -> Encoding
DashIsoImageBasedTrickPlay -> Value
(DashIsoImageBasedTrickPlay -> Value)
-> (DashIsoImageBasedTrickPlay -> Encoding)
-> ([DashIsoImageBasedTrickPlay] -> Value)
-> ([DashIsoImageBasedTrickPlay] -> Encoding)
-> ToJSON DashIsoImageBasedTrickPlay
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DashIsoImageBasedTrickPlay] -> Encoding
$ctoEncodingList :: [DashIsoImageBasedTrickPlay] -> Encoding
toJSONList :: [DashIsoImageBasedTrickPlay] -> Value
$ctoJSONList :: [DashIsoImageBasedTrickPlay] -> Value
toEncoding :: DashIsoImageBasedTrickPlay -> Encoding
$ctoEncoding :: DashIsoImageBasedTrickPlay -> Encoding
toJSON :: DashIsoImageBasedTrickPlay -> Value
$ctoJSON :: DashIsoImageBasedTrickPlay -> Value
Core.ToJSON,
      ToJSONKeyFunction [DashIsoImageBasedTrickPlay]
ToJSONKeyFunction DashIsoImageBasedTrickPlay
ToJSONKeyFunction DashIsoImageBasedTrickPlay
-> ToJSONKeyFunction [DashIsoImageBasedTrickPlay]
-> ToJSONKey DashIsoImageBasedTrickPlay
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashIsoImageBasedTrickPlay]
$ctoJSONKeyList :: ToJSONKeyFunction [DashIsoImageBasedTrickPlay]
toJSONKey :: ToJSONKeyFunction DashIsoImageBasedTrickPlay
$ctoJSONKey :: ToJSONKeyFunction DashIsoImageBasedTrickPlay
Core.ToJSONKey,
      [Node] -> Either String DashIsoImageBasedTrickPlay
([Node] -> Either String DashIsoImageBasedTrickPlay)
-> FromXML DashIsoImageBasedTrickPlay
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashIsoImageBasedTrickPlay
$cparseXML :: [Node] -> Either String DashIsoImageBasedTrickPlay
Core.FromXML,
      DashIsoImageBasedTrickPlay -> XML
(DashIsoImageBasedTrickPlay -> XML)
-> ToXML DashIsoImageBasedTrickPlay
forall a. (a -> XML) -> ToXML a
toXML :: DashIsoImageBasedTrickPlay -> XML
$ctoXML :: DashIsoImageBasedTrickPlay -> XML
Core.ToXML
    )

pattern DashIsoImageBasedTrickPlay_ADVANCED :: DashIsoImageBasedTrickPlay
pattern $bDashIsoImageBasedTrickPlay_ADVANCED :: DashIsoImageBasedTrickPlay
$mDashIsoImageBasedTrickPlay_ADVANCED :: forall r.
DashIsoImageBasedTrickPlay -> (Void# -> r) -> (Void# -> r) -> r
DashIsoImageBasedTrickPlay_ADVANCED = DashIsoImageBasedTrickPlay' "ADVANCED"

pattern DashIsoImageBasedTrickPlay_NONE :: DashIsoImageBasedTrickPlay
pattern $bDashIsoImageBasedTrickPlay_NONE :: DashIsoImageBasedTrickPlay
$mDashIsoImageBasedTrickPlay_NONE :: forall r.
DashIsoImageBasedTrickPlay -> (Void# -> r) -> (Void# -> r) -> r
DashIsoImageBasedTrickPlay_NONE = DashIsoImageBasedTrickPlay' "NONE"

pattern DashIsoImageBasedTrickPlay_THUMBNAIL :: DashIsoImageBasedTrickPlay
pattern $bDashIsoImageBasedTrickPlay_THUMBNAIL :: DashIsoImageBasedTrickPlay
$mDashIsoImageBasedTrickPlay_THUMBNAIL :: forall r.
DashIsoImageBasedTrickPlay -> (Void# -> r) -> (Void# -> r) -> r
DashIsoImageBasedTrickPlay_THUMBNAIL = DashIsoImageBasedTrickPlay' "THUMBNAIL"

pattern DashIsoImageBasedTrickPlay_THUMBNAIL_AND_FULLFRAME :: DashIsoImageBasedTrickPlay
pattern $bDashIsoImageBasedTrickPlay_THUMBNAIL_AND_FULLFRAME :: DashIsoImageBasedTrickPlay
$mDashIsoImageBasedTrickPlay_THUMBNAIL_AND_FULLFRAME :: forall r.
DashIsoImageBasedTrickPlay -> (Void# -> r) -> (Void# -> r) -> r
DashIsoImageBasedTrickPlay_THUMBNAIL_AND_FULLFRAME = DashIsoImageBasedTrickPlay' "THUMBNAIL_AND_FULLFRAME"

{-# COMPLETE
  DashIsoImageBasedTrickPlay_ADVANCED,
  DashIsoImageBasedTrickPlay_NONE,
  DashIsoImageBasedTrickPlay_THUMBNAIL,
  DashIsoImageBasedTrickPlay_THUMBNAIL_AND_FULLFRAME,
  DashIsoImageBasedTrickPlay'
  #-}