{-# 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.DevOpsGuru.Types.InsightType
-- 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.DevOpsGuru.Types.InsightType
  ( InsightType
      ( ..,
        InsightType_PROACTIVE,
        InsightType_REACTIVE
      ),
  )
where

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

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

pattern InsightType_PROACTIVE :: InsightType
pattern $bInsightType_PROACTIVE :: InsightType
$mInsightType_PROACTIVE :: forall r. InsightType -> (Void# -> r) -> (Void# -> r) -> r
InsightType_PROACTIVE = InsightType' "PROACTIVE"

pattern InsightType_REACTIVE :: InsightType
pattern $bInsightType_REACTIVE :: InsightType
$mInsightType_REACTIVE :: forall r. InsightType -> (Void# -> r) -> (Void# -> r) -> r
InsightType_REACTIVE = InsightType' "REACTIVE"

{-# COMPLETE
  InsightType_PROACTIVE,
  InsightType_REACTIVE,
  InsightType'
  #-}