{-# 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.AlexaBusiness.Types.EnablementType
-- 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.AlexaBusiness.Types.EnablementType
  ( EnablementType
      ( ..,
        EnablementType_ENABLED,
        EnablementType_PENDING
      ),
  )
where

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

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

pattern EnablementType_ENABLED :: EnablementType
pattern $bEnablementType_ENABLED :: EnablementType
$mEnablementType_ENABLED :: forall r. EnablementType -> (Void# -> r) -> (Void# -> r) -> r
EnablementType_ENABLED = EnablementType' "ENABLED"

pattern EnablementType_PENDING :: EnablementType
pattern $bEnablementType_PENDING :: EnablementType
$mEnablementType_PENDING :: forall r. EnablementType -> (Void# -> r) -> (Void# -> r) -> r
EnablementType_PENDING = EnablementType' "PENDING"

{-# COMPLETE
  EnablementType_ENABLED,
  EnablementType_PENDING,
  EnablementType'
  #-}