{-# 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.SageMakerEdge.Types.ChecksumType
-- 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.SageMakerEdge.Types.ChecksumType
  ( ChecksumType
      ( ..,
        ChecksumType_SHA1
      ),
  )
where

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

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

pattern ChecksumType_SHA1 :: ChecksumType
pattern $bChecksumType_SHA1 :: ChecksumType
$mChecksumType_SHA1 :: forall {r}. ChecksumType -> ((# #) -> r) -> ((# #) -> r) -> r
ChecksumType_SHA1 = ChecksumType' "SHA1"

{-# COMPLETE
  ChecksumType_SHA1,
  ChecksumType'
  #-}