{-# 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.ConditionOutcome
-- 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.ConditionOutcome
  ( ConditionOutcome
      ( ..,
        ConditionOutcome_False,
        ConditionOutcome_True
      ),
  )
where

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

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

pattern ConditionOutcome_False :: ConditionOutcome
pattern $bConditionOutcome_False :: ConditionOutcome
$mConditionOutcome_False :: forall {r}. ConditionOutcome -> ((# #) -> r) -> ((# #) -> r) -> r
ConditionOutcome_False = ConditionOutcome' "False"

pattern ConditionOutcome_True :: ConditionOutcome
pattern $bConditionOutcome_True :: ConditionOutcome
$mConditionOutcome_True :: forall {r}. ConditionOutcome -> ((# #) -> r) -> ((# #) -> r) -> r
ConditionOutcome_True = ConditionOutcome' "True"

{-# COMPLETE
  ConditionOutcome_False,
  ConditionOutcome_True,
  ConditionOutcome'
  #-}