{-# 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.EBS.Types.ChecksumAggregationMethod
-- 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.EBS.Types.ChecksumAggregationMethod
  ( ChecksumAggregationMethod
      ( ..,
        ChecksumAggregationMethod_LINEAR
      ),
  )
where

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

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

pattern ChecksumAggregationMethod_LINEAR :: ChecksumAggregationMethod
pattern $bChecksumAggregationMethod_LINEAR :: ChecksumAggregationMethod
$mChecksumAggregationMethod_LINEAR :: forall {r}.
ChecksumAggregationMethod -> ((# #) -> r) -> ((# #) -> r) -> r
ChecksumAggregationMethod_LINEAR = ChecksumAggregationMethod' "LINEAR"

{-# COMPLETE
  ChecksumAggregationMethod_LINEAR,
  ChecksumAggregationMethod'
  #-}