{-# 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.SageMaker.Types.InferenceExperimentStopDesiredState
-- 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.SageMaker.Types.InferenceExperimentStopDesiredState
  ( InferenceExperimentStopDesiredState
      ( ..,
        InferenceExperimentStopDesiredState_Cancelled,
        InferenceExperimentStopDesiredState_Completed
      ),
  )
where

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

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

pattern InferenceExperimentStopDesiredState_Cancelled :: InferenceExperimentStopDesiredState
pattern $bInferenceExperimentStopDesiredState_Cancelled :: InferenceExperimentStopDesiredState
$mInferenceExperimentStopDesiredState_Cancelled :: forall {r}.
InferenceExperimentStopDesiredState
-> ((# #) -> r) -> ((# #) -> r) -> r
InferenceExperimentStopDesiredState_Cancelled = InferenceExperimentStopDesiredState' "Cancelled"

pattern InferenceExperimentStopDesiredState_Completed :: InferenceExperimentStopDesiredState
pattern $bInferenceExperimentStopDesiredState_Completed :: InferenceExperimentStopDesiredState
$mInferenceExperimentStopDesiredState_Completed :: forall {r}.
InferenceExperimentStopDesiredState
-> ((# #) -> r) -> ((# #) -> r) -> r
InferenceExperimentStopDesiredState_Completed = InferenceExperimentStopDesiredState' "Completed"

{-# COMPLETE
  InferenceExperimentStopDesiredState_Cancelled,
  InferenceExperimentStopDesiredState_Completed,
  InferenceExperimentStopDesiredState'
  #-}