{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.SmoothGroupSegmentationMode
( SmoothGroupSegmentationMode
( ..,
SmoothGroupSegmentationMode_USE_INPUT_SEGMENTATION,
SmoothGroupSegmentationMode_USE_SEGMENT_DURATION
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SmoothGroupSegmentationMode = SmoothGroupSegmentationMode'
{ SmoothGroupSegmentationMode -> Text
fromSmoothGroupSegmentationMode ::
Core.Text
}
deriving stock
( Int -> SmoothGroupSegmentationMode -> ShowS
[SmoothGroupSegmentationMode] -> ShowS
SmoothGroupSegmentationMode -> String
(Int -> SmoothGroupSegmentationMode -> ShowS)
-> (SmoothGroupSegmentationMode -> String)
-> ([SmoothGroupSegmentationMode] -> ShowS)
-> Show SmoothGroupSegmentationMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SmoothGroupSegmentationMode] -> ShowS
$cshowList :: [SmoothGroupSegmentationMode] -> ShowS
show :: SmoothGroupSegmentationMode -> String
$cshow :: SmoothGroupSegmentationMode -> String
showsPrec :: Int -> SmoothGroupSegmentationMode -> ShowS
$cshowsPrec :: Int -> SmoothGroupSegmentationMode -> ShowS
Prelude.Show,
ReadPrec [SmoothGroupSegmentationMode]
ReadPrec SmoothGroupSegmentationMode
Int -> ReadS SmoothGroupSegmentationMode
ReadS [SmoothGroupSegmentationMode]
(Int -> ReadS SmoothGroupSegmentationMode)
-> ReadS [SmoothGroupSegmentationMode]
-> ReadPrec SmoothGroupSegmentationMode
-> ReadPrec [SmoothGroupSegmentationMode]
-> Read SmoothGroupSegmentationMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SmoothGroupSegmentationMode]
$creadListPrec :: ReadPrec [SmoothGroupSegmentationMode]
readPrec :: ReadPrec SmoothGroupSegmentationMode
$creadPrec :: ReadPrec SmoothGroupSegmentationMode
readList :: ReadS [SmoothGroupSegmentationMode]
$creadList :: ReadS [SmoothGroupSegmentationMode]
readsPrec :: Int -> ReadS SmoothGroupSegmentationMode
$creadsPrec :: Int -> ReadS SmoothGroupSegmentationMode
Prelude.Read,
SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
(SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Bool)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Bool)
-> Eq SmoothGroupSegmentationMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
$c/= :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
== :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
$c== :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
Prelude.Eq,
Eq SmoothGroupSegmentationMode
Eq SmoothGroupSegmentationMode
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Ordering)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Bool)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Bool)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Bool)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Bool)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode)
-> (SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode)
-> Ord SmoothGroupSegmentationMode
SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Ordering
SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode
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 :: SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode
$cmin :: SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode
max :: SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode
$cmax :: SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode
>= :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
$c>= :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
> :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
$c> :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
<= :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
$c<= :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
< :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
$c< :: SmoothGroupSegmentationMode -> SmoothGroupSegmentationMode -> Bool
compare :: SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Ordering
$ccompare :: SmoothGroupSegmentationMode
-> SmoothGroupSegmentationMode -> Ordering
$cp1Ord :: Eq SmoothGroupSegmentationMode
Prelude.Ord,
(forall x.
SmoothGroupSegmentationMode -> Rep SmoothGroupSegmentationMode x)
-> (forall x.
Rep SmoothGroupSegmentationMode x -> SmoothGroupSegmentationMode)
-> Generic SmoothGroupSegmentationMode
forall x.
Rep SmoothGroupSegmentationMode x -> SmoothGroupSegmentationMode
forall x.
SmoothGroupSegmentationMode -> Rep SmoothGroupSegmentationMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SmoothGroupSegmentationMode x -> SmoothGroupSegmentationMode
$cfrom :: forall x.
SmoothGroupSegmentationMode -> Rep SmoothGroupSegmentationMode x
Prelude.Generic
)
deriving newtype
( Int -> SmoothGroupSegmentationMode -> Int
SmoothGroupSegmentationMode -> Int
(Int -> SmoothGroupSegmentationMode -> Int)
-> (SmoothGroupSegmentationMode -> Int)
-> Hashable SmoothGroupSegmentationMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SmoothGroupSegmentationMode -> Int
$chash :: SmoothGroupSegmentationMode -> Int
hashWithSalt :: Int -> SmoothGroupSegmentationMode -> Int
$chashWithSalt :: Int -> SmoothGroupSegmentationMode -> Int
Prelude.Hashable,
SmoothGroupSegmentationMode -> ()
(SmoothGroupSegmentationMode -> ())
-> NFData SmoothGroupSegmentationMode
forall a. (a -> ()) -> NFData a
rnf :: SmoothGroupSegmentationMode -> ()
$crnf :: SmoothGroupSegmentationMode -> ()
Prelude.NFData,
Text -> Either String SmoothGroupSegmentationMode
(Text -> Either String SmoothGroupSegmentationMode)
-> FromText SmoothGroupSegmentationMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SmoothGroupSegmentationMode
$cfromText :: Text -> Either String SmoothGroupSegmentationMode
Core.FromText,
SmoothGroupSegmentationMode -> Text
(SmoothGroupSegmentationMode -> Text)
-> ToText SmoothGroupSegmentationMode
forall a. (a -> Text) -> ToText a
toText :: SmoothGroupSegmentationMode -> Text
$ctoText :: SmoothGroupSegmentationMode -> Text
Core.ToText,
SmoothGroupSegmentationMode -> ByteString
(SmoothGroupSegmentationMode -> ByteString)
-> ToByteString SmoothGroupSegmentationMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: SmoothGroupSegmentationMode -> ByteString
$ctoBS :: SmoothGroupSegmentationMode -> ByteString
Core.ToByteString,
SmoothGroupSegmentationMode -> ByteStringBuilder
(SmoothGroupSegmentationMode -> ByteStringBuilder)
-> ToLog SmoothGroupSegmentationMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SmoothGroupSegmentationMode -> ByteStringBuilder
$cbuild :: SmoothGroupSegmentationMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> SmoothGroupSegmentationMode -> [Header]
(HeaderName -> SmoothGroupSegmentationMode -> [Header])
-> ToHeader SmoothGroupSegmentationMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SmoothGroupSegmentationMode -> [Header]
$ctoHeader :: HeaderName -> SmoothGroupSegmentationMode -> [Header]
Core.ToHeader,
SmoothGroupSegmentationMode -> QueryString
(SmoothGroupSegmentationMode -> QueryString)
-> ToQuery SmoothGroupSegmentationMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SmoothGroupSegmentationMode -> QueryString
$ctoQuery :: SmoothGroupSegmentationMode -> QueryString
Core.ToQuery,
Value -> Parser [SmoothGroupSegmentationMode]
Value -> Parser SmoothGroupSegmentationMode
(Value -> Parser SmoothGroupSegmentationMode)
-> (Value -> Parser [SmoothGroupSegmentationMode])
-> FromJSON SmoothGroupSegmentationMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SmoothGroupSegmentationMode]
$cparseJSONList :: Value -> Parser [SmoothGroupSegmentationMode]
parseJSON :: Value -> Parser SmoothGroupSegmentationMode
$cparseJSON :: Value -> Parser SmoothGroupSegmentationMode
Core.FromJSON,
FromJSONKeyFunction [SmoothGroupSegmentationMode]
FromJSONKeyFunction SmoothGroupSegmentationMode
FromJSONKeyFunction SmoothGroupSegmentationMode
-> FromJSONKeyFunction [SmoothGroupSegmentationMode]
-> FromJSONKey SmoothGroupSegmentationMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SmoothGroupSegmentationMode]
$cfromJSONKeyList :: FromJSONKeyFunction [SmoothGroupSegmentationMode]
fromJSONKey :: FromJSONKeyFunction SmoothGroupSegmentationMode
$cfromJSONKey :: FromJSONKeyFunction SmoothGroupSegmentationMode
Core.FromJSONKey,
[SmoothGroupSegmentationMode] -> Encoding
[SmoothGroupSegmentationMode] -> Value
SmoothGroupSegmentationMode -> Encoding
SmoothGroupSegmentationMode -> Value
(SmoothGroupSegmentationMode -> Value)
-> (SmoothGroupSegmentationMode -> Encoding)
-> ([SmoothGroupSegmentationMode] -> Value)
-> ([SmoothGroupSegmentationMode] -> Encoding)
-> ToJSON SmoothGroupSegmentationMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SmoothGroupSegmentationMode] -> Encoding
$ctoEncodingList :: [SmoothGroupSegmentationMode] -> Encoding
toJSONList :: [SmoothGroupSegmentationMode] -> Value
$ctoJSONList :: [SmoothGroupSegmentationMode] -> Value
toEncoding :: SmoothGroupSegmentationMode -> Encoding
$ctoEncoding :: SmoothGroupSegmentationMode -> Encoding
toJSON :: SmoothGroupSegmentationMode -> Value
$ctoJSON :: SmoothGroupSegmentationMode -> Value
Core.ToJSON,
ToJSONKeyFunction [SmoothGroupSegmentationMode]
ToJSONKeyFunction SmoothGroupSegmentationMode
ToJSONKeyFunction SmoothGroupSegmentationMode
-> ToJSONKeyFunction [SmoothGroupSegmentationMode]
-> ToJSONKey SmoothGroupSegmentationMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SmoothGroupSegmentationMode]
$ctoJSONKeyList :: ToJSONKeyFunction [SmoothGroupSegmentationMode]
toJSONKey :: ToJSONKeyFunction SmoothGroupSegmentationMode
$ctoJSONKey :: ToJSONKeyFunction SmoothGroupSegmentationMode
Core.ToJSONKey,
[Node] -> Either String SmoothGroupSegmentationMode
([Node] -> Either String SmoothGroupSegmentationMode)
-> FromXML SmoothGroupSegmentationMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SmoothGroupSegmentationMode
$cparseXML :: [Node] -> Either String SmoothGroupSegmentationMode
Core.FromXML,
SmoothGroupSegmentationMode -> XML
(SmoothGroupSegmentationMode -> XML)
-> ToXML SmoothGroupSegmentationMode
forall a. (a -> XML) -> ToXML a
toXML :: SmoothGroupSegmentationMode -> XML
$ctoXML :: SmoothGroupSegmentationMode -> XML
Core.ToXML
)
pattern SmoothGroupSegmentationMode_USE_INPUT_SEGMENTATION :: SmoothGroupSegmentationMode
pattern $bSmoothGroupSegmentationMode_USE_INPUT_SEGMENTATION :: SmoothGroupSegmentationMode
$mSmoothGroupSegmentationMode_USE_INPUT_SEGMENTATION :: forall r.
SmoothGroupSegmentationMode -> (Void# -> r) -> (Void# -> r) -> r
SmoothGroupSegmentationMode_USE_INPUT_SEGMENTATION = SmoothGroupSegmentationMode' "USE_INPUT_SEGMENTATION"
pattern SmoothGroupSegmentationMode_USE_SEGMENT_DURATION :: SmoothGroupSegmentationMode
pattern $bSmoothGroupSegmentationMode_USE_SEGMENT_DURATION :: SmoothGroupSegmentationMode
$mSmoothGroupSegmentationMode_USE_SEGMENT_DURATION :: forall r.
SmoothGroupSegmentationMode -> (Void# -> r) -> (Void# -> r) -> r
SmoothGroupSegmentationMode_USE_SEGMENT_DURATION = SmoothGroupSegmentationMode' "USE_SEGMENT_DURATION"
{-# COMPLETE
SmoothGroupSegmentationMode_USE_INPUT_SEGMENTATION,
SmoothGroupSegmentationMode_USE_SEGMENT_DURATION,
SmoothGroupSegmentationMode'
#-}