{-# 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.Forecast.Types.AutoMLOverrideStrategy
-- 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.Forecast.Types.AutoMLOverrideStrategy
  ( AutoMLOverrideStrategy
      ( ..,
        AutoMLOverrideStrategy_LatencyOptimized
      ),
  )
where

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

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

pattern AutoMLOverrideStrategy_LatencyOptimized :: AutoMLOverrideStrategy
pattern $bAutoMLOverrideStrategy_LatencyOptimized :: AutoMLOverrideStrategy
$mAutoMLOverrideStrategy_LatencyOptimized :: forall r.
AutoMLOverrideStrategy -> (Void# -> r) -> (Void# -> r) -> r
AutoMLOverrideStrategy_LatencyOptimized = AutoMLOverrideStrategy' "LatencyOptimized"

{-# COMPLETE
  AutoMLOverrideStrategy_LatencyOptimized,
  AutoMLOverrideStrategy'
  #-}