{-# 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.Lightsail.Types.ContactMethodStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Lightsail.Types.ContactMethodStatus
  ( ContactMethodStatus
      ( ..,
        ContactMethodStatus_Invalid,
        ContactMethodStatus_PendingVerification,
        ContactMethodStatus_Valid
      ),
  )
where

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

newtype ContactMethodStatus = ContactMethodStatus'
  { ContactMethodStatus -> Text
fromContactMethodStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ContactMethodStatus -> ShowS
[ContactMethodStatus] -> ShowS
ContactMethodStatus -> String
(Int -> ContactMethodStatus -> ShowS)
-> (ContactMethodStatus -> String)
-> ([ContactMethodStatus] -> ShowS)
-> Show ContactMethodStatus
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]
(Int -> ReadS ContactMethodStatus)
-> ReadS [ContactMethodStatus]
-> ReadPrec ContactMethodStatus
-> ReadPrec [ContactMethodStatus]
-> Read 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
(ContactMethodStatus -> ContactMethodStatus -> Bool)
-> (ContactMethodStatus -> ContactMethodStatus -> Bool)
-> Eq ContactMethodStatus
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
Eq ContactMethodStatus
-> (ContactMethodStatus -> ContactMethodStatus -> Ordering)
-> (ContactMethodStatus -> ContactMethodStatus -> Bool)
-> (ContactMethodStatus -> ContactMethodStatus -> Bool)
-> (ContactMethodStatus -> ContactMethodStatus -> Bool)
-> (ContactMethodStatus -> ContactMethodStatus -> Bool)
-> (ContactMethodStatus
    -> ContactMethodStatus -> ContactMethodStatus)
-> (ContactMethodStatus
    -> ContactMethodStatus -> ContactMethodStatus)
-> Ord 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
$cp1Ord :: Eq ContactMethodStatus
Prelude.Ord,
      (forall x. ContactMethodStatus -> Rep ContactMethodStatus x)
-> (forall x. Rep ContactMethodStatus x -> ContactMethodStatus)
-> Generic ContactMethodStatus
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
    ( Int -> ContactMethodStatus -> Int
ContactMethodStatus -> Int
(Int -> ContactMethodStatus -> Int)
-> (ContactMethodStatus -> Int) -> Hashable ContactMethodStatus
forall 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 -> ()
(ContactMethodStatus -> ()) -> NFData ContactMethodStatus
forall a. (a -> ()) -> NFData a
rnf :: ContactMethodStatus -> ()
$crnf :: ContactMethodStatus -> ()
Prelude.NFData,
      Text -> Either String ContactMethodStatus
(Text -> Either String ContactMethodStatus)
-> FromText ContactMethodStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ContactMethodStatus
$cfromText :: Text -> Either String ContactMethodStatus
Core.FromText,
      ContactMethodStatus -> Text
(ContactMethodStatus -> Text) -> ToText ContactMethodStatus
forall a. (a -> Text) -> ToText a
toText :: ContactMethodStatus -> Text
$ctoText :: ContactMethodStatus -> Text
Core.ToText,
      ContactMethodStatus -> ByteString
(ContactMethodStatus -> ByteString)
-> ToByteString ContactMethodStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ContactMethodStatus -> ByteString
$ctoBS :: ContactMethodStatus -> ByteString
Core.ToByteString,
      ContactMethodStatus -> ByteStringBuilder
(ContactMethodStatus -> ByteStringBuilder)
-> ToLog ContactMethodStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ContactMethodStatus -> ByteStringBuilder
$cbuild :: ContactMethodStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ContactMethodStatus -> [Header]
(HeaderName -> ContactMethodStatus -> [Header])
-> ToHeader ContactMethodStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ContactMethodStatus -> [Header]
$ctoHeader :: HeaderName -> ContactMethodStatus -> [Header]
Core.ToHeader,
      ContactMethodStatus -> QueryString
(ContactMethodStatus -> QueryString) -> ToQuery ContactMethodStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ContactMethodStatus -> QueryString
$ctoQuery :: ContactMethodStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ContactMethodStatus]
Value -> Parser ContactMethodStatus
(Value -> Parser ContactMethodStatus)
-> (Value -> Parser [ContactMethodStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ContactMethodStatus]
FromJSONKeyFunction ContactMethodStatus
FromJSONKeyFunction ContactMethodStatus
-> FromJSONKeyFunction [ContactMethodStatus]
-> FromJSONKey ContactMethodStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ContactMethodStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ContactMethodStatus]
fromJSONKey :: FromJSONKeyFunction ContactMethodStatus
$cfromJSONKey :: FromJSONKeyFunction ContactMethodStatus
Core.FromJSONKey,
      [ContactMethodStatus] -> Encoding
[ContactMethodStatus] -> Value
ContactMethodStatus -> Encoding
ContactMethodStatus -> Value
(ContactMethodStatus -> Value)
-> (ContactMethodStatus -> Encoding)
-> ([ContactMethodStatus] -> Value)
-> ([ContactMethodStatus] -> Encoding)
-> ToJSON ContactMethodStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ContactMethodStatus]
ToJSONKeyFunction ContactMethodStatus
ToJSONKeyFunction ContactMethodStatus
-> ToJSONKeyFunction [ContactMethodStatus]
-> ToJSONKey ContactMethodStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ContactMethodStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ContactMethodStatus]
toJSONKey :: ToJSONKeyFunction ContactMethodStatus
$ctoJSONKey :: ToJSONKeyFunction ContactMethodStatus
Core.ToJSONKey,
      [Node] -> Either String ContactMethodStatus
([Node] -> Either String ContactMethodStatus)
-> FromXML ContactMethodStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ContactMethodStatus
$cparseXML :: [Node] -> Either String ContactMethodStatus
Core.FromXML,
      ContactMethodStatus -> XML
(ContactMethodStatus -> XML) -> ToXML ContactMethodStatus
forall a. (a -> XML) -> ToXML a
toXML :: ContactMethodStatus -> XML
$ctoXML :: ContactMethodStatus -> XML
Core.ToXML
    )

pattern ContactMethodStatus_Invalid :: ContactMethodStatus
pattern $bContactMethodStatus_Invalid :: ContactMethodStatus
$mContactMethodStatus_Invalid :: forall r. ContactMethodStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactMethodStatus_Invalid = ContactMethodStatus' "Invalid"

pattern ContactMethodStatus_PendingVerification :: ContactMethodStatus
pattern $bContactMethodStatus_PendingVerification :: ContactMethodStatus
$mContactMethodStatus_PendingVerification :: forall r. ContactMethodStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactMethodStatus_PendingVerification = ContactMethodStatus' "PendingVerification"

pattern ContactMethodStatus_Valid :: ContactMethodStatus
pattern $bContactMethodStatus_Valid :: ContactMethodStatus
$mContactMethodStatus_Valid :: forall r. ContactMethodStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactMethodStatus_Valid = ContactMethodStatus' "Valid"

{-# COMPLETE
  ContactMethodStatus_Invalid,
  ContactMethodStatus_PendingVerification,
  ContactMethodStatus_Valid,
  ContactMethodStatus'
  #-}