{-# 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.HlsIncompleteSegmentBehavior
-- 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.HlsIncompleteSegmentBehavior
  ( HlsIncompleteSegmentBehavior
      ( ..,
        HlsIncompleteSegmentBehavior_AUTO,
        HlsIncompleteSegmentBehavior_SUPPRESS
      ),
  )
where

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

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

pattern HlsIncompleteSegmentBehavior_AUTO :: HlsIncompleteSegmentBehavior
pattern $bHlsIncompleteSegmentBehavior_AUTO :: HlsIncompleteSegmentBehavior
$mHlsIncompleteSegmentBehavior_AUTO :: forall r.
HlsIncompleteSegmentBehavior -> (Void# -> r) -> (Void# -> r) -> r
HlsIncompleteSegmentBehavior_AUTO = HlsIncompleteSegmentBehavior' "AUTO"

pattern HlsIncompleteSegmentBehavior_SUPPRESS :: HlsIncompleteSegmentBehavior
pattern $bHlsIncompleteSegmentBehavior_SUPPRESS :: HlsIncompleteSegmentBehavior
$mHlsIncompleteSegmentBehavior_SUPPRESS :: forall r.
HlsIncompleteSegmentBehavior -> (Void# -> r) -> (Void# -> r) -> r
HlsIncompleteSegmentBehavior_SUPPRESS = HlsIncompleteSegmentBehavior' "SUPPRESS"

{-# COMPLETE
  HlsIncompleteSegmentBehavior_AUTO,
  HlsIncompleteSegmentBehavior_SUPPRESS,
  HlsIncompleteSegmentBehavior'
  #-}