{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ChimeSDKIdentity.Types.AppInstanceUserEndpointType
( AppInstanceUserEndpointType
( ..,
AppInstanceUserEndpointType_APNS,
AppInstanceUserEndpointType_APNS_SANDBOX,
AppInstanceUserEndpointType_GCM
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype AppInstanceUserEndpointType = AppInstanceUserEndpointType'
{ AppInstanceUserEndpointType -> Text
fromAppInstanceUserEndpointType ::
Data.Text
}
deriving stock
( Int -> AppInstanceUserEndpointType -> ShowS
[AppInstanceUserEndpointType] -> ShowS
AppInstanceUserEndpointType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AppInstanceUserEndpointType] -> ShowS
$cshowList :: [AppInstanceUserEndpointType] -> ShowS
show :: AppInstanceUserEndpointType -> String
$cshow :: AppInstanceUserEndpointType -> String
showsPrec :: Int -> AppInstanceUserEndpointType -> ShowS
$cshowsPrec :: Int -> AppInstanceUserEndpointType -> ShowS
Prelude.Show,
ReadPrec [AppInstanceUserEndpointType]
ReadPrec AppInstanceUserEndpointType
Int -> ReadS AppInstanceUserEndpointType
ReadS [AppInstanceUserEndpointType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AppInstanceUserEndpointType]
$creadListPrec :: ReadPrec [AppInstanceUserEndpointType]
readPrec :: ReadPrec AppInstanceUserEndpointType
$creadPrec :: ReadPrec AppInstanceUserEndpointType
readList :: ReadS [AppInstanceUserEndpointType]
$creadList :: ReadS [AppInstanceUserEndpointType]
readsPrec :: Int -> ReadS AppInstanceUserEndpointType
$creadsPrec :: Int -> ReadS AppInstanceUserEndpointType
Prelude.Read,
AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
$c/= :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
== :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
$c== :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
Prelude.Eq,
Eq AppInstanceUserEndpointType
AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> Ordering
AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> AppInstanceUserEndpointType
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 :: AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> AppInstanceUserEndpointType
$cmin :: AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> AppInstanceUserEndpointType
max :: AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> AppInstanceUserEndpointType
$cmax :: AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> AppInstanceUserEndpointType
>= :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
$c>= :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
> :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
$c> :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
<= :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
$c<= :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
< :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
$c< :: AppInstanceUserEndpointType -> AppInstanceUserEndpointType -> Bool
compare :: AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> Ordering
$ccompare :: AppInstanceUserEndpointType
-> AppInstanceUserEndpointType -> Ordering
Prelude.Ord,
forall x.
Rep AppInstanceUserEndpointType x -> AppInstanceUserEndpointType
forall x.
AppInstanceUserEndpointType -> Rep AppInstanceUserEndpointType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AppInstanceUserEndpointType x -> AppInstanceUserEndpointType
$cfrom :: forall x.
AppInstanceUserEndpointType -> Rep AppInstanceUserEndpointType x
Prelude.Generic
)
deriving newtype
( Eq AppInstanceUserEndpointType
Int -> AppInstanceUserEndpointType -> Int
AppInstanceUserEndpointType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AppInstanceUserEndpointType -> Int
$chash :: AppInstanceUserEndpointType -> Int
hashWithSalt :: Int -> AppInstanceUserEndpointType -> Int
$chashWithSalt :: Int -> AppInstanceUserEndpointType -> Int
Prelude.Hashable,
AppInstanceUserEndpointType -> ()
forall a. (a -> ()) -> NFData a
rnf :: AppInstanceUserEndpointType -> ()
$crnf :: AppInstanceUserEndpointType -> ()
Prelude.NFData,
Text -> Either String AppInstanceUserEndpointType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AppInstanceUserEndpointType
$cfromText :: Text -> Either String AppInstanceUserEndpointType
Data.FromText,
AppInstanceUserEndpointType -> Text
forall a. (a -> Text) -> ToText a
toText :: AppInstanceUserEndpointType -> Text
$ctoText :: AppInstanceUserEndpointType -> Text
Data.ToText,
AppInstanceUserEndpointType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AppInstanceUserEndpointType -> ByteString
$ctoBS :: AppInstanceUserEndpointType -> ByteString
Data.ToByteString,
AppInstanceUserEndpointType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AppInstanceUserEndpointType -> ByteStringBuilder
$cbuild :: AppInstanceUserEndpointType -> ByteStringBuilder
Data.ToLog,
HeaderName -> AppInstanceUserEndpointType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AppInstanceUserEndpointType -> [Header]
$ctoHeader :: HeaderName -> AppInstanceUserEndpointType -> [Header]
Data.ToHeader,
AppInstanceUserEndpointType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AppInstanceUserEndpointType -> QueryString
$ctoQuery :: AppInstanceUserEndpointType -> QueryString
Data.ToQuery,
Value -> Parser [AppInstanceUserEndpointType]
Value -> Parser AppInstanceUserEndpointType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AppInstanceUserEndpointType]
$cparseJSONList :: Value -> Parser [AppInstanceUserEndpointType]
parseJSON :: Value -> Parser AppInstanceUserEndpointType
$cparseJSON :: Value -> Parser AppInstanceUserEndpointType
Data.FromJSON,
FromJSONKeyFunction [AppInstanceUserEndpointType]
FromJSONKeyFunction AppInstanceUserEndpointType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AppInstanceUserEndpointType]
$cfromJSONKeyList :: FromJSONKeyFunction [AppInstanceUserEndpointType]
fromJSONKey :: FromJSONKeyFunction AppInstanceUserEndpointType
$cfromJSONKey :: FromJSONKeyFunction AppInstanceUserEndpointType
Data.FromJSONKey,
[AppInstanceUserEndpointType] -> Encoding
[AppInstanceUserEndpointType] -> Value
AppInstanceUserEndpointType -> Encoding
AppInstanceUserEndpointType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AppInstanceUserEndpointType] -> Encoding
$ctoEncodingList :: [AppInstanceUserEndpointType] -> Encoding
toJSONList :: [AppInstanceUserEndpointType] -> Value
$ctoJSONList :: [AppInstanceUserEndpointType] -> Value
toEncoding :: AppInstanceUserEndpointType -> Encoding
$ctoEncoding :: AppInstanceUserEndpointType -> Encoding
toJSON :: AppInstanceUserEndpointType -> Value
$ctoJSON :: AppInstanceUserEndpointType -> Value
Data.ToJSON,
ToJSONKeyFunction [AppInstanceUserEndpointType]
ToJSONKeyFunction AppInstanceUserEndpointType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AppInstanceUserEndpointType]
$ctoJSONKeyList :: ToJSONKeyFunction [AppInstanceUserEndpointType]
toJSONKey :: ToJSONKeyFunction AppInstanceUserEndpointType
$ctoJSONKey :: ToJSONKeyFunction AppInstanceUserEndpointType
Data.ToJSONKey,
[Node] -> Either String AppInstanceUserEndpointType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AppInstanceUserEndpointType
$cparseXML :: [Node] -> Either String AppInstanceUserEndpointType
Data.FromXML,
AppInstanceUserEndpointType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AppInstanceUserEndpointType -> XML
$ctoXML :: AppInstanceUserEndpointType -> XML
Data.ToXML
)
pattern AppInstanceUserEndpointType_APNS :: AppInstanceUserEndpointType
pattern $bAppInstanceUserEndpointType_APNS :: AppInstanceUserEndpointType
$mAppInstanceUserEndpointType_APNS :: forall {r}.
AppInstanceUserEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
AppInstanceUserEndpointType_APNS = AppInstanceUserEndpointType' "APNS"
pattern AppInstanceUserEndpointType_APNS_SANDBOX :: AppInstanceUserEndpointType
pattern $bAppInstanceUserEndpointType_APNS_SANDBOX :: AppInstanceUserEndpointType
$mAppInstanceUserEndpointType_APNS_SANDBOX :: forall {r}.
AppInstanceUserEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
AppInstanceUserEndpointType_APNS_SANDBOX = AppInstanceUserEndpointType' "APNS_SANDBOX"
pattern AppInstanceUserEndpointType_GCM :: AppInstanceUserEndpointType
pattern $bAppInstanceUserEndpointType_GCM :: AppInstanceUserEndpointType
$mAppInstanceUserEndpointType_GCM :: forall {r}.
AppInstanceUserEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
AppInstanceUserEndpointType_GCM = AppInstanceUserEndpointType' "GCM"
{-# COMPLETE
AppInstanceUserEndpointType_APNS,
AppInstanceUserEndpointType_APNS_SANDBOX,
AppInstanceUserEndpointType_GCM,
AppInstanceUserEndpointType'
#-}