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

pattern CmafIntervalCadence_FOLLOW_CUSTOM :: CmafIntervalCadence
pattern $bCmafIntervalCadence_FOLLOW_CUSTOM :: CmafIntervalCadence
$mCmafIntervalCadence_FOLLOW_CUSTOM :: forall r. CmafIntervalCadence -> (Void# -> r) -> (Void# -> r) -> r
CmafIntervalCadence_FOLLOW_CUSTOM = CmafIntervalCadence' "FOLLOW_CUSTOM"

pattern CmafIntervalCadence_FOLLOW_IFRAME :: CmafIntervalCadence
pattern $bCmafIntervalCadence_FOLLOW_IFRAME :: CmafIntervalCadence
$mCmafIntervalCadence_FOLLOW_IFRAME :: forall r. CmafIntervalCadence -> (Void# -> r) -> (Void# -> r) -> r
CmafIntervalCadence_FOLLOW_IFRAME = CmafIntervalCadence' "FOLLOW_IFRAME"

{-# COMPLETE
  CmafIntervalCadence_FOLLOW_CUSTOM,
  CmafIntervalCadence_FOLLOW_IFRAME,
  CmafIntervalCadence'
  #-}