{-# 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.OfflineStoreStatusValue
-- 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.OfflineStoreStatusValue
  ( OfflineStoreStatusValue
      ( ..,
        OfflineStoreStatusValue_Active,
        OfflineStoreStatusValue_Blocked,
        OfflineStoreStatusValue_Disabled
      ),
  )
where

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

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

pattern OfflineStoreStatusValue_Active :: OfflineStoreStatusValue
pattern $bOfflineStoreStatusValue_Active :: OfflineStoreStatusValue
$mOfflineStoreStatusValue_Active :: forall r.
OfflineStoreStatusValue -> (Void# -> r) -> (Void# -> r) -> r
OfflineStoreStatusValue_Active = OfflineStoreStatusValue' "Active"

pattern OfflineStoreStatusValue_Blocked :: OfflineStoreStatusValue
pattern $bOfflineStoreStatusValue_Blocked :: OfflineStoreStatusValue
$mOfflineStoreStatusValue_Blocked :: forall r.
OfflineStoreStatusValue -> (Void# -> r) -> (Void# -> r) -> r
OfflineStoreStatusValue_Blocked = OfflineStoreStatusValue' "Blocked"

pattern OfflineStoreStatusValue_Disabled :: OfflineStoreStatusValue
pattern $bOfflineStoreStatusValue_Disabled :: OfflineStoreStatusValue
$mOfflineStoreStatusValue_Disabled :: forall r.
OfflineStoreStatusValue -> (Void# -> r) -> (Void# -> r) -> r
OfflineStoreStatusValue_Disabled = OfflineStoreStatusValue' "Disabled"

{-# COMPLETE
  OfflineStoreStatusValue_Active,
  OfflineStoreStatusValue_Blocked,
  OfflineStoreStatusValue_Disabled,
  OfflineStoreStatusValue'
  #-}