{-# 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.SMS.Types.ValidationStatus
-- 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.SMS.Types.ValidationStatus
  ( ValidationStatus
      ( ..,
        ValidationStatus_FAILED,
        ValidationStatus_IN_PROGRESS,
        ValidationStatus_PENDING,
        ValidationStatus_READY_FOR_VALIDATION,
        ValidationStatus_SUCCEEDED
      ),
  )
where

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

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

pattern ValidationStatus_FAILED :: ValidationStatus
pattern $bValidationStatus_FAILED :: ValidationStatus
$mValidationStatus_FAILED :: forall r. ValidationStatus -> (Void# -> r) -> (Void# -> r) -> r
ValidationStatus_FAILED = ValidationStatus' "FAILED"

pattern ValidationStatus_IN_PROGRESS :: ValidationStatus
pattern $bValidationStatus_IN_PROGRESS :: ValidationStatus
$mValidationStatus_IN_PROGRESS :: forall r. ValidationStatus -> (Void# -> r) -> (Void# -> r) -> r
ValidationStatus_IN_PROGRESS = ValidationStatus' "IN_PROGRESS"

pattern ValidationStatus_PENDING :: ValidationStatus
pattern $bValidationStatus_PENDING :: ValidationStatus
$mValidationStatus_PENDING :: forall r. ValidationStatus -> (Void# -> r) -> (Void# -> r) -> r
ValidationStatus_PENDING = ValidationStatus' "PENDING"

pattern ValidationStatus_READY_FOR_VALIDATION :: ValidationStatus
pattern $bValidationStatus_READY_FOR_VALIDATION :: ValidationStatus
$mValidationStatus_READY_FOR_VALIDATION :: forall r. ValidationStatus -> (Void# -> r) -> (Void# -> r) -> r
ValidationStatus_READY_FOR_VALIDATION = ValidationStatus' "READY_FOR_VALIDATION"

pattern ValidationStatus_SUCCEEDED :: ValidationStatus
pattern $bValidationStatus_SUCCEEDED :: ValidationStatus
$mValidationStatus_SUCCEEDED :: forall r. ValidationStatus -> (Void# -> r) -> (Void# -> r) -> r
ValidationStatus_SUCCEEDED = ValidationStatus' "SUCCEEDED"

{-# COMPLETE
  ValidationStatus_FAILED,
  ValidationStatus_IN_PROGRESS,
  ValidationStatus_PENDING,
  ValidationStatus_READY_FOR_VALIDATION,
  ValidationStatus_SUCCEEDED,
  ValidationStatus'
  #-}