{-# 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.WorkDocs.Types.BooleanEnumType
-- 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.WorkDocs.Types.BooleanEnumType
  ( BooleanEnumType
      ( ..,
        BooleanEnumType_FALSE,
        BooleanEnumType_TRUE
      ),
  )
where

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

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

pattern BooleanEnumType_FALSE :: BooleanEnumType
pattern $bBooleanEnumType_FALSE :: BooleanEnumType
$mBooleanEnumType_FALSE :: forall {r}. BooleanEnumType -> ((# #) -> r) -> ((# #) -> r) -> r
BooleanEnumType_FALSE = BooleanEnumType' "FALSE"

pattern BooleanEnumType_TRUE :: BooleanEnumType
pattern $bBooleanEnumType_TRUE :: BooleanEnumType
$mBooleanEnumType_TRUE :: forall {r}. BooleanEnumType -> ((# #) -> r) -> ((# #) -> r) -> r
BooleanEnumType_TRUE = BooleanEnumType' "TRUE"

{-# COMPLETE
  BooleanEnumType_FALSE,
  BooleanEnumType_TRUE,
  BooleanEnumType'
  #-}