{-# 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.StorageUnit
-- 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.Snowball.Types.StorageUnit
  ( StorageUnit
      ( ..,
        StorageUnit_TB
      ),
  )
where

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

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

pattern StorageUnit_TB :: StorageUnit
pattern $bStorageUnit_TB :: StorageUnit
$mStorageUnit_TB :: forall {r}. StorageUnit -> ((# #) -> r) -> ((# #) -> r) -> r
StorageUnit_TB = StorageUnit' "TB"

{-# COMPLETE
  StorageUnit_TB,
  StorageUnit'
  #-}