{-# 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.SageMaker.Types.ProcessingS3DataType
-- 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.SageMaker.Types.ProcessingS3DataType
  ( ProcessingS3DataType
      ( ..,
        ProcessingS3DataType_ManifestFile,
        ProcessingS3DataType_S3Prefix
      ),
  )
where

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

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

pattern ProcessingS3DataType_ManifestFile :: ProcessingS3DataType
pattern $bProcessingS3DataType_ManifestFile :: ProcessingS3DataType
$mProcessingS3DataType_ManifestFile :: forall r. ProcessingS3DataType -> (Void# -> r) -> (Void# -> r) -> r
ProcessingS3DataType_ManifestFile = ProcessingS3DataType' "ManifestFile"

pattern ProcessingS3DataType_S3Prefix :: ProcessingS3DataType
pattern $bProcessingS3DataType_S3Prefix :: ProcessingS3DataType
$mProcessingS3DataType_S3Prefix :: forall r. ProcessingS3DataType -> (Void# -> r) -> (Void# -> r) -> r
ProcessingS3DataType_S3Prefix = ProcessingS3DataType' "S3Prefix"

{-# COMPLETE
  ProcessingS3DataType_ManifestFile,
  ProcessingS3DataType_S3Prefix,
  ProcessingS3DataType'
  #-}