{-# 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.ClockTargetStatus
-- 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.ClockTargetStatus
  ( ClockTargetStatus
      ( ..,
        ClockTargetStatus_STARTED,
        ClockTargetStatus_STOPPED,
        ClockTargetStatus_UNKNOWN
      ),
  )
where

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

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

pattern ClockTargetStatus_STARTED :: ClockTargetStatus
pattern $bClockTargetStatus_STARTED :: ClockTargetStatus
$mClockTargetStatus_STARTED :: forall {r}. ClockTargetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockTargetStatus_STARTED = ClockTargetStatus' "STARTED"

pattern ClockTargetStatus_STOPPED :: ClockTargetStatus
pattern $bClockTargetStatus_STOPPED :: ClockTargetStatus
$mClockTargetStatus_STOPPED :: forall {r}. ClockTargetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockTargetStatus_STOPPED = ClockTargetStatus' "STOPPED"

pattern ClockTargetStatus_UNKNOWN :: ClockTargetStatus
pattern $bClockTargetStatus_UNKNOWN :: ClockTargetStatus
$mClockTargetStatus_UNKNOWN :: forall {r}. ClockTargetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ClockTargetStatus_UNKNOWN = ClockTargetStatus' "UNKNOWN"

{-# COMPLETE
  ClockTargetStatus_STARTED,
  ClockTargetStatus_STOPPED,
  ClockTargetStatus_UNKNOWN,
  ClockTargetStatus'
  #-}