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