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