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

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

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

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

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

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