{-# 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.ModelCacheSetting
-- 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.SageMaker.Types.ModelCacheSetting
  ( ModelCacheSetting
      ( ..,
        ModelCacheSetting_Disabled,
        ModelCacheSetting_Enabled
      ),
  )
where

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

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

pattern ModelCacheSetting_Disabled :: ModelCacheSetting
pattern $bModelCacheSetting_Disabled :: ModelCacheSetting
$mModelCacheSetting_Disabled :: forall {r}. ModelCacheSetting -> ((# #) -> r) -> ((# #) -> r) -> r
ModelCacheSetting_Disabled = ModelCacheSetting' "Disabled"

pattern ModelCacheSetting_Enabled :: ModelCacheSetting
pattern $bModelCacheSetting_Enabled :: ModelCacheSetting
$mModelCacheSetting_Enabled :: forall {r}. ModelCacheSetting -> ((# #) -> r) -> ((# #) -> r) -> r
ModelCacheSetting_Enabled = ModelCacheSetting' "Enabled"

{-# COMPLETE
  ModelCacheSetting_Disabled,
  ModelCacheSetting_Enabled,
  ModelCacheSetting'
  #-}