{-# 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.VolumeAttributeName
-- 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.VolumeAttributeName
  ( VolumeAttributeName
      ( ..,
        VolumeAttributeName_AutoEnableIO,
        VolumeAttributeName_ProductCodes
      ),
  )
where

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

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

pattern VolumeAttributeName_AutoEnableIO :: VolumeAttributeName
pattern $bVolumeAttributeName_AutoEnableIO :: VolumeAttributeName
$mVolumeAttributeName_AutoEnableIO :: forall {r}.
VolumeAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeAttributeName_AutoEnableIO = VolumeAttributeName' "autoEnableIO"

pattern VolumeAttributeName_ProductCodes :: VolumeAttributeName
pattern $bVolumeAttributeName_ProductCodes :: VolumeAttributeName
$mVolumeAttributeName_ProductCodes :: forall {r}.
VolumeAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeAttributeName_ProductCodes = VolumeAttributeName' "productCodes"

{-# COMPLETE
  VolumeAttributeName_AutoEnableIO,
  VolumeAttributeName_ProductCodes,
  VolumeAttributeName'
  #-}