{-# 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.KinesisAnalyticsV2.Types.ArtifactType
-- 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.KinesisAnalyticsV2.Types.ArtifactType
  ( ArtifactType
      ( ..,
        ArtifactType_DEPENDENCY_JAR,
        ArtifactType_UDF
      ),
  )
where

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

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

pattern ArtifactType_DEPENDENCY_JAR :: ArtifactType
pattern $bArtifactType_DEPENDENCY_JAR :: ArtifactType
$mArtifactType_DEPENDENCY_JAR :: forall {r}. ArtifactType -> ((# #) -> r) -> ((# #) -> r) -> r
ArtifactType_DEPENDENCY_JAR = ArtifactType' "DEPENDENCY_JAR"

pattern ArtifactType_UDF :: ArtifactType
pattern $bArtifactType_UDF :: ArtifactType
$mArtifactType_UDF :: forall {r}. ArtifactType -> ((# #) -> r) -> ((# #) -> r) -> r
ArtifactType_UDF = ArtifactType' "UDF"

{-# COMPLETE
  ArtifactType_DEPENDENCY_JAR,
  ArtifactType_UDF,
  ArtifactType'
  #-}