{-# 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.Direction
-- 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.Direction
  ( Direction
      ( ..,
        Direction_Ascendants,
        Direction_Both,
        Direction_Descendants
      ),
  )
where

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

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

pattern Direction_Ascendants :: Direction
pattern $bDirection_Ascendants :: Direction
$mDirection_Ascendants :: forall {r}. Direction -> ((# #) -> r) -> ((# #) -> r) -> r
Direction_Ascendants = Direction' "Ascendants"

pattern Direction_Both :: Direction
pattern $bDirection_Both :: Direction
$mDirection_Both :: forall {r}. Direction -> ((# #) -> r) -> ((# #) -> r) -> r
Direction_Both = Direction' "Both"

pattern Direction_Descendants :: Direction
pattern $bDirection_Descendants :: Direction
$mDirection_Descendants :: forall {r}. Direction -> ((# #) -> r) -> ((# #) -> r) -> r
Direction_Descendants = Direction' "Descendants"

{-# COMPLETE
  Direction_Ascendants,
  Direction_Both,
  Direction_Descendants,
  Direction'
  #-}