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

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

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

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

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

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