{-# 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.DashIsoIntervalCadence
-- 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.DashIsoIntervalCadence
  ( DashIsoIntervalCadence
      ( ..,
        DashIsoIntervalCadence_FOLLOW_CUSTOM,
        DashIsoIntervalCadence_FOLLOW_IFRAME
      ),
  )
where

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

-- | The cadence MediaConvert follows for generating thumbnails. If set to
-- FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in
-- the output (matching the GOP cadence). If set to FOLLOW_CUSTOM,
-- MediaConvert generates thumbnails according to the interval you specify
-- in thumbnailInterval.
newtype DashIsoIntervalCadence = DashIsoIntervalCadence'
  { DashIsoIntervalCadence -> Text
fromDashIsoIntervalCadence ::
      Core.Text
  }
  deriving stock
    ( Int -> DashIsoIntervalCadence -> ShowS
[DashIsoIntervalCadence] -> ShowS
DashIsoIntervalCadence -> String
(Int -> DashIsoIntervalCadence -> ShowS)
-> (DashIsoIntervalCadence -> String)
-> ([DashIsoIntervalCadence] -> ShowS)
-> Show DashIsoIntervalCadence
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashIsoIntervalCadence] -> ShowS
$cshowList :: [DashIsoIntervalCadence] -> ShowS
show :: DashIsoIntervalCadence -> String
$cshow :: DashIsoIntervalCadence -> String
showsPrec :: Int -> DashIsoIntervalCadence -> ShowS
$cshowsPrec :: Int -> DashIsoIntervalCadence -> ShowS
Prelude.Show,
      ReadPrec [DashIsoIntervalCadence]
ReadPrec DashIsoIntervalCadence
Int -> ReadS DashIsoIntervalCadence
ReadS [DashIsoIntervalCadence]
(Int -> ReadS DashIsoIntervalCadence)
-> ReadS [DashIsoIntervalCadence]
-> ReadPrec DashIsoIntervalCadence
-> ReadPrec [DashIsoIntervalCadence]
-> Read DashIsoIntervalCadence
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashIsoIntervalCadence]
$creadListPrec :: ReadPrec [DashIsoIntervalCadence]
readPrec :: ReadPrec DashIsoIntervalCadence
$creadPrec :: ReadPrec DashIsoIntervalCadence
readList :: ReadS [DashIsoIntervalCadence]
$creadList :: ReadS [DashIsoIntervalCadence]
readsPrec :: Int -> ReadS DashIsoIntervalCadence
$creadsPrec :: Int -> ReadS DashIsoIntervalCadence
Prelude.Read,
      DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
(DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool)
-> (DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool)
-> Eq DashIsoIntervalCadence
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
$c/= :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
== :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
$c== :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
Prelude.Eq,
      Eq DashIsoIntervalCadence
Eq DashIsoIntervalCadence
-> (DashIsoIntervalCadence -> DashIsoIntervalCadence -> Ordering)
-> (DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool)
-> (DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool)
-> (DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool)
-> (DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool)
-> (DashIsoIntervalCadence
    -> DashIsoIntervalCadence -> DashIsoIntervalCadence)
-> (DashIsoIntervalCadence
    -> DashIsoIntervalCadence -> DashIsoIntervalCadence)
-> Ord DashIsoIntervalCadence
DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
DashIsoIntervalCadence -> DashIsoIntervalCadence -> Ordering
DashIsoIntervalCadence
-> DashIsoIntervalCadence -> DashIsoIntervalCadence
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 :: DashIsoIntervalCadence
-> DashIsoIntervalCadence -> DashIsoIntervalCadence
$cmin :: DashIsoIntervalCadence
-> DashIsoIntervalCadence -> DashIsoIntervalCadence
max :: DashIsoIntervalCadence
-> DashIsoIntervalCadence -> DashIsoIntervalCadence
$cmax :: DashIsoIntervalCadence
-> DashIsoIntervalCadence -> DashIsoIntervalCadence
>= :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
$c>= :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
> :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
$c> :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
<= :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
$c<= :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
< :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
$c< :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Bool
compare :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Ordering
$ccompare :: DashIsoIntervalCadence -> DashIsoIntervalCadence -> Ordering
$cp1Ord :: Eq DashIsoIntervalCadence
Prelude.Ord,
      (forall x. DashIsoIntervalCadence -> Rep DashIsoIntervalCadence x)
