{-# 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.CostExplorer.Types.SubscriberStatus
-- 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.CostExplorer.Types.SubscriberStatus
  ( SubscriberStatus
      ( ..,
        SubscriberStatus_CONFIRMED,
        SubscriberStatus_DECLINED
      ),
  )
where

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

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

pattern SubscriberStatus_CONFIRMED :: SubscriberStatus
pattern $bSubscriberStatus_CONFIRMED :: SubscriberStatus
$mSubscriberStatus_CONFIRMED :: forall r. SubscriberStatus -> (Void# -> r) -> (Void# -> r) -> r
SubscriberStatus_CONFIRMED = SubscriberStatus' "CONFIRMED"

pattern SubscriberStatus_DECLINED :: SubscriberStatus
pattern $bSubscriberStatus_DECLINED :: SubscriberStatus
$mSubscriberStatus_DECLINED :: forall r. SubscriberStatus -> (Void# -> r) -> (Void# -> r) -> r
SubscriberStatus_DECLINED = SubscriberStatus' "DECLINED"

{-# COMPLETE
  SubscriberStatus_CONFIRMED,
  SubscriberStatus_DECLINED,
  SubscriberStatus'
  #-}