{-# 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.KinesisVideo.Types.UpdateDataRetentionOperation
-- 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.KinesisVideo.Types.UpdateDataRetentionOperation
  ( UpdateDataRetentionOperation
      ( ..,
        UpdateDataRetentionOperation_DECREASE_DATA_RETENTION,
        UpdateDataRetentionOperation_INCREASE_DATA_RETENTION
      ),
  )
where

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

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

pattern UpdateDataRetentionOperation_DECREASE_DATA_RETENTION :: UpdateDataRetentionOperation
pattern $bUpdateDataRetentionOperation_DECREASE_DATA_RETENTION :: UpdateDataRetentionOperation
$mUpdateDataRetentionOperation_DECREASE_DATA_RETENTION :: forall r.
UpdateDataRetentionOperation -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
UpdateDataRetentionOperation_INCREASE_DATA_RETENTION = UpdateDataRetentionOperation' "INCREASE_DATA_RETENTION"

{-# COMPLETE
  UpdateDataRetentionOperation_DECREASE_DATA_RETENTION,
  UpdateDataRetentionOperation_INCREASE_DATA_RETENTION,
  UpdateDataRetentionOperation'
  #-}