{-# 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.ScheduledAutoTuneActionType
-- 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.ScheduledAutoTuneActionType
  ( ScheduledAutoTuneActionType
      ( ..,
        ScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING,
        ScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING
      ),
  )
where

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

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

pattern ScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING :: ScheduledAutoTuneActionType
pattern $bScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING :: ScheduledAutoTuneActionType
$mScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING :: forall r.
ScheduledAutoTuneActionType -> (Void# -> r) -> (Void# -> r) -> r
ScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING = ScheduledAutoTuneActionType' "JVM_HEAP_SIZE_TUNING"

pattern ScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING :: ScheduledAutoTuneActionType
pattern $bScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING :: ScheduledAutoTuneActionType
$mScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING :: forall r.
ScheduledAutoTuneActionType -> (Void# -> r) -> (Void# -> r) -> r
ScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING = ScheduledAutoTuneActionType' "JVM_YOUNG_GEN_TUNING"

{-# COMPLETE
  ScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING,
  ScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING,
  ScheduledAutoTuneActionType'
  #-}