{-# 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.ImageBuilder.Types.ComponentStatus
-- 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.ImageBuilder.Types.ComponentStatus
  ( ComponentStatus
      ( ..,
        ComponentStatus_DEPRECATED
      ),
  )
where

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

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

pattern ComponentStatus_DEPRECATED :: ComponentStatus
pattern $bComponentStatus_DEPRECATED :: ComponentStatus
$mComponentStatus_DEPRECATED :: forall {r}. ComponentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ComponentStatus_DEPRECATED = ComponentStatus' "DEPRECATED"

{-# COMPLETE
  ComponentStatus_DEPRECATED,
  ComponentStatus'
  #-}