{-# 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.Scheduler.Types.ScheduleGroupState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Scheduler.Types.ScheduleGroupState
  ( ScheduleGroupState
      ( ..,
        ScheduleGroupState_ACTIVE,
        ScheduleGroupState_DELETING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern ScheduleGroupState_ACTIVE :: ScheduleGroupState
pattern $bScheduleGroupState_ACTIVE :: ScheduleGroupState
$mScheduleGroupState_ACTIVE :: forall {r}. ScheduleGroupState -> ((# #) -> r) -> ((# #) -> r) -> r
ScheduleGroupState_ACTIVE = ScheduleGroupState' "ACTIVE"

pattern ScheduleGroupState_DELETING :: ScheduleGroupState
pattern $bScheduleGroupState_DELETING :: ScheduleGroupState
$mScheduleGroupState_DELETING :: forall {r}. ScheduleGroupState -> ((# #) -> r) -> ((# #) -> r) -> r
ScheduleGroupState_DELETING = ScheduleGroupState' "DELETING"

{-# COMPLETE
  ScheduleGroupState_ACTIVE,
  ScheduleGroupState_DELETING,
  ScheduleGroupState'
  #-}