{-# 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.JoinSource
-- 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.JoinSource
  ( JoinSource
      ( ..,
        JoinSource_Input,
        JoinSource_None
      ),
  )
where

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

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

pattern JoinSource_Input :: JoinSource
pattern $bJoinSource_Input :: JoinSource
$mJoinSource_Input :: forall r. JoinSource -> (Void# -> r) -> (Void# -> r) -> r
JoinSource_Input = JoinSource' "Input"

pattern JoinSource_None :: JoinSource
pattern $bJoinSource_None :: JoinSource
$mJoinSource_None :: forall r. JoinSource -> (Void# -> r) -> (Void# -> r) -> r
JoinSource_None = JoinSource' "None"

{-# COMPLETE
  JoinSource_Input,
  JoinSource_None,
  JoinSource'
  #-}