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