{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

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

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

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

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

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