{-# 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.QuickSight.Types.LineInterpolation
-- 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.QuickSight.Types.LineInterpolation
  ( LineInterpolation
      ( ..,
        LineInterpolation_LINEAR,
        LineInterpolation_SMOOTH,
        LineInterpolation_STEPPED
      ),
  )
where

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

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

pattern LineInterpolation_LINEAR :: LineInterpolation
pattern $bLineInterpolation_LINEAR :: LineInterpolation
$mLineInterpolation_LINEAR :: forall {r}. LineInterpolation -> ((# #) -> r) -> ((# #) -> r) -> r
LineInterpolation_LINEAR = LineInterpolation' "LINEAR"

pattern LineInterpolation_SMOOTH :: LineInterpolation
pattern $bLineInterpolation_SMOOTH :: LineInterpolation
$mLineInterpolation_SMOOTH :: forall {r}. LineInterpolation -> ((# #) -> r) -> ((# #) -> r) -> r
LineInterpolation_SMOOTH = LineInterpolation' "SMOOTH"

pattern LineInterpolation_STEPPED :: LineInterpolation
pattern $bLineInterpolation_STEPPED :: LineInterpolation
$mLineInterpolation_STEPPED :: forall {r}. LineInterpolation -> ((# #) -> r) -> ((# #) -> r) -> r
LineInterpolation_STEPPED = LineInterpolation' "STEPPED"

{-# COMPLETE
  LineInterpolation_LINEAR,
  LineInterpolation_SMOOTH,
  LineInterpolation_STEPPED,
  LineInterpolation'
  #-}