{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CustomerProfiles.Types.StandardIdentifier
( StandardIdentifier
( ..,
StandardIdentifier_ASSET,
StandardIdentifier_CASE,
StandardIdentifier_LOOKUP_ONLY,
StandardIdentifier_NEW_ONLY,
StandardIdentifier_PROFILE,
StandardIdentifier_SECONDARY,
StandardIdentifier_UNIQUE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype StandardIdentifier = StandardIdentifier'
{ StandardIdentifier -> Text
fromStandardIdentifier ::
Core.Text
}
deriving stock
( Int -> StandardIdentifier -> ShowS
[StandardIdentifier] -> ShowS
StandardIdentifier -> String
(Int -> StandardIdentifier -> ShowS)
-> (StandardIdentifier -> String)
-> ([StandardIdentifier] -> ShowS)
-> Show StandardIdentifier
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StandardIdentifier] -> ShowS
$cshowList :: [StandardIdentifier] -> ShowS
show :: StandardIdentifier -> String
$cshow :: StandardIdentifier -> String
showsPrec :: Int -> StandardIdentifier -> ShowS
$cshowsPrec :: Int -> StandardIdentifier -> ShowS
Prelude.Show,
ReadPrec [StandardIdentifier]
ReadPrec StandardIdentifier
Int -> ReadS StandardIdentifier
ReadS [StandardIdentifier]
(Int -> ReadS StandardIdentifier)
-> ReadS [StandardIdentifier]
-> ReadPrec StandardIdentifier
-> ReadPrec [StandardIdentifier]
-> Read StandardIdentifier
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StandardIdentifier]
$creadListPrec :: ReadPrec [StandardIdentifier]
readPrec :: ReadPrec StandardIdentifier
$creadPrec :: ReadPrec StandardIdentifier
readList :: ReadS [StandardIdentifier]
$creadList :: ReadS [StandardIdentifier]
readsPrec :: Int -> ReadS StandardIdentifier
$creadsPrec :: Int -> ReadS StandardIdentifier
Prelude.Read,
StandardIdentifier -> StandardIdentifier -> Bool
(StandardIdentifier -> StandardIdentifier -> Bool)
-> (StandardIdentifier -> StandardIdentifier -> Bool)
-> Eq StandardIdentifier
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StandardIdentifier -> StandardIdentifier -> Bool
$c/= :: StandardIdentifier -> StandardIdentifier -> Bool
== :: StandardIdentifier -> StandardIdentifier -> Bool
$c== :: StandardIdentifier -> StandardIdentifier -> Bool
Prelude.Eq,
Eq StandardIdentifier
Eq StandardIdentifier
-> (StandardIdentifier -> StandardIdentifier -> Ordering)
-> (StandardIdentifier -> StandardIdentifier -> Bool)
-> (StandardIdentifier -> StandardIdentifier -> Bool)
-> (StandardIdentifier -> StandardIdentifier -> Bool)
-> (StandardIdentifier -> StandardIdentifier -> Bool)
-> (StandardIdentifier -> StandardIdentifier -> StandardIdentifier)
-> (StandardIdentifier -> StandardIdentifier -> StandardIdentifier)
-> Ord StandardIdentifier
StandardIdentifier -> StandardIdentifier -> Bool
StandardIdentifier -> StandardIdentifier -> Ordering
StandardIdentifier -> StandardIdentifier -> StandardIdentifier
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 :: StandardIdentifier -> StandardIdentifier -> StandardIdentifier
$cmin :: StandardIdentifier -> StandardIdentifier -> StandardIdentifier
max :: StandardIdentifier -> StandardIdentifier -> StandardIdentifier
$cmax :: StandardIdentifier -> StandardIdentifier -> StandardIdentifier
>= :: StandardIdentifier -> StandardIdentifier -> Bool
$c>= :: StandardIdentifier -> StandardIdentifier -> Bool
> :: StandardIdentifier -> StandardIdentifier -> Bool
$c> :: StandardIdentifier -> StandardIdentifier -> Bool
<= :: StandardIdentifier -> StandardIdentifier -> Bool
$c<= :: StandardIdentifier -> StandardIdentifier -> Bool
< :: StandardIdentifier -> StandardIdentifier -> Bool
$c< :: StandardIdentifier -> StandardIdentifier -> Bool
compare :: StandardIdentifier -> StandardIdentifier -> Ordering
$ccompare :: StandardIdentifier -> StandardIdentifier -> Ordering
$cp1Ord :: Eq StandardIdentifier
Prelude.Ord,
(forall x. StandardIdentifier -> Rep StandardIdentifier x)
-> (forall x. Rep StandardIdentifier x -> StandardIdentifier)
-> Generic StandardIdentifier
forall x. Rep StandardIdentifier x -> StandardIdentifier
forall x. StandardIdentifier -> Rep StandardIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StandardIdentifier x -> StandardIdentifier
$cfrom :: forall x. StandardIdentifier -> Rep StandardIdentifier x
Prelude.Generic
)
deriving newtype
( Int -> StandardIdentifier -> Int
StandardIdentifier -> Int
(Int -> StandardIdentifier -> Int)
-> (StandardIdentifier -> Int) -> Hashable StandardIdentifier
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StandardIdentifier -> Int
$chash :: StandardIdentifier -> Int
hashWithSalt :: Int -> StandardIdentifier -> Int
$chashWithSalt :: Int -> StandardIdentifier -> Int
Prelude.Hashable,
StandardIdentifier -> ()
(StandardIdentifier -> ()) -> NFData StandardIdentifier
forall a. (a -> ()) -> NFData a
rnf :: StandardIdentifier -> ()
$crnf :: StandardIdentifier -> ()
Prelude.NFData,
Text -> Either String StandardIdentifier
(Text -> Either String StandardIdentifier)
-> FromText StandardIdentifier
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StandardIdentifier
$cfromText :: Text -> Either String StandardIdentifier
Core.FromText,
StandardIdentifier -> Text
(StandardIdentifier -> Text) -> ToText StandardIdentifier
forall a. (a -> Text) -> ToText a
toText :: StandardIdentifier -> Text
$ctoText :: StandardIdentifier -> Text
Core.ToText,
StandardIdentifier -> ByteString
(StandardIdentifier -> ByteString)
-> ToByteString StandardIdentifier
forall a. (a -> ByteString) -> ToByteString a
toBS :: StandardIdentifier -> ByteString
$ctoBS :: StandardIdentifier -> ByteString
Core.ToByteString,
StandardIdentifier -> ByteStringBuilder
(StandardIdentifier -> ByteStringBuilder)
-> ToLog StandardIdentifier
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StandardIdentifier -> ByteStringBuilder
$cbuild :: StandardIdentifier -> ByteStringBuilder
Core.ToLog,
HeaderName -> StandardIdentifier -> [Header]
(HeaderName -> StandardIdentifier -> [Header])
-> ToHeader StandardIdentifier
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StandardIdentifier -> [Header]
$ctoHeader :: HeaderName -> StandardIdentifier -> [Header]
Core.ToHeader,
StandardIdentifier -> QueryString
(StandardIdentifier -> QueryString) -> ToQuery StandardIdentifier
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StandardIdentifier -> QueryString
$ctoQuery :: StandardIdentifier -> QueryString
Core.ToQuery,
Value -> Parser [StandardIdentifier]
Value -> Parser StandardIdentifier
(Value -> Parser StandardIdentifier)
-> (Value -> Parser [StandardIdentifier])
-> FromJSON StandardIdentifier
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StandardIdentifier]
$cparseJSONList :: Value -> Parser [StandardIdentifier]
parseJSON :: Value -> Parser StandardIdentifier
$cparseJSON :: Value -> Parser StandardIdentifier
Core.FromJSON,
FromJSONKeyFunction [StandardIdentifier]
FromJSONKeyFunction StandardIdentifier
FromJSONKeyFunction StandardIdentifier
-> FromJSONKeyFunction [StandardIdentifier]
-> FromJSONKey StandardIdentifier
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StandardIdentifier]
$cfromJSONKeyList :: FromJSONKeyFunction [StandardIdentifier]
fromJSONKey :: FromJSONKeyFunction StandardIdentifier
$cfromJSONKey :: FromJSONKeyFunction StandardIdentifier
Core.FromJSONKey,
[StandardIdentifier] -> Encoding
[StandardIdentifier] -> Value
StandardIdentifier -> Encoding
StandardIdentifier -> Value
(StandardIdentifier -> Value)
-> (StandardIdentifier -> Encoding)
-> ([StandardIdentifier] -> Value)
-> ([StandardIdentifier] -> Encoding)
-> ToJSON StandardIdentifier
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StandardIdentifier] -> Encoding
$ctoEncodingList :: [StandardIdentifier] -> Encoding
toJSONList :: [StandardIdentifier] -> Value
$ctoJSONList :: [StandardIdentifier] -> Value
toEncoding :: StandardIdentifier -> Encoding
$ctoEncoding :: StandardIdentifier -> Encoding
toJSON :: StandardIdentifier -> Value
$ctoJSON :: StandardIdentifier -> Value
Core.ToJSON,
ToJSONKeyFunction [StandardIdentifier]
ToJSONKeyFunction StandardIdentifier
ToJSONKeyFunction StandardIdentifier
-> ToJSONKeyFunction [StandardIdentifier]
-> ToJSONKey StandardIdentifier
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StandardIdentifier]
$ctoJSONKeyList :: ToJSONKeyFunction [StandardIdentifier]
toJSONKey :: ToJSONKeyFunction StandardIdentifier
$ctoJSONKey :: ToJSONKeyFunction StandardIdentifier
Core.ToJSONKey,
[Node] -> Either String StandardIdentifier
([Node] -> Either String StandardIdentifier)
-> FromXML StandardIdentifier
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StandardIdentifier
$cparseXML :: [Node] -> Either String StandardIdentifier
Core.FromXML,
StandardIdentifier -> XML
(StandardIdentifier -> XML) -> ToXML StandardIdentifier
forall a. (a -> XML) -> ToXML a
toXML :: StandardIdentifier -> XML
$ctoXML :: StandardIdentifier -> XML
Core.ToXML
)
pattern StandardIdentifier_ASSET :: StandardIdentifier
pattern $bStandardIdentifier_ASSET :: StandardIdentifier
$mStandardIdentifier_ASSET :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_ASSET = StandardIdentifier' "ASSET"
pattern StandardIdentifier_CASE :: StandardIdentifier
pattern $bStandardIdentifier_CASE :: StandardIdentifier
$mStandardIdentifier_CASE :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_CASE = StandardIdentifier' "CASE"
pattern StandardIdentifier_LOOKUP_ONLY :: StandardIdentifier
pattern $bStandardIdentifier_LOOKUP_ONLY :: StandardIdentifier
$mStandardIdentifier_LOOKUP_ONLY :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_LOOKUP_ONLY = StandardIdentifier' "LOOKUP_ONLY"
pattern StandardIdentifier_NEW_ONLY :: StandardIdentifier
pattern $bStandardIdentifier_NEW_ONLY :: StandardIdentifier
$mStandardIdentifier_NEW_ONLY :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_NEW_ONLY = StandardIdentifier' "NEW_ONLY"
pattern StandardIdentifier_PROFILE :: StandardIdentifier
pattern $bStandardIdentifier_PROFILE :: StandardIdentifier
$mStandardIdentifier_PROFILE :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_PROFILE = StandardIdentifier' "PROFILE"
pattern StandardIdentifier_SECONDARY :: StandardIdentifier
pattern $bStandardIdentifier_SECONDARY :: StandardIdentifier
$mStandardIdentifier_SECONDARY :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_SECONDARY = StandardIdentifier' "SECONDARY"
pattern StandardIdentifier_UNIQUE :: StandardIdentifier
pattern $bStandardIdentifier_UNIQUE :: StandardIdentifier
$mStandardIdentifier_UNIQUE :: forall r. StandardIdentifier -> (Void# -> r) -> (Void# -> r) -> r
StandardIdentifier_UNIQUE = StandardIdentifier' "UNIQUE"
{-# COMPLETE
StandardIdentifier_ASSET,
StandardIdentifier_CASE,
StandardIdentifier_LOOKUP_ONLY,
StandardIdentifier_NEW_ONLY,
StandardIdentifier_PROFILE,
StandardIdentifier_SECONDARY,
StandardIdentifier_UNIQUE,
StandardIdentifier'
#-}