{-# 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.MediaStoreData.Types.ItemType
-- 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.MediaStoreData.Types.ItemType
  ( ItemType
      ( ..,
        ItemType_FOLDER,
        ItemType_OBJECT
      ),
  )
where

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

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

pattern ItemType_FOLDER :: ItemType
pattern $bItemType_FOLDER :: ItemType
$mItemType_FOLDER :: forall {r}. ItemType -> ((# #) -> r) -> ((# #) -> r) -> r
ItemType_FOLDER = ItemType' "FOLDER"

pattern ItemType_OBJECT :: ItemType
pattern $bItemType_OBJECT :: ItemType
$mItemType_OBJECT :: forall {r}. ItemType -> ((# #) -> r) -> ((# #) -> r) -> r
ItemType_OBJECT = ItemType' "OBJECT"

{-# COMPLETE
  ItemType_FOLDER,
  ItemType_OBJECT,
  ItemType'
  #-}