{-# 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.DetectorVersionStatus
-- 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.DetectorVersionStatus
  ( DetectorVersionStatus
      ( ..,
        DetectorVersionStatus_ACTIVE,
        DetectorVersionStatus_DRAFT,
        DetectorVersionStatus_INACTIVE
      ),
  )
where

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

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

pattern DetectorVersionStatus_ACTIVE :: DetectorVersionStatus
pattern $bDetectorVersionStatus_ACTIVE :: DetectorVersionStatus
$mDetectorVersionStatus_ACTIVE :: forall r.
DetectorVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
DetectorVersionStatus_ACTIVE = DetectorVersionStatus' "ACTIVE"

pattern DetectorVersionStatus_DRAFT :: DetectorVersionStatus
pattern $bDetectorVersionStatus_DRAFT :: DetectorVersionStatus
$mDetectorVersionStatus_DRAFT :: forall r.
DetectorVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
DetectorVersionStatus_DRAFT = DetectorVersionStatus' "DRAFT"

pattern DetectorVersionStatus_INACTIVE :: DetectorVersionStatus
pattern $bDetectorVersionStatus_INACTIVE :: DetectorVersionStatus
$mDetectorVersionStatus_INACTIVE :: forall r.
DetectorVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
DetectorVersionStatus_INACTIVE = DetectorVersionStatus' "INACTIVE"

{-# COMPLETE
  DetectorVersionStatus_ACTIVE,
  DetectorVersionStatus_DRAFT,
  DetectorVersionStatus_INACTIVE,
  DetectorVersionStatus'
  #-}