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