{-# 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.StrategyOnFullSize
-- 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.KinesisVideo.Types.StrategyOnFullSize
  ( StrategyOnFullSize
      ( ..,
        StrategyOnFullSize_DELETE_OLDEST_MEDIA,
        StrategyOnFullSize_DENY_NEW_MEDIA
      ),
  )
where

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

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

pattern StrategyOnFullSize_DELETE_OLDEST_MEDIA :: StrategyOnFullSize
pattern $bStrategyOnFullSize_DELETE_OLDEST_MEDIA :: StrategyOnFullSize
$mStrategyOnFullSize_DELETE_OLDEST_MEDIA :: forall {r}. StrategyOnFullSize -> ((# #) -> r) -> ((# #) -> r) -> r
StrategyOnFullSize_DELETE_OLDEST_MEDIA = StrategyOnFullSize' "DELETE_OLDEST_MEDIA"

pattern StrategyOnFullSize_DENY_NEW_MEDIA :: StrategyOnFullSize
pattern $bStrategyOnFullSize_DENY_NEW_MEDIA :: StrategyOnFullSize
$mStrategyOnFullSize_DENY_NEW_MEDIA :: forall {r}. StrategyOnFullSize -> ((# #) -> r) -> ((# #) -> r) -> r
StrategyOnFullSize_DENY_NEW_MEDIA = StrategyOnFullSize' "DENY_NEW_MEDIA"

{-# COMPLETE
  StrategyOnFullSize_DELETE_OLDEST_MEDIA,
  StrategyOnFullSize_DENY_NEW_MEDIA,
  StrategyOnFullSize'
  #-}