{-# 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.MetricSetSource
-- 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.MetricSetSource
  ( MetricSetSource
      ( ..,
        MetricSetSource_Test,
        MetricSetSource_Train,
        MetricSetSource_Validation
      ),
  )
where

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

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

pattern MetricSetSource_Test :: MetricSetSource
pattern $bMetricSetSource_Test :: MetricSetSource
$mMetricSetSource_Test :: forall {r}. MetricSetSource -> ((# #) -> r) -> ((# #) -> r) -> r
MetricSetSource_Test = MetricSetSource' "Test"

pattern MetricSetSource_Train :: MetricSetSource
pattern $bMetricSetSource_Train :: MetricSetSource
$mMetricSetSource_Train :: forall {r}. MetricSetSource -> ((# #) -> r) -> ((# #) -> r) -> r
MetricSetSource_Train = MetricSetSource' "Train"

pattern MetricSetSource_Validation :: MetricSetSource
pattern $bMetricSetSource_Validation :: MetricSetSource
$mMetricSetSource_Validation :: forall {r}. MetricSetSource -> ((# #) -> r) -> ((# #) -> r) -> r
MetricSetSource_Validation = MetricSetSource' "Validation"

{-# COMPLETE
  MetricSetSource_Test,
  MetricSetSource_Train,
  MetricSetSource_Validation,
  MetricSetSource'
  #-}