{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeStarNotifications.Types.TargetStatus
( TargetStatus
( ..,
TargetStatus_ACTIVE,
TargetStatus_DEACTIVATED,
TargetStatus_INACTIVE,
TargetStatus_PENDING,
TargetStatus_UNREACHABLE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TargetStatus = TargetStatus'
{ TargetStatus -> Text
fromTargetStatus ::
Core.Text
}
deriving stock
( Int -> TargetStatus -> ShowS
[TargetStatus] -> ShowS
TargetStatus -> String
(Int -> TargetStatus -> ShowS)
-> (TargetStatus -> String)
-> ([TargetStatus] -> ShowS)
-> Show TargetStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetStatus] -> ShowS
$cshowList :: [TargetStatus] -> ShowS
show :: TargetStatus -> String
$cshow :: TargetStatus -> String
showsPrec :: Int -> TargetStatus -> ShowS
$cshowsPrec :: Int -> TargetStatus -> ShowS
Prelude.Show,
ReadPrec [TargetStatus]
ReadPrec TargetStatus
Int -> ReadS TargetStatus
ReadS [TargetStatus]
(Int -> ReadS TargetStatus)
-> ReadS [TargetStatus]
-> ReadPrec TargetStatus
-> ReadPrec [TargetStatus]
-> Read TargetStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetStatus]
$creadListPrec :: ReadPrec [TargetStatus]
readPrec :: ReadPrec TargetStatus
$creadPrec :: ReadPrec TargetStatus
readList :: ReadS [TargetStatus]
$creadList :: ReadS [TargetStatus]
readsPrec :: Int -> ReadS TargetStatus
$creadsPrec :: Int -> ReadS TargetStatus
Prelude.Read,
TargetStatus -> TargetStatus -> Bool
(TargetStatus -> TargetStatus -> Bool)
-> (TargetStatus -> TargetStatus -> Bool) -> Eq TargetStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetStatus -> TargetStatus -> Bool
$c/= :: TargetStatus -> TargetStatus -> Bool
== :: TargetStatus -> TargetStatus -> Bool
$c== :: TargetStatus -> TargetStatus -> Bool
Prelude.Eq,
Eq TargetStatus
Eq TargetStatus
-> (TargetStatus -> TargetStatus -> Ordering)
-> (TargetStatus -> TargetStatus -> Bool)
-> (TargetStatus -> TargetStatus -> Bool)
-> (TargetStatus -> TargetStatus -> Bool)
-> (TargetStatus -> TargetStatus -> Bool)
-> (TargetStatus -> TargetStatus -> TargetStatus)
-> (TargetStatus -> TargetStatus -> TargetStatus)
-> Ord TargetStatus
TargetStatus -> TargetStatus -> Bool
TargetStatus -> TargetStatus -> Ordering
TargetStatus -> TargetStatus -> TargetStatus
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 :: TargetStatus -> TargetStatus -> TargetStatus
$cmin :: TargetStatus -> TargetStatus -> TargetStatus
max :: TargetStatus -> TargetStatus -> TargetStatus
$cmax :: TargetStatus -> TargetStatus -> TargetStatus
>= :: TargetStatus -> TargetStatus -> Bool
$c>= :: TargetStatus -> TargetStatus -> Bool
> :: TargetStatus -> TargetStatus -> Bool
$c> :: TargetStatus -> TargetStatus -> Bool
<= :: TargetStatus -> TargetStatus -> Bool
$c<= :: TargetStatus -> TargetStatus -> Bool
< :: TargetStatus -> TargetStatus -> Bool
$c< :: TargetStatus -> TargetStatus -> Bool
compare :: TargetStatus -> TargetStatus -> Ordering
$ccompare :: TargetStatus -> TargetStatus -> Ordering
$cp1Ord :: Eq TargetStatus
Prelude.Ord,
(forall x. TargetStatus -> Rep TargetStatus x)
-> (forall x. Rep TargetStatus x -> TargetStatus)
-> Generic TargetStatus
forall x. Rep TargetStatus x -> TargetStatus
forall x. TargetStatus -> Rep TargetStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TargetStatus x -> TargetStatus
$cfrom :: forall x. TargetStatus -> Rep TargetStatus x
Prelude.Generic
)
deriving newtype
( Int -> TargetStatus -> Int
TargetStatus -> Int
(Int -> TargetStatus -> Int)
-> (TargetStatus -> Int) -> Hashable TargetStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetStatus -> Int
$chash :: TargetStatus -> Int
hashWithSalt :: Int -> TargetStatus -> Int
$chashWithSalt :: Int -> TargetStatus -> Int
Prelude.Hashable,
TargetStatus -> ()
(TargetStatus -> ()) -> NFData TargetStatus
forall a. (a -> ()) -> NFData a
rnf :: TargetStatus -> ()
$crnf :: TargetStatus -> ()
Prelude.NFData,
Text -> Either String TargetStatus
(Text -> Either String TargetStatus) -> FromText TargetStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetStatus
$cfromText :: Text -> Either String TargetStatus
Core.FromText,
TargetStatus -> Text
(TargetStatus -> Text) -> ToText TargetStatus
forall a. (a -> Text) -> ToText a
toText :: TargetStatus -> Text
$ctoText :: TargetStatus -> Text
Core.ToText,
TargetStatus -> ByteString
(TargetStatus -> ByteString) -> ToByteString TargetStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetStatus -> ByteString
$ctoBS :: TargetStatus -> ByteString
Core.ToByteString,
TargetStatus -> ByteStringBuilder
(TargetStatus -> ByteStringBuilder) -> ToLog TargetStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetStatus -> ByteStringBuilder
$cbuild :: TargetStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> TargetStatus -> [Header]
(HeaderName -> TargetStatus -> [Header]) -> ToHeader TargetStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetStatus -> [Header]
$ctoHeader :: HeaderName -> TargetStatus -> [Header]
Core.ToHeader,
TargetStatus -> QueryString
(TargetStatus -> QueryString) -> ToQuery TargetStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetStatus -> QueryString
$ctoQuery :: TargetStatus -> QueryString
Core.ToQuery,
Value -> Parser [TargetStatus]
Value -> Parser TargetStatus
(Value -> Parser TargetStatus)
-> (Value -> Parser [TargetStatus]) -> FromJSON TargetStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetStatus]
$cparseJSONList :: Value -> Parser [TargetStatus]
parseJSON :: Value -> Parser TargetStatus
$cparseJSON :: Value -> Parser TargetStatus
Core.FromJSON,
FromJSONKeyFunction [TargetStatus]
FromJSONKeyFunction TargetStatus
FromJSONKeyFunction TargetStatus
-> FromJSONKeyFunction [TargetStatus] -> FromJSONKey TargetStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetStatus]
fromJSONKey :: FromJSONKeyFunction TargetStatus
$cfromJSONKey :: FromJSONKeyFunction TargetStatus
Core.FromJSONKey,
[TargetStatus] -> Encoding
[TargetStatus] -> Value
TargetStatus -> Encoding
TargetStatus -> Value
(TargetStatus -> Value)
-> (TargetStatus -> Encoding)
-> ([TargetStatus] -> Value)
-> ([TargetStatus] -> Encoding)
-> ToJSON TargetStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetStatus] -> Encoding
$ctoEncodingList :: [TargetStatus] -> Encoding
toJSONList :: [TargetStatus] -> Value
$ctoJSONList :: [TargetStatus] -> Value
toEncoding :: TargetStatus -> Encoding
$ctoEncoding :: TargetStatus -> Encoding
toJSON :: TargetStatus -> Value
$ctoJSON :: TargetStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [TargetStatus]
ToJSONKeyFunction TargetStatus
ToJSONKeyFunction TargetStatus
-> ToJSONKeyFunction [TargetStatus] -> ToJSONKey TargetStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetStatus]
toJSONKey :: ToJSONKeyFunction TargetStatus
$ctoJSONKey :: ToJSONKeyFunction TargetStatus
Core.ToJSONKey,
[Node] -> Either String TargetStatus
([Node] -> Either String TargetStatus) -> FromXML TargetStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetStatus
$cparseXML :: [Node] -> Either String TargetStatus
Core.FromXML,
TargetStatus -> XML
(TargetStatus -> XML) -> ToXML TargetStatus
forall a. (a -> XML) -> ToXML a
toXML :: TargetStatus -> XML
$ctoXML :: TargetStatus -> XML
Core.ToXML
)
pattern TargetStatus_ACTIVE :: TargetStatus
pattern $bTargetStatus_ACTIVE :: TargetStatus
$mTargetStatus_ACTIVE :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_ACTIVE = TargetStatus' "ACTIVE"
pattern TargetStatus_DEACTIVATED :: TargetStatus
pattern $bTargetStatus_DEACTIVATED :: TargetStatus
$mTargetStatus_DEACTIVATED :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_DEACTIVATED = TargetStatus' "DEACTIVATED"
pattern TargetStatus_INACTIVE :: TargetStatus
pattern $bTargetStatus_INACTIVE :: TargetStatus
$mTargetStatus_INACTIVE :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_INACTIVE = TargetStatus' "INACTIVE"
pattern TargetStatus_PENDING :: TargetStatus
pattern $bTargetStatus_PENDING :: TargetStatus
$mTargetStatus_PENDING :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_PENDING = TargetStatus' "PENDING"
pattern TargetStatus_UNREACHABLE :: TargetStatus
pattern $bTargetStatus_UNREACHABLE :: TargetStatus
$mTargetStatus_UNREACHABLE :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_UNREACHABLE = TargetStatus' "UNREACHABLE"
{-# COMPLETE
TargetStatus_ACTIVE,
TargetStatus_DEACTIVATED,
TargetStatus_INACTIVE,
TargetStatus_PENDING,
TargetStatus_UNREACHABLE,
TargetStatus'
#-}