{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.StorageGateway.Types.TapeStorageClass
( TapeStorageClass
( ..,
TapeStorageClass_DEEP_ARCHIVE,
TapeStorageClass_GLACIER
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TapeStorageClass = TapeStorageClass'
{ TapeStorageClass -> Text
fromTapeStorageClass ::
Core.Text
}
deriving stock
( Int -> TapeStorageClass -> ShowS
[TapeStorageClass] -> ShowS
TapeStorageClass -> String
(Int -> TapeStorageClass -> ShowS)
-> (TapeStorageClass -> String)
-> ([TapeStorageClass] -> ShowS)
-> Show TapeStorageClass
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TapeStorageClass] -> ShowS
$cshowList :: [TapeStorageClass] -> ShowS
show :: TapeStorageClass -> String
$cshow :: TapeStorageClass -> String
showsPrec :: Int -> TapeStorageClass -> ShowS
$cshowsPrec :: Int -> TapeStorageClass -> ShowS
Prelude.Show,
ReadPrec [TapeStorageClass]
ReadPrec TapeStorageClass
Int -> ReadS TapeStorageClass
ReadS [TapeStorageClass]
(Int -> ReadS TapeStorageClass)
-> ReadS [TapeStorageClass]
-> ReadPrec TapeStorageClass
-> ReadPrec [TapeStorageClass]
-> Read TapeStorageClass
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TapeStorageClass]
$creadListPrec :: ReadPrec [TapeStorageClass]
readPrec :: ReadPrec TapeStorageClass
$creadPrec :: ReadPrec TapeStorageClass
readList :: ReadS [TapeStorageClass]
$creadList :: ReadS [TapeStorageClass]
readsPrec :: Int -> ReadS TapeStorageClass
$creadsPrec :: Int -> ReadS TapeStorageClass
Prelude.Read,
TapeStorageClass -> TapeStorageClass -> Bool
(TapeStorageClass -> TapeStorageClass -> Bool)
-> (TapeStorageClass -> TapeStorageClass -> Bool)
-> Eq TapeStorageClass
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TapeStorageClass -> TapeStorageClass -> Bool
$c/= :: TapeStorageClass -> TapeStorageClass -> Bool
== :: TapeStorageClass -> TapeStorageClass -> Bool
$c== :: TapeStorageClass -> TapeStorageClass -> Bool
Prelude.Eq,
Eq TapeStorageClass
Eq TapeStorageClass
-> (TapeStorageClass -> TapeStorageClass -> Ordering)
-> (TapeStorageClass -> TapeStorageClass -> Bool)
-> (TapeStorageClass -> TapeStorageClass -> Bool)
-> (TapeStorageClass -> TapeStorageClass -> Bool)
-> (TapeStorageClass -> TapeStorageClass -> Bool)
-> (TapeStorageClass -> TapeStorageClass -> TapeStorageClass)
-> (TapeStorageClass -> TapeStorageClass -> TapeStorageClass)
-> Ord TapeStorageClass
TapeStorageClass -> TapeStorageClass -> Bool
TapeStorageClass -> TapeStorageClass -> Ordering
TapeStorageClass -> TapeStorageClass -> TapeStorageClass
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 :: TapeStorageClass -> TapeStorageClass -> TapeStorageClass
$cmin :: TapeStorageClass -> TapeStorageClass -> TapeStorageClass
max :: TapeStorageClass -> TapeStorageClass -> TapeStorageClass
$cmax :: TapeStorageClass -> TapeStorageClass -> TapeStorageClass
>= :: TapeStorageClass -> TapeStorageClass -> Bool
$c>= :: TapeStorageClass -> TapeStorageClass -> Bool
> :: TapeStorageClass -> TapeStorageClass -> Bool
$c> :: TapeStorageClass -> TapeStorageClass -> Bool
<= :: TapeStorageClass -> TapeStorageClass -> Bool
$c<= :: TapeStorageClass -> TapeStorageClass -> Bool
< :: TapeStorageClass -> TapeStorageClass -> Bool
$c< :: TapeStorageClass -> TapeStorageClass -> Bool
compare :: TapeStorageClass -> TapeStorageClass -> Ordering
$ccompare :: TapeStorageClass -> TapeStorageClass -> Ordering
$cp1Ord :: Eq TapeStorageClass
Prelude.Ord,
(forall x. TapeStorageClass -> Rep TapeStorageClass x)
-> (forall x. Rep TapeStorageClass x -> TapeStorageClass)
-> Generic TapeStorageClass
forall x. Rep TapeStorageClass x -> TapeStorageClass
forall x. TapeStorageClass -> Rep TapeStorageClass x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TapeStorageClass x -> TapeStorageClass
$cfrom :: forall x. TapeStorageClass -> Rep TapeStorageClass x
Prelude.Generic
)
deriving newtype
( Int -> TapeStorageClass -> Int
TapeStorageClass -> Int
(Int -> TapeStorageClass -> Int)
-> (TapeStorageClass -> Int) -> Hashable TapeStorageClass
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TapeStorageClass -> Int
$chash :: TapeStorageClass -> Int
hashWithSalt :: Int -> TapeStorageClass -> Int
$chashWithSalt :: Int -> TapeStorageClass -> Int
Prelude.Hashable,
TapeStorageClass -> ()
(TapeStorageClass -> ()) -> NFData TapeStorageClass
forall a. (a -> ()) -> NFData a
rnf :: TapeStorageClass -> ()
$crnf :: TapeStorageClass -> ()
Prelude.NFData,
Text -> Either String TapeStorageClass
(Text -> Either String TapeStorageClass)
-> FromText TapeStorageClass
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TapeStorageClass
$cfromText :: Text -> Either String TapeStorageClass
Core.FromText,
TapeStorageClass -> Text
(TapeStorageClass -> Text) -> ToText TapeStorageClass
forall a. (a -> Text) -> ToText a
toText :: TapeStorageClass -> Text
$ctoText :: TapeStorageClass -> Text
Core.ToText,
TapeStorageClass -> ByteString
(TapeStorageClass -> ByteString) -> ToByteString TapeStorageClass
forall a. (a -> ByteString) -> ToByteString a
toBS :: TapeStorageClass -> ByteString
$ctoBS :: TapeStorageClass -> ByteString
Core.ToByteString,
TapeStorageClass -> ByteStringBuilder
(TapeStorageClass -> ByteStringBuilder) -> ToLog TapeStorageClass
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TapeStorageClass -> ByteStringBuilder
$cbuild :: TapeStorageClass -> ByteStringBuilder
Core.ToLog,
HeaderName -> TapeStorageClass -> [Header]
(HeaderName -> TapeStorageClass -> [Header])
-> ToHeader TapeStorageClass
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TapeStorageClass -> [Header]
$ctoHeader :: HeaderName -> TapeStorageClass -> [Header]
Core.ToHeader,
TapeStorageClass -> QueryString
(TapeStorageClass -> QueryString) -> ToQuery TapeStorageClass
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TapeStorageClass -> QueryString
$ctoQuery :: TapeStorageClass -> QueryString
Core.ToQuery,
Value -> Parser [TapeStorageClass]
Value -> Parser TapeStorageClass
(Value -> Parser TapeStorageClass)
-> (Value -> Parser [TapeStorageClass])
-> FromJSON TapeStorageClass
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TapeStorageClass]
$cparseJSONList :: Value -> Parser [TapeStorageClass]
parseJSON :: Value -> Parser TapeStorageClass
$cparseJSON :: Value -> Parser TapeStorageClass
Core.FromJSON,
FromJSONKeyFunction [TapeStorageClass]
FromJSONKeyFunction TapeStorageClass
FromJSONKeyFunction TapeStorageClass
-> FromJSONKeyFunction [TapeStorageClass]
-> FromJSONKey TapeStorageClass
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TapeStorageClass]
$cfromJSONKeyList :: FromJSONKeyFunction [TapeStorageClass]
fromJSONKey :: FromJSONKeyFunction TapeStorageClass
$cfromJSONKey :: FromJSONKeyFunction TapeStorageClass
Core.FromJSONKey,
[TapeStorageClass] -> Encoding
[TapeStorageClass] -> Value
TapeStorageClass -> Encoding
TapeStorageClass -> Value
(TapeStorageClass -> Value)
-> (TapeStorageClass -> Encoding)
-> ([TapeStorageClass] -> Value)
-> ([TapeStorageClass] -> Encoding)
-> ToJSON TapeStorageClass
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TapeStorageClass] -> Encoding
$ctoEncodingList :: [TapeStorageClass] -> Encoding
toJSONList :: [TapeStorageClass] -> Value
$ctoJSONList :: [TapeStorageClass] -> Value
toEncoding :: TapeStorageClass -> Encoding
$ctoEncoding :: TapeStorageClass -> Encoding
toJSON :: TapeStorageClass -> Value
$ctoJSON :: TapeStorageClass -> Value
Core.ToJSON,
ToJSONKeyFunction [TapeStorageClass]
ToJSONKeyFunction TapeStorageClass
ToJSONKeyFunction TapeStorageClass
-> ToJSONKeyFunction [TapeStorageClass]
-> ToJSONKey TapeStorageClass
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TapeStorageClass]
$ctoJSONKeyList :: ToJSONKeyFunction [TapeStorageClass]
toJSONKey :: ToJSONKeyFunction TapeStorageClass
$ctoJSONKey :: ToJSONKeyFunction TapeStorageClass
Core.ToJSONKey,
[Node] -> Either String TapeStorageClass
([Node] -> Either String TapeStorageClass)
-> FromXML TapeStorageClass
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TapeStorageClass
$cparseXML :: [Node] -> Either String TapeStorageClass
Core.FromXML,
TapeStorageClass -> XML
(TapeStorageClass -> XML) -> ToXML TapeStorageClass
forall a. (a -> XML) -> ToXML a
toXML :: TapeStorageClass -> XML
$ctoXML :: TapeStorageClass -> XML
Core.ToXML
)
pattern TapeStorageClass_DEEP_ARCHIVE :: TapeStorageClass
pattern $bTapeStorageClass_DEEP_ARCHIVE :: TapeStorageClass
$mTapeStorageClass_DEEP_ARCHIVE :: forall r. TapeStorageClass -> (Void# -> r) -> (Void# -> r) -> r
TapeStorageClass_DEEP_ARCHIVE = TapeStorageClass' "DEEP_ARCHIVE"
pattern TapeStorageClass_GLACIER :: TapeStorageClass
pattern $bTapeStorageClass_GLACIER :: TapeStorageClass
$mTapeStorageClass_GLACIER :: forall r. TapeStorageClass -> (Void# -> r) -> (Void# -> r) -> r
TapeStorageClass_GLACIER = TapeStorageClass' "GLACIER"
{-# COMPLETE
TapeStorageClass_DEEP_ARCHIVE,
TapeStorageClass_GLACIER,
TapeStorageClass'
#-}