{-# 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.FieldNamespace
-- 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.FieldNamespace
  ( FieldNamespace
      ( ..,
        FieldNamespace_Custom,
        FieldNamespace_System
      ),
  )
where

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

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

pattern FieldNamespace_Custom :: FieldNamespace
pattern $bFieldNamespace_Custom :: FieldNamespace
$mFieldNamespace_Custom :: forall {r}. FieldNamespace -> ((# #) -> r) -> ((# #) -> r) -> r
FieldNamespace_Custom = FieldNamespace' "Custom"

pattern FieldNamespace_System :: FieldNamespace
pattern $bFieldNamespace_System :: FieldNamespace
$mFieldNamespace_System :: forall {r}. FieldNamespace -> ((# #) -> r) -> ((# #) -> r) -> r
FieldNamespace_System = FieldNamespace' "System"

{-# COMPLETE
  FieldNamespace_Custom,
  FieldNamespace_System,
  FieldNamespace'
  #-}