{-# 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.Redshift.Types.UsageLimitFeatureType
-- 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.Redshift.Types.UsageLimitFeatureType
  ( UsageLimitFeatureType
      ( ..,
        UsageLimitFeatureType_Concurrency_scaling,
        UsageLimitFeatureType_Spectrum
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal

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

pattern UsageLimitFeatureType_Concurrency_scaling :: UsageLimitFeatureType
pattern $bUsageLimitFeatureType_Concurrency_scaling :: UsageLimitFeatureType
$mUsageLimitFeatureType_Concurrency_scaling :: forall r.
UsageLimitFeatureType -> (Void# -> r) -> (Void# -> r) -> r
UsageLimitFeatureType_Concurrency_scaling = UsageLimitFeatureType' "concurrency-scaling"

pattern UsageLimitFeatureType_Spectrum :: UsageLimitFeatureType
pattern $bUsageLimitFeatureType_Spectrum :: UsageLimitFeatureType
$mUsageLimitFeatureType_Spectrum :: forall r.
UsageLimitFeatureType -> (Void# -> r) -> (Void# -> r) -> r
UsageLimitFeatureType_Spectrum = UsageLimitFeatureType' "spectrum"

{-# COMPLETE
  UsageLimitFeatureType_Concurrency_scaling,
  UsageLimitFeatureType_Spectrum,
  UsageLimitFeatureType'
  #-}