{-# 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.LookoutEquipment.Types.Monotonicity
-- 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.LookoutEquipment.Types.Monotonicity
  ( Monotonicity
      ( ..,
        Monotonicity_DECREASING,
        Monotonicity_INCREASING,
        Monotonicity_STATIC
      ),
  )
where

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

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

pattern Monotonicity_DECREASING :: Monotonicity
pattern $bMonotonicity_DECREASING :: Monotonicity
$mMonotonicity_DECREASING :: forall {r}. Monotonicity -> ((# #) -> r) -> ((# #) -> r) -> r
Monotonicity_DECREASING = Monotonicity' "DECREASING"

pattern Monotonicity_INCREASING :: Monotonicity
pattern $bMonotonicity_INCREASING :: Monotonicity
$mMonotonicity_INCREASING :: forall {r}. Monotonicity -> ((# #) -> r) -> ((# #) -> r) -> r
Monotonicity_INCREASING = Monotonicity' "INCREASING"

pattern Monotonicity_STATIC :: Monotonicity
pattern $bMonotonicity_STATIC :: Monotonicity
$mMonotonicity_STATIC :: forall {r}. Monotonicity -> ((# #) -> r) -> ((# #) -> r) -> r
Monotonicity_STATIC = Monotonicity' "STATIC"

{-# COMPLETE
  Monotonicity_DECREASING,
  Monotonicity_INCREASING,
  Monotonicity_STATIC,
  Monotonicity'
  #-}