{-# 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.XRay.Types.InsightState
-- 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.XRay.Types.InsightState
  ( InsightState
      ( ..,
        InsightState_ACTIVE,
        InsightState_CLOSED
      ),
  )
where

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

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

pattern InsightState_ACTIVE :: InsightState
pattern $bInsightState_ACTIVE :: InsightState
$mInsightState_ACTIVE :: forall {r}. InsightState -> ((# #) -> r) -> ((# #) -> r) -> r
InsightState_ACTIVE = InsightState' "ACTIVE"

pattern InsightState_CLOSED :: InsightState
pattern $bInsightState_CLOSED :: InsightState
$mInsightState_CLOSED :: forall {r}. InsightState -> ((# #) -> r) -> ((# #) -> r) -> r
InsightState_CLOSED = InsightState' "CLOSED"

{-# COMPLETE
  InsightState_ACTIVE,
  InsightState_CLOSED,
  InsightState'
  #-}