{-# 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.DeviceUsageType
-- 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.AlexaBusiness.Types.DeviceUsageType
  ( DeviceUsageType
      ( ..,
        DeviceUsageType_VOICE
      ),
  )
where

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

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

pattern DeviceUsageType_VOICE :: DeviceUsageType
pattern $bDeviceUsageType_VOICE :: DeviceUsageType
$mDeviceUsageType_VOICE :: forall {r}. DeviceUsageType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceUsageType_VOICE = DeviceUsageType' "VOICE"

{-# COMPLETE
  DeviceUsageType_VOICE,
  DeviceUsageType'
  #-}