{-# 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.MediaLive.Types.M2tsAudioInterval
-- 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.MediaLive.Types.M2tsAudioInterval
  ( M2tsAudioInterval
      ( ..,
        M2tsAudioInterval_VIDEO_AND_FIXED_INTERVALS,
        M2tsAudioInterval_VIDEO_INTERVAL
      ),
  )
where

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

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

pattern M2tsAudioInterval_VIDEO_AND_FIXED_INTERVALS :: M2tsAudioInterval
pattern $bM2tsAudioInterval_VIDEO_AND_FIXED_INTERVALS :: M2tsAudioInterval
$mM2tsAudioInterval_VIDEO_AND_FIXED_INTERVALS :: forall r. M2tsAudioInterval -> (Void# -> r) -> (Void# -> r) -> r
M2tsAudioInterval_VIDEO_AND_FIXED_INTERVALS = M2tsAudioInterval' "VIDEO_AND_FIXED_INTERVALS"

pattern M2tsAudioInterval_VIDEO_INTERVAL :: M2tsAudioInterval
pattern $bM2tsAudioInterval_VIDEO_INTERVAL :: M2tsAudioInterval
$mM2tsAudioInterval_VIDEO_INTERVAL :: forall r. M2tsAudioInterval -> (Void# -> r) -> (Void# -> r) -> r
M2tsAudioInterval_VIDEO_INTERVAL = M2tsAudioInterval' "VIDEO_INTERVAL"

{-# COMPLETE
  M2tsAudioInterval_VIDEO_AND_FIXED_INTERVALS,
  M2tsAudioInterval_VIDEO_INTERVAL,
  M2tsAudioInterval'
  #-}