{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.OpenSearch.Types.VolumeType
( VolumeType
( ..,
VolumeType_Gp2,
VolumeType_Io1,
VolumeType_Standard
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype VolumeType = VolumeType'
{ VolumeType -> Text
fromVolumeType ::
Core.Text
}
deriving stock
( Int -> VolumeType -> ShowS
[VolumeType] -> ShowS
VolumeType -> String
(Int -> VolumeType -> ShowS)
-> (VolumeType -> String)
-> ([VolumeType] -> ShowS)
-> Show VolumeType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VolumeType] -> ShowS
$cshowList :: [VolumeType] -> ShowS
show :: VolumeType -> String
$cshow :: VolumeType -> String
showsPrec :: Int -> VolumeType -> ShowS
$cshowsPrec :: Int -> VolumeType -> ShowS
Prelude.Show,
ReadPrec [VolumeType]
ReadPrec VolumeType
Int -> ReadS VolumeType
ReadS [VolumeType]
(Int -> ReadS VolumeType)
-> ReadS [VolumeType]
-> ReadPrec VolumeType
-> ReadPrec [VolumeType]
-> Read VolumeType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VolumeType]
$creadListPrec :: ReadPrec [VolumeType]
readPrec :: ReadPrec VolumeType
$creadPrec :: ReadPrec VolumeType
readList :: ReadS [VolumeType]
$creadList :: ReadS [VolumeType]
readsPrec :: Int -> ReadS VolumeType
$creadsPrec :: Int -> ReadS VolumeType
Prelude.Read,
VolumeType -> VolumeType -> Bool
(VolumeType -> VolumeType -> Bool)
-> (VolumeType -> VolumeType -> Bool) -> Eq VolumeType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VolumeType -> VolumeType -> Bool
$c/= :: VolumeType -> VolumeType -> Bool
== :: VolumeType -> VolumeType -> Bool
$c== :: VolumeType -> VolumeType -> Bool
Prelude.Eq,
Eq VolumeType
Eq VolumeType
-> (VolumeType -> VolumeType -> Ordering)
-> (VolumeType -> VolumeType -> Bool)
-> (VolumeType -> VolumeType -> Bool)
-> (VolumeType -> VolumeType -> Bool)
-> (VolumeType -> VolumeType -> Bool)
-> (VolumeType -> VolumeType -> VolumeType)
-> (VolumeType -> VolumeType -> VolumeType)
-> Ord VolumeType
VolumeType -> VolumeType -> Bool
VolumeType -> VolumeType -> Ordering
VolumeType -> VolumeType -> VolumeType
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 :: VolumeType -> VolumeType -> VolumeType
$cmin :: VolumeType -> VolumeType -> VolumeType
max :: VolumeType -> VolumeType -> VolumeType
$cmax :: VolumeType -> VolumeType -> VolumeType
>= :: VolumeType -> VolumeType -> Bool
$c>= :: VolumeType -> VolumeType -> Bool
> :: VolumeType -> VolumeType -> Bool
$c> :: VolumeType -> VolumeType -> Bool
<= :: VolumeType -> VolumeType -> Bool
$c<= :: VolumeType -> VolumeType -> Bool
< :: VolumeType -> VolumeType -> Bool
$c< :: VolumeType -> VolumeType -> Bool
compare :: VolumeType -> VolumeType -> Ordering
$ccompare :: VolumeType -> VolumeType -> Ordering
$cp1Ord :: Eq VolumeType
Prelude.Ord,
(forall x. VolumeType -> Rep VolumeType x)
-> (forall x. Rep VolumeType x -> VolumeType) -> Generic VolumeType
forall x. Rep VolumeType x -> VolumeType
forall x. VolumeType -> Rep VolumeType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VolumeType x -> VolumeType
$cfrom :: forall x. VolumeType -> Rep VolumeType x
Prelude.Generic
)
deriving newtype
( Int -> VolumeType -> Int
VolumeType -> Int
(Int -> VolumeType -> Int)
-> (VolumeType -> Int) -> Hashable VolumeType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VolumeType -> Int
$chash :: VolumeType -> Int
hashWithSalt :: Int -> VolumeType -> Int
$chashWithSalt :: Int -> VolumeType -> Int
Prelude.Hashable,
VolumeType -> ()
(VolumeType -> ()) -> NFData VolumeType
forall a. (a -> ()) -> NFData a
rnf :: VolumeType -> ()
$crnf :: VolumeType -> ()
Prelude.NFData,
Text -> Either String VolumeType
(Text -> Either String VolumeType) -> FromText VolumeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VolumeType
$cfromText :: Text -> Either String VolumeType
Core.FromText,
VolumeType -> Text
(VolumeType -> Text) -> ToText VolumeType
forall a. (a -> Text) -> ToText a
toText :: VolumeType -> Text
$ctoText :: VolumeType -> Text
Core.ToText,
VolumeType -> ByteString
(VolumeType -> ByteString) -> ToByteString VolumeType
forall a. (a -> ByteString) -> ToByteString a
toBS :: VolumeType -> ByteString
$ctoBS :: VolumeType -> ByteString
Core.ToByteString,
VolumeType -> ByteStringBuilder
(VolumeType -> ByteStringBuilder) -> ToLog VolumeType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VolumeType -> ByteStringBuilder
$cbuild :: VolumeType -> ByteStringBuilder
Core.ToLog,
HeaderName -> VolumeType -> [Header]
(HeaderName -> VolumeType -> [Header]) -> ToHeader VolumeType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VolumeType -> [Header]
$ctoHeader :: HeaderName -> VolumeType -> [Header]
Core.ToHeader,
VolumeType -> QueryString
(VolumeType -> QueryString) -> ToQuery VolumeType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VolumeType -> QueryString
$ctoQuery :: VolumeType -> QueryString
Core.ToQuery,
Value -> Parser [VolumeType]
Value -> Parser VolumeType
(Value -> Parser VolumeType)
-> (Value -> Parser [VolumeType]) -> FromJSON VolumeType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VolumeType]
$cparseJSONList :: Value -> Parser [VolumeType]
parseJSON :: Value -> Parser VolumeType
$cparseJSON :: Value -> Parser VolumeType
Core.FromJSON,
FromJSONKeyFunction [VolumeType]
FromJSONKeyFunction VolumeType
FromJSONKeyFunction VolumeType
-> FromJSONKeyFunction [VolumeType] -> FromJSONKey VolumeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VolumeType]
$cfromJSONKeyList :: FromJSONKeyFunction [VolumeType]
fromJSONKey :: FromJSONKeyFunction VolumeType
$cfromJSONKey :: FromJSONKeyFunction VolumeType
Core.FromJSONKey,
[VolumeType] -> Encoding
[VolumeType] -> Value
VolumeType -> Encoding
VolumeType -> Value
(VolumeType -> Value)
-> (VolumeType -> Encoding)
-> ([VolumeType] -> Value)
-> ([VolumeType] -> Encoding)
-> ToJSON VolumeType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VolumeType] -> Encoding
$ctoEncodingList :: [VolumeType] -> Encoding
toJSONList :: [VolumeType] -> Value
$ctoJSONList :: [VolumeType] -> Value
toEncoding :: VolumeType -> Encoding
$ctoEncoding :: VolumeType -> Encoding
toJSON :: VolumeType -> Value
$ctoJSON :: VolumeType -> Value
Core.ToJSON,
ToJSONKeyFunction [VolumeType]
ToJSONKeyFunction VolumeType
ToJSONKeyFunction VolumeType
-> ToJSONKeyFunction [VolumeType] -> ToJSONKey VolumeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VolumeType]
$ctoJSONKeyList :: ToJSONKeyFunction [VolumeType]
toJSONKey :: ToJSONKeyFunction VolumeType
$ctoJSONKey :: ToJSONKeyFunction VolumeType
Core.ToJSONKey,
[Node] -> Either String VolumeType
([Node] -> Either String VolumeType) -> FromXML VolumeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VolumeType
$cparseXML :: [Node] -> Either String VolumeType
Core.FromXML,
VolumeType -> XML
(VolumeType -> XML) -> ToXML VolumeType
forall a. (a -> XML) -> ToXML a
toXML :: VolumeType -> XML
$ctoXML :: VolumeType -> XML
Core.ToXML
)
pattern VolumeType_Gp2 :: VolumeType
pattern $bVolumeType_Gp2 :: VolumeType
$mVolumeType_Gp2 :: forall r. VolumeType -> (Void# -> r) -> (Void# -> r) -> r
VolumeType_Gp2 = VolumeType' "gp2"
pattern VolumeType_Io1 :: VolumeType
pattern $bVolumeType_Io1 :: VolumeType
$mVolumeType_Io1 :: forall r. VolumeType -> (Void# -> r) -> (Void# -> r) -> r
VolumeType_Io1 = VolumeType' "io1"
pattern VolumeType_Standard :: VolumeType
pattern $bVolumeType_Standard :: VolumeType
$mVolumeType_Standard :: forall r. VolumeType -> (Void# -> r) -> (Void# -> r) -> r
VolumeType_Standard = VolumeType' "standard"
{-# COMPLETE
VolumeType_Gp2,
VolumeType_Io1,
VolumeType_Standard,
VolumeType'
#-}