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

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

newtype ItemType = ItemType'
  { ItemType -> Text
fromItemType ::
      Core.Text
  }
  deriving stock
    ( Int -> ItemType -> ShowS
[ItemType] -> ShowS
ItemType -> String
(Int -> ItemType -> ShowS)
-> (ItemType -> String) -> ([ItemType] -> ShowS) -> Show ItemType
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]
(Int -> ReadS ItemType)
-> ReadS [ItemType]
-> ReadPrec ItemType
-> ReadPrec [ItemType]
-> Read 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
(ItemType -> ItemType -> Bool)
-> (ItemType -> ItemType -> Bool) -> Eq ItemType
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
Eq ItemType
-> (ItemType -> ItemType -> Ordering)
-> (ItemType -> ItemType -> Bool)
-> (ItemType -> ItemType -> Bool)
-> (ItemType -> ItemType -> Bool)
-> (ItemType -> ItemType -> Bool)
-> (ItemType -> ItemType -> ItemType)
-> (ItemType -> ItemType -> ItemType)
-> Ord 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
$cp1Ord :: Eq ItemType
Prelude.Ord,
      (forall x. ItemType -> Rep ItemType x)
-> (forall x. Rep ItemType x -> ItemType) -> Generic ItemType
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
    ( Int -> ItemType -> Int
ItemType -> Int
(Int -> ItemType -> Int) -> (ItemType -> Int) -> Hashable ItemType
forall 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 -> ()
(ItemType -> ()) -> NFData ItemType
forall a. (a -> ()) -> NFData a
rnf :: ItemType -> ()
$crnf :: ItemType -> ()
Prelude.NFData,
      Text -> Either String ItemType
(Text -> Either String ItemType) -> FromText ItemType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ItemType
$cfromText :: Text -> Either String ItemType
Core.FromText,
      ItemType -> Text
(ItemType -> Text) -> ToText ItemType
forall a. (a -> Text) -> ToText a
toText :: ItemType -> Text
$ctoText :: ItemType -> Text
Core.ToText,
      ItemType -> ByteString
(ItemType -> ByteString) -> ToByteString ItemType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ItemType -> ByteString
$ctoBS :: ItemType -> ByteString
Core.ToByteString,
      ItemType -> ByteStringBuilder
(ItemType -> ByteStringBuilder) -> ToLog ItemType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ItemType -> ByteStringBuilder
$cbuild :: ItemType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ItemType -> [Header]
(HeaderName -> ItemType -> [Header]) -> ToHeader ItemType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ItemType -> [Header]
$ctoHeader :: HeaderName -> ItemType -> [Header]
Core.ToHeader,
      ItemType -> QueryString
(ItemType -> QueryString) -> ToQuery ItemType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ItemType -> QueryString
$ctoQuery :: ItemType -> QueryString
Core.ToQuery,
      Value -> Parser [ItemType]
Value -> Parser ItemType
(Value -> Parser ItemType)
-> (Value -> Parser [ItemType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ItemType]
FromJSONKeyFunction ItemType
FromJSONKeyFunction ItemType
-> FromJSONKeyFunction [ItemType] -> FromJSONKey ItemType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ItemType]
$cfromJSONKeyList :: FromJSONKeyFunction [ItemType]
fromJSONKey :: FromJSONKeyFunction ItemType
$cfromJSONKey :: FromJSONKeyFunction ItemType
Core.FromJSONKey,
      [ItemType] -> Encoding
[ItemType] -> Value
ItemType -> Encoding
ItemType -> Value
(ItemType -> Value)
-> (ItemType -> Encoding)
-> ([ItemType] -> Value)
-> ([ItemType] -> Encoding)
-> ToJSON ItemType
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
Core.ToJSON,
      ToJSONKeyFunction [ItemType]
ToJSONKeyFunction ItemType
ToJSONKeyFunction ItemType
-> ToJSONKeyFunction [ItemType] -> ToJSONKey ItemType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ItemType]
$ctoJSONKeyList :: ToJSONKeyFunction [ItemType]
toJSONKey :: ToJSONKeyFunction ItemType
$ctoJSONKey :: ToJSONKeyFunction ItemType
Core.ToJSONKey,
      [Node] -> Either String ItemType
([Node] -> Either String ItemType) -> FromXML ItemType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ItemType
$cparseXML :: [Node] -> Either String ItemType
Core.FromXML,
      ItemType -> XML
(ItemType -> XML) -> ToXML ItemType
forall a. (a -> XML) -> ToXML a
toXML :: ItemType -> XML
$ctoXML :: ItemType -> XML
Core.ToXML
    )

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

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

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