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

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

-- | Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and
-- HIGH.
newtype ScheduledAutoTuneSeverityType = ScheduledAutoTuneSeverityType'
  { ScheduledAutoTuneSeverityType -> Text
fromScheduledAutoTuneSeverityType ::
      Core.Text
  }
  deriving stock
    ( Int -> ScheduledAutoTuneSeverityType -> ShowS
[ScheduledAutoTuneSeverityType] -> ShowS
ScheduledAutoTuneSeverityType -> String
(Int -> ScheduledAutoTuneSeverityType -> ShowS)
-> (ScheduledAutoTuneSeverityType -> String)
-> ([ScheduledAutoTuneSeverityType] -> ShowS)
-> Show ScheduledAutoTuneSeverityType
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]
(Int -> ReadS ScheduledAutoTuneSeverityType)
-> ReadS [ScheduledAutoTuneSeverityType]
-> ReadPrec ScheduledAutoTuneSeverityType
-> ReadPrec [ScheduledAutoTuneSeverityType]
-> Read 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
(ScheduledAutoTuneSeverityType
 -> ScheduledAutoTuneSeverityType -> Bool)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> Bool)
-> Eq ScheduledAutoTuneSeverityType
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
Eq ScheduledAutoTuneSeverityType
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> Ordering)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> Bool)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> Bool)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> Bool)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> Bool)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> ScheduledAutoTuneSeverityType)
-> (ScheduledAutoTuneSeverityType
    -> ScheduledAutoTuneSeverityType -> ScheduledAutoTuneSeverityType)
-> Ord 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
$cp1Ord :: Eq ScheduledAutoTuneSeverityType
Prelude.Ord,
      (forall x.
 ScheduledAutoTuneSeverityType
 -> Rep ScheduledAutoTuneSeverityType x)
-> (forall x.
    Rep ScheduledAutoTuneSeverityType x
    -> ScheduledAutoTuneSeverityType)
