{-# 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.Outposts.Types.PaymentTerm
-- 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.Outposts.Types.PaymentTerm
  ( PaymentTerm
      ( ..,
        PaymentTerm_THREE_YEARS
      ),
  )
where

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

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

pattern PaymentTerm_THREE_YEARS :: PaymentTerm
pattern $bPaymentTerm_THREE_YEARS :: PaymentTerm
$mPaymentTerm_THREE_YEARS :: forall r. PaymentTerm -> (Void# -> r) -> (Void# -> r) -> r
PaymentTerm_THREE_YEARS = PaymentTerm' "THREE_YEARS"

{-# COMPLETE
  PaymentTerm_THREE_YEARS,
  PaymentTerm'
  #-}