{-# 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.ModelEndpointStatus
-- 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.FraudDetector.Types.ModelEndpointStatus
  ( ModelEndpointStatus
      ( ..,
        ModelEndpointStatus_ASSOCIATED,
        ModelEndpointStatus_DISSOCIATED
      ),
  )
where

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

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

pattern ModelEndpointStatus_ASSOCIATED :: ModelEndpointStatus
pattern $bModelEndpointStatus_ASSOCIATED :: ModelEndpointStatus
$mModelEndpointStatus_ASSOCIATED :: forall {r}.
ModelEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelEndpointStatus_ASSOCIATED = ModelEndpointStatus' "ASSOCIATED"

pattern ModelEndpointStatus_DISSOCIATED :: ModelEndpointStatus
pattern $bModelEndpointStatus_DISSOCIATED :: ModelEndpointStatus
$mModelEndpointStatus_DISSOCIATED :: forall {r}.
ModelEndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelEndpointStatus_DISSOCIATED = ModelEndpointStatus' "DISSOCIATED"

{-# COMPLETE
  ModelEndpointStatus_ASSOCIATED,
  ModelEndpointStatus_DISSOCIATED,
  ModelEndpointStatus'
  #-}