-> Generic ScheduledAutoTuneSeverityType
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
    ( Int -> ScheduledAutoTuneSeverityType -> Int
ScheduledAutoTuneSeverityType -> Int
(Int -> ScheduledAutoTuneSeverityType -> Int)
-> (ScheduledAutoTuneSeverityType -> Int)
-> Hashable ScheduledAutoTuneSeverityType
forall 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 -> ()
(ScheduledAutoTuneSeverityType -> ())
-> NFData ScheduledAutoTuneSeverityType
forall a. (a -> ()) -> NFData a
rnf :: ScheduledAutoTuneSeverityType -> ()
$crnf :: ScheduledAutoTuneSeverityType -> ()
Prelude.NFData,
      Text -> Either String ScheduledAutoTuneSeverityType
(Text -> Either String ScheduledAutoTuneSeverityType)
-> FromText ScheduledAutoTuneSeverityType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScheduledAutoTuneSeverityType
$cfromText :: Text -> Either String ScheduledAutoTuneSeverityType
Core.FromText,
      ScheduledAutoTuneSeverityType -> Text
(ScheduledAutoTuneSeverityType -> Text)
-> ToText ScheduledAutoTuneSeverityType
forall a. (a -> Text) -> ToText a
toText :: ScheduledAutoTuneSeverityType -> Text
$ctoText :: ScheduledAutoTuneSeverityType -> Text
Core.ToText,
      ScheduledAutoTuneSeverityType -> ByteString
(ScheduledAutoTuneSeverityType -> ByteString)
-> ToByteString ScheduledAutoTuneSeverityType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScheduledAutoTuneSeverityType -> ByteString
$ctoBS :: ScheduledAutoTuneSeverityType -> ByteString
Core.ToByteString,
      ScheduledAutoTuneSeverityType -> ByteStringBuilder
(ScheduledAutoTuneSeverityType -> ByteStringBuilder)
-> ToLog ScheduledAutoTuneSeverityType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScheduledAutoTuneSeverityType -> ByteStringBuilder
$cbuild :: ScheduledAutoTuneSeverityType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ScheduledAutoTuneSeverityType -> [Header]
(HeaderName -> ScheduledAutoTuneSeverityType -> [Header])
-> ToHeader ScheduledAutoTuneSeverityType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScheduledAutoTuneSeverityType -> [Header]
$ctoHeader :: HeaderName -> ScheduledAutoTuneSeverityType -> [Header]
Core.ToHeader,
      ScheduledAutoTuneSeverityType -> QueryString
(ScheduledAutoTuneSeverityType -> QueryString)
-> ToQuery ScheduledAutoTuneSeverityType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScheduledAutoTuneSeverityType -> QueryString
$ctoQuery :: ScheduledAutoTuneSeverityType -> QueryString
Core.ToQuery,
      Value -> Parser [ScheduledAutoTuneSeverityType]
Value -> Parser ScheduledAutoTuneSeverityType
(Value -> Parser ScheduledAutoTuneSeverityType)
-> (Value -> Parser [ScheduledAutoTuneSeverityType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ScheduledAutoTuneSeverityType]
FromJSONKeyFunction ScheduledAutoTuneSeverityType
FromJSONKeyFunction ScheduledAutoTuneSeverityType
-> FromJSONKeyFunction [ScheduledAutoTuneSeverityType]
-> FromJSONKey ScheduledAutoTuneSeverityType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScheduledAutoTuneSeverityType]
$cfromJSONKeyList :: FromJSONKeyFunction [ScheduledAutoTuneSeverityType]
fromJSONKey :: FromJSONKeyFunction ScheduledAutoTuneSeverityType
$cfromJSONKey :: FromJSONKeyFunction ScheduledAutoTuneSeverityType
Core.FromJSONKey,
      [ScheduledAutoTuneSeverityType] -> Encoding
[ScheduledAutoTuneSeverityType] -> Value
ScheduledAutoTuneSeverityType -> Encoding
ScheduledAutoTuneSeverityType -> Value
(ScheduledAutoTuneSeverityType -> Value)
-> (ScheduledAutoTuneSeverityType -> Encoding)
-> ([ScheduledAutoTuneSeverityType] -> Value)
-> ([ScheduledAutoTuneSeverityType] -> Encoding)
-> ToJSON ScheduledAutoTuneSeverityType
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
Core.ToJSON,
      ToJSONKeyFunction [ScheduledAutoTuneSeverityType]
ToJSONKeyFunction ScheduledAutoTuneSeverityType
ToJSONKeyFunction ScheduledAutoTuneSeverityType
-> ToJSONKeyFunction [ScheduledAutoTuneSeverityType]
-> ToJSONKey ScheduledAutoTuneSeverityType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScheduledAutoTuneSeverityType]
$ctoJSONKeyList :: ToJSONKeyFunction [ScheduledAutoTuneSeverityType]
toJSONKey :: ToJSONKeyFunction ScheduledAutoTuneSeverityType
$ctoJSONKey :: ToJSONKeyFunction ScheduledAutoTuneSeverityType
Core.ToJSONKey,
      [Node] -> Either String ScheduledAutoTuneSeverityType
([Node] -> Either String ScheduledAutoTuneSeverityType)
-> FromXML ScheduledAutoTuneSeverityType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScheduledAutoTuneSeverityType
$cparseXML :: [Node] -> Either String ScheduledAutoTuneSeverityType
Core.FromXML,
      ScheduledAutoTuneSeverityType -> XML
(ScheduledAutoTuneSeverityType -> XML)
-> ToXML ScheduledAutoTuneSeverityType
forall a. (a -> XML) -> ToXML a
toXML :: ScheduledAutoTuneSeverityType -> XML
$ctoXML :: ScheduledAutoTuneSeverityType -> XML
Core.ToXML
    )

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

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

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

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