{-# 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.SNS.Types.SMSSandboxPhoneNumberVerificationStatus
-- 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.SNS.Types.SMSSandboxPhoneNumberVerificationStatus
  ( SMSSandboxPhoneNumberVerificationStatus
      ( ..,
        SMSSandboxPhoneNumberVerificationStatus_Pending,
        SMSSandboxPhoneNumberVerificationStatus_Verified
      ),
  )
where

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

-- | Enum listing out all supported destination phone number verification
-- statuses. The following enum values are supported. 1. PENDING : The
-- destination phone number is pending verification. 2. VERIFIED : The
-- destination phone number is verified.
newtype SMSSandboxPhoneNumberVerificationStatus = SMSSandboxPhoneNumberVerificationStatus'
  { SMSSandboxPhoneNumberVerificationStatus -> Text
fromSMSSandboxPhoneNumberVerificationStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> SMSSandboxPhoneNumberVerificationStatus -> ShowS
[SMSSandboxPhoneNumberVerificationStatus] -> ShowS
SMSSandboxPhoneNumberVerificationStatus -> String
(Int -> SMSSandboxPhoneNumberVerificationStatus -> ShowS)
-> (SMSSandboxPhoneNumberVerificationStatus -> String)
-> ([SMSSandboxPhoneNumberVerificationStatus] -> ShowS)
-> Show SMSSandboxPhoneNumberVerificationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SMSSandboxPhoneNumberVerificationStatus] -> ShowS
$cshowList :: [SMSSandboxPhoneNumberVerificationStatus] -> ShowS
show :: SMSSandboxPhoneNumberVerificationStatus -> String
$cshow :: SMSSandboxPhoneNumberVerificationStatus -> String
showsPrec :: Int -> SMSSandboxPhoneNumberVerificationStatus -> ShowS
$cshowsPrec :: Int -> SMSSandboxPhoneNumberVerificationStatus -> ShowS
Prelude.Show,
      ReadPrec [SMSSandboxPhoneNumberVerificationStatus]
ReadPrec SMSSandboxPhoneNumberVerificationStatus
Int -> ReadS SMSSandboxPhoneNumberVerificationStatus
ReadS [SMSSandboxPhoneNumberVerificationStatus]
(Int -> ReadS SMSSandboxPhoneNumberVerificationStatus)
-> ReadS [SMSSandboxPhoneNumberVerificationStatus]
-> ReadPrec SMSSandboxPhoneNumberVerificationStatus
-> ReadPrec [SMSSandboxPhoneNumberVerificationStatus]
-> Read SMSSandboxPhoneNumberVerificationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SMSSandboxPhoneNumberVerificationStatus]
$creadListPrec :: ReadPrec [SMSSandboxPhoneNumberVerificationStatus]
readPrec :: ReadPrec SMSSandboxPhoneNumberVerificationStatus
$creadPrec :: ReadPrec SMSSandboxPhoneNumberVerificationStatus
readList :: ReadS [SMSSandboxPhoneNumberVerificationStatus]
$creadList :: ReadS [SMSSandboxPhoneNumberVerificationStatus]
readsPrec :: Int -> ReadS SMSSandboxPhoneNumberVerificationStatus
$creadsPrec :: Int -> ReadS SMSSandboxPhoneNumberVerificationStatus
Prelude.Read,
      SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
(SMSSandboxPhoneNumberVerificationStatus
 -> SMSSandboxPhoneNumberVerificationStatus -> Bool)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus -> Bool)
-> Eq SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
$c/= :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
== :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
$c== :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
Prelude.Eq,
      Eq SMSSandboxPhoneNumberVerificationStatus
Eq SMSSandboxPhoneNumberVerificationStatus
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus -> Ordering)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus -> Bool)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus -> Bool)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus -> Bool)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus -> Bool)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus)
-> (SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus
    -> SMSSandboxPhoneNumberVerificationStatus)
-> Ord SMSSandboxPhoneNumberVerificationStatus
SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Ordering
SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
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 :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
$cmin :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
max :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
$cmax :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus
>= :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
$c>= :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
> :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
$c> :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
<= :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
$c<= :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
< :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
$c< :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Bool
compare :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Ordering
$ccompare :: SMSSandboxPhoneNumberVerificationStatus
-> SMSSandboxPhoneNumberVerificationStatus -> Ordering
$cp1Ord :: Eq SMSSandboxPhoneNumberVerificationStatus
Prelude.Ord,
      (forall x.
 SMSSandboxPhoneNumberVerificationStatus
 -> Rep SMSSandboxPhoneNumberVerificationStatus x)
