{-# 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.ExpressionType
-- 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.ExpressionType
  ( ExpressionType
      ( ..,
        ExpressionType_SQL
      ),
  )
where

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

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

pattern ExpressionType_SQL :: ExpressionType
pattern $bExpressionType_SQL :: ExpressionType
$mExpressionType_SQL :: forall r. ExpressionType -> (Void# -> r) -> (Void# -> r) -> r
ExpressionType_SQL = ExpressionType' "SQL"

{-# COMPLETE
  ExpressionType_SQL,
  ExpressionType'
  #-}