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