{-# 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.IotTwinMaker.Types.InterpolationType
-- 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.IotTwinMaker.Types.InterpolationType
  ( InterpolationType
      ( ..,
        InterpolationType_LINEAR
      ),
  )
where

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

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

pattern InterpolationType_LINEAR :: InterpolationType
pattern $bInterpolationType_LINEAR :: InterpolationType
$mInterpolationType_LINEAR :: forall {r}. InterpolationType -> ((# #) -> r) -> ((# #) -> r) -> r
InterpolationType_LINEAR = InterpolationType' "LINEAR"

{-# COMPLETE
  InterpolationType_LINEAR,
  InterpolationType'
  #-}