{-# 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.RuleEvaluationStatus
-- 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.RuleEvaluationStatus
  ( RuleEvaluationStatus
      ( ..,
        RuleEvaluationStatus_Error,
        RuleEvaluationStatus_InProgress,
        RuleEvaluationStatus_IssuesFound,
        RuleEvaluationStatus_NoIssuesFound,
        RuleEvaluationStatus_Stopped,
        RuleEvaluationStatus_Stopping
      ),
  )
where

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

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

pattern RuleEvaluationStatus_Error :: RuleEvaluationStatus
pattern $bRuleEvaluationStatus_Error :: RuleEvaluationStatus
$mRuleEvaluationStatus_Error :: forall r. RuleEvaluationStatus -> (Void# -> r) -> (Void# -> r) -> r
RuleEvaluationStatus_Error = RuleEvaluationStatus' "Error"

pattern RuleEvaluationStatus_InProgress :: RuleEvaluationStatus
pattern $bRuleEvaluationStatus_InProgress :: RuleEvaluationStatus
$mRuleEvaluationStatus_InProgress :: forall r. RuleEvaluationStatus -> (Void# -> r) -> (Void# -> r) -> r
RuleEvaluationStatus_InProgress = RuleEvaluationStatus' "InProgress"

pattern RuleEvaluationStatus_IssuesFound :: RuleEvaluationStatus
pattern $bRuleEvaluationStatus_IssuesFound :: RuleEvaluationStatus
$mRuleEvaluationStatus_IssuesFound :: forall r. RuleEvaluationStatus -> (Void# -> r) -> (Void# -> r) -> r
RuleEvaluationStatus_IssuesFound = RuleEvaluationStatus' "IssuesFound"

pattern RuleEvaluationStatus_NoIssuesFound :: RuleEvaluationStatus
pattern $bRuleEvaluationStatus_NoIssuesFound :: RuleEvaluationStatus
$mRuleEvaluationStatus_NoIssuesFound :: forall r. RuleEvaluationStatus -> (Void# -> r) -> (Void# -> r) -> r
RuleEvaluationStatus_NoIssuesFound = RuleEvaluationStatus' "NoIssuesFound"

pattern RuleEvaluationStatus_Stopped :: RuleEvaluationStatus
pattern $bRuleEvaluationStatus_Stopped :: RuleEvaluationStatus
$mRuleEvaluationStatus_Stopped :: forall r. RuleEvaluationStatus -> (Void# -> r) -> (Void# -> r) -> r
RuleEvaluationStatus_Stopped = RuleEvaluationStatus' "Stopped"

pattern RuleEvaluationStatus_Stopping :: RuleEvaluationStatus
pattern $bRuleEvaluationStatus_Stopping :: RuleEvaluationStatus
$mRuleEvaluationStatus_Stopping :: forall r. RuleEvaluationStatus -> (Void# -> r) -> (Void# -> r) -> r
RuleEvaluationStatus_Stopping = RuleEvaluationStatus' "Stopping"

{-# COMPLETE
  RuleEvaluationStatus_Error,
  RuleEvaluationStatus_InProgress,
  RuleEvaluationStatus_IssuesFound,
  RuleEvaluationStatus_NoIssuesFound,
  RuleEvaluationStatus_Stopped,
  RuleEvaluationStatus_Stopping,
  RuleEvaluationStatus'
  #-}