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

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

newtype QuoteFields = QuoteFields'
  { QuoteFields -> Text
fromQuoteFields ::
      Core.Text
  }
  deriving stock
    ( Int -> QuoteFields -> ShowS
[QuoteFields] -> ShowS
QuoteFields -> String
(Int -> QuoteFields -> ShowS)
-> (QuoteFields -> String)
-> ([QuoteFields] -> ShowS)
-> Show QuoteFields
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]
(Int -> ReadS QuoteFields)
-> ReadS [QuoteFields]
-> ReadPrec QuoteFields
-> ReadPrec [QuoteFields]
-> Read 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
(QuoteFields -> QuoteFields -> Bool)
-> (QuoteFields -> QuoteFields -> Bool) -> Eq QuoteFields
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
Eq QuoteFields
-> (QuoteFields -> QuoteFields -> Ordering)
-> (QuoteFields -> QuoteFields -> Bool)
-> (QuoteFields -> QuoteFields -> Bool)
-> (QuoteFields -> QuoteFields -> Bool)
-> (QuoteFields -> QuoteFields -> Bool)
-> (QuoteFields -> QuoteFields -> QuoteFields)
-> (QuoteFields -> QuoteFields -> QuoteFields)
-> Ord 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
$cp1Ord :: Eq QuoteFields
Prelude.Ord,
      (forall x. QuoteFields -> Rep QuoteFields x)
-> (forall x. Rep QuoteFields x -> QuoteFields)
-> Generic QuoteFields
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
    ( Int -> QuoteFields -> Int
QuoteFields -> Int
(Int -> QuoteFields -> Int)
-> (QuoteFields -> Int) -> Hashable QuoteFields
forall 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 -> ()
(QuoteFields -> ()) -> NFData QuoteFields
forall a. (a -> ()) -> NFData a
rnf :: QuoteFields -> ()
$crnf :: QuoteFields -> ()
Prelude.NFData,
      Text -> Either String QuoteFields
(Text -> Either String QuoteFields) -> FromText QuoteFields
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String QuoteFields
$cfromText :: Text -> Either String QuoteFields
Core.FromText,
      QuoteFields -> Text
(QuoteFields -> Text) -> ToText QuoteFields
forall a. (a -> Text) -> ToText a
toText :: QuoteFields -> Text
$ctoText :: QuoteFields -> Text
Core.ToText,
      QuoteFields -> ByteString
(QuoteFields -> ByteString) -> ToByteString QuoteFields
forall a. (a -> ByteString) -> ToByteString a
toBS :: QuoteFields -> ByteString
$ctoBS :: QuoteFields -> ByteString
Core.ToByteString,
      QuoteFields -> ByteStringBuilder
(QuoteFields -> ByteStringBuilder) -> ToLog QuoteFields
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: QuoteFields -> ByteStringBuilder
$cbuild :: QuoteFields -> ByteStringBuilder
Core.ToLog,
      HeaderName -> QuoteFields -> [Header]
(HeaderName -> QuoteFields -> [Header]) -> ToHeader QuoteFields
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> QuoteFields -> [Header]
$ctoHeader :: HeaderName -> QuoteFields -> [Header]
Core.ToHeader,
      QuoteFields -> QueryString
(QuoteFields -> QueryString) -> ToQuery QuoteFields
forall a. (a -> QueryString) -> ToQuery a
toQuery :: QuoteFields -> QueryString
$ctoQuery :: QuoteFields -> QueryString
Core.ToQuery,
      Value -> Parser [QuoteFields]
Value -> Parser QuoteFields
(Value -> Parser QuoteFields)
-> (Value -> Parser [QuoteFields]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [QuoteFields]
FromJSONKeyFunction QuoteFields
FromJSONKeyFunction QuoteFields
-> FromJSONKeyFunction [QuoteFields] -> FromJSONKey QuoteFields
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [QuoteFields]
$cfromJSONKeyList :: FromJSONKeyFunction [QuoteFields]
fromJSONKey :: FromJSONKeyFunction QuoteFields
$cfromJSONKey :: FromJSONKeyFunction QuoteFields
Core.FromJSONKey,
      [QuoteFields] -> Encoding
[QuoteFields] -> Value
QuoteFields -> Encoding
QuoteFields -> Value
(QuoteFields -> Value)
-> (QuoteFields -> Encoding)
-> ([QuoteFields] -> Value)
-> ([QuoteFields] -> Encoding)
-> ToJSON QuoteFields
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
Core.ToJSON,
      ToJSONKeyFunction [QuoteFields]
ToJSONKeyFunction QuoteFields
ToJSONKeyFunction QuoteFields
-> ToJSONKeyFunction [QuoteFields] -> ToJSONKey QuoteFields
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [QuoteFields]
$ctoJSONKeyList :: ToJSONKeyFunction [QuoteFields]
toJSONKey :: ToJSONKeyFunction QuoteFields
$ctoJSONKey :: ToJSONKeyFunction QuoteFields
Core.ToJSONKey,
      [Node] -> Either String QuoteFields
([Node] -> Either String QuoteFields) -> FromXML QuoteFields
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String QuoteFields
$cparseXML :: [Node] -> Either String QuoteFields
Core.FromXML,
      QuoteFields -> XML
(QuoteFields -> XML) -> ToXML QuoteFields
forall a. (a -> XML) -> ToXML a
toXML :: QuoteFields -> XML
$ctoXML :: QuoteFields -> XML
Core.ToXML
    )

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

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

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