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