{-# 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.ImageSelectorType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.KinesisVideoArchivedMedia.Types.ImageSelectorType
  ( ImageSelectorType
      ( ..,
        ImageSelectorType_PRODUCER_TIMESTAMP,
        ImageSelectorType_SERVER_TIMESTAMP
      ),
  )
where

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

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

pattern ImageSelectorType_PRODUCER_TIMESTAMP :: ImageSelectorType
pattern $bImageSelectorType_PRODUCER_TIMESTAMP :: ImageSelectorType
$mImageSelectorType_PRODUCER_TIMESTAMP :: forall {r}. ImageSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
ImageSelectorType_PRODUCER_TIMESTAMP = ImageSelectorType' "PRODUCER_TIMESTAMP"

pattern ImageSelectorType_SERVER_TIMESTAMP :: ImageSelectorType
pattern $bImageSelectorType_SERVER_TIMESTAMP :: ImageSelectorType
$mImageSelectorType_SERVER_TIMESTAMP :: forall {r}. ImageSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
ImageSelectorType_SERVER_TIMESTAMP = ImageSelectorType' "SERVER_TIMESTAMP"

{-# COMPLETE
  ImageSelectorType_PRODUCER_TIMESTAMP,
  ImageSelectorType_SERVER_TIMESTAMP,
  ImageSelectorType'
  #-}