{-# 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.SageMaker.Types.VariantPropertyType
-- 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.SageMaker.Types.VariantPropertyType
  ( VariantPropertyType
      ( ..,
        VariantPropertyType_DataCaptureConfig,
        VariantPropertyType_DesiredInstanceCount,
        VariantPropertyType_DesiredWeight
      ),
  )
where

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

newtype VariantPropertyType = VariantPropertyType'
  { VariantPropertyType -> Text
fromVariantPropertyType ::
      Data.Text
  }
  deriving stock
    ( Int -> VariantPropertyType -> ShowS
[VariantPropertyType] -> ShowS
VariantPropertyType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq VariantPropertyType
Int -> VariantPropertyType -> Int
VariantPropertyType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: VariantPropertyType -> ()
$crnf :: VariantPropertyType -> ()
Prelude.NFData,
      Text -> Either String VariantPropertyType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VariantPropertyType
$cfromText :: Text -> Either String VariantPropertyType
Data.FromText,
      VariantPropertyType -> Text
forall a. (a -> Text) -> ToText a
toText :: VariantPropertyType -> Text
$ctoText :: VariantPropertyType -> Text
Data.ToText,
      VariantPropertyType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VariantPropertyType -> ByteString
$ctoBS :: VariantPropertyType -> ByteString
Data.ToByteString,
      VariantPropertyType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VariantPropertyType -> ByteStringBuilder
$cbuild :: VariantPropertyType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> VariantPropertyType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VariantPropertyType -> [Header]
$ctoHeader :: HeaderName -> VariantPropertyType -> [Header]
Data.ToHeader,
      VariantPropertyType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VariantPropertyType -> QueryString
$ctoQuery :: VariantPropertyType -> QueryString
Data.ToQuery,
      Value -> Parser [VariantPropertyType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [VariantPropertyType]
FromJSONKeyFunction VariantPropertyType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VariantPropertyType]
$cfromJSONKeyList :: FromJSONKeyFunction [VariantPropertyType]
fromJSONKey :: FromJSONKeyFunction VariantPropertyType
$cfromJSONKey :: FromJSONKeyFunction VariantPropertyType
Data.FromJSONKey,
      [VariantPropertyType] -> Encoding
[VariantPropertyType] -> Value
VariantPropertyType -> Encoding
VariantPropertyType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [VariantPropertyType]
ToJSONKeyFunction VariantPropertyType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VariantPropertyType]
$ctoJSONKeyList :: ToJSONKeyFunction [VariantPropertyType]
toJSONKey :: ToJSONKeyFunction VariantPropertyType
$ctoJSONKey :: ToJSONKeyFunction VariantPropertyType
Data.ToJSONKey,
      [Node] -> Either String VariantPropertyType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VariantPropertyType
$cparseXML :: [Node] -> Either String VariantPropertyType
Data.FromXML,
      VariantPropertyType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VariantPropertyType -> XML
$ctoXML :: VariantPropertyType -> XML
Data.ToXML
    )

pattern VariantPropertyType_DataCaptureConfig :: VariantPropertyType
pattern $bVariantPropertyType_DataCaptureConfig :: VariantPropertyType
$mVariantPropertyType_DataCaptureConfig :: forall {r}.
VariantPropertyType -> ((# #) -> r) -> ((# #) -> r) -> r
VariantPropertyType_DataCaptureConfig = VariantPropertyType' "DataCaptureConfig"

pattern VariantPropertyType_DesiredInstanceCount :: VariantPropertyType
pattern $bVariantPropertyType_DesiredInstanceCount :: VariantPropertyType
$mVariantPropertyType_DesiredInstanceCount :: forall {r}.
VariantPropertyType -> ((# #) -> r) -> ((# #) -> r) -> r
VariantPropertyType_DesiredInstanceCount = VariantPropertyType' "DesiredInstanceCount"

pattern VariantPropertyType_DesiredWeight :: VariantPropertyType
pattern $bVariantPropertyType_DesiredWeight :: VariantPropertyType
$mVariantPropertyType_DesiredWeight :: forall {r}.
VariantPropertyType -> ((# #) -> r) -> ((# #) -> r) -> r
VariantPropertyType_DesiredWeight = VariantPropertyType' "DesiredWeight"

{-# COMPLETE
  VariantPropertyType_DataCaptureConfig,
  VariantPropertyType_DesiredInstanceCount,
  VariantPropertyType_DesiredWeight,
  VariantPropertyType'
  #-}