{-# 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.MediaPackageVOD.Types.SegmentTemplateFormat
-- 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.MediaPackageVOD.Types.SegmentTemplateFormat
  ( SegmentTemplateFormat
      ( ..,
        SegmentTemplateFormat_NUMBER_WITH_DURATION,
        SegmentTemplateFormat_NUMBER_WITH_TIMELINE,
        SegmentTemplateFormat_TIME_WITH_TIMELINE
      ),
  )
where

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

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

pattern SegmentTemplateFormat_NUMBER_WITH_DURATION :: SegmentTemplateFormat
pattern $bSegmentTemplateFormat_NUMBER_WITH_DURATION :: SegmentTemplateFormat
$mSegmentTemplateFormat_NUMBER_WITH_DURATION :: forall {r}.
SegmentTemplateFormat -> ((# #) -> r) -> ((# #) -> r) -> r
SegmentTemplateFormat_NUMBER_WITH_DURATION = SegmentTemplateFormat' "NUMBER_WITH_DURATION"

pattern SegmentTemplateFormat_NUMBER_WITH_TIMELINE :: SegmentTemplateFormat
pattern $bSegmentTemplateFormat_NUMBER_WITH_TIMELINE :: SegmentTemplateFormat
$mSegmentTemplateFormat_NUMBER_WITH_TIMELINE :: forall {r}.
SegmentTemplateFormat -> ((# #) -> r) -> ((# #) -> r) -> r
SegmentTemplateFormat_NUMBER_WITH_TIMELINE = SegmentTemplateFormat' "NUMBER_WITH_TIMELINE"

pattern SegmentTemplateFormat_TIME_WITH_TIMELINE :: SegmentTemplateFormat
pattern $bSegmentTemplateFormat_TIME_WITH_TIMELINE :: SegmentTemplateFormat
$mSegmentTemplateFormat_TIME_WITH_TIMELINE :: forall {r}.
SegmentTemplateFormat -> ((# #) -> r) -> ((# #) -> r) -> r
SegmentTemplateFormat_TIME_WITH_TIMELINE = SegmentTemplateFormat' "TIME_WITH_TIMELINE"

{-# COMPLETE
  SegmentTemplateFormat_NUMBER_WITH_DURATION,
  SegmentTemplateFormat_NUMBER_WITH_TIMELINE,
  SegmentTemplateFormat_TIME_WITH_TIMELINE,
  SegmentTemplateFormat'
  #-}