{-# 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.AutoTuneType
-- 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.AutoTuneType
  ( AutoTuneType
      ( ..,
        AutoTuneType_SCHEDULED_ACTION
      ),
  )
where

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

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

pattern AutoTuneType_SCHEDULED_ACTION :: AutoTuneType
pattern $bAutoTuneType_SCHEDULED_ACTION :: AutoTuneType
$mAutoTuneType_SCHEDULED_ACTION :: forall {r}. AutoTuneType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoTuneType_SCHEDULED_ACTION = AutoTuneType' "SCHEDULED_ACTION"

{-# COMPLETE
  AutoTuneType_SCHEDULED_ACTION,
  AutoTuneType'
  #-}