{-# 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.Snowball.Types.SnowballCapacity
-- 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.Snowball.Types.SnowballCapacity
  ( SnowballCapacity
      ( ..,
        SnowballCapacity_NoPreference,
        SnowballCapacity_T100,
        SnowballCapacity_T14,
        SnowballCapacity_T42,
        SnowballCapacity_T50,
        SnowballCapacity_T8,
        SnowballCapacity_T80,
        SnowballCapacity_T98
      ),
  )
where

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

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

pattern SnowballCapacity_NoPreference :: SnowballCapacity
pattern $bSnowballCapacity_NoPreference :: SnowballCapacity
$mSnowballCapacity_NoPreference :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_NoPreference = SnowballCapacity' "NoPreference"

pattern SnowballCapacity_T100 :: SnowballCapacity
pattern $bSnowballCapacity_T100 :: SnowballCapacity
$mSnowballCapacity_T100 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T100 = SnowballCapacity' "T100"

pattern SnowballCapacity_T14 :: SnowballCapacity
pattern $bSnowballCapacity_T14 :: SnowballCapacity
$mSnowballCapacity_T14 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T14 = SnowballCapacity' "T14"

pattern SnowballCapacity_T42 :: SnowballCapacity
pattern $bSnowballCapacity_T42 :: SnowballCapacity
$mSnowballCapacity_T42 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T42 = SnowballCapacity' "T42"

pattern SnowballCapacity_T50 :: SnowballCapacity
pattern $bSnowballCapacity_T50 :: SnowballCapacity
$mSnowballCapacity_T50 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T50 = SnowballCapacity' "T50"

pattern SnowballCapacity_T8 :: SnowballCapacity
pattern $bSnowballCapacity_T8 :: SnowballCapacity
$mSnowballCapacity_T8 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T8 = SnowballCapacity' "T8"

pattern SnowballCapacity_T80 :: SnowballCapacity
pattern $bSnowballCapacity_T80 :: SnowballCapacity
$mSnowballCapacity_T80 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T80 = SnowballCapacity' "T80"

pattern SnowballCapacity_T98 :: SnowballCapacity
pattern $bSnowballCapacity_T98 :: SnowballCapacity
$mSnowballCapacity_T98 :: forall r. SnowballCapacity -> (Void# -> r) -> (Void# -> r) -> r
SnowballCapacity_T98 = SnowballCapacity' "T98"

{-# COMPLETE
  SnowballCapacity_NoPreference,
  SnowballCapacity_T100,
  SnowballCapacity_T14,
  SnowballCapacity_T42,
  SnowballCapacity_T50,
  SnowballCapacity_T8,
  SnowballCapacity_T80,
  SnowballCapacity_T98,
  SnowballCapacity'
  #-}