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

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

newtype ChecksumAggregationMethod = ChecksumAggregationMethod'
  { ChecksumAggregationMethod -> Text
fromChecksumAggregationMethod ::
      Core.Text
  }
  deriving stock
    ( Int -> ChecksumAggregationMethod -> ShowS
[ChecksumAggregationMethod] -> ShowS
ChecksumAggregationMethod -> String
(Int -> ChecksumAggregationMethod -> ShowS)
-> (ChecksumAggregationMethod -> String)
-> ([ChecksumAggregationMethod] -> ShowS)
-> Show ChecksumAggregationMethod
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]
(Int -> ReadS ChecksumAggregationMethod)
-> ReadS [ChecksumAggregationMethod]
-> ReadPrec ChecksumAggregationMethod
-> ReadPrec [ChecksumAggregationMethod]
-> Read 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
(ChecksumAggregationMethod -> ChecksumAggregationMethod -> Bool)
-> (ChecksumAggregationMethod -> ChecksumAggregationMethod -> Bool)
-> Eq ChecksumAggregationMethod
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
Eq ChecksumAggregationMethod
-> (ChecksumAggregationMethod
    -> ChecksumAggregationMethod -> Ordering)
-> (ChecksumAggregationMethod -> ChecksumAggregationMethod -> Bool)
-> (ChecksumAggregationMethod -> ChecksumAggregationMethod -> Bool)
-> (ChecksumAggregationMethod -> ChecksumAggregationMethod -> Bool)
-> (ChecksumAggregationMethod -> ChecksumAggregationMethod -> Bool)
-> (ChecksumAggregationMethod
    -> ChecksumAggregationMethod -> ChecksumAggregationMethod)
-> (ChecksumAggregationMethod
    -> ChecksumAggregationMethod -> ChecksumAggregationMethod)
-> Ord 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
$cp1Ord :: Eq ChecksumAggregationMethod
Prelude.Ord,
      (forall x.
 ChecksumAggregationMethod -> Rep ChecksumAggregationMethod x)
-> (forall x.
    Rep ChecksumAggregationMethod x -> ChecksumAggregationMethod)
-> Generic ChecksumAggregationMethod
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
    ( Int -> ChecksumAggregationMethod -> Int
ChecksumAggregationMethod -> Int
(Int -> ChecksumAggregationMethod -> Int)
-> (ChecksumAggregationMethod -> Int)
-> Hashable ChecksumAggregationMethod
forall 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 -> ()
(ChecksumAggregationMethod -> ())
-> NFData ChecksumAggregationMethod
forall a. (a -> ()) -> NFData a
rnf :: ChecksumAggregationMethod -> ()
$crnf :: ChecksumAggregationMethod -> ()
Prelude.NFData,
      Text -> Either String ChecksumAggregationMethod
(Text -> Either String ChecksumAggregationMethod)
-> FromText ChecksumAggregationMethod
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChecksumAggregationMethod
$cfromText :: Text -> Either String ChecksumAggregationMethod
Core.FromText,
      ChecksumAggregationMethod -> Text
(ChecksumAggregationMethod -> Text)
-> ToText ChecksumAggregationMethod
forall a. (a -> Text) -> ToText a
toText :: ChecksumAggregationMethod -> Text
$ctoText :: ChecksumAggregationMethod -> Text
Core.ToText,
      ChecksumAggregationMethod -> ByteString
(ChecksumAggregationMethod -> ByteString)
-> ToByteString ChecksumAggregationMethod
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChecksumAggregationMethod -> ByteString
$ctoBS :: ChecksumAggregationMethod -> ByteString
Core.ToByteString,
      ChecksumAggregationMethod -> ByteStringBuilder
(ChecksumAggregationMethod -> ByteStringBuilder)
-> ToLog ChecksumAggregationMethod
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChecksumAggregationMethod -> ByteStringBuilder
$cbuild :: ChecksumAggregationMethod -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ChecksumAggregationMethod -> [Header]
(HeaderName -> ChecksumAggregationMethod -> [Header])
-> ToHeader ChecksumAggregationMethod
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChecksumAggregationMethod -> [Header]
$ctoHeader :: HeaderName -> ChecksumAggregationMethod -> [Header]
Core.ToHeader,
      ChecksumAggregationMethod -> QueryString
(ChecksumAggregationMethod -> QueryString)
-> ToQuery ChecksumAggregationMethod
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChecksumAggregationMethod -> QueryString
$ctoQuery :: ChecksumAggregationMethod -> QueryString
Core.ToQuery,
      Value -> Parser [ChecksumAggregationMethod]
Value -> Parser ChecksumAggregationMethod
(Value -> Parser ChecksumAggregationMethod)
-> (Value -> Parser [ChecksumAggregationMethod])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ChecksumAggregationMethod]
FromJSONKeyFunction ChecksumAggregationMethod
FromJSONKeyFunction ChecksumAggregationMethod
-> FromJSONKeyFunction [ChecksumAggregationMethod]
-> FromJSONKey ChecksumAggregationMethod
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChecksumAggregationMethod]
$cfromJSONKeyList :: FromJSONKeyFunction [ChecksumAggregationMethod]
fromJSONKey :: FromJSONKeyFunction ChecksumAggregationMethod
$cfromJSONKey :: FromJSONKeyFunction ChecksumAggregationMethod
Core.FromJSONKey,
      [ChecksumAggregationMethod] -> Encoding
[ChecksumAggregationMethod] -> Value
ChecksumAggregationMethod -> Encoding
ChecksumAggregationMethod -> Value
(ChecksumAggregationMethod -> Value)
-> (ChecksumAggregationMethod -> Encoding)
-> ([ChecksumAggregationMethod] -> Value)
-> ([ChecksumAggregationMethod] -> Encoding)
-> ToJSON ChecksumAggregationMethod
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
Core.ToJSON,
      ToJSONKeyFunction [ChecksumAggregationMethod]
ToJSONKeyFunction ChecksumAggregationMethod
ToJSONKeyFunction ChecksumAggregationMethod
-> ToJSONKeyFunction [ChecksumAggregationMethod]
-> ToJSONKey ChecksumAggregationMethod
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChecksumAggregationMethod]
$ctoJSONKeyList :: ToJSONKeyFunction [ChecksumAggregationMethod]
toJSONKey :: ToJSONKeyFunction ChecksumAggregationMethod
$ctoJSONKey :: ToJSONKeyFunction ChecksumAggregationMethod
Core.ToJSONKey,
      [Node] -> Either String ChecksumAggregationMethod
([Node] -> Either String ChecksumAggregationMethod)
-> FromXML ChecksumAggregationMethod
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChecksumAggregationMethod
$cparseXML :: [Node] -> Either String ChecksumAggregationMethod
Core.FromXML,
      ChecksumAggregationMethod -> XML
(ChecksumAggregationMethod -> XML)
-> ToXML ChecksumAggregationMethod
forall a. (a -> XML) -> ToXML a
toXML :: ChecksumAggregationMethod -> XML
$ctoXML :: ChecksumAggregationMethod -> XML
Core.ToXML
    )

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

{-# COMPLETE
  ChecksumAggregationMethod_LINEAR,
  ChecksumAggregationMethod'
  #-}