{-# 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.AmplifyUiBuilder.Types.FormActionType
-- 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.AmplifyUiBuilder.Types.FormActionType
  ( FormActionType
      ( ..,
        FormActionType_Create,
        FormActionType_Update
      ),
  )
where

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

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

pattern FormActionType_Create :: FormActionType
pattern $bFormActionType_Create :: FormActionType
$mFormActionType_Create :: forall {r}. FormActionType -> ((# #) -> r) -> ((# #) -> r) -> r
FormActionType_Create = FormActionType' "create"

pattern FormActionType_Update :: FormActionType
pattern $bFormActionType_Update :: FormActionType
$mFormActionType_Update :: forall {r}. FormActionType -> ((# #) -> r) -> ((# #) -> r) -> r
FormActionType_Update = FormActionType' "update"

{-# COMPLETE
  FormActionType_Create,
  FormActionType_Update,
  FormActionType'
  #-}