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

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> ScheduledAutoTuneActionType -> ShowS
[ScheduledAutoTuneActionType] -> ShowS
ScheduledAutoTuneActionType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ScheduledAutoTuneActionType
Int -> ScheduledAutoTuneActionType -> Int
ScheduledAutoTuneActionType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ScheduledAutoTuneActionType -> ()
$crnf :: ScheduledAutoTuneActionType -> ()
Prelude.NFData,
      Text -> Either String ScheduledAutoTuneActionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScheduledAutoTuneActionType
$cfromText :: Text -> Either String ScheduledAutoTuneActionType
Data.FromText,
      ScheduledAutoTuneActionType -> Text
forall a. (a -> Text) -> ToText a
toText :: ScheduledAutoTuneActionType -> Text
$ctoText :: ScheduledAutoTuneActionType -> Text
Data.ToText,
      ScheduledAutoTuneActionType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScheduledAutoTuneActionType -> ByteString
$ctoBS :: ScheduledAutoTuneActionType -> ByteString
Data.ToByteString,
      ScheduledAutoTuneActionType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScheduledAutoTuneActionType -> ByteStringBuilder
$cbuild :: ScheduledAutoTuneActionType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ScheduledAutoTuneActionType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScheduledAutoTuneActionType -> [Header]
$ctoHeader :: HeaderName -> ScheduledAutoTuneActionType -> [Header]
Data.ToHeader,
      ScheduledAutoTuneActionType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScheduledAutoTuneActionType -> QueryString
$ctoQuery :: ScheduledAutoTuneActionType -> QueryString
Data.ToQuery,
      Value -> Parser [ScheduledAutoTuneActionType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ScheduledAutoTuneActionType]
FromJSONKeyFunction ScheduledAutoTuneActionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScheduledAutoTuneActionType]
$cfromJSONKeyList :: FromJSONKeyFunction [ScheduledAutoTuneActionType]
fromJSONKey :: FromJSONKeyFunction ScheduledAutoTuneActionType
$cfromJSONKey :: FromJSONKeyFunction ScheduledAutoTuneActionType
Data.FromJSONKey,
      [ScheduledAutoTuneActionType] -> Encoding
[ScheduledAutoTuneActionType] -> Value
ScheduledAutoTuneActionType -> Encoding
ScheduledAutoTuneActionType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ScheduledAutoTuneActionType]
ToJSONKeyFunction ScheduledAutoTuneActionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScheduledAutoTuneActionType]
$ctoJSONKeyList :: ToJSONKeyFunction [ScheduledAutoTuneActionType]
toJSONKey :: ToJSONKeyFunction ScheduledAutoTuneActionType
$ctoJSONKey :: ToJSONKeyFunction ScheduledAutoTuneActionType
Data.ToJSONKey,
      [Node] -> Either String ScheduledAutoTuneActionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScheduledAutoTuneActionType
$cparseXML :: [Node] -> Either String ScheduledAutoTuneActionType
Data.FromXML,
      ScheduledAutoTuneActionType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ScheduledAutoTuneActionType -> XML
$ctoXML :: ScheduledAutoTuneActionType -> XML
Data.ToXML
    )

pattern ScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING :: ScheduledAutoTuneActionType
pattern $bScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING :: ScheduledAutoTuneActionType
$mScheduledAutoTuneActionType_JVM_HEAP_SIZE_TUNING :: forall {r}.
ScheduledAutoTuneActionType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
ScheduledAutoTuneActionType_JVM_YOUNG_GEN_TUNING = ScheduledAutoTuneActionType' "JVM_YOUNG_GEN_TUNING"

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