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

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

newtype ConditionOutcome = ConditionOutcome'
  { ConditionOutcome -> Text
fromConditionOutcome ::
      Core.Text
  }
  deriving stock
    ( Int -> ConditionOutcome -> ShowS
[ConditionOutcome] -> ShowS
ConditionOutcome -> String
(Int -> ConditionOutcome -> ShowS)
-> (ConditionOutcome -> String)
-> ([ConditionOutcome] -> ShowS)
-> Show ConditionOutcome
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]
(Int -> ReadS ConditionOutcome)
-> ReadS [ConditionOutcome]
-> ReadPrec ConditionOutcome
-> ReadPrec [ConditionOutcome]
-> Read 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
(ConditionOutcome -> ConditionOutcome -> Bool)
-> (ConditionOutcome -> ConditionOutcome -> Bool)
-> Eq ConditionOutcome
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
Eq ConditionOutcome
-> (ConditionOutcome -> ConditionOutcome -> Ordering)
-> (ConditionOutcome -> ConditionOutcome -> Bool)
-> (ConditionOutcome -> ConditionOutcome -> Bool)
-> (ConditionOutcome -> ConditionOutcome -> Bool)
-> (ConditionOutcome -> ConditionOutcome -> Bool)
-> (ConditionOutcome -> ConditionOutcome -> ConditionOutcome)
-> (ConditionOutcome -> ConditionOutcome -> ConditionOutcome)
-> Ord 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
$cp1Ord :: Eq ConditionOutcome
Prelude.Ord,
      (forall x. ConditionOutcome -> Rep ConditionOutcome x)
-> (forall x. Rep ConditionOutcome x -> ConditionOutcome)
-> Generic ConditionOutcome
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
    ( Int -> ConditionOutcome -> Int
ConditionOutcome -> Int
(Int -> ConditionOutcome -> Int)
-> (ConditionOutcome -> Int) -> Hashable ConditionOutcome
forall 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 -> ()
(ConditionOutcome -> ()) -> NFData ConditionOutcome
forall a. (a -> ()) -> NFData a
rnf :: ConditionOutcome -> ()
$crnf :: ConditionOutcome -> ()
Prelude.NFData,
      Text -> Either String ConditionOutcome
(Text -> Either String ConditionOutcome)
-> FromText ConditionOutcome
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConditionOutcome
$cfromText :: Text -> Either String ConditionOutcome
Core.FromText,
      ConditionOutcome -> Text
(ConditionOutcome -> Text) -> ToText ConditionOutcome
forall a. (a -> Text) -> ToText a
toText :: ConditionOutcome -> Text
$ctoText :: ConditionOutcome -> Text
Core.ToText,
      ConditionOutcome -> ByteString
(ConditionOutcome -> ByteString) -> ToByteString ConditionOutcome
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConditionOutcome -> ByteString
$ctoBS :: ConditionOutcome -> ByteString
Core.ToByteString,
      ConditionOutcome -> ByteStringBuilder
(ConditionOutcome -> ByteStringBuilder) -> ToLog ConditionOutcome
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConditionOutcome -> ByteStringBuilder
$cbuild :: ConditionOutcome -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ConditionOutcome -> [Header]
(HeaderName -> ConditionOutcome -> [Header])
-> ToHeader ConditionOutcome
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConditionOutcome -> [Header]
$ctoHeader :: HeaderName -> ConditionOutcome -> [Header]
Core.ToHeader,
      ConditionOutcome -> QueryString
(ConditionOutcome -> QueryString) -> ToQuery ConditionOutcome
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConditionOutcome -> QueryString
$ctoQuery :: ConditionOutcome -> QueryString
Core.ToQuery,
      Value -> Parser [ConditionOutcome]
Value -> Parser ConditionOutcome
(Value -> Parser ConditionOutcome)
-> (Value -> Parser [ConditionOutcome])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ConditionOutcome]
FromJSONKeyFunction ConditionOutcome
FromJSONKeyFunction ConditionOutcome
-> FromJSONKeyFunction [ConditionOutcome]
-> FromJSONKey ConditionOutcome
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConditionOutcome]
$cfromJSONKeyList :: FromJSONKeyFunction [ConditionOutcome]
fromJSONKey :: FromJSONKeyFunction ConditionOutcome
$cfromJSONKey :: FromJSONKeyFunction ConditionOutcome
Core.FromJSONKey,
      [ConditionOutcome] -> Encoding
[ConditionOutcome] -> Value
ConditionOutcome -> Encoding
ConditionOutcome -> Value
(ConditionOutcome -> Value)
-> (ConditionOutcome -> Encoding)
-> ([ConditionOutcome] -> Value)
-> ([ConditionOutcome] -> Encoding)
-> ToJSON ConditionOutcome
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
Core.ToJSON,
      ToJSONKeyFunction [ConditionOutcome]
ToJSONKeyFunction ConditionOutcome
ToJSONKeyFunction ConditionOutcome
-> ToJSONKeyFunction [ConditionOutcome]
-> ToJSONKey ConditionOutcome
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConditionOutcome]
$ctoJSONKeyList :: ToJSONKeyFunction [ConditionOutcome]
toJSONKey :: ToJSONKeyFunction ConditionOutcome
$ctoJSONKey :: ToJSONKeyFunction ConditionOutcome
Core.ToJSONKey,
      [Node] -> Either String ConditionOutcome
([Node] -> Either String ConditionOutcome)
-> FromXML ConditionOutcome
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConditionOutcome
$cparseXML :: [Node] -> Either String ConditionOutcome
Core.FromXML,
      ConditionOutcome -> XML
(ConditionOutcome -> XML) -> ToXML ConditionOutcome
forall a. (a -> XML) -> ToXML a
toXML :: ConditionOutcome -> XML
$ctoXML :: ConditionOutcome -> XML
Core.ToXML
    )

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

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

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