{-# 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.S3DataType
-- 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.S3DataType
  ( S3DataType
      ( ..,
        S3DataType_AugmentedManifestFile,
        S3DataType_ManifestFile,
        S3DataType_S3Prefix
      ),
  )
where

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

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

pattern S3DataType_AugmentedManifestFile :: S3DataType
pattern $bS3DataType_AugmentedManifestFile :: S3DataType
$mS3DataType_AugmentedManifestFile :: forall r. S3DataType -> (Void# -> r) -> (Void# -> r) -> r
S3DataType_AugmentedManifestFile = S3DataType' "AugmentedManifestFile"

pattern S3DataType_ManifestFile :: S3DataType
pattern $bS3DataType_ManifestFile :: S3DataType
$mS3DataType_ManifestFile :: forall r. S3DataType -> (Void# -> r) -> (Void# -> r) -> r
S3DataType_ManifestFile = S3DataType' "ManifestFile"

pattern S3DataType_S3Prefix :: S3DataType
pattern $bS3DataType_S3Prefix :: S3DataType
$mS3DataType_S3Prefix :: forall r. S3DataType -> (Void# -> r) -> (Void# -> r) -> r
S3DataType_S3Prefix = S3DataType' "S3Prefix"

{-# COMPLETE
  S3DataType_AugmentedManifestFile,
  S3DataType_ManifestFile,
  S3DataType_S3Prefix,
  S3DataType'
  #-}