{-# 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.VolumeStatusName
-- 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.VolumeStatusName
  ( VolumeStatusName
      ( ..,
        VolumeStatusName_Io_enabled,
        VolumeStatusName_Io_performance
      ),
  )
where

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

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

pattern VolumeStatusName_Io_enabled :: VolumeStatusName
pattern $bVolumeStatusName_Io_enabled :: VolumeStatusName
$mVolumeStatusName_Io_enabled :: forall {r}. VolumeStatusName -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeStatusName_Io_enabled = VolumeStatusName' "io-enabled"

pattern VolumeStatusName_Io_performance :: VolumeStatusName
pattern $bVolumeStatusName_Io_performance :: VolumeStatusName
$mVolumeStatusName_Io_performance :: forall {r}. VolumeStatusName -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeStatusName_Io_performance = VolumeStatusName' "io-performance"

{-# COMPLETE
  VolumeStatusName_Io_enabled,
  VolumeStatusName_Io_performance,
  VolumeStatusName'
  #-}