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