{-# 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.Omics.Types.RunLogLevel
-- 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.Omics.Types.RunLogLevel
  ( RunLogLevel
      ( ..,
        RunLogLevel_ALL,
        RunLogLevel_ERROR,
        RunLogLevel_FATAL,
        RunLogLevel_OFF
      ),
  )
where

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

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

pattern RunLogLevel_ALL :: RunLogLevel
pattern $bRunLogLevel_ALL :: RunLogLevel
$mRunLogLevel_ALL :: forall {r}. RunLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
RunLogLevel_ALL = RunLogLevel' "ALL"

pattern RunLogLevel_ERROR :: RunLogLevel
pattern $bRunLogLevel_ERROR :: RunLogLevel
$mRunLogLevel_ERROR :: forall {r}. RunLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
RunLogLevel_ERROR = RunLogLevel' "ERROR"

pattern RunLogLevel_FATAL :: RunLogLevel
pattern $bRunLogLevel_FATAL :: RunLogLevel
$mRunLogLevel_FATAL :: forall {r}. RunLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
RunLogLevel_FATAL = RunLogLevel' "FATAL"

pattern RunLogLevel_OFF :: RunLogLevel
pattern $bRunLogLevel_OFF :: RunLogLevel
$mRunLogLevel_OFF :: forall {r}. RunLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
RunLogLevel_OFF = RunLogLevel' "OFF"

{-# COMPLETE
  RunLogLevel_ALL,
  RunLogLevel_ERROR,
  RunLogLevel_FATAL,
  RunLogLevel_OFF,
  RunLogLevel'
  #-}