{-# 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.TemperatureUnit
-- 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.TemperatureUnit
  ( TemperatureUnit
      ( ..,
        TemperatureUnit_CELSIUS,
        TemperatureUnit_FAHRENHEIT
      ),
  )
where

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

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

pattern TemperatureUnit_CELSIUS :: TemperatureUnit
pattern $bTemperatureUnit_CELSIUS :: TemperatureUnit
$mTemperatureUnit_CELSIUS :: forall {r}. TemperatureUnit -> ((# #) -> r) -> ((# #) -> r) -> r
TemperatureUnit_CELSIUS = TemperatureUnit' "CELSIUS"

pattern TemperatureUnit_FAHRENHEIT :: TemperatureUnit
pattern $bTemperatureUnit_FAHRENHEIT :: TemperatureUnit
$mTemperatureUnit_FAHRENHEIT :: forall {r}. TemperatureUnit -> ((# #) -> r) -> ((# #) -> r) -> r
TemperatureUnit_FAHRENHEIT = TemperatureUnit' "FAHRENHEIT"

{-# COMPLETE
  TemperatureUnit_CELSIUS,
  TemperatureUnit_FAHRENHEIT,
  TemperatureUnit'
  #-}