{-# 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.SSMContacts.Types.ActivationStatus
-- 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.SSMContacts.Types.ActivationStatus
  ( ActivationStatus
      ( ..,
        ActivationStatus_ACTIVATED,
        ActivationStatus_NOT_ACTIVATED
      ),
  )
where

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

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

pattern ActivationStatus_ACTIVATED :: ActivationStatus
pattern $bActivationStatus_ACTIVATED :: ActivationStatus
$mActivationStatus_ACTIVATED :: forall {r}. ActivationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActivationStatus_ACTIVATED = ActivationStatus' "ACTIVATED"

pattern ActivationStatus_NOT_ACTIVATED :: ActivationStatus
pattern $bActivationStatus_NOT_ACTIVATED :: ActivationStatus
$mActivationStatus_NOT_ACTIVATED :: forall {r}. ActivationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActivationStatus_NOT_ACTIVATED = ActivationStatus' "NOT_ACTIVATED"

{-# COMPLETE
  ActivationStatus_ACTIVATED,
  ActivationStatus_NOT_ACTIVATED,
  ActivationStatus'
  #-}