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

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

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

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

{-# COMPLETE
  AutoTuneType_SCHEDULED_ACTION,
  AutoTuneType'
  #-}