{-# 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.WakeWord
-- 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.WakeWord
  ( WakeWord
      ( ..,
        WakeWord_ALEXA,
        WakeWord_AMAZON,
        WakeWord_COMPUTER,
        WakeWord_ECHO
      ),
  )
where

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

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

pattern WakeWord_ALEXA :: WakeWord
pattern $bWakeWord_ALEXA :: WakeWord
$mWakeWord_ALEXA :: forall r. WakeWord -> (Void# -> r) -> (Void# -> r) -> r
WakeWord_ALEXA = WakeWord' "ALEXA"

pattern WakeWord_AMAZON :: WakeWord
pattern $bWakeWord_AMAZON :: WakeWord
$mWakeWord_AMAZON :: forall r. WakeWord -> (Void# -> r) -> (Void# -> r) -> r
WakeWord_AMAZON = WakeWord' "AMAZON"

pattern WakeWord_COMPUTER :: WakeWord
pattern $bWakeWord_COMPUTER :: WakeWord
$mWakeWord_COMPUTER :: forall r. WakeWord -> (Void# -> r) -> (Void# -> r) -> r
WakeWord_COMPUTER = WakeWord' "COMPUTER"

pattern WakeWord_ECHO :: WakeWord
pattern $bWakeWord_ECHO :: WakeWord
$mWakeWord_ECHO :: forall r. WakeWord -> (Void# -> r) -> (Void# -> r) -> r
WakeWord_ECHO = WakeWord' "ECHO"

{-# COMPLETE
  WakeWord_ALEXA,
  WakeWord_AMAZON,
  WakeWord_COMPUTER,
  WakeWord_ECHO,
  WakeWord'
  #-}