{-# 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.ElasticSearch.Types.ScheduledAutoTuneSeverityType
-- 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.ElasticSearch.Types.ScheduledAutoTuneSeverityType
  ( ScheduledAutoTuneSeverityType
      ( ..,
        ScheduledAutoTuneSeverityType_HIGH,
        ScheduledAutoTuneSeverityType_LOW,
        ScheduledAutoTuneSeverityType_MEDIUM
      ),
  )
where

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

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

pattern ScheduledAutoTuneSeverityType_HIGH :: ScheduledAutoTuneSeverityType
pattern $bScheduledAutoTuneSeverityType_HIGH :: ScheduledAutoTuneSeverityType
$mScheduledAutoTuneSeverityType_HIGH :: forall {r}.
ScheduledAutoTuneSeverityType -> ((# #) -> r) -> ((# #) -> r) -> r
ScheduledAutoTuneSeverityType_HIGH = ScheduledAutoTuneSeverityType' "HIGH"

pattern ScheduledAutoTuneSeverityType_LOW :: ScheduledAutoTuneSeverityType
pattern $bScheduledAutoTuneSeverityType_LOW :: ScheduledAutoTuneSeverityType
$mScheduledAutoTuneSeverityType_LOW :: forall {r}.
ScheduledAutoTuneSeverityType -> ((# #) -> r) -> ((# #) -> r) -> r
ScheduledAutoTuneSeverityType_LOW = ScheduledAutoTuneSeverityType' "LOW"

pattern ScheduledAutoTuneSeverityType_MEDIUM :: ScheduledAutoTuneSeverityType
pattern $bScheduledAutoTuneSeverityType_MEDIUM :: ScheduledAutoTuneSeverityType
$mScheduledAutoTuneSeverityType_MEDIUM :: forall {r}.
ScheduledAutoTuneSeverityType -> ((# #) -> r) -> ((# #) -> r) -> r
ScheduledAutoTuneSeverityType_MEDIUM = ScheduledAutoTuneSeverityType' "MEDIUM"

{-# COMPLETE
  ScheduledAutoTuneSeverityType_HIGH,
  ScheduledAutoTuneSeverityType_LOW,
  ScheduledAutoTuneSeverityType_MEDIUM,
  ScheduledAutoTuneSeverityType'
  #-}