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

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

newtype RecipeOutputFormat = RecipeOutputFormat'
  { RecipeOutputFormat -> Text
fromRecipeOutputFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> RecipeOutputFormat -> ShowS
[RecipeOutputFormat] -> ShowS
RecipeOutputFormat -> String
(Int -> RecipeOutputFormat -> ShowS)
-> (RecipeOutputFormat -> String)
-> ([RecipeOutputFormat] -> ShowS)
-> Show RecipeOutputFormat
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]
(Int -> ReadS RecipeOutputFormat)
-> ReadS [RecipeOutputFormat]
-> ReadPrec RecipeOutputFormat
-> ReadPrec [RecipeOutputFormat]
-> Read 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
(RecipeOutputFormat -> RecipeOutputFormat -> Bool)
-> (RecipeOutputFormat -> RecipeOutputFormat -> Bool)
-> Eq RecipeOutputFormat
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
Eq RecipeOutputFormat
-> (RecipeOutputFormat -> RecipeOutputFormat -> Ordering)
-> (RecipeOutputFormat -> RecipeOutputFormat -> Bool)
-> (RecipeOutputFormat -> RecipeOutputFormat -> Bool)
-> (RecipeOutputFormat -> RecipeOutputFormat -> Bool)
-> (RecipeOutputFormat -> RecipeOutputFormat -> Bool)
-> (RecipeOutputFormat -> RecipeOutputFormat -> RecipeOutputFormat)
-> (RecipeOutputFormat -> RecipeOutputFormat -> RecipeOutputFormat)
-> Ord 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
$cp1Ord :: Eq RecipeOutputFormat
Prelude.Ord,
      (forall x. RecipeOutputFormat -> Rep RecipeOutputFormat x)
-> (forall x. Rep RecipeOutputFormat x -> RecipeOutputFormat)
-> Generic RecipeOutputFormat
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
    ( Int -> RecipeOutputFormat -> Int
RecipeOutputFormat -> Int
(Int -> RecipeOutputFormat -> Int)
-> (RecipeOutputFormat -> Int) -> Hashable RecipeOutputFormat
forall 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 -> ()
(RecipeOutputFormat -> ()) -> NFData RecipeOutputFormat
forall a. (a -> ()) -> NFData a
rnf :: RecipeOutputFormat -> ()
$crnf :: RecipeOutputFormat -> ()
Prelude.NFData,
      Text -> Either String RecipeOutputFormat
(Text -> Either String RecipeOutputFormat)
-> FromText RecipeOutputFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RecipeOutputFormat
$cfromText :: Text -> Either String RecipeOutputFormat
Core.FromText,
      RecipeOutputFormat -> Text
(RecipeOutputFormat -> Text) -> ToText RecipeOutputFormat
forall a. (a -> Text) -> ToText a
toText :: RecipeOutputFormat -> Text
$ctoText :: RecipeOutputFormat -> Text
Core.ToText,
      RecipeOutputFormat -> ByteString
(RecipeOutputFormat -> ByteString)
-> ToByteString RecipeOutputFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: RecipeOutputFormat -> ByteString
$ctoBS :: RecipeOutputFormat -> ByteString
Core.ToByteString,
      RecipeOutputFormat -> ByteStringBuilder
(RecipeOutputFormat -> ByteStringBuilder)
-> ToLog RecipeOutputFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RecipeOutputFormat -> ByteStringBuilder
$cbuild :: RecipeOutputFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RecipeOutputFormat -> [Header]
(HeaderName -> RecipeOutputFormat -> [Header])
-> ToHeader RecipeOutputFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RecipeOutputFormat -> [Header]
$ctoHeader :: HeaderName -> RecipeOutputFormat -> [Header]
Core.ToHeader,
      RecipeOutputFormat -> QueryString
(RecipeOutputFormat -> QueryString) -> ToQuery RecipeOutputFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RecipeOutputFormat -> QueryString
$ctoQuery :: RecipeOutputFormat -> QueryString
Core.ToQuery,
      Value -> Parser [RecipeOutputFormat]
Value -> Parser RecipeOutputFormat
(Value -> Parser RecipeOutputFormat)
-> (Value -> Parser [RecipeOutputFormat])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [RecipeOutputFormat]
FromJSONKeyFunction RecipeOutputFormat
FromJSONKeyFunction RecipeOutputFormat
-> FromJSONKeyFunction [RecipeOutputFormat]
-> FromJSONKey RecipeOutputFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RecipeOutputFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [RecipeOutputFormat]
fromJSONKey :: FromJSONKeyFunction RecipeOutputFormat
$cfromJSONKey :: FromJSONKeyFunction RecipeOutputFormat
Core.FromJSONKey,
      [RecipeOutputFormat] -> Encoding
[RecipeOutputFormat] -> Value
RecipeOutputFormat -> Encoding
RecipeOutputFormat -> Value
(RecipeOutputFormat -> Value)
-> (RecipeOutputFormat -> Encoding)
-> ([RecipeOutputFormat] -> Value)
-> ([RecipeOutputFormat] -> Encoding)
-> ToJSON RecipeOutputFormat
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
Core.ToJSON,
      ToJSONKeyFunction [RecipeOutputFormat]
ToJSONKeyFunction RecipeOutputFormat
ToJSONKeyFunction RecipeOutputFormat
-> ToJSONKeyFunction [RecipeOutputFormat]
-> ToJSONKey RecipeOutputFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RecipeOutputFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [RecipeOutputFormat]
toJSONKey :: ToJSONKeyFunction RecipeOutputFormat
$ctoJSONKey :: ToJSONKeyFunction RecipeOutputFormat
Core.ToJSONKey,
      [Node] -> Either String RecipeOutputFormat
([Node] -> Either String RecipeOutputFormat)
-> FromXML RecipeOutputFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RecipeOutputFormat
$cparseXML :: [Node] -> Either String RecipeOutputFormat
Core.FromXML,
      RecipeOutputFormat -> XML
(RecipeOutputFormat -> XML) -> ToXML RecipeOutputFormat
forall a. (a -> XML) -> ToXML a
toXML :: RecipeOutputFormat -> XML
$ctoXML :: RecipeOutputFormat -> XML
Core.ToXML
    )

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

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

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