{-# 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.WorkMail.Types.FolderName
-- 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.WorkMail.Types.FolderName
  ( FolderName
      ( ..,
        FolderName_DELETED_ITEMS,
        FolderName_DRAFTS,
        FolderName_INBOX,
        FolderName_JUNK_EMAIL,
        FolderName_SENT_ITEMS
      ),
  )
where

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

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

pattern FolderName_DELETED_ITEMS :: FolderName
pattern $bFolderName_DELETED_ITEMS :: FolderName
$mFolderName_DELETED_ITEMS :: forall r. FolderName -> (Void# -> r) -> (Void# -> r) -> r
FolderName_DELETED_ITEMS = FolderName' "DELETED_ITEMS"

pattern FolderName_DRAFTS :: FolderName
pattern $bFolderName_DRAFTS :: FolderName
$mFolderName_DRAFTS :: forall r. FolderName -> (Void# -> r) -> (Void# -> r) -> r
FolderName_DRAFTS = FolderName' "DRAFTS"

pattern FolderName_INBOX :: FolderName
pattern $bFolderName_INBOX :: FolderName
$mFolderName_INBOX :: forall r. FolderName -> (Void# -> r) -> (Void# -> r) -> r
FolderName_INBOX = FolderName' "INBOX"

pattern FolderName_JUNK_EMAIL :: FolderName
pattern $bFolderName_JUNK_EMAIL :: FolderName
$mFolderName_JUNK_EMAIL :: forall r. FolderName -> (Void# -> r) -> (Void# -> r) -> r
FolderName_JUNK_EMAIL = FolderName' "JUNK_EMAIL"

pattern FolderName_SENT_ITEMS :: FolderName
pattern $bFolderName_SENT_ITEMS :: FolderName
$mFolderName_SENT_ITEMS :: forall r. FolderName -> (Void# -> r) -> (Void# -> r) -> r
FolderName_SENT_ITEMS = FolderName' "SENT_ITEMS"

{-# COMPLETE
  FolderName_DELETED_ITEMS,
  FolderName_DRAFTS,
  FolderName_INBOX,
  FolderName_JUNK_EMAIL,
  FolderName_SENT_ITEMS,
  FolderName'
  #-}