{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Location.Types.PricingPlan
( PricingPlan
( ..,
PricingPlan_MobileAssetManagement,
PricingPlan_MobileAssetTracking,
PricingPlan_RequestBasedUsage
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PricingPlan = PricingPlan'
{ PricingPlan -> Text
fromPricingPlan ::
Core.Text
}
deriving stock
( Int -> PricingPlan -> ShowS
[PricingPlan] -> ShowS
PricingPlan -> String
(Int -> PricingPlan -> ShowS)
-> (PricingPlan -> String)
-> ([PricingPlan] -> ShowS)
-> Show PricingPlan
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PricingPlan] -> ShowS
$cshowList :: [PricingPlan] -> ShowS
show :: PricingPlan -> String
$cshow :: PricingPlan -> String
showsPrec :: Int -> PricingPlan -> ShowS
$cshowsPrec :: Int -> PricingPlan -> ShowS
Prelude.Show,
ReadPrec [PricingPlan]
ReadPrec PricingPlan
Int -> ReadS PricingPlan
ReadS [PricingPlan]
(Int -> ReadS PricingPlan)
-> ReadS [PricingPlan]
-> ReadPrec PricingPlan
-> ReadPrec [PricingPlan]
-> Read PricingPlan
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PricingPlan]
$creadListPrec :: ReadPrec [PricingPlan]
readPrec :: ReadPrec PricingPlan
$creadPrec :: ReadPrec PricingPlan
readList :: ReadS [PricingPlan]
$creadList :: ReadS [PricingPlan]
readsPrec :: Int -> ReadS PricingPlan
$creadsPrec :: Int -> ReadS PricingPlan
Prelude.Read,
PricingPlan -> PricingPlan -> Bool
(PricingPlan -> PricingPlan -> Bool)
-> (PricingPlan -> PricingPlan -> Bool) -> Eq PricingPlan
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PricingPlan -> PricingPlan -> Bool
$c/= :: PricingPlan -> PricingPlan -> Bool
== :: PricingPlan -> PricingPlan -> Bool
$c== :: PricingPlan -> PricingPlan -> Bool
Prelude.Eq,
Eq PricingPlan
Eq PricingPlan
-> (PricingPlan -> PricingPlan -> Ordering)
-> (PricingPlan -> PricingPlan -> Bool)
-> (PricingPlan -> PricingPlan -> Bool)
-> (PricingPlan -> PricingPlan -> Bool)
-> (PricingPlan -> PricingPlan -> Bool)
-> (PricingPlan -> PricingPlan -> PricingPlan)
-> (PricingPlan -> PricingPlan -> PricingPlan)
-> Ord PricingPlan
PricingPlan -> PricingPlan -> Bool
PricingPlan -> PricingPlan -> Ordering
PricingPlan -> PricingPlan -> PricingPlan
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 :: PricingPlan -> PricingPlan -> PricingPlan
$cmin :: PricingPlan -> PricingPlan -> PricingPlan
max :: PricingPlan -> PricingPlan -> PricingPlan
$cmax :: PricingPlan -> PricingPlan -> PricingPlan
>= :: PricingPlan -> PricingPlan -> Bool
$c>= :: PricingPlan -> PricingPlan -> Bool
> :: PricingPlan -> PricingPlan -> Bool
$c> :: PricingPlan -> PricingPlan -> Bool
<= :: PricingPlan -> PricingPlan -> Bool
$c<= :: PricingPlan -> PricingPlan -> Bool
< :: PricingPlan -> PricingPlan -> Bool
$c< :: PricingPlan -> PricingPlan -> Bool
compare :: PricingPlan -> PricingPlan -> Ordering
$ccompare :: PricingPlan -> PricingPlan -> Ordering
$cp1Ord :: Eq PricingPlan
Prelude.Ord,
(forall x. PricingPlan -> Rep PricingPlan x)
-> (forall x. Rep PricingPlan x -> PricingPlan)
-> Generic PricingPlan
forall x. Rep PricingPlan x -> PricingPlan
forall x. PricingPlan -> Rep PricingPlan x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PricingPlan x -> PricingPlan
$cfrom :: forall x. PricingPlan -> Rep PricingPlan x
Prelude.Generic
)
deriving newtype
( Int -> PricingPlan -> Int
PricingPlan -> Int
(Int -> PricingPlan -> Int)
-> (PricingPlan -> Int) -> Hashable PricingPlan
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PricingPlan -> Int
$chash :: PricingPlan -> Int
hashWithSalt :: Int -> PricingPlan -> Int
$chashWithSalt :: Int -> PricingPlan -> Int
Prelude.Hashable,
PricingPlan -> ()
(PricingPlan -> ()) -> NFData PricingPlan
forall a. (a -> ()) -> NFData a
rnf :: PricingPlan -> ()
$crnf :: PricingPlan -> ()
Prelude.NFData,
Text -> Either String PricingPlan
(Text -> Either String PricingPlan) -> FromText PricingPlan
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PricingPlan
$cfromText :: Text -> Either String PricingPlan
Core.FromText,
PricingPlan -> Text
(PricingPlan -> Text) -> ToText PricingPlan
forall a. (a -> Text) -> ToText a
toText :: PricingPlan -> Text
$ctoText :: PricingPlan -> Text
Core.ToText,
PricingPlan -> ByteString
(PricingPlan -> ByteString) -> ToByteString PricingPlan
forall a. (a -> ByteString) -> ToByteString a
toBS :: PricingPlan -> ByteString
$ctoBS :: PricingPlan -> ByteString
Core.ToByteString,
PricingPlan -> ByteStringBuilder
(PricingPlan -> ByteStringBuilder) -> ToLog PricingPlan
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PricingPlan -> ByteStringBuilder
$cbuild :: PricingPlan -> ByteStringBuilder
Core.ToLog,
HeaderName -> PricingPlan -> [Header]
(HeaderName -> PricingPlan -> [Header]) -> ToHeader PricingPlan
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PricingPlan -> [Header]
$ctoHeader :: HeaderName -> PricingPlan -> [Header]
Core.ToHeader,
PricingPlan -> QueryString
(PricingPlan -> QueryString) -> ToQuery PricingPlan
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PricingPlan -> QueryString
$ctoQuery :: PricingPlan -> QueryString
Core.ToQuery,
Value -> Parser [PricingPlan]
Value -> Parser PricingPlan
(Value -> Parser PricingPlan)
-> (Value -> Parser [PricingPlan]) -> FromJSON PricingPlan
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PricingPlan]
$cparseJSONList :: Value -> Parser [PricingPlan]
parseJSON :: Value -> Parser PricingPlan
$cparseJSON :: Value -> Parser PricingPlan
Core.FromJSON,
FromJSONKeyFunction [PricingPlan]
FromJSONKeyFunction PricingPlan
FromJSONKeyFunction PricingPlan
-> FromJSONKeyFunction [PricingPlan] -> FromJSONKey PricingPlan
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PricingPlan]
$cfromJSONKeyList :: FromJSONKeyFunction [PricingPlan]
fromJSONKey :: FromJSONKeyFunction PricingPlan
$cfromJSONKey :: FromJSONKeyFunction PricingPlan
Core.FromJSONKey,
[PricingPlan] -> Encoding
[PricingPlan] -> Value
PricingPlan -> Encoding
PricingPlan -> Value
(PricingPlan -> Value)
-> (PricingPlan -> Encoding)
-> ([PricingPlan] -> Value)
-> ([PricingPlan] -> Encoding)
-> ToJSON PricingPlan
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PricingPlan] -> Encoding
$ctoEncodingList :: [PricingPlan] -> Encoding
toJSONList :: [PricingPlan] -> Value
$ctoJSONList :: [PricingPlan] -> Value
toEncoding :: PricingPlan -> Encoding
$ctoEncoding :: PricingPlan -> Encoding
toJSON :: PricingPlan -> Value
$ctoJSON :: PricingPlan -> Value
Core.ToJSON,
ToJSONKeyFunction [PricingPlan]
ToJSONKeyFunction PricingPlan
ToJSONKeyFunction PricingPlan
-> ToJSONKeyFunction [PricingPlan] -> ToJSONKey PricingPlan
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PricingPlan]
$ctoJSONKeyList :: ToJSONKeyFunction [PricingPlan]
toJSONKey :: ToJSONKeyFunction PricingPlan
$ctoJSONKey :: ToJSONKeyFunction PricingPlan
Core.ToJSONKey,
[Node] -> Either String PricingPlan
([Node] -> Either String PricingPlan) -> FromXML PricingPlan
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PricingPlan
$cparseXML :: [Node] -> Either String PricingPlan
Core.FromXML,
PricingPlan -> XML
(PricingPlan -> XML) -> ToXML PricingPlan
forall a. (a -> XML) -> ToXML a
toXML :: PricingPlan -> XML
$ctoXML :: PricingPlan -> XML
Core.ToXML
)
pattern PricingPlan_MobileAssetManagement :: PricingPlan
pattern $bPricingPlan_MobileAssetManagement :: PricingPlan
$mPricingPlan_MobileAssetManagement :: forall r. PricingPlan -> (Void# -> r) -> (Void# -> r) -> r
PricingPlan_MobileAssetManagement = PricingPlan' "MobileAssetManagement"
pattern PricingPlan_MobileAssetTracking :: PricingPlan
pattern $bPricingPlan_MobileAssetTracking :: PricingPlan
$mPricingPlan_MobileAssetTracking :: forall r. PricingPlan -> (Void# -> r) -> (Void# -> r) -> r
PricingPlan_MobileAssetTracking = PricingPlan' "MobileAssetTracking"
pattern PricingPlan_RequestBasedUsage :: PricingPlan
pattern $bPricingPlan_RequestBasedUsage :: PricingPlan
$mPricingPlan_RequestBasedUsage :: forall r. PricingPlan -> (Void# -> r) -> (Void# -> r) -> r
PricingPlan_RequestBasedUsage = PricingPlan' "RequestBasedUsage"
{-# COMPLETE
PricingPlan_MobileAssetManagement,
PricingPlan_MobileAssetTracking,
PricingPlan_RequestBasedUsage,
PricingPlan'
#-}