{-# 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.LexModels.Types.MigrationAlertType
-- 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.LexModels.Types.MigrationAlertType
  ( MigrationAlertType
      ( ..,
        MigrationAlertType_ERROR,
        MigrationAlertType_WARN
      ),
  )
where

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

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

pattern MigrationAlertType_ERROR :: MigrationAlertType
pattern $bMigrationAlertType_ERROR :: MigrationAlertType
$mMigrationAlertType_ERROR :: forall r. MigrationAlertType -> (Void# -> r) -> (Void# -> r) -> r
MigrationAlertType_ERROR = MigrationAlertType' "ERROR"

pattern MigrationAlertType_WARN :: MigrationAlertType
pattern $bMigrationAlertType_WARN :: MigrationAlertType
$mMigrationAlertType_WARN :: forall r. MigrationAlertType -> (Void# -> r) -> (Void# -> r) -> r
MigrationAlertType_WARN = MigrationAlertType' "WARN"

{-# COMPLETE
  MigrationAlertType_ERROR,
  MigrationAlertType_WARN,
  MigrationAlertType'
  #-}