{-# 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.SmoothGroupSparseTrackType
-- 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.MediaLive.Types.SmoothGroupSparseTrackType
  ( SmoothGroupSparseTrackType
      ( ..,
        SmoothGroupSparseTrackType_NONE,
        SmoothGroupSparseTrackType_SCTE_35,
        SmoothGroupSparseTrackType_SCTE_35_WITHOUT_SEGMENTATION
      ),
  )
where

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

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

pattern SmoothGroupSparseTrackType_NONE :: SmoothGroupSparseTrackType
pattern $bSmoothGroupSparseTrackType_NONE :: SmoothGroupSparseTrackType
$mSmoothGroupSparseTrackType_NONE :: forall {r}.
SmoothGroupSparseTrackType -> ((# #) -> r) -> ((# #) -> r) -> r
SmoothGroupSparseTrackType_NONE = SmoothGroupSparseTrackType' "NONE"

pattern SmoothGroupSparseTrackType_SCTE_35 :: SmoothGroupSparseTrackType
pattern $bSmoothGroupSparseTrackType_SCTE_35 :: SmoothGroupSparseTrackType
$mSmoothGroupSparseTrackType_SCTE_35 :: forall {r}.
SmoothGroupSparseTrackType -> ((# #) -> r) -> ((# #) -> r) -> r
SmoothGroupSparseTrackType_SCTE_35 = SmoothGroupSparseTrackType' "SCTE_35"

pattern SmoothGroupSparseTrackType_SCTE_35_WITHOUT_SEGMENTATION :: SmoothGroupSparseTrackType
pattern $bSmoothGroupSparseTrackType_SCTE_35_WITHOUT_SEGMENTATION :: SmoothGroupSparseTrackType
$mSmoothGroupSparseTrackType_SCTE_35_WITHOUT_SEGMENTATION :: forall {r}.
SmoothGroupSparseTrackType -> ((# #) -> r) -> ((# #) -> r) -> r
SmoothGroupSparseTrackType_SCTE_35_WITHOUT_SEGMENTATION = SmoothGroupSparseTrackType' "SCTE_35_WITHOUT_SEGMENTATION"

{-# COMPLETE
  SmoothGroupSparseTrackType_NONE,
  SmoothGroupSparseTrackType_SCTE_35,
  SmoothGroupSparseTrackType_SCTE_35_WITHOUT_SEGMENTATION,
  SmoothGroupSparseTrackType'
  #-}