{-# 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.Glacier.Types.QuoteFields
-- 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.Glacier.Types.QuoteFields
  ( QuoteFields
      ( ..,
        QuoteFields_ALWAYS,
        QuoteFields_ASNEEDED
      ),
  )
where

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

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

pattern QuoteFields_ALWAYS :: QuoteFields
pattern $bQuoteFields_ALWAYS :: QuoteFields
$mQuoteFields_ALWAYS :: forall {r}. QuoteFields -> ((# #) -> r) -> ((# #) -> r) -> r
QuoteFields_ALWAYS = QuoteFields' "ALWAYS"

pattern QuoteFields_ASNEEDED :: QuoteFields
pattern $bQuoteFields_ASNEEDED :: QuoteFields
$mQuoteFields_ASNEEDED :: forall {r}. QuoteFields -> ((# #) -> r) -> ((# #) -> r) -> r
QuoteFields_ASNEEDED = QuoteFields' "ASNEEDED"

{-# COMPLETE
  QuoteFields_ALWAYS,
  QuoteFields_ASNEEDED,
  QuoteFields'
  #-}