{-# 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.SecurityHub.Types.MalwareState
-- 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.SecurityHub.Types.MalwareState
  ( MalwareState
      ( ..,
        MalwareState_OBSERVED,
        MalwareState_REMOVAL_FAILED,
        MalwareState_REMOVED
      ),
  )
where

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

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

pattern MalwareState_OBSERVED :: MalwareState
pattern $bMalwareState_OBSERVED :: MalwareState
$mMalwareState_OBSERVED :: forall r. MalwareState -> (Void# -> r) -> (Void# -> r) -> r
MalwareState_OBSERVED = MalwareState' "OBSERVED"

pattern MalwareState_REMOVAL_FAILED :: MalwareState
pattern $bMalwareState_REMOVAL_FAILED :: MalwareState
$mMalwareState_REMOVAL_FAILED :: forall r. MalwareState -> (Void# -> r) -> (Void# -> r) -> r
MalwareState_REMOVAL_FAILED = MalwareState' "REMOVAL_FAILED"

pattern MalwareState_REMOVED :: MalwareState
pattern $bMalwareState_REMOVED :: MalwareState
$mMalwareState_REMOVED :: forall r. MalwareState -> (Void# -> r) -> (Void# -> r) -> r
MalwareState_REMOVED = MalwareState' "REMOVED"

{-# COMPLETE
  MalwareState_OBSERVED,
  MalwareState_REMOVAL_FAILED,
  MalwareState_REMOVED,
  MalwareState'
  #-}