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