{-# 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-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.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.Prelude as Prelude

newtype SegmentTemplateFormat = SegmentTemplateFormat'
  { SegmentTemplateFormat -> Text
fromSegmentTemplateFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> SegmentTemplateFormat -> ShowS
[SegmentTemplateFormat] -> ShowS
SegmentTemplateFormat -> String
(Int -> SegmentTemplateFormat -> ShowS)
-> (SegmentTemplateFormat -> String)
-> ([SegmentTemplateFormat] -> ShowS)
-> Show SegmentTemplateFormat
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]
(Int -> ReadS SegmentTemplateFormat)
-> ReadS [SegmentTemplateFormat]
-> ReadPrec SegmentTemplateFormat
-> ReadPrec [SegmentTemplateFormat]
-> Read 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
(SegmentTemplateFormat -> SegmentTemplateFormat -> Bool)
-> (SegmentTemplateFormat -> SegmentTemplateFormat -> Bool)
-> Eq SegmentTemplateFormat
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
Eq SegmentTemplateFormat
-> (SegmentTemplateFormat -> SegmentTemplateFormat -> Ordering)
-> (SegmentTemplateFormat -> SegmentTemplateFormat -> Bool)
-> (SegmentTemplateFormat -> SegmentTemplateFormat -> Bool)
-> (SegmentTemplateFormat -> SegmentTemplateFormat -> Bool)
-> (SegmentTemplateFormat -> SegmentTemplateFormat -> Bool)
-> (SegmentTemplateFormat
    -> SegmentTemplateFormat -> SegmentTemplateFormat)
-> (SegmentTemplateFormat
    -> SegmentTemplateFormat -> SegmentTemplateFormat)
-> Ord 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
$cp1Ord :: Eq SegmentTemplateFormat
Prelude.Ord,
      (forall x. SegmentTemplateFormat -> Rep SegmentTemplateFormat x)
-> (forall x. Rep SegmentTemplateFormat x -> SegmentTemplateFormat)
-> Generic SegmentTemplateFormat
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
    ( Int -> SegmentTemplateFormat -> Int
SegmentTemplateFormat -> Int
(Int -> SegmentTemplateFormat -> Int)
-> (SegmentTemplateFormat -> Int) -> Hashable SegmentTemplateFormat
forall 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 -> ()
(SegmentTemplateFormat -> ()) -> NFData SegmentTemplateFormat
forall a. (a -> ()) -> NFData a
rnf :: SegmentTemplateFormat -> ()
$crnf :: SegmentTemplateFormat -> ()
Prelude.NFData,
      Text -> Either String SegmentTemplateFormat
(Text -> Either String SegmentTemplateFormat)
-> FromText SegmentTemplateFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SegmentTemplateFormat
$cfromText :: Text -> Either String SegmentTemplateFormat
Core.FromText,
      SegmentTemplateFormat -> Text
(SegmentTemplateFormat -> Text) -> ToText SegmentTemplateFormat
forall a. (a -> Text) -> ToText a
toText :: SegmentTemplateFormat -> Text
$ctoText :: SegmentTemplateFormat -> Text
Core.ToText,
      SegmentTemplateFormat -> ByteString
(SegmentTemplateFormat -> ByteString)
-> ToByteString SegmentTemplateFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: SegmentTemplateFormat -> ByteString
$ctoBS :: SegmentTemplateFormat -> ByteString
Core.ToByteString,
      SegmentTemplateFormat -> ByteStringBuilder
(SegmentTemplateFormat -> ByteStringBuilder)
-> ToLog SegmentTemplateFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SegmentTemplateFormat -> ByteStringBuilder
$cbuild :: SegmentTemplateFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SegmentTemplateFormat -> [Header]
(HeaderName -> SegmentTemplateFormat -> [Header])
-> ToHeader SegmentTemplateFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SegmentTemplateFormat -> [Header]
$ctoHeader :: HeaderName -> SegmentTemplateFormat -> [Header]
Core.ToHeader,
      SegmentTemplateFormat -> QueryString
(SegmentTemplateFormat -> QueryString)
-> ToQuery SegmentTemplateFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SegmentTemplateFormat -> QueryString
$ctoQuery :: SegmentTemplateFormat -> QueryString
Core.ToQuery,
      Value -> Parser [SegmentTemplateFormat]
Value -> Parser SegmentTemplateFormat
(Value -> Parser SegmentTemplateFormat)
-> (Value -> Parser [SegmentTemplateFormat])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SegmentTemplateFormat]
FromJSONKeyFunction SegmentTemplateFormat
FromJSONKeyFunction SegmentTemplateFormat
-> FromJSONKeyFunction [SegmentTemplateFormat]
-> FromJSONKey SegmentTemplateFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SegmentTemplateFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [SegmentTemplateFormat]
fromJSONKey :: FromJSONKeyFunction SegmentTemplateFormat
$cfromJSONKey :: FromJSONKeyFunction SegmentTemplateFormat
Core.FromJSONKey,
      [SegmentTemplateFormat] -> Encoding
[SegmentTemplateFormat] -> Value
SegmentTemplateFormat -> Encoding
SegmentTemplateFormat -> Value
(SegmentTemplateFormat -> Value)
-> (SegmentTemplateFormat -> Encoding)
-> ([SegmentTemplateFormat] -> Value)
-> ([SegmentTemplateFormat] -> Encoding)
-> ToJSON SegmentTemplateFormat
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
Core.ToJSON,
      ToJSONKeyFunction [SegmentTemplateFormat]
ToJSONKeyFunction SegmentTemplateFormat
ToJSONKeyFunction SegmentTemplateFormat
-> ToJSONKeyFunction [SegmentTemplateFormat]
-> ToJSONKey SegmentTemplateFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SegmentTemplateFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [SegmentTemplateFormat]
toJSONKey :: ToJSONKeyFunction SegmentTemplateFormat
$ctoJSONKey :: ToJSONKeyFunction SegmentTemplateFormat
Core.ToJSONKey,
      [Node] -> Either String SegmentTemplateFormat
([Node] -> Either String SegmentTemplateFormat)
-> FromXML SegmentTemplateFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SegmentTemplateFormat
$cparseXML :: [Node] -> Either String SegmentTemplateFormat
Core.FromXML,
      SegmentTemplateFormat -> XML
(SegmentTemplateFormat -> XML) -> ToXML SegmentTemplateFormat
forall a. (a -> XML) -> ToXML a
toXML :: SegmentTemplateFormat -> XML
$ctoXML :: SegmentTemplateFormat -> XML
Core.ToXML
    )

pattern SegmentTemplateFormat_NUMBER_WITH_DURATION :: SegmentTemplateFormat
pattern $bSegmentTemplateFormat_NUMBER_WITH_DURATION :: SegmentTemplateFormat
$mSegmentTemplateFormat_NUMBER_WITH_DURATION :: forall r.
SegmentTemplateFormat -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
SegmentTemplateFormat_TIME_WITH_TIMELINE = SegmentTemplateFormat' "TIME_WITH_TIMELINE"

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