{-# 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.LineageType
-- 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.LineageType
  ( LineageType
      ( ..,
        LineageType_Action,
        LineageType_Artifact,
        LineageType_Context,
        LineageType_TrialComponent
      ),
  )
where

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

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

pattern LineageType_Action :: LineageType
pattern $bLineageType_Action :: LineageType
$mLineageType_Action :: forall {r}. LineageType -> ((# #) -> r) -> ((# #) -> r) -> r
LineageType_Action = LineageType' "Action"

pattern LineageType_Artifact :: LineageType
pattern $bLineageType_Artifact :: LineageType
$mLineageType_Artifact :: forall {r}. LineageType -> ((# #) -> r) -> ((# #) -> r) -> r
LineageType_Artifact = LineageType' "Artifact"

pattern LineageType_Context :: LineageType
pattern $bLineageType_Context :: LineageType
$mLineageType_Context :: forall {r}. LineageType -> ((# #) -> r) -> ((# #) -> r) -> r
LineageType_Context = LineageType' "Context"

pattern LineageType_TrialComponent :: LineageType
pattern $bLineageType_TrialComponent :: LineageType
$mLineageType_TrialComponent :: forall {r}. LineageType -> ((# #) -> r) -> ((# #) -> r) -> r
LineageType_TrialComponent = LineageType' "TrialComponent"

{-# COMPLETE
  LineageType_Action,
  LineageType_Artifact,
  LineageType_Context,
  LineageType_TrialComponent,
  LineageType'
  #-}