{-# 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.CandidateStepType
-- 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.CandidateStepType
  ( CandidateStepType
      ( ..,
        CandidateStepType_AWS__SageMaker__ProcessingJob,
        CandidateStepType_AWS__SageMaker__TrainingJob,
        CandidateStepType_AWS__SageMaker__TransformJob
      ),
  )
where

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

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

pattern CandidateStepType_AWS__SageMaker__ProcessingJob :: CandidateStepType
pattern $bCandidateStepType_AWS__SageMaker__ProcessingJob :: CandidateStepType
$mCandidateStepType_AWS__SageMaker__ProcessingJob :: forall {r}. CandidateStepType -> ((# #) -> r) -> ((# #) -> r) -> r
CandidateStepType_AWS__SageMaker__ProcessingJob = CandidateStepType' "AWS::SageMaker::ProcessingJob"

pattern CandidateStepType_AWS__SageMaker__TrainingJob :: CandidateStepType
pattern $bCandidateStepType_AWS__SageMaker__TrainingJob :: CandidateStepType
$mCandidateStepType_AWS__SageMaker__TrainingJob :: forall {r}. CandidateStepType -> ((# #) -> r) -> ((# #) -> r) -> r
CandidateStepType_AWS__SageMaker__TrainingJob = CandidateStepType' "AWS::SageMaker::TrainingJob"

pattern CandidateStepType_AWS__SageMaker__TransformJob :: CandidateStepType
pattern $bCandidateStepType_AWS__SageMaker__TransformJob :: CandidateStepType
$mCandidateStepType_AWS__SageMaker__TransformJob :: forall {r}. CandidateStepType -> ((# #) -> r) -> ((# #) -> r) -> r
CandidateStepType_AWS__SageMaker__TransformJob = CandidateStepType' "AWS::SageMaker::TransformJob"

{-# COMPLETE
  CandidateStepType_AWS__SageMaker__ProcessingJob,
  CandidateStepType_AWS__SageMaker__TrainingJob,
  CandidateStepType_AWS__SageMaker__TransformJob,
  CandidateStepType'
  #-}