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

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

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

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

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

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