{-# 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.AppSync.Types.OutputType
-- 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.AppSync.Types.OutputType
  ( OutputType
      ( ..,
        OutputType_JSON,
        OutputType_SDL
      ),
  )
where

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

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

pattern OutputType_JSON :: OutputType
pattern $bOutputType_JSON :: OutputType
$mOutputType_JSON :: forall r. OutputType -> (Void# -> r) -> (Void# -> r) -> r
OutputType_JSON = OutputType' "JSON"

pattern OutputType_SDL :: OutputType
pattern $bOutputType_SDL :: OutputType
$mOutputType_SDL :: forall r. OutputType -> (Void# -> r) -> (Void# -> r) -> r
OutputType_SDL = OutputType' "SDL"

{-# COMPLETE
  OutputType_JSON,
  OutputType_SDL,
  OutputType'
  #-}