{-# 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.ApplicationVersionStatus
-- 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.ApplicationVersionStatus
  ( ApplicationVersionStatus
      ( ..,
        ApplicationVersionStatus_Building,
        ApplicationVersionStatus_Failed,
        ApplicationVersionStatus_Processed,
        ApplicationVersionStatus_Processing,
        ApplicationVersionStatus_Unprocessed
      ),
  )
where

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

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

pattern ApplicationVersionStatus_Building :: ApplicationVersionStatus
pattern $bApplicationVersionStatus_Building :: ApplicationVersionStatus
$mApplicationVersionStatus_Building :: forall r.
ApplicationVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationVersionStatus_Building = ApplicationVersionStatus' "Building"

pattern ApplicationVersionStatus_Failed :: ApplicationVersionStatus
pattern $bApplicationVersionStatus_Failed :: ApplicationVersionStatus
$mApplicationVersionStatus_Failed :: forall r.
ApplicationVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationVersionStatus_Failed = ApplicationVersionStatus' "Failed"

pattern ApplicationVersionStatus_Processed :: ApplicationVersionStatus
pattern $bApplicationVersionStatus_Processed :: ApplicationVersionStatus
$mApplicationVersionStatus_Processed :: forall r.
ApplicationVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationVersionStatus_Processed = ApplicationVersionStatus' "Processed"

pattern ApplicationVersionStatus_Processing :: ApplicationVersionStatus
pattern $bApplicationVersionStatus_Processing :: ApplicationVersionStatus
$mApplicationVersionStatus_Processing :: forall r.
ApplicationVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationVersionStatus_Processing = ApplicationVersionStatus' "Processing"

pattern ApplicationVersionStatus_Unprocessed :: ApplicationVersionStatus
pattern $bApplicationVersionStatus_Unprocessed :: ApplicationVersionStatus
$mApplicationVersionStatus_Unprocessed :: forall r.
ApplicationVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationVersionStatus_Unprocessed = ApplicationVersionStatus' "Unprocessed"

{-# COMPLETE
  ApplicationVersionStatus_Building,
  ApplicationVersionStatus_Failed,
  ApplicationVersionStatus_Processed,
  ApplicationVersionStatus_Processing,
  ApplicationVersionStatus_Unprocessed,
  ApplicationVersionStatus'
  #-}