{-# 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.FMS.Types.RemediationActionType
-- 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.FMS.Types.RemediationActionType
  ( RemediationActionType
      ( ..,
        RemediationActionType_MODIFY,
        RemediationActionType_REMOVE
      ),
  )
where

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

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

pattern RemediationActionType_MODIFY :: RemediationActionType
pattern $bRemediationActionType_MODIFY :: RemediationActionType
$mRemediationActionType_MODIFY :: forall {r}.
RemediationActionType -> ((# #) -> r) -> ((# #) -> r) -> r
RemediationActionType_MODIFY = RemediationActionType' "MODIFY"

pattern RemediationActionType_REMOVE :: RemediationActionType
pattern $bRemediationActionType_REMOVE :: RemediationActionType
$mRemediationActionType_REMOVE :: forall {r}.
RemediationActionType -> ((# #) -> r) -> ((# #) -> r) -> r
RemediationActionType_REMOVE = RemediationActionType' "REMOVE"

{-# COMPLETE
  RemediationActionType_MODIFY,
  RemediationActionType_REMOVE,
  RemediationActionType'
  #-}