{-# 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.GreengrassV2.Types.IoTJobAbortAction
-- 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.GreengrassV2.Types.IoTJobAbortAction
  ( IoTJobAbortAction
      ( ..,
        IoTJobAbortAction_CANCEL
      ),
  )
where

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

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

pattern IoTJobAbortAction_CANCEL :: IoTJobAbortAction
pattern $bIoTJobAbortAction_CANCEL :: IoTJobAbortAction
$mIoTJobAbortAction_CANCEL :: forall r. IoTJobAbortAction -> (Void# -> r) -> (Void# -> r) -> r
IoTJobAbortAction_CANCEL = IoTJobAbortAction' "CANCEL"

{-# COMPLETE
  IoTJobAbortAction_CANCEL,
  IoTJobAbortAction'
  #-}