{-# 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.ElasticBeanstalk.Types.ValidationSeverity
-- 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.ElasticBeanstalk.Types.ValidationSeverity
  ( ValidationSeverity
      ( ..,
        ValidationSeverity_Error,
        ValidationSeverity_Warning
      ),
  )
where

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

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

pattern ValidationSeverity_Error :: ValidationSeverity
pattern $bValidationSeverity_Error :: ValidationSeverity
$mValidationSeverity_Error :: forall {r}. ValidationSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ValidationSeverity_Error = ValidationSeverity' "error"

pattern ValidationSeverity_Warning :: ValidationSeverity
pattern $bValidationSeverity_Warning :: ValidationSeverity
$mValidationSeverity_Warning :: forall {r}. ValidationSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ValidationSeverity_Warning = ValidationSeverity' "warning"

{-# COMPLETE
  ValidationSeverity_Error,
  ValidationSeverity_Warning,
  ValidationSeverity'
  #-}