{-# 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.CertificateManager.Types.RenewalEligibility
-- 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.CertificateManager.Types.RenewalEligibility
  ( RenewalEligibility
      ( ..,
        RenewalEligibility_ELIGIBLE,
        RenewalEligibility_INELIGIBLE
      ),
  )
where

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

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

pattern RenewalEligibility_ELIGIBLE :: RenewalEligibility
pattern $bRenewalEligibility_ELIGIBLE :: RenewalEligibility
$mRenewalEligibility_ELIGIBLE :: forall r. RenewalEligibility -> (Void# -> r) -> (Void# -> r) -> r
RenewalEligibility_ELIGIBLE = RenewalEligibility' "ELIGIBLE"

pattern RenewalEligibility_INELIGIBLE :: RenewalEligibility
pattern $bRenewalEligibility_INELIGIBLE :: RenewalEligibility
$mRenewalEligibility_INELIGIBLE :: forall r. RenewalEligibility -> (Void# -> r) -> (Void# -> r) -> r
RenewalEligibility_INELIGIBLE = RenewalEligibility' "INELIGIBLE"

{-# COMPLETE
  RenewalEligibility_ELIGIBLE,
  RenewalEligibility_INELIGIBLE,
  RenewalEligibility'
  #-}