{-# 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.HlsId3SegmentTaggingState
-- 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.HlsId3SegmentTaggingState
  ( HlsId3SegmentTaggingState
      ( ..,
        HlsId3SegmentTaggingState_DISABLED,
        HlsId3SegmentTaggingState_ENABLED
      ),
  )
where

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

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

pattern HlsId3SegmentTaggingState_DISABLED :: HlsId3SegmentTaggingState
pattern $bHlsId3SegmentTaggingState_DISABLED :: HlsId3SegmentTaggingState
$mHlsId3SegmentTaggingState_DISABLED :: forall r.
HlsId3SegmentTaggingState -> (Void# -> r) -> (Void# -> r) -> r
HlsId3SegmentTaggingState_DISABLED = HlsId3SegmentTaggingState' "DISABLED"

pattern HlsId3SegmentTaggingState_ENABLED :: HlsId3SegmentTaggingState
pattern $bHlsId3SegmentTaggingState_ENABLED :: HlsId3SegmentTaggingState
$mHlsId3SegmentTaggingState_ENABLED :: forall r.
HlsId3SegmentTaggingState -> (Void# -> r) -> (Void# -> r) -> r
HlsId3SegmentTaggingState_ENABLED = HlsId3SegmentTaggingState' "ENABLED"

{-# COMPLETE
  HlsId3SegmentTaggingState_DISABLED,
  HlsId3SegmentTaggingState_ENABLED,
  HlsId3SegmentTaggingState'
  #-}