{-# 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.ConnectCases.Types.FieldType
-- 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.ConnectCases.Types.FieldType
  ( FieldType
      ( ..,
        FieldType_Boolean,
        FieldType_DateTime,
        FieldType_Number,
        FieldType_SingleSelect,
        FieldType_Text
      ),
  )
where

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

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

pattern FieldType_Boolean :: FieldType
pattern $bFieldType_Boolean :: FieldType
$mFieldType_Boolean :: forall {r}. FieldType -> ((# #) -> r) -> ((# #) -> r) -> r
FieldType_Boolean = FieldType' "Boolean"

pattern FieldType_DateTime :: FieldType
pattern $bFieldType_DateTime :: FieldType
$mFieldType_DateTime :: forall {r}. FieldType -> ((# #) -> r) -> ((# #) -> r) -> r
FieldType_DateTime = FieldType' "DateTime"

pattern FieldType_Number :: FieldType
pattern $bFieldType_Number :: FieldType
$mFieldType_Number :: forall {r}. FieldType -> ((# #) -> r) -> ((# #) -> r) -> r
FieldType_Number = FieldType' "Number"

pattern FieldType_SingleSelect :: FieldType
pattern $bFieldType_SingleSelect :: FieldType
$mFieldType_SingleSelect :: forall {r}. FieldType -> ((# #) -> r) -> ((# #) -> r) -> r
FieldType_SingleSelect = FieldType' "SingleSelect"

pattern FieldType_Text :: FieldType
pattern $bFieldType_Text :: FieldType
$mFieldType_Text :: forall {r}. FieldType -> ((# #) -> r) -> ((# #) -> r) -> r
FieldType_Text = FieldType' "Text"

{-# COMPLETE
  FieldType_Boolean,
  FieldType_DateTime,
  FieldType_Number,
  FieldType_SingleSelect,
  FieldType_Text,
  FieldType'
  #-}