{-# 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.EC2.Types.SummaryStatus
-- 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.EC2.Types.SummaryStatus
  ( SummaryStatus
      ( ..,
        SummaryStatus_Impaired,
        SummaryStatus_Initializing,
        SummaryStatus_Insufficient_data,
        SummaryStatus_Not_applicable,
        SummaryStatus_Ok
      ),
  )
where

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

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

pattern SummaryStatus_Impaired :: SummaryStatus
pattern $bSummaryStatus_Impaired :: SummaryStatus
$mSummaryStatus_Impaired :: forall {r}. SummaryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SummaryStatus_Impaired = SummaryStatus' "impaired"

pattern SummaryStatus_Initializing :: SummaryStatus
pattern $bSummaryStatus_Initializing :: SummaryStatus
$mSummaryStatus_Initializing :: forall {r}. SummaryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SummaryStatus_Initializing = SummaryStatus' "initializing"

pattern SummaryStatus_Insufficient_data :: SummaryStatus
pattern $bSummaryStatus_Insufficient_data :: SummaryStatus
$mSummaryStatus_Insufficient_data :: forall {r}. SummaryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SummaryStatus_Insufficient_data = SummaryStatus' "insufficient-data"

pattern SummaryStatus_Not_applicable :: SummaryStatus
pattern $bSummaryStatus_Not_applicable :: SummaryStatus
$mSummaryStatus_Not_applicable :: forall {r}. SummaryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SummaryStatus_Not_applicable = SummaryStatus' "not-applicable"

pattern SummaryStatus_Ok :: SummaryStatus
pattern $bSummaryStatus_Ok :: SummaryStatus
$mSummaryStatus_Ok :: forall {r}. SummaryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SummaryStatus_Ok = SummaryStatus' "ok"

{-# COMPLETE
  SummaryStatus_Impaired,
  SummaryStatus_Initializing,
  SummaryStatus_Insufficient_data,
  SummaryStatus_Not_applicable,
  SummaryStatus_Ok,
  SummaryStatus'
  #-}