{-# 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.IoTSiteWise.Types.ComputeLocation
-- 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.IoTSiteWise.Types.ComputeLocation
  ( ComputeLocation
      ( ..,
        ComputeLocation_CLOUD,
        ComputeLocation_EDGE
      ),
  )
where

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

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

pattern ComputeLocation_CLOUD :: ComputeLocation
pattern $bComputeLocation_CLOUD :: ComputeLocation
$mComputeLocation_CLOUD :: forall r. ComputeLocation -> (Void# -> r) -> (Void# -> r) -> r
ComputeLocation_CLOUD = ComputeLocation' "CLOUD"

pattern ComputeLocation_EDGE :: ComputeLocation
pattern $bComputeLocation_EDGE :: ComputeLocation
$mComputeLocation_EDGE :: forall r. ComputeLocation -> (Void# -> r) -> (Void# -> r) -> r
ComputeLocation_EDGE = ComputeLocation' "EDGE"

{-# COMPLETE
  ComputeLocation_CLOUD,
  ComputeLocation_EDGE,
  ComputeLocation'
  #-}