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