{-# 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-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.CmafIntervalCadence
  ( CmafIntervalCadence
      ( ..,
        CmafIntervalCadence_FOLLOW_CUSTOM,
        CmafIntervalCadence_FOLLOW_IFRAME
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> CmafIntervalCadence -> ShowS
[CmafIntervalCadence] -> ShowS
CmafIntervalCadence -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CmafIntervalCadence
Int -> CmafIntervalCadence -> Int
CmafIntervalCadence -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CmafIntervalCadence -> ()
$crnf :: CmafIntervalCadence -> ()
Prelude.NFData,
      Text -> Either String CmafIntervalCadence
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmafIntervalCadence
$cfromText :: Text -> Either String CmafIntervalCadence
Data.FromText,
      CmafIntervalCadence -> Text
forall a. (a -> Text) -> ToText a
toText :: CmafIntervalCadence -> Text
$ctoText :: CmafIntervalCadence -> Text
Data.ToText,
      CmafIntervalCadence -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmafIntervalCadence -> ByteString
$ctoBS :: CmafIntervalCadence -> ByteString
Data.ToByteString,
      CmafIntervalCadence -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmafIntervalCadence -> ByteStringBuilder
$cbuild :: CmafIntervalCadence -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CmafIntervalCadence -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmafIntervalCadence -> [Header]
$ctoHeader :: HeaderName -> CmafIntervalCadence -> [Header]
Data.ToHeader,
      CmafIntervalCadence -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmafIntervalCadence -> QueryString
$ctoQuery :: CmafIntervalCadence -> QueryString
Data.ToQuery,
      Value -> Parser [CmafIntervalCadence]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CmafIntervalCadence]
FromJSONKeyFunction CmafIntervalCadence
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmafIntervalCadence]
$cfromJSONKeyList :: FromJSONKeyFunction [CmafIntervalCadence]
fromJSONKey :: FromJSONKeyFunction CmafIntervalCadence
$cfromJSONKey :: FromJSONKeyFunction CmafIntervalCadence
Data.FromJSONKey,
      [CmafIntervalCadence] -> Encoding
[CmafIntervalCadence] -> Value
CmafIntervalCadence -> Encoding
CmafIntervalCadence -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CmafIntervalCadence]
ToJSONKeyFunction CmafIntervalCadence
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmafIntervalCadence]
$ctoJSONKeyList :: ToJSONKeyFunction [CmafIntervalCadence]
toJSONKey :: ToJSONKeyFunction CmafIntervalCadence
$ctoJSONKey :: ToJSONKeyFunction CmafIntervalCadence
Data.ToJSONKey,
      [Node] -> Either String CmafIntervalCadence
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmafIntervalCadence
$cparseXML :: [Node] -> Either String CmafIntervalCadence
Data.FromXML,
      CmafIntervalCadence -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CmafIntervalCadence -> XML
$ctoXML :: CmafIntervalCadence -> XML
Data.ToXML
    )

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

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

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