{-# 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.Pinpoint.Types.RecencyType
-- 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.Pinpoint.Types.RecencyType
  ( RecencyType
      ( ..,
        RecencyType_ACTIVE,
        RecencyType_INACTIVE
      ),
  )
where

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

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

pattern RecencyType_ACTIVE :: RecencyType
pattern $bRecencyType_ACTIVE :: RecencyType
$mRecencyType_ACTIVE :: forall {r}. RecencyType -> ((# #) -> r) -> ((# #) -> r) -> r
RecencyType_ACTIVE = RecencyType' "ACTIVE"

pattern RecencyType_INACTIVE :: RecencyType
pattern $bRecencyType_INACTIVE :: RecencyType
$mRecencyType_INACTIVE :: forall {r}. RecencyType -> ((# #) -> r) -> ((# #) -> r) -> r
RecencyType_INACTIVE = RecencyType' "INACTIVE"

{-# COMPLETE
  RecencyType_ACTIVE,
  RecencyType_INACTIVE,
  RecencyType'
  #-}