{-# 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.CloudDirectory.Types.FacetAttributeType
-- 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.CloudDirectory.Types.FacetAttributeType
  ( FacetAttributeType
      ( ..,
        FacetAttributeType_BINARY,
        FacetAttributeType_BOOLEAN,
        FacetAttributeType_DATETIME,
        FacetAttributeType_NUMBER,
        FacetAttributeType_STRING,
        FacetAttributeType_VARIANT
      ),
  )
where

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

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

pattern FacetAttributeType_BINARY :: FacetAttributeType
pattern $bFacetAttributeType_BINARY :: FacetAttributeType
$mFacetAttributeType_BINARY :: forall r. FacetAttributeType -> (Void# -> r) -> (Void# -> r) -> r
FacetAttributeType_BINARY = FacetAttributeType' "BINARY"

pattern FacetAttributeType_BOOLEAN :: FacetAttributeType
pattern $bFacetAttributeType_BOOLEAN :: FacetAttributeType
$mFacetAttributeType_BOOLEAN :: forall r. FacetAttributeType -> (Void# -> r) -> (Void# -> r) -> r
FacetAttributeType_BOOLEAN = FacetAttributeType' "BOOLEAN"

pattern FacetAttributeType_DATETIME :: FacetAttributeType
pattern $bFacetAttributeType_DATETIME :: FacetAttributeType
$mFacetAttributeType_DATETIME :: forall r. FacetAttributeType -> (Void# -> r) -> (Void# -> r) -> r
FacetAttributeType_DATETIME = FacetAttributeType' "DATETIME"

pattern FacetAttributeType_NUMBER :: FacetAttributeType
pattern $bFacetAttributeType_NUMBER :: FacetAttributeType
$mFacetAttributeType_NUMBER :: forall r. FacetAttributeType -> (Void# -> r) -> (Void# -> r) -> r
FacetAttributeType_NUMBER = FacetAttributeType' "NUMBER"

pattern FacetAttributeType_STRING :: FacetAttributeType
pattern $bFacetAttributeType_STRING :: FacetAttributeType
$mFacetAttributeType_STRING :: forall r. FacetAttributeType -> (Void# -> r) -> (Void# -> r) -> r
FacetAttributeType_STRING = FacetAttributeType' "STRING"

pattern FacetAttributeType_VARIANT :: FacetAttributeType
pattern $bFacetAttributeType_VARIANT :: FacetAttributeType
$mFacetAttributeType_VARIANT :: forall r. FacetAttributeType -> (Void# -> r) -> (Void# -> r) -> r
FacetAttributeType_VARIANT = FacetAttributeType' "VARIANT"

{-# COMPLETE
  FacetAttributeType_BINARY,
  FacetAttributeType_BOOLEAN,
  FacetAttributeType_DATETIME,
  FacetAttributeType_NUMBER,
  FacetAttributeType_STRING,
  FacetAttributeType_VARIANT,
  FacetAttributeType'
  #-}