-> (forall x.
    Rep DashIsoIntervalCadence x -> DashIsoIntervalCadence)
-> Generic DashIsoIntervalCadence
forall x. Rep DashIsoIntervalCadence x -> DashIsoIntervalCadence
forall x. DashIsoIntervalCadence -> Rep DashIsoIntervalCadence x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DashIsoIntervalCadence x -> DashIsoIntervalCadence
$cfrom :: forall x. DashIsoIntervalCadence -> Rep DashIsoIntervalCadence x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DashIsoIntervalCadence -> Int
DashIsoIntervalCadence -> Int
(Int -> DashIsoIntervalCadence -> Int)
-> (DashIsoIntervalCadence -> Int)
-> Hashable DashIsoIntervalCadence
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DashIsoIntervalCadence -> Int
$chash :: DashIsoIntervalCadence -> Int
hashWithSalt :: Int -> DashIsoIntervalCadence -> Int
$chashWithSalt :: Int -> DashIsoIntervalCadence -> Int
Prelude.Hashable,
      DashIsoIntervalCadence -> ()
(DashIsoIntervalCadence -> ()) -> NFData DashIsoIntervalCadence
forall a. (a -> ()) -> NFData a
rnf :: DashIsoIntervalCadence -> ()
$crnf :: DashIsoIntervalCadence -> ()
Prelude.NFData,
      Text -> Either String DashIsoIntervalCadence
(Text -> Either String DashIsoIntervalCadence)
-> FromText DashIsoIntervalCadence
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashIsoIntervalCadence
$cfromText :: Text -> Either String DashIsoIntervalCadence
Core.FromText,
      DashIsoIntervalCadence -> Text
(DashIsoIntervalCadence -> Text) -> ToText DashIsoIntervalCadence
forall a. (a -> Text) -> ToText a
toText :: DashIsoIntervalCadence -> Text
$ctoText :: DashIsoIntervalCadence -> Text
Core.ToText,
      DashIsoIntervalCadence -> ByteString
(DashIsoIntervalCadence -> ByteString)
-> ToByteString DashIsoIntervalCadence
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashIsoIntervalCadence -> ByteString
$ctoBS :: DashIsoIntervalCadence -> ByteString
Core.ToByteString,
      DashIsoIntervalCadence -> ByteStringBuilder
(DashIsoIntervalCadence -> ByteStringBuilder)
-> ToLog DashIsoIntervalCadence
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashIsoIntervalCadence -> ByteStringBuilder
$cbuild :: DashIsoIntervalCadence -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DashIsoIntervalCadence -> [Header]
(HeaderName -> DashIsoIntervalCadence -> [Header])
-> ToHeader DashIsoIntervalCadence
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DashIsoIntervalCadence -> [Header]
$ctoHeader :: HeaderName -> DashIsoIntervalCadence -> [Header]
Core.ToHeader,
      DashIsoIntervalCadence -> QueryString
(DashIsoIntervalCadence -> QueryString)
-> ToQuery DashIsoIntervalCadence
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashIsoIntervalCadence -> QueryString
$ctoQuery :: DashIsoIntervalCadence -> QueryString
Core.ToQuery,
      Value -> Parser [DashIsoIntervalCadence]
Value -> Parser DashIsoIntervalCadence
(Value -> Parser DashIsoIntervalCadence)
-> (Value -> Parser [DashIsoIntervalCadence])
-> FromJSON DashIsoIntervalCadence
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DashIsoIntervalCadence]
$cparseJSONList :: Value -> Parser [DashIsoIntervalCadence]
parseJSON :: Value -> Parser DashIsoIntervalCadence
$cparseJSON :: Value -> Parser DashIsoIntervalCadence
Core.FromJSON,
      FromJSONKeyFunction [DashIsoIntervalCadence]
