{-# 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.ArtifactSourceIdType
-- 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.ArtifactSourceIdType
  ( ArtifactSourceIdType
      ( ..,
        ArtifactSourceIdType_Custom,
        ArtifactSourceIdType_MD5Hash,
        ArtifactSourceIdType_S3ETag,
        ArtifactSourceIdType_S3Version
      ),
  )
where

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

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

pattern ArtifactSourceIdType_Custom :: ArtifactSourceIdType
pattern $bArtifactSourceIdType_Custom :: ArtifactSourceIdType
$mArtifactSourceIdType_Custom :: forall r. ArtifactSourceIdType -> (Void# -> r) -> (Void# -> r) -> r
ArtifactSourceIdType_Custom = ArtifactSourceIdType' "Custom"

pattern ArtifactSourceIdType_MD5Hash :: ArtifactSourceIdType
pattern $bArtifactSourceIdType_MD5Hash :: ArtifactSourceIdType
$mArtifactSourceIdType_MD5Hash :: forall r. ArtifactSourceIdType -> (Void# -> r) -> (Void# -> r) -> r
ArtifactSourceIdType_MD5Hash = ArtifactSourceIdType' "MD5Hash"

pattern ArtifactSourceIdType_S3ETag :: ArtifactSourceIdType
pattern $bArtifactSourceIdType_S3ETag :: ArtifactSourceIdType
$mArtifactSourceIdType_S3ETag :: forall r. ArtifactSourceIdType -> (Void# -> r) -> (Void# -> r) -> r
ArtifactSourceIdType_S3ETag = ArtifactSourceIdType' "S3ETag"

pattern ArtifactSourceIdType_S3Version :: ArtifactSourceIdType
pattern $bArtifactSourceIdType_S3Version :: ArtifactSourceIdType
$mArtifactSourceIdType_S3Version :: forall r. ArtifactSourceIdType -> (Void# -> r) -> (Void# -> r) -> r
ArtifactSourceIdType_S3Version = ArtifactSourceIdType' "S3Version"

{-# COMPLETE
  ArtifactSourceIdType_Custom,
  ArtifactSourceIdType_MD5Hash,
  ArtifactSourceIdType_S3ETag,
  ArtifactSourceIdType_S3Version,
  ArtifactSourceIdType'
  #-}