{-# 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.AssociationEdgeType
-- 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.AssociationEdgeType
  ( AssociationEdgeType
      ( ..,
        AssociationEdgeType_AssociatedWith,
        AssociationEdgeType_ContributedTo,
        AssociationEdgeType_DerivedFrom,
        AssociationEdgeType_Produced
      ),
  )
where

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

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

pattern AssociationEdgeType_AssociatedWith :: AssociationEdgeType
pattern $bAssociationEdgeType_AssociatedWith :: AssociationEdgeType
$mAssociationEdgeType_AssociatedWith :: forall r. AssociationEdgeType -> (Void# -> r) -> (Void# -> r) -> r
AssociationEdgeType_AssociatedWith = AssociationEdgeType' "AssociatedWith"

pattern AssociationEdgeType_ContributedTo :: AssociationEdgeType
pattern $bAssociationEdgeType_ContributedTo :: AssociationEdgeType
$mAssociationEdgeType_ContributedTo :: forall r. AssociationEdgeType -> (Void# -> r) -> (Void# -> r) -> r
AssociationEdgeType_ContributedTo = AssociationEdgeType' "ContributedTo"

pattern AssociationEdgeType_DerivedFrom :: AssociationEdgeType
pattern $bAssociationEdgeType_DerivedFrom :: AssociationEdgeType
$mAssociationEdgeType_DerivedFrom :: forall r. AssociationEdgeType -> (Void# -> r) -> (Void# -> r) -> r
AssociationEdgeType_DerivedFrom = AssociationEdgeType' "DerivedFrom"

pattern AssociationEdgeType_Produced :: AssociationEdgeType
pattern $bAssociationEdgeType_Produced :: AssociationEdgeType
$mAssociationEdgeType_Produced :: forall r. AssociationEdgeType -> (Void# -> r) -> (Void# -> r) -> r
AssociationEdgeType_Produced = AssociationEdgeType' "Produced"

{-# COMPLETE
  AssociationEdgeType_AssociatedWith,
  AssociationEdgeType_ContributedTo,
  AssociationEdgeType_DerivedFrom,
  AssociationEdgeType_Produced,
  AssociationEdgeType'
  #-}