{-# 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.HlsDiscontinuityTags
-- 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.HlsDiscontinuityTags
  ( HlsDiscontinuityTags
      ( ..,
        HlsDiscontinuityTags_INSERT,
        HlsDiscontinuityTags_NEVER_INSERT
      ),
  )
where

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

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

pattern HlsDiscontinuityTags_INSERT :: HlsDiscontinuityTags
pattern $bHlsDiscontinuityTags_INSERT :: HlsDiscontinuityTags
$mHlsDiscontinuityTags_INSERT :: forall r. HlsDiscontinuityTags -> (Void# -> r) -> (Void# -> r) -> r
HlsDiscontinuityTags_INSERT = HlsDiscontinuityTags' "INSERT"

pattern HlsDiscontinuityTags_NEVER_INSERT :: HlsDiscontinuityTags
pattern $bHlsDiscontinuityTags_NEVER_INSERT :: HlsDiscontinuityTags
$mHlsDiscontinuityTags_NEVER_INSERT :: forall r. HlsDiscontinuityTags -> (Void# -> r) -> (Void# -> r) -> r
HlsDiscontinuityTags_NEVER_INSERT = HlsDiscontinuityTags' "NEVER_INSERT"

{-# COMPLETE
  HlsDiscontinuityTags_INSERT,
  HlsDiscontinuityTags_NEVER_INSERT,
  HlsDiscontinuityTags'
  #-}