{-# 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.SimSpaceWeaver.Types.ClockStatus
-- 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.SimSpaceWeaver.Types.ClockStatus
  ( ClockStatus
      ( ..,
        ClockStatus_STARTED,
        ClockStatus_STARTING,
        ClockStatus_STOPPED,
        ClockStatus_STOPPING,
        ClockStatus_UNKNOWN
      ),
  )
where

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

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

pattern ClockStatus_STARTED :: ClockStatus
pattern $bClockStatus_STARTED :: ClockStatus
$mClockStatus_STARTED :: forall {r}. ClockStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockStatus_STARTED = ClockStatus' "STARTED"

pattern ClockStatus_STARTING :: ClockStatus
pattern $bClockStatus_STARTING :: ClockStatus
$mClockStatus_STARTING :: forall {r}. ClockStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockStatus_STARTING = ClockStatus' "STARTING"

pattern ClockStatus_STOPPED :: ClockStatus
pattern $bClockStatus_STOPPED :: ClockStatus
$mClockStatus_STOPPED :: forall {r}. ClockStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockStatus_STOPPED = ClockStatus' "STOPPED"

pattern ClockStatus_STOPPING :: ClockStatus
pattern $bClockStatus_STOPPING :: ClockStatus
$mClockStatus_STOPPING :: forall {r}. ClockStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockStatus_STOPPING = ClockStatus' "STOPPING"

pattern ClockStatus_UNKNOWN :: ClockStatus
pattern $bClockStatus_UNKNOWN :: ClockStatus
$mClockStatus_UNKNOWN :: forall {r}. ClockStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockStatus_UNKNOWN = ClockStatus' "UNKNOWN"

{-# COMPLETE
  ClockStatus_STARTED,
  ClockStatus_STARTING,
  ClockStatus_STOPPED,
  ClockStatus_STOPPING,
  ClockStatus_UNKNOWN,
  ClockStatus'
  #-}