{-# 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.FeatureGroupStatus
-- 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.FeatureGroupStatus
  ( FeatureGroupStatus
      ( ..,
        FeatureGroupStatus_CreateFailed,
        FeatureGroupStatus_Created,
        FeatureGroupStatus_Creating,
        FeatureGroupStatus_DeleteFailed,
        FeatureGroupStatus_Deleting
      ),
  )
where

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

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

pattern FeatureGroupStatus_CreateFailed :: FeatureGroupStatus
pattern $bFeatureGroupStatus_CreateFailed :: FeatureGroupStatus
$mFeatureGroupStatus_CreateFailed :: forall r. FeatureGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
FeatureGroupStatus_CreateFailed = FeatureGroupStatus' "CreateFailed"

pattern FeatureGroupStatus_Created :: FeatureGroupStatus
pattern $bFeatureGroupStatus_Created :: FeatureGroupStatus
$mFeatureGroupStatus_Created :: forall r. FeatureGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
FeatureGroupStatus_Created = FeatureGroupStatus' "Created"

pattern FeatureGroupStatus_Creating :: FeatureGroupStatus
pattern $bFeatureGroupStatus_Creating :: FeatureGroupStatus
$mFeatureGroupStatus_Creating :: forall r. FeatureGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
FeatureGroupStatus_Creating = FeatureGroupStatus' "Creating"

pattern FeatureGroupStatus_DeleteFailed :: FeatureGroupStatus
pattern $bFeatureGroupStatus_DeleteFailed :: FeatureGroupStatus
$mFeatureGroupStatus_DeleteFailed :: forall r. FeatureGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
FeatureGroupStatus_DeleteFailed = FeatureGroupStatus' "DeleteFailed"

pattern FeatureGroupStatus_Deleting :: FeatureGroupStatus
pattern $bFeatureGroupStatus_Deleting :: FeatureGroupStatus
$mFeatureGroupStatus_Deleting :: forall r. FeatureGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
FeatureGroupStatus_Deleting = FeatureGroupStatus' "Deleting"

{-# COMPLETE
  FeatureGroupStatus_CreateFailed,
  FeatureGroupStatus_Created,
  FeatureGroupStatus_Creating,
  FeatureGroupStatus_DeleteFailed,
  FeatureGroupStatus_Deleting,
  FeatureGroupStatus'
  #-}