{-# 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.EC2.Types.EndDateType
-- 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.EC2.Types.EndDateType
  ( EndDateType
      ( ..,
        EndDateType_Limited,
        EndDateType_Unlimited
      ),
  )
where

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

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

pattern EndDateType_Limited :: EndDateType
pattern $bEndDateType_Limited :: EndDateType
$mEndDateType_Limited :: forall {r}. EndDateType -> ((# #) -> r) -> ((# #) -> r) -> r
EndDateType_Limited = EndDateType' "limited"

pattern EndDateType_Unlimited :: EndDateType
pattern $bEndDateType_Unlimited :: EndDateType
$mEndDateType_Unlimited :: forall {r}. EndDateType -> ((# #) -> r) -> ((# #) -> r) -> r
EndDateType_Unlimited = EndDateType' "unlimited"

{-# COMPLETE
  EndDateType_Limited,
  EndDateType_Unlimited,
  EndDateType'
  #-}