{-# 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-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.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.Prelude as Prelude

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

pattern Select_ALL_ATTRIBUTES :: Select
pattern $bSelect_ALL_ATTRIBUTES :: Select
$mSelect_ALL_ATTRIBUTES :: forall r. Select -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
Select_ALL_PROJECTED_ATTRIBUTES = Select' "ALL_PROJECTED_ATTRIBUTES"

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

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

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