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

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

newtype ModelCacheSetting = ModelCacheSetting'
  { ModelCacheSetting -> Text
fromModelCacheSetting ::
      Core.Text
  }
  deriving stock
    ( Int -> ModelCacheSetting -> ShowS
[ModelCacheSetting] -> ShowS
ModelCacheSetting -> String
(Int -> ModelCacheSetting -> ShowS)
-> (ModelCacheSetting -> String)
-> ([ModelCacheSetting] -> ShowS)
-> Show ModelCacheSetting
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]
(Int -> ReadS ModelCacheSetting)
-> ReadS [ModelCacheSetting]
-> ReadPrec ModelCacheSetting
-> ReadPrec [ModelCacheSetting]
-> Read 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
(ModelCacheSetting -> ModelCacheSetting -> Bool)
-> (ModelCacheSetting -> ModelCacheSetting -> Bool)
-> Eq ModelCacheSetting
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
Eq ModelCacheSetting
-> (ModelCacheSetting -> ModelCacheSetting -> Ordering)
-> (ModelCacheSetting -> ModelCacheSetting -> Bool)
-> (ModelCacheSetting -> ModelCacheSetting -> Bool)
-> (ModelCacheSetting -> ModelCacheSetting -> Bool)
-> (ModelCacheSetting -> ModelCacheSetting -> Bool)
-> (ModelCacheSetting -> ModelCacheSetting -> ModelCacheSetting)
-> (ModelCacheSetting -> ModelCacheSetting -> ModelCacheSetting)
-> Ord 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
$cp1Ord :: Eq ModelCacheSetting
Prelude.Ord,
      (forall x. ModelCacheSetting -> Rep ModelCacheSetting x)
-> (forall x. Rep ModelCacheSetting x -> ModelCacheSetting)
-> Generic ModelCacheSetting
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
    ( Int -> ModelCacheSetting -> Int
ModelCacheSetting -> Int
(Int -> ModelCacheSetting -> Int)
-> (ModelCacheSetting -> Int) -> Hashable ModelCacheSetting
forall 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 -> ()
(ModelCacheSetting -> ()) -> NFData ModelCacheSetting
forall a. (a -> ()) -> NFData a
rnf :: ModelCacheSetting -> ()
$crnf :: ModelCacheSetting -> ()
Prelude.NFData,
      Text -> Either String ModelCacheSetting
(Text -> Either String ModelCacheSetting)
-> FromText ModelCacheSetting
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ModelCacheSetting
$cfromText :: Text -> Either String ModelCacheSetting
Core.FromText,
      ModelCacheSetting -> Text
(ModelCacheSetting -> Text) -> ToText ModelCacheSetting
forall a. (a -> Text) -> ToText a
toText :: ModelCacheSetting -> Text
$ctoText :: ModelCacheSetting -> Text
Core.ToText,
      ModelCacheSetting -> ByteString
(ModelCacheSetting -> ByteString) -> ToByteString ModelCacheSetting
forall a. (a -> ByteString) -> ToByteString a
toBS :: ModelCacheSetting -> ByteString
$ctoBS :: ModelCacheSetting -> ByteString
Core.ToByteString,
      ModelCacheSetting -> ByteStringBuilder
(ModelCacheSetting -> ByteStringBuilder) -> ToLog ModelCacheSetting
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ModelCacheSetting -> ByteStringBuilder
$cbuild :: ModelCacheSetting -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ModelCacheSetting -> [Header]
(HeaderName -> ModelCacheSetting -> [Header])
-> ToHeader ModelCacheSetting
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ModelCacheSetting -> [Header]
$ctoHeader :: HeaderName -> ModelCacheSetting -> [Header]
Core.ToHeader,
      ModelCacheSetting -> QueryString
(ModelCacheSetting -> QueryString) -> ToQuery ModelCacheSetting
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ModelCacheSetting -> QueryString
$ctoQuery :: ModelCacheSetting -> QueryString
Core.ToQuery,
      Value -> Parser [ModelCacheSetting]
Value -> Parser ModelCacheSetting
(Value -> Parser ModelCacheSetting)
-> (Value -> Parser [ModelCacheSetting])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ModelCacheSetting]
FromJSONKeyFunction ModelCacheSetting
FromJSONKeyFunction ModelCacheSetting
-> FromJSONKeyFunction [ModelCacheSetting]
-> FromJSONKey ModelCacheSetting
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ModelCacheSetting]
$cfromJSONKeyList :: FromJSONKeyFunction [ModelCacheSetting]
fromJSONKey :: FromJSONKeyFunction ModelCacheSetting
$cfromJSONKey :: FromJSONKeyFunction ModelCacheSetting
Core.FromJSONKey,
      [ModelCacheSetting] -> Encoding
[ModelCacheSetting] -> Value
ModelCacheSetting -> Encoding
ModelCacheSetting -> Value
(ModelCacheSetting -> Value)
-> (ModelCacheSetting -> Encoding)
-> ([ModelCacheSetting] -> Value)
-> ([ModelCacheSetting] -> Encoding)
-> ToJSON ModelCacheSetting
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
Core.ToJSON,
      ToJSONKeyFunction [ModelCacheSetting]
ToJSONKeyFunction ModelCacheSetting
ToJSONKeyFunction ModelCacheSetting
-> ToJSONKeyFunction [ModelCacheSetting]
-> ToJSONKey ModelCacheSetting
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ModelCacheSetting]
$ctoJSONKeyList :: ToJSONKeyFunction [ModelCacheSetting]
toJSONKey :: ToJSONKeyFunction ModelCacheSetting
$ctoJSONKey :: ToJSONKeyFunction ModelCacheSetting
Core.ToJSONKey,
      [Node] -> Either String ModelCacheSetting
([Node] -> Either String ModelCacheSetting)
-> FromXML ModelCacheSetting
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ModelCacheSetting
$cparseXML :: [Node] -> Either String ModelCacheSetting
Core.FromXML,
      ModelCacheSetting -> XML
(ModelCacheSetting -> XML) -> ToXML ModelCacheSetting
forall a. (a -> XML) -> ToXML a
toXML :: ModelCacheSetting -> XML
$ctoXML :: ModelCacheSetting -> XML
Core.ToXML
    )

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

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

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