{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Redshift.Types.SnapshotAttributeToSortBy
( SnapshotAttributeToSortBy
( ..,
SnapshotAttributeToSortBy_CREATE_TIME,
SnapshotAttributeToSortBy_SOURCE_TYPE,
SnapshotAttributeToSortBy_TOTAL_SIZE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal
newtype SnapshotAttributeToSortBy = SnapshotAttributeToSortBy'
{ SnapshotAttributeToSortBy -> Text
fromSnapshotAttributeToSortBy ::
Core.Text
}
deriving stock
( Int -> SnapshotAttributeToSortBy -> ShowS
[SnapshotAttributeToSortBy] -> ShowS
SnapshotAttributeToSortBy -> String
(Int -> SnapshotAttributeToSortBy -> ShowS)
-> (SnapshotAttributeToSortBy -> String)
-> ([SnapshotAttributeToSortBy] -> ShowS)
-> Show SnapshotAttributeToSortBy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SnapshotAttributeToSortBy] -> ShowS
$cshowList :: [SnapshotAttributeToSortBy] -> ShowS
show :: SnapshotAttributeToSortBy -> String
$cshow :: SnapshotAttributeToSortBy -> String
showsPrec :: Int -> SnapshotAttributeToSortBy -> ShowS
$cshowsPrec :: Int -> SnapshotAttributeToSortBy -> ShowS
Prelude.Show,
ReadPrec [SnapshotAttributeToSortBy]
ReadPrec SnapshotAttributeToSortBy
Int -> ReadS SnapshotAttributeToSortBy
ReadS [SnapshotAttributeToSortBy]
(Int -> ReadS SnapshotAttributeToSortBy)
-> ReadS [SnapshotAttributeToSortBy]
-> ReadPrec SnapshotAttributeToSortBy
-> ReadPrec [SnapshotAttributeToSortBy]
-> Read SnapshotAttributeToSortBy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SnapshotAttributeToSortBy]
$creadListPrec :: ReadPrec [SnapshotAttributeToSortBy]
readPrec :: ReadPrec SnapshotAttributeToSortBy
$creadPrec :: ReadPrec SnapshotAttributeToSortBy
readList :: ReadS [SnapshotAttributeToSortBy]
$creadList :: ReadS [SnapshotAttributeToSortBy]
readsPrec :: Int -> ReadS SnapshotAttributeToSortBy
$creadsPrec :: Int -> ReadS SnapshotAttributeToSortBy
Prelude.Read,
SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
(SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool)
-> (SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool)
-> Eq SnapshotAttributeToSortBy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
$c/= :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
== :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
$c== :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
Prelude.Eq,
Eq SnapshotAttributeToSortBy
Eq SnapshotAttributeToSortBy
-> (SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> Ordering)
-> (SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool)
-> (SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool)
-> (SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool)
-> (SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool)
-> (SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy)
-> (SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy)
-> Ord SnapshotAttributeToSortBy
SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Ordering
SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy
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 :: SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy
$cmin :: SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy
max :: SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy
$cmax :: SnapshotAttributeToSortBy
-> SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy
>= :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
$c>= :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
> :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
$c> :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
<= :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
$c<= :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
< :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
$c< :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Bool
compare :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Ordering
$ccompare :: SnapshotAttributeToSortBy -> SnapshotAttributeToSortBy -> Ordering
$cp1Ord :: Eq SnapshotAttributeToSortBy
Prelude.Ord,
(forall x.
SnapshotAttributeToSortBy -> Rep SnapshotAttributeToSortBy x)
-> (forall x.
Rep SnapshotAttributeToSortBy x -> SnapshotAttributeToSortBy)
-> Generic SnapshotAttributeToSortBy
forall x.
Rep SnapshotAttributeToSortBy x -> SnapshotAttributeToSortBy
forall x.
SnapshotAttributeToSortBy -> Rep SnapshotAttributeToSortBy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SnapshotAttributeToSortBy x -> SnapshotAttributeToSortBy
$cfrom :: forall x.
SnapshotAttributeToSortBy -> Rep SnapshotAttributeToSortBy x
Prelude.Generic
)
deriving newtype
( Int -> SnapshotAttributeToSortBy -> Int
SnapshotAttributeToSortBy -> Int
(Int -> SnapshotAttributeToSortBy -> Int)
-> (SnapshotAttributeToSortBy -> Int)
-> Hashable SnapshotAttributeToSortBy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SnapshotAttributeToSortBy -> Int
$chash :: SnapshotAttributeToSortBy -> Int
hashWithSalt :: Int -> SnapshotAttributeToSortBy -> Int
$chashWithSalt :: Int -> SnapshotAttributeToSortBy -> Int
Prelude.Hashable,
SnapshotAttributeToSortBy -> ()
(SnapshotAttributeToSortBy -> ())
-> NFData SnapshotAttributeToSortBy
forall a. (a -> ()) -> NFData a
rnf :: SnapshotAttributeToSortBy -> ()
$crnf :: SnapshotAttributeToSortBy -> ()
Prelude.NFData,
Text -> Either String SnapshotAttributeToSortBy
(Text -> Either String SnapshotAttributeToSortBy)
-> FromText SnapshotAttributeToSortBy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SnapshotAttributeToSortBy
$cfromText :: Text -> Either String SnapshotAttributeToSortBy
Core.FromText,
SnapshotAttributeToSortBy -> Text
(SnapshotAttributeToSortBy -> Text)
-> ToText SnapshotAttributeToSortBy
forall a. (a -> Text) -> ToText a
toText :: SnapshotAttributeToSortBy -> Text
$ctoText :: SnapshotAttributeToSortBy -> Text
Core.ToText,
SnapshotAttributeToSortBy -> ByteString
(SnapshotAttributeToSortBy -> ByteString)
-> ToByteString SnapshotAttributeToSortBy
forall a. (a -> ByteString) -> ToByteString a
toBS :: SnapshotAttributeToSortBy -> ByteString
$ctoBS :: SnapshotAttributeToSortBy -> ByteString
Core.ToByteString,
SnapshotAttributeToSortBy -> ByteStringBuilder
(SnapshotAttributeToSortBy -> ByteStringBuilder)
-> ToLog SnapshotAttributeToSortBy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SnapshotAttributeToSortBy -> ByteStringBuilder
$cbuild :: SnapshotAttributeToSortBy -> ByteStringBuilder
Core.ToLog,
HeaderName -> SnapshotAttributeToSortBy -> [Header]
(HeaderName -> SnapshotAttributeToSortBy -> [Header])
-> ToHeader SnapshotAttributeToSortBy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SnapshotAttributeToSortBy -> [Header]
$ctoHeader :: HeaderName -> SnapshotAttributeToSortBy -> [Header]
Core.ToHeader,
SnapshotAttributeToSortBy -> QueryString
(SnapshotAttributeToSortBy -> QueryString)
-> ToQuery SnapshotAttributeToSortBy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SnapshotAttributeToSortBy -> QueryString
$ctoQuery :: SnapshotAttributeToSortBy -> QueryString
Core.ToQuery,
Value -> Parser [SnapshotAttributeToSortBy]
Value -> Parser SnapshotAttributeToSortBy
(Value -> Parser SnapshotAttributeToSortBy)
-> (Value -> Parser [SnapshotAttributeToSortBy])
-> FromJSON SnapshotAttributeToSortBy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SnapshotAttributeToSortBy]
$cparseJSONList :: Value -> Parser [SnapshotAttributeToSortBy]
parseJSON :: Value -> Parser SnapshotAttributeToSortBy
$cparseJSON :: Value -> Parser SnapshotAttributeToSortBy
Core.FromJSON,
FromJSONKeyFunction [SnapshotAttributeToSortBy]
FromJSONKeyFunction SnapshotAttributeToSortBy
FromJSONKeyFunction SnapshotAttributeToSortBy
-> FromJSONKeyFunction [SnapshotAttributeToSortBy]
-> FromJSONKey SnapshotAttributeToSortBy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SnapshotAttributeToSortBy]
$cfromJSONKeyList :: FromJSONKeyFunction [SnapshotAttributeToSortBy]
fromJSONKey :: FromJSONKeyFunction SnapshotAttributeToSortBy
$cfromJSONKey :: FromJSONKeyFunction SnapshotAttributeToSortBy
Core.FromJSONKey,
[SnapshotAttributeToSortBy] -> Encoding
[SnapshotAttributeToSortBy] -> Value
SnapshotAttributeToSortBy -> Encoding
SnapshotAttributeToSortBy -> Value
(SnapshotAttributeToSortBy -> Value)
-> (SnapshotAttributeToSortBy -> Encoding)
-> ([SnapshotAttributeToSortBy] -> Value)
-> ([SnapshotAttributeToSortBy] -> Encoding)
-> ToJSON SnapshotAttributeToSortBy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SnapshotAttributeToSortBy] -> Encoding
$ctoEncodingList :: [SnapshotAttributeToSortBy] -> Encoding
toJSONList :: [SnapshotAttributeToSortBy] -> Value
$ctoJSONList :: [SnapshotAttributeToSortBy] -> Value
toEncoding :: SnapshotAttributeToSortBy -> Encoding
$ctoEncoding :: SnapshotAttributeToSortBy -> Encoding
toJSON :: SnapshotAttributeToSortBy -> Value
$ctoJSON :: SnapshotAttributeToSortBy -> Value
Core.ToJSON,
ToJSONKeyFunction [SnapshotAttributeToSortBy]
ToJSONKeyFunction SnapshotAttributeToSortBy
ToJSONKeyFunction SnapshotAttributeToSortBy
-> ToJSONKeyFunction [SnapshotAttributeToSortBy]
-> ToJSONKey SnapshotAttributeToSortBy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SnapshotAttributeToSortBy]
$ctoJSONKeyList :: ToJSONKeyFunction [SnapshotAttributeToSortBy]
toJSONKey :: ToJSONKeyFunction SnapshotAttributeToSortBy
$ctoJSONKey :: ToJSONKeyFunction SnapshotAttributeToSortBy
Core.ToJSONKey,
[Node] -> Either String SnapshotAttributeToSortBy
([Node] -> Either String SnapshotAttributeToSortBy)
-> FromXML SnapshotAttributeToSortBy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SnapshotAttributeToSortBy
$cparseXML :: [Node] -> Either String SnapshotAttributeToSortBy
Core.FromXML,
SnapshotAttributeToSortBy -> XML
(SnapshotAttributeToSortBy -> XML)
-> ToXML SnapshotAttributeToSortBy
forall a. (a -> XML) -> ToXML a
toXML :: SnapshotAttributeToSortBy -> XML
$ctoXML :: SnapshotAttributeToSortBy -> XML
Core.ToXML
)
pattern SnapshotAttributeToSortBy_CREATE_TIME :: SnapshotAttributeToSortBy
pattern $bSnapshotAttributeToSortBy_CREATE_TIME :: SnapshotAttributeToSortBy
$mSnapshotAttributeToSortBy_CREATE_TIME :: forall r.
SnapshotAttributeToSortBy -> (Void# -> r) -> (Void# -> r) -> r
SnapshotAttributeToSortBy_CREATE_TIME = SnapshotAttributeToSortBy' "CREATE_TIME"
pattern SnapshotAttributeToSortBy_SOURCE_TYPE :: SnapshotAttributeToSortBy
pattern $bSnapshotAttributeToSortBy_SOURCE_TYPE :: SnapshotAttributeToSortBy
$mSnapshotAttributeToSortBy_SOURCE_TYPE :: forall r.
SnapshotAttributeToSortBy -> (Void# -> r) -> (Void# -> r) -> r
SnapshotAttributeToSortBy_SOURCE_TYPE = SnapshotAttributeToSortBy' "SOURCE_TYPE"
pattern SnapshotAttributeToSortBy_TOTAL_SIZE :: SnapshotAttributeToSortBy
pattern $bSnapshotAttributeToSortBy_TOTAL_SIZE :: SnapshotAttributeToSortBy
$mSnapshotAttributeToSortBy_TOTAL_SIZE :: forall r.
SnapshotAttributeToSortBy -> (Void# -> r) -> (Void# -> r) -> r
SnapshotAttributeToSortBy_TOTAL_SIZE = SnapshotAttributeToSortBy' "TOTAL_SIZE"
{-# COMPLETE
SnapshotAttributeToSortBy_CREATE_TIME,
SnapshotAttributeToSortBy_SOURCE_TYPE,
SnapshotAttributeToSortBy_TOTAL_SIZE,
SnapshotAttributeToSortBy'
#-}