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

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

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

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

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

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