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