{-# 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.LicenseManager.Types.RenewType
-- 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.LicenseManager.Types.RenewType
  ( RenewType
      ( ..,
        RenewType_Monthly,
        RenewType_None,
        RenewType_Weekly
      ),
  )
where

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

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

pattern RenewType_Monthly :: RenewType
pattern $bRenewType_Monthly :: RenewType
$mRenewType_Monthly :: forall r. RenewType -> (Void# -> r) -> (Void# -> r) -> r
RenewType_Monthly = RenewType' "Monthly"

pattern RenewType_None :: RenewType
pattern $bRenewType_None :: RenewType
$mRenewType_None :: forall r. RenewType -> (Void# -> r) -> (Void# -> r) -> r
RenewType_None = RenewType' "None"

pattern RenewType_Weekly :: RenewType
pattern $bRenewType_Weekly :: RenewType
$mRenewType_Weekly :: forall r. RenewType -> (Void# -> r) -> (Void# -> r) -> r
RenewType_Weekly = RenewType' "Weekly"

{-# COMPLETE
  RenewType_Monthly,
  RenewType_None,
  RenewType_Weekly,
  RenewType'
  #-}