{-# 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.KinesisVideo.Types.MediaUriType
-- 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.KinesisVideo.Types.MediaUriType
  ( MediaUriType
      ( ..,
        MediaUriType_FILE_URI,
        MediaUriType_RTSP_URI
      ),
  )
where

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

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

pattern MediaUriType_FILE_URI :: MediaUriType
pattern $bMediaUriType_FILE_URI :: MediaUriType
$mMediaUriType_FILE_URI :: forall {r}. MediaUriType -> ((# #) -> r) -> ((# #) -> r) -> r
MediaUriType_FILE_URI = MediaUriType' "FILE_URI"

pattern MediaUriType_RTSP_URI :: MediaUriType
pattern $bMediaUriType_RTSP_URI :: MediaUriType
$mMediaUriType_RTSP_URI :: forall {r}. MediaUriType -> ((# #) -> r) -> ((# #) -> r) -> r
MediaUriType_RTSP_URI = MediaUriType' "RTSP_URI"

{-# COMPLETE
  MediaUriType_FILE_URI,
  MediaUriType_RTSP_URI,
  MediaUriType'
  #-}