{-# 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.DynamoDB.Types.Select
-- 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.DynamoDB.Types.Select
  ( Select
      ( ..,
        Select_ALL_ATTRIBUTES,
        Select_ALL_PROJECTED_ATTRIBUTES,
        Select_COUNT,
        Select_SPECIFIC_ATTRIBUTES
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

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

pattern Select_ALL_ATTRIBUTES :: Select
pattern $bSelect_ALL_ATTRIBUTES :: Select
$mSelect_ALL_ATTRIBUTES :: forall {r}. Select -> ((# #) -> r) -> ((# #) -> r) -> r
Select_ALL_ATTRIBUTES = Select' "ALL_ATTRIBUTES"

pattern Select_ALL_PROJECTED_ATTRIBUTES :: Select
pattern $bSelect_ALL_PROJECTED_ATTRIBUTES :: Select
$mSelect_ALL_PROJECTED_ATTRIBUTES :: forall {r}. Select -> ((# #) -> r) -> ((# #) -> r) -> r
Select_ALL_PROJECTED_ATTRIBUTES = Select' "ALL_PROJECTED_ATTRIBUTES"

pattern Select_COUNT :: Select
pattern $bSelect_COUNT :: Select
$mSelect_COUNT :: forall {r}. Select -> ((# #) -> r) -> ((# #) -> r) -> r
Select_COUNT = Select' "COUNT"

pattern Select_SPECIFIC_ATTRIBUTES :: Select
pattern $bSelect_SPECIFIC_ATTRIBUTES :: Select
$mSelect_SPECIFIC_ATTRIBUTES :: forall {r}. Select -> ((# #) -> r) -> ((# #) -> r) -> r
Select_SPECIFIC_ATTRIBUTES = Select' "SPECIFIC_ATTRIBUTES"

{-# COMPLETE
  Select_ALL_ATTRIBUTES,
  Select_ALL_PROJECTED_ATTRIBUTES,
  Select_COUNT,
  Select_SPECIFIC_ATTRIBUTES,
  Select'
  #-}