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