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

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

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

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

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

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