{-# 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.Lightsail.Types.RenewalStatus
-- 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.Lightsail.Types.RenewalStatus
  ( RenewalStatus
      ( ..,
        RenewalStatus_Failed,
        RenewalStatus_PendingAutoRenewal,
        RenewalStatus_PendingValidation,
        RenewalStatus_Success
      ),
  )
where

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

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

pattern RenewalStatus_Failed :: RenewalStatus
pattern $bRenewalStatus_Failed :: RenewalStatus
$mRenewalStatus_Failed :: forall r. RenewalStatus -> (Void# -> r) -> (Void# -> r) -> r
RenewalStatus_Failed = RenewalStatus' "Failed"

pattern RenewalStatus_PendingAutoRenewal :: RenewalStatus
pattern $bRenewalStatus_PendingAutoRenewal :: RenewalStatus
$mRenewalStatus_PendingAutoRenewal :: forall r. RenewalStatus -> (Void# -> r) -> (Void# -> r) -> r
RenewalStatus_PendingAutoRenewal = RenewalStatus' "PendingAutoRenewal"

pattern RenewalStatus_PendingValidation :: RenewalStatus
pattern $bRenewalStatus_PendingValidation :: RenewalStatus
$mRenewalStatus_PendingValidation :: forall r. RenewalStatus -> (Void# -> r) -> (Void# -> r) -> r
RenewalStatus_PendingValidation = RenewalStatus' "PendingValidation"

pattern RenewalStatus_Success :: RenewalStatus
pattern $bRenewalStatus_Success :: RenewalStatus
$mRenewalStatus_Success :: forall r. RenewalStatus -> (Void# -> r) -> (Void# -> r) -> r
RenewalStatus_Success = RenewalStatus' "Success"

{-# COMPLETE
  RenewalStatus_Failed,
  RenewalStatus_PendingAutoRenewal,
  RenewalStatus_PendingValidation,
  RenewalStatus_Success,
  RenewalStatus'
  #-}