{-# 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.RecipeOutputFormat
-- 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.GreengrassV2.Types.RecipeOutputFormat
  ( RecipeOutputFormat
      ( ..,
        RecipeOutputFormat_JSON,
        RecipeOutputFormat_YAML
      ),
  )
where

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

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

pattern RecipeOutputFormat_JSON :: RecipeOutputFormat
pattern $bRecipeOutputFormat_JSON :: RecipeOutputFormat
$mRecipeOutputFormat_JSON :: forall {r}. RecipeOutputFormat -> ((# #) -> r) -> ((# #) -> r) -> r
RecipeOutputFormat_JSON = RecipeOutputFormat' "JSON"

pattern RecipeOutputFormat_YAML :: RecipeOutputFormat
pattern $bRecipeOutputFormat_YAML :: RecipeOutputFormat
$mRecipeOutputFormat_YAML :: forall {r}. RecipeOutputFormat -> ((# #) -> r) -> ((# #) -> r) -> r
RecipeOutputFormat_YAML = RecipeOutputFormat' "YAML"

{-# COMPLETE
  RecipeOutputFormat_JSON,
  RecipeOutputFormat_YAML,
  RecipeOutputFormat'
  #-}