{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

pattern CampaignStatus_PAUSED :: CampaignStatus
pattern $bCampaignStatus_PAUSED :: CampaignStatus
$mCampaignStatus_PAUSED :: forall r. CampaignStatus -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
CampaignStatus_PENDING_NEXT_RUN = CampaignStatus' "PENDING_NEXT_RUN"

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

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