{-# 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.FraudDetector.Types.ModelVersionStatus
-- 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.FraudDetector.Types.ModelVersionStatus
  ( ModelVersionStatus
      ( ..,
        ModelVersionStatus_ACTIVE,
        ModelVersionStatus_INACTIVE,
        ModelVersionStatus_TRAINING_CANCELLED
      ),
  )
where

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

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

pattern ModelVersionStatus_ACTIVE :: ModelVersionStatus
pattern $bModelVersionStatus_ACTIVE :: ModelVersionStatus
$mModelVersionStatus_ACTIVE :: forall r. ModelVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelVersionStatus_ACTIVE = ModelVersionStatus' "ACTIVE"

pattern ModelVersionStatus_INACTIVE :: ModelVersionStatus
pattern $bModelVersionStatus_INACTIVE :: ModelVersionStatus
$mModelVersionStatus_INACTIVE :: forall r. ModelVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelVersionStatus_INACTIVE = ModelVersionStatus' "INACTIVE"

pattern ModelVersionStatus_TRAINING_CANCELLED :: ModelVersionStatus
pattern $bModelVersionStatus_TRAINING_CANCELLED :: ModelVersionStatus
$mModelVersionStatus_TRAINING_CANCELLED :: forall r. ModelVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelVersionStatus_TRAINING_CANCELLED = ModelVersionStatus' "TRAINING_CANCELLED"

{-# COMPLETE
  ModelVersionStatus_ACTIVE,
  ModelVersionStatus_INACTIVE,
  ModelVersionStatus_TRAINING_CANCELLED,
  ModelVersionStatus'
  #-}