{-# 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.SageMakerFeatureStoreRuntime.Types.TargetStore
-- 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.SageMakerFeatureStoreRuntime.Types.TargetStore
  ( TargetStore
      ( ..,
        TargetStore_OfflineStore,
        TargetStore_OnlineStore
      ),
  )
where

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

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

pattern TargetStore_OfflineStore :: TargetStore
pattern $bTargetStore_OfflineStore :: TargetStore
$mTargetStore_OfflineStore :: forall {r}. TargetStore -> ((# #) -> r) -> ((# #) -> r) -> r
TargetStore_OfflineStore = TargetStore' "OfflineStore"

pattern TargetStore_OnlineStore :: TargetStore
pattern $bTargetStore_OnlineStore :: TargetStore
$mTargetStore_OnlineStore :: forall {r}. TargetStore -> ((# #) -> r) -> ((# #) -> r) -> r
TargetStore_OnlineStore = TargetStore' "OnlineStore"

{-# COMPLETE
  TargetStore_OfflineStore,
  TargetStore_OnlineStore,
  TargetStore'
  #-}