{-# 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.ProfilingStatus
-- 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.ProfilingStatus
  ( ProfilingStatus
      ( ..,
        ProfilingStatus_Disabled,
        ProfilingStatus_Enabled
      ),
  )
where

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

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

pattern ProfilingStatus_Disabled :: ProfilingStatus
pattern $bProfilingStatus_Disabled :: ProfilingStatus
$mProfilingStatus_Disabled :: forall r. ProfilingStatus -> (Void# -> r) -> (Void# -> r) -> r
ProfilingStatus_Disabled = ProfilingStatus' "Disabled"

pattern ProfilingStatus_Enabled :: ProfilingStatus
pattern $bProfilingStatus_Enabled :: ProfilingStatus
$mProfilingStatus_Enabled :: forall r. ProfilingStatus -> (Void# -> r) -> (Void# -> r) -> r
ProfilingStatus_Enabled = ProfilingStatus' "Enabled"

{-# COMPLETE
  ProfilingStatus_Disabled,
  ProfilingStatus_Enabled,
  ProfilingStatus'
  #-}