{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype InsightState = InsightState'
  { InsightState -> Text
fromInsightState ::
      Core.Text
  }
  deriving stock
    ( Int -> InsightState -> ShowS
[InsightState] -> ShowS
InsightState -> String
(Int -> InsightState -> ShowS)
-> (InsightState -> String)
-> ([InsightState] -> ShowS)
-> Show InsightState
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]
(Int -> ReadS InsightState)
-> ReadS [InsightState]
-> ReadPrec InsightState
-> ReadPrec [InsightState]
-> Read 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
(InsightState -> InsightState -> Bool)
-> (InsightState -> InsightState -> Bool) -> Eq InsightState
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
Eq InsightState
-> (InsightState -> InsightState -> Ordering)
-> (InsightState -> InsightState -> Bool)
-> (InsightState -> InsightState -> Bool)
-> (InsightState -> InsightState -> Bool)
-> (InsightState -> InsightState -> Bool)
-> (InsightState -> InsightState -> InsightState)
-> (InsightState -> InsightState -> InsightState)
-> Ord 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
$cp1Ord :: Eq InsightState
Prelude.Ord,
      (forall x. InsightState -> Rep InsightState x)
-> (forall x. Rep InsightState x -> InsightState)
-> Generic InsightState
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
    ( Int -> InsightState -> Int
InsightState -> Int
(Int -> InsightState -> Int)
-> (InsightState -> Int) -> Hashable InsightState
forall 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 -> ()
(InsightState -> ()) -> NFData InsightState
forall a. (a -> ()) -> NFData a
rnf :: InsightState -> ()
$crnf :: InsightState -> ()
Prelude.NFData,
      Text -> Either String InsightState
(Text -> Either String InsightState) -> FromText InsightState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InsightState
$cfromText :: Text -> Either String InsightState
Core.FromText,
      InsightState -> Text
(InsightState -> Text) -> ToText InsightState
forall a. (a -> Text) -> ToText a
toText :: InsightState -> Text
$ctoText :: InsightState -> Text
Core.ToText,
      InsightState -> ByteString
(InsightState -> ByteString) -> ToByteString InsightState
forall a. (a -> ByteString) -> ToByteString a
toBS :: InsightState -> ByteString
$ctoBS :: InsightState -> ByteString
Core.ToByteString,
      InsightState -> ByteStringBuilder
(InsightState -> ByteStringBuilder) -> ToLog InsightState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InsightState -> ByteStringBuilder
$cbuild :: InsightState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InsightState -> [Header]
(HeaderName -> InsightState -> [Header]) -> ToHeader InsightState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InsightState -> [Header]
$ctoHeader :: HeaderName -> InsightState -> [Header]
Core.ToHeader,
      InsightState -> QueryString
(InsightState -> QueryString) -> ToQuery InsightState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InsightState -> QueryString
$ctoQuery :: InsightState -> QueryString
Core.ToQuery,
      Value -> Parser [InsightState]
Value -> Parser InsightState
(Value -> Parser InsightState)
-> (Value -> Parser [InsightState]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InsightState]
FromJSONKeyFunction InsightState
FromJSONKeyFunction InsightState
-> FromJSONKeyFunction [InsightState] -> FromJSONKey InsightState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InsightState]
$cfromJSONKeyList :: FromJSONKeyFunction [InsightState]
fromJSONKey :: FromJSONKeyFunction InsightState
$cfromJSONKey :: FromJSONKeyFunction InsightState
Core.FromJSONKey,
      [InsightState] -> Encoding
[InsightState] -> Value
InsightState -> Encoding
InsightState -> Value
(InsightState -> Value)
-> (InsightState -> Encoding)
-> ([InsightState] -> Value)
-> ([InsightState] -> Encoding)
-> ToJSON InsightState
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
Core.ToJSON,
      ToJSONKeyFunction [InsightState]
ToJSONKeyFunction InsightState
ToJSONKeyFunction InsightState
-> ToJSONKeyFunction [InsightState] -> ToJSONKey InsightState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InsightState]
$ctoJSONKeyList :: ToJSONKeyFunction [InsightState]
toJSONKey :: ToJSONKeyFunction InsightState
$ctoJSONKey :: ToJSONKeyFunction InsightState
Core.ToJSONKey,
      [Node] -> Either String InsightState
([Node] -> Either String InsightState) -> FromXML InsightState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InsightState
$cparseXML :: [Node] -> Either String InsightState
Core.FromXML,
      InsightState -> XML
(InsightState -> XML) -> ToXML InsightState
forall a. (a -> XML) -> ToXML a
toXML :: InsightState -> XML
$ctoXML :: InsightState -> XML
Core.ToXML
    )

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

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

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