-> (forall x.
    Rep SMSSandboxPhoneNumberVerificationStatus x
    -> SMSSandboxPhoneNumberVerificationStatus)
-> Generic SMSSandboxPhoneNumberVerificationStatus
forall x.
Rep SMSSandboxPhoneNumberVerificationStatus x
-> SMSSandboxPhoneNumberVerificationStatus
forall x.
SMSSandboxPhoneNumberVerificationStatus
-> Rep SMSSandboxPhoneNumberVerificationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SMSSandboxPhoneNumberVerificationStatus x
-> SMSSandboxPhoneNumberVerificationStatus
$cfrom :: forall x.
SMSSandboxPhoneNumberVerificationStatus
-> Rep SMSSandboxPhoneNumberVerificationStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> SMSSandboxPhoneNumberVerificationStatus -> Int
SMSSandboxPhoneNumberVerificationStatus -> Int
(Int -> SMSSandboxPhoneNumberVerificationStatus -> Int)
-> (SMSSandboxPhoneNumberVerificationStatus -> Int)
-> Hashable SMSSandboxPhoneNumberVerificationStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SMSSandboxPhoneNumberVerificationStatus -> Int
$chash :: SMSSandboxPhoneNumberVerificationStatus -> Int
hashWithSalt :: Int -> SMSSandboxPhoneNumberVerificationStatus -> Int
$chashWithSalt :: Int -> SMSSandboxPhoneNumberVerificationStatus -> Int
Prelude.Hashable,
      SMSSandboxPhoneNumberVerificationStatus -> ()
(SMSSandboxPhoneNumberVerificationStatus -> ())
-> NFData SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> ()) -> NFData a
rnf :: SMSSandboxPhoneNumberVerificationStatus -> ()
$crnf :: SMSSandboxPhoneNumberVerificationStatus -> ()
Prelude.NFData,
      Text -> Either String SMSSandboxPhoneNumberVerificationStatus
(Text -> Either String SMSSandboxPhoneNumberVerificationStatus)
-> FromText SMSSandboxPhoneNumberVerificationStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SMSSandboxPhoneNumberVerificationStatus
$cfromText :: Text -> Either String SMSSandboxPhoneNumberVerificationStatus
Core.FromText,
      SMSSandboxPhoneNumberVerificationStatus -> Text
(SMSSandboxPhoneNumberVerificationStatus -> Text)
-> ToText SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> Text) -> ToText a
toText :: SMSSandboxPhoneNumberVerificationStatus -> Text
$ctoText :: SMSSandboxPhoneNumberVerificationStatus -> Text
Core.ToText,
      SMSSandboxPhoneNumberVerificationStatus -> ByteString
(SMSSandboxPhoneNumberVerificationStatus -> ByteString)
-> ToByteString SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: SMSSandboxPhoneNumberVerificationStatus -> ByteString
$ctoBS :: SMSSandboxPhoneNumberVerificationStatus -> ByteString
Core.ToByteString,
      SMSSandboxPhoneNumberVerificationStatus -> ByteStringBuilder
(SMSSandboxPhoneNumberVerificationStatus -> ByteStringBuilder)
-> ToLog SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SMSSandboxPhoneNumberVerificationStatus -> ByteStringBuilder
$cbuild :: SMSSandboxPhoneNumberVerificationStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SMSSandboxPhoneNumberVerificationStatus -> [Header]
(HeaderName -> SMSSandboxPhoneNumberVerificationStatus -> [Header])
-> ToHeader SMSSandboxPhoneNumberVerificationStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SMSSandboxPhoneNumberVerificationStatus -> [Header]
$ctoHeader :: HeaderName -> SMSSandboxPhoneNumberVerificationStatus -> [Header]
Core.ToHeader,
      SMSSandboxPhoneNumberVerificationStatus -> QueryString
(SMSSandboxPhoneNumberVerificationStatus -> QueryString)
-> ToQuery SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SMSSandboxPhoneNumberVerificationStatus -> QueryString
$ctoQuery :: SMSSandboxPhoneNumberVerificationStatus -> QueryString
Core.ToQuery,
      Value -> Parser [SMSSandboxPhoneNumberVerificationStatus]
Value -> Parser SMSSandboxPhoneNumberVerificationStatus
(Value -> Parser SMSSandboxPhoneNumberVerificationStatus)
-> (Value -> Parser [SMSSandboxPhoneNumberVerificationStatus])
-> FromJSON SMSSandboxPhoneNumberVerificationStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SMSSandboxPhoneNumberVerificationStatus]
$cparseJSONList :: Value -> Parser [SMSSandboxPhoneNumberVerificationStatus]
parseJSON :: Value -> Parser SMSSandboxPhoneNumberVerificationStatus
$cparseJSON :: Value -> Parser SMSSandboxPhoneNumberVerificationStatus
Core.FromJSON,
      FromJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
FromJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
FromJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
-> FromJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
-> FromJSONKey SMSSandboxPhoneNumberVerificationStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
fromJSONKey :: FromJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
$cfromJSONKey :: FromJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
Core.FromJSONKey,
      [SMSSandboxPhoneNumberVerificationStatus] -> Encoding
[SMSSandboxPhoneNumberVerificationStatus] -> Value
SMSSandboxPhoneNumberVerificationStatus -> Encoding
SMSSandboxPhoneNumberVerificationStatus -> Value
(SMSSandboxPhoneNumberVerificationStatus -> Value)
-> (SMSSandboxPhoneNumberVerificationStatus -> Encoding)
-> ([SMSSandboxPhoneNumberVerificationStatus] -> Value)
-> ([SMSSandboxPhoneNumberVerificationStatus] -> Encoding)
-> ToJSON SMSSandboxPhoneNumberVerificationStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SMSSandboxPhoneNumberVerificationStatus] -> Encoding
$ctoEncodingList :: [SMSSandboxPhoneNumberVerificationStatus] -> Encoding
toJSONList :: [SMSSandboxPhoneNumberVerificationStatus] -> Value
$ctoJSONList :: [SMSSandboxPhoneNumberVerificationStatus] -> Value
toEncoding :: SMSSandboxPhoneNumberVerificationStatus -> Encoding
$ctoEncoding :: SMSSandboxPhoneNumberVerificationStatus -> Encoding
toJSON :: SMSSandboxPhoneNumberVerificationStatus -> Value
$ctoJSON :: SMSSandboxPhoneNumberVerificationStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
ToJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
ToJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
-> ToJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
-> ToJSONKey SMSSandboxPhoneNumberVerificationStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SMSSandboxPhoneNumberVerificationStatus]
toJSONKey :: ToJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
$ctoJSONKey :: ToJSONKeyFunction SMSSandboxPhoneNumberVerificationStatus
Core.ToJSONKey,
      [Node] -> Either String SMSSandboxPhoneNumberVerificationStatus
([Node] -> Either String SMSSandboxPhoneNumberVerificationStatus)
-> FromXML SMSSandboxPhoneNumberVerificationStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SMSSandboxPhoneNumberVerificationStatus
$cparseXML :: [Node] -> Either String SMSSandboxPhoneNumberVerificationStatus
Core.FromXML,
      SMSSandboxPhoneNumberVerificationStatus -> XML
(SMSSandboxPhoneNumberVerificationStatus -> XML)
-> ToXML SMSSandboxPhoneNumberVerificationStatus
forall a. (a -> XML) -> ToXML a
toXML :: SMSSandboxPhoneNumberVerificationStatus -> XML
$ctoXML :: SMSSandboxPhoneNumberVerificationStatus -> XML
Core.ToXML
    )

pattern SMSSandboxPhoneNumberVerificationStatus_Pending :: SMSSandboxPhoneNumberVerificationStatus
pattern $bSMSSandboxPhoneNumberVerificationStatus_Pending :: SMSSandboxPhoneNumberVerificationStatus
$mSMSSandboxPhoneNumberVerificationStatus_Pending :: forall r.
SMSSandboxPhoneNumberVerificationStatus
-> (Void# -> r) -> (Void# -> r) -> r
SMSSandboxPhoneNumberVerificationStatus_Pending = SMSSandboxPhoneNumberVerificationStatus' "Pending"

pattern SMSSandboxPhoneNumberVerificationStatus_Verified :: SMSSandboxPhoneNumberVerificationStatus
pattern $bSMSSandboxPhoneNumberVerificationStatus_Verified :: SMSSandboxPhoneNumberVerificationStatus
$mSMSSandboxPhoneNumberVerificationStatus_Verified :: forall r.
SMSSandboxPhoneNumberVerificationStatus
-> (Void# -> r) -> (Void# -> r) -> r
SMSSandboxPhoneNumberVerificationStatus_Verified = SMSSandboxPhoneNumberVerificationStatus' "Verified"

{-# COMPLETE
  SMSSandboxPhoneNumberVerificationStatus_Pending,
  SMSSandboxPhoneNumberVerificationStatus_Verified,
  SMSSandboxPhoneNumberVerificationStatus'
  #-}