{-# 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.Pinpoint.Types.CampaignStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.CampaignStatus
  ( CampaignStatus
      ( ..,
        CampaignStatus_COMPLETED,
        CampaignStatus_DELETED,
        CampaignStatus_EXECUTING,
        CampaignStatus_INVALID,
        CampaignStatus_PAUSED,
        CampaignStatus_PENDING_NEXT_RUN,
        CampaignStatus_SCHEDULED
      ),
  )
where

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

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

pattern CampaignStatus_COMPLETED :: CampaignStatus
pattern $bCampaignStatus_COMPLETED :: CampaignStatus
$mCampaignStatus_COMPLETED :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_COMPLETED = CampaignStatus' "COMPLETED"

pattern CampaignStatus_DELETED :: CampaignStatus
pattern $bCampaignStatus_DELETED :: CampaignStatus
$mCampaignStatus_DELETED :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_DELETED = CampaignStatus' "DELETED"

pattern CampaignStatus_EXECUTING :: CampaignStatus
pattern $bCampaignStatus_EXECUTING :: CampaignStatus
$mCampaignStatus_EXECUTING :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_EXECUTING = CampaignStatus' "EXECUTING"

pattern CampaignStatus_INVALID :: CampaignStatus
pattern $bCampaignStatus_INVALID :: CampaignStatus
$mCampaignStatus_INVALID :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_INVALID = CampaignStatus' "INVALID"

pattern CampaignStatus_PAUSED :: CampaignStatus
pattern $bCampaignStatus_PAUSED :: CampaignStatus
$mCampaignStatus_PAUSED :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_PAUSED = CampaignStatus' "PAUSED"

pattern CampaignStatus_PENDING_NEXT_RUN :: CampaignStatus
pattern $bCampaignStatus_PENDING_NEXT_RUN :: CampaignStatus
$mCampaignStatus_PENDING_NEXT_RUN :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_PENDING_NEXT_RUN = CampaignStatus' "PENDING_NEXT_RUN"

pattern CampaignStatus_SCHEDULED :: CampaignStatus
pattern $bCampaignStatus_SCHEDULED :: CampaignStatus
$mCampaignStatus_SCHEDULED :: forall {r}. CampaignStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CampaignStatus_SCHEDULED = CampaignStatus' "SCHEDULED"

{-# COMPLETE
  CampaignStatus_COMPLETED,
  CampaignStatus_DELETED,
  CampaignStatus_EXECUTING,
  CampaignStatus_INVALID,
  CampaignStatus_PAUSED,
  CampaignStatus_PENDING_NEXT_RUN,
  CampaignStatus_SCHEDULED,
  CampaignStatus'
  #-}