{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.RetentionType
( RetentionType
( ..,
RetentionType_Delete,
RetentionType_Retain
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RetentionType = RetentionType'
{ RetentionType -> Text
fromRetentionType ::
Core.Text
}
deriving stock
( Int -> RetentionType -> ShowS
[RetentionType] -> ShowS
RetentionType -> String
(Int -> RetentionType -> ShowS)
-> (RetentionType -> String)
-> ([RetentionType] -> ShowS)
-> Show RetentionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RetentionType] -> ShowS
$cshowList :: [RetentionType] -> ShowS
show :: RetentionType -> String
$cshow :: RetentionType -> String
showsPrec :: Int -> RetentionType -> ShowS
$cshowsPrec :: Int -> RetentionType -> ShowS
Prelude.Show,
ReadPrec [RetentionType]
ReadPrec RetentionType
Int -> ReadS RetentionType
ReadS [RetentionType]
(Int -> ReadS RetentionType)
-> ReadS [RetentionType]
-> ReadPrec RetentionType
-> ReadPrec [RetentionType]
-> Read RetentionType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RetentionType]
$creadListPrec :: ReadPrec [RetentionType]
readPrec :: ReadPrec RetentionType
$creadPrec :: ReadPrec RetentionType
readList :: ReadS [RetentionType]
$creadList :: ReadS [RetentionType]
readsPrec :: Int -> ReadS RetentionType
$creadsPrec :: Int -> ReadS RetentionType
Prelude.Read,
RetentionType -> RetentionType -> Bool
(RetentionType -> RetentionType -> Bool)
-> (RetentionType -> RetentionType -> Bool) -> Eq RetentionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RetentionType -> RetentionType -> Bool
$c/= :: RetentionType -> RetentionType -> Bool
== :: RetentionType -> RetentionType -> Bool
$c== :: RetentionType -> RetentionType -> Bool
Prelude.Eq,
Eq RetentionType
Eq RetentionType
-> (RetentionType -> RetentionType -> Ordering)
-> (RetentionType -> RetentionType -> Bool)
-> (RetentionType -> RetentionType -> Bool)
-> (RetentionType -> RetentionType -> Bool)
-> (RetentionType -> RetentionType -> Bool)
-> (RetentionType -> RetentionType -> RetentionType)
-> (RetentionType -> RetentionType -> RetentionType)
-> Ord RetentionType
RetentionType -> RetentionType -> Bool
RetentionType -> RetentionType -> Ordering
RetentionType -> RetentionType -> RetentionType
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 :: RetentionType -> RetentionType -> RetentionType
$cmin :: RetentionType -> RetentionType -> RetentionType
max :: RetentionType -> RetentionType -> RetentionType
$cmax :: RetentionType -> RetentionType -> RetentionType
>= :: RetentionType -> RetentionType -> Bool
$c>= :: RetentionType -> RetentionType -> Bool
> :: RetentionType -> RetentionType -> Bool
$c> :: RetentionType -> RetentionType -> Bool
<= :: RetentionType -> RetentionType -> Bool
$c<= :: RetentionType -> RetentionType -> Bool
< :: RetentionType -> RetentionType -> Bool
$c< :: RetentionType -> RetentionType -> Bool
compare :: RetentionType -> RetentionType -> Ordering
$ccompare :: RetentionType -> RetentionType -> Ordering
$cp1Ord :: Eq RetentionType
Prelude.Ord,
(forall x. RetentionType -> Rep RetentionType x)
-> (forall x. Rep RetentionType x -> RetentionType)
-> Generic RetentionType
forall x. Rep RetentionType x -> RetentionType
forall x. RetentionType -> Rep RetentionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RetentionType x -> RetentionType
$cfrom :: forall x. RetentionType -> Rep RetentionType x
Prelude.Generic
)
deriving newtype
( Int -> RetentionType -> Int
RetentionType -> Int
(Int -> RetentionType -> Int)
-> (RetentionType -> Int) -> Hashable RetentionType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RetentionType -> Int
$chash :: RetentionType -> Int
hashWithSalt :: Int -> RetentionType -> Int
$chashWithSalt :: Int -> RetentionType -> Int
Prelude.Hashable,
RetentionType -> ()
(RetentionType -> ()) -> NFData RetentionType
forall a. (a -> ()) -> NFData a
rnf :: RetentionType -> ()
$crnf :: RetentionType -> ()
Prelude.NFData,
Text -> Either String RetentionType
(Text -> Either String RetentionType) -> FromText RetentionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RetentionType
$cfromText :: Text -> Either String RetentionType
Core.FromText,
RetentionType -> Text
(RetentionType -> Text) -> ToText RetentionType
forall a. (a -> Text) -> ToText a
toText :: RetentionType -> Text
$ctoText :: RetentionType -> Text
Core.ToText,
RetentionType -> ByteString
(RetentionType -> ByteString) -> ToByteString RetentionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RetentionType -> ByteString
$ctoBS :: RetentionType -> ByteString
Core.ToByteString,
RetentionType -> ByteStringBuilder
(RetentionType -> ByteStringBuilder) -> ToLog RetentionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RetentionType -> ByteStringBuilder
$cbuild :: RetentionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> RetentionType -> [Header]
(HeaderName -> RetentionType -> [Header]) -> ToHeader RetentionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RetentionType -> [Header]
$ctoHeader :: HeaderName -> RetentionType -> [Header]
Core.ToHeader,
RetentionType -> QueryString
(RetentionType -> QueryString) -> ToQuery RetentionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RetentionType -> QueryString
$ctoQuery :: RetentionType -> QueryString
Core.ToQuery,
Value -> Parser [RetentionType]
Value -> Parser RetentionType
(Value -> Parser RetentionType)
-> (Value -> Parser [RetentionType]) -> FromJSON RetentionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RetentionType]
$cparseJSONList :: Value -> Parser [RetentionType]
parseJSON :: Value -> Parser RetentionType
$cparseJSON :: Value -> Parser RetentionType
Core.FromJSON,
FromJSONKeyFunction [RetentionType]
FromJSONKeyFunction RetentionType
FromJSONKeyFunction RetentionType
-> FromJSONKeyFunction [RetentionType] -> FromJSONKey RetentionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RetentionType]
$cfromJSONKeyList :: FromJSONKeyFunction [RetentionType]
fromJSONKey :: FromJSONKeyFunction RetentionType
$cfromJSONKey :: FromJSONKeyFunction RetentionType
Core.FromJSONKey,
[RetentionType] -> Encoding
[RetentionType] -> Value
RetentionType -> Encoding
RetentionType -> Value
(RetentionType -> Value)
-> (RetentionType -> Encoding)
-> ([RetentionType] -> Value)
-> ([RetentionType] -> Encoding)
-> ToJSON RetentionType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RetentionType] -> Encoding
$ctoEncodingList :: [RetentionType] -> Encoding
toJSONList :: [RetentionType] -> Value
$ctoJSONList :: [RetentionType] -> Value
toEncoding :: RetentionType -> Encoding
$ctoEncoding :: RetentionType -> Encoding
toJSON :: RetentionType -> Value
$ctoJSON :: RetentionType -> Value
Core.ToJSON,
ToJSONKeyFunction [RetentionType]
ToJSONKeyFunction RetentionType
ToJSONKeyFunction RetentionType
-> ToJSONKeyFunction [RetentionType] -> ToJSONKey RetentionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RetentionType]
$ctoJSONKeyList :: ToJSONKeyFunction [RetentionType]
toJSONKey :: ToJSONKeyFunction RetentionType
$ctoJSONKey :: ToJSONKeyFunction RetentionType
Core.ToJSONKey,
[Node] -> Either String RetentionType
([Node] -> Either String RetentionType) -> FromXML RetentionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RetentionType
$cparseXML :: [Node] -> Either String RetentionType
Core.FromXML,
RetentionType -> XML
(RetentionType -> XML) -> ToXML RetentionType
forall a. (a -> XML) -> ToXML a
toXML :: RetentionType -> XML
$ctoXML :: RetentionType -> XML
Core.ToXML
)
pattern RetentionType_Delete :: RetentionType
pattern $bRetentionType_Delete :: RetentionType
$mRetentionType_Delete :: forall r. RetentionType -> (Void# -> r) -> (Void# -> r) -> r
RetentionType_Delete = RetentionType' "Delete"
pattern RetentionType_Retain :: RetentionType
pattern $bRetentionType_Retain :: RetentionType
$mRetentionType_Retain :: forall r. RetentionType -> (Void# -> r) -> (Void# -> r) -> r
RetentionType_Retain = RetentionType' "Retain"
{-# COMPLETE
RetentionType_Delete,
RetentionType_Retain,
RetentionType'
#-}