{-# 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.KinesisVideoArchivedMedia.Types.ClipFragmentSelectorType
-- 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.KinesisVideoArchivedMedia.Types.ClipFragmentSelectorType
  ( ClipFragmentSelectorType
      ( ..,
        ClipFragmentSelectorType_PRODUCER_TIMESTAMP,
        ClipFragmentSelectorType_SERVER_TIMESTAMP
      ),
  )
where

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

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

pattern ClipFragmentSelectorType_PRODUCER_TIMESTAMP :: ClipFragmentSelectorType
pattern $bClipFragmentSelectorType_PRODUCER_TIMESTAMP :: ClipFragmentSelectorType
$mClipFragmentSelectorType_PRODUCER_TIMESTAMP :: forall r.
ClipFragmentSelectorType -> (Void# -> r) -> (Void# -> r) -> r
ClipFragmentSelectorType_PRODUCER_TIMESTAMP = ClipFragmentSelectorType' "PRODUCER_TIMESTAMP"

pattern ClipFragmentSelectorType_SERVER_TIMESTAMP :: ClipFragmentSelectorType
pattern $bClipFragmentSelectorType_SERVER_TIMESTAMP :: ClipFragmentSelectorType
$mClipFragmentSelectorType_SERVER_TIMESTAMP :: forall r.
ClipFragmentSelectorType -> (Void# -> r) -> (Void# -> r) -> r
ClipFragmentSelectorType_SERVER_TIMESTAMP = ClipFragmentSelectorType' "SERVER_TIMESTAMP"

{-# COMPLETE
  ClipFragmentSelectorType_PRODUCER_TIMESTAMP,
  ClipFragmentSelectorType_SERVER_TIMESTAMP,
  ClipFragmentSelectorType'
  #-}