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

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

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

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

{-# COMPLETE
  DeviceUsageType_VOICE,
  DeviceUsageType'
  #-}