{-# 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-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.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.Prelude as Prelude

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

pattern CandidateStepType_AWS__SageMaker__ProcessingJob :: CandidateStepType
pattern $bCandidateStepType_AWS__SageMaker__ProcessingJob :: CandidateStepType
$mCandidateStepType_AWS__SageMaker__ProcessingJob :: forall r. CandidateStepType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
CandidateStepType_AWS__SageMaker__TransformJob = CandidateStepType' "AWS::SageMaker::TransformJob"

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