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

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

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

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

{-# COMPLETE
  ComponentStatus_DEPRECATED,
  ComponentStatus'
  #-}