FromJSONKeyFunction DashIsoIntervalCadence
FromJSONKeyFunction DashIsoIntervalCadence
-> FromJSONKeyFunction [DashIsoIntervalCadence]
-> FromJSONKey DashIsoIntervalCadence
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashIsoIntervalCadence]
$cfromJSONKeyList :: FromJSONKeyFunction [DashIsoIntervalCadence]
fromJSONKey :: FromJSONKeyFunction DashIsoIntervalCadence
$cfromJSONKey :: FromJSONKeyFunction DashIsoIntervalCadence
Core.FromJSONKey,
      [DashIsoIntervalCadence] -> Encoding
[DashIsoIntervalCadence] -> Value
DashIsoIntervalCadence -> Encoding
DashIsoIntervalCadence -> Value
(DashIsoIntervalCadence -> Value)
-> (DashIsoIntervalCadence -> Encoding)
-> ([DashIsoIntervalCadence] -> Value)
-> ([DashIsoIntervalCadence] -> Encoding)
-> ToJSON DashIsoIntervalCadence
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DashIsoIntervalCadence] -> Encoding
$ctoEncodingList :: [DashIsoIntervalCadence] -> Encoding
toJSONList :: [DashIsoIntervalCadence] -> Value
$ctoJSONList :: [DashIsoIntervalCadence] -> Value
toEncoding :: DashIsoIntervalCadence -> Encoding
$ctoEncoding :: DashIsoIntervalCadence -> Encoding
toJSON :: DashIsoIntervalCadence -> Value
$ctoJSON :: DashIsoIntervalCadence -> Value
Core.ToJSON,
      ToJSONKeyFunction [DashIsoIntervalCadence]
ToJSONKeyFunction DashIsoIntervalCadence
ToJSONKeyFunction DashIsoIntervalCadence
-> ToJSONKeyFunction [DashIsoIntervalCadence]
-> ToJSONKey DashIsoIntervalCadence
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashIsoIntervalCadence]
$ctoJSONKeyList :: ToJSONKeyFunction [DashIsoIntervalCadence]
toJSONKey :: ToJSONKeyFunction DashIsoIntervalCadence
$ctoJSONKey :: ToJSONKeyFunction DashIsoIntervalCadence
Core.ToJSONKey,
      [Node] -> Either String DashIsoIntervalCadence
([Node] -> Either String DashIsoIntervalCadence)
-> FromXML DashIsoIntervalCadence
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashIsoIntervalCadence
$cparseXML :: [Node] -> Either String DashIsoIntervalCadence
Core.FromXML,
      DashIsoIntervalCadence -> XML
(DashIsoIntervalCadence -> XML) -> ToXML DashIsoIntervalCadence
forall a. (a -> XML) -> ToXML a
toXML :: DashIsoIntervalCadence -> XML
$ctoXML :: DashIsoIntervalCadence -> XML
Core.ToXML
    )

pattern DashIsoIntervalCadence_FOLLOW_CUSTOM :: DashIsoIntervalCadence
pattern $bDashIsoIntervalCadence_FOLLOW_CUSTOM :: DashIsoIntervalCadence
$mDashIsoIntervalCadence_FOLLOW_CUSTOM :: forall r.
DashIsoIntervalCadence -> (Void# -> r) -> (Void# -> r) -> r
DashIsoIntervalCadence_FOLLOW_CUSTOM = DashIsoIntervalCadence' "FOLLOW_CUSTOM"

pattern DashIsoIntervalCadence_FOLLOW_IFRAME :: DashIsoIntervalCadence
pattern $bDashIsoIntervalCadence_FOLLOW_IFRAME :: DashIsoIntervalCadence
$mDashIsoIntervalCadence_FOLLOW_IFRAME :: forall r.
DashIsoIntervalCadence -> (Void# -> r) -> (Void# -> r) -> r
DashIsoIntervalCadence_FOLLOW_IFRAME = DashIsoIntervalCadence' "FOLLOW_IFRAME"

{-# COMPLETE
  DashIsoIntervalCadence_FOLLOW_CUSTOM,
  DashIsoIntervalCadence_FOLLOW_IFRAME,
  DashIsoIntervalCadence'
  #-}