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

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

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

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

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

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