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

pattern VolumeStatusInfoStatus_Impaired :: VolumeStatusInfoStatus
pattern $bVolumeStatusInfoStatus_Impaired :: VolumeStatusInfoStatus
$mVolumeStatusInfoStatus_Impaired :: forall {r}.
VolumeStatusInfoStatus -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeStatusInfoStatus_Impaired = VolumeStatusInfoStatus' "impaired"

pattern VolumeStatusInfoStatus_Insufficient_data :: VolumeStatusInfoStatus
pattern $bVolumeStatusInfoStatus_Insufficient_data :: VolumeStatusInfoStatus
$mVolumeStatusInfoStatus_Insufficient_data :: forall {r}.
VolumeStatusInfoStatus -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeStatusInfoStatus_Insufficient_data = VolumeStatusInfoStatus' "insufficient-data"

pattern VolumeStatusInfoStatus_Ok :: VolumeStatusInfoStatus
pattern $bVolumeStatusInfoStatus_Ok :: VolumeStatusInfoStatus
$mVolumeStatusInfoStatus_Ok :: forall {r}.
VolumeStatusInfoStatus -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeStatusInfoStatus_Ok = VolumeStatusInfoStatus' "ok"

{-# COMPLETE
  VolumeStatusInfoStatus_Impaired,
  VolumeStatusInfoStatus_Insufficient_data,
  VolumeStatusInfoStatus_Ok,
  VolumeStatusInfoStatus'
  #-}