module Stratosphere.Wisdom.MessageTemplate.SystemEndpointAttributesProperty (
        SystemEndpointAttributesProperty(..),
        mkSystemEndpointAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SystemEndpointAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemendpointattributes.html>
    SystemEndpointAttributesProperty {SystemEndpointAttributesProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemendpointattributes.html#cfn-wisdom-messagetemplate-systemendpointattributes-address>
                                      SystemEndpointAttributesProperty -> Maybe (Value Text)
address :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty -> Bool
(SystemEndpointAttributesProperty
 -> SystemEndpointAttributesProperty -> Bool)
-> (SystemEndpointAttributesProperty
    -> SystemEndpointAttributesProperty -> Bool)
-> Eq SystemEndpointAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty -> Bool
== :: SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty -> Bool
$c/= :: SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty -> Bool
/= :: SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty -> Bool
Prelude.Eq, Int -> SystemEndpointAttributesProperty -> ShowS
[SystemEndpointAttributesProperty] -> ShowS
SystemEndpointAttributesProperty -> String
(Int -> SystemEndpointAttributesProperty -> ShowS)
-> (SystemEndpointAttributesProperty -> String)
-> ([SystemEndpointAttributesProperty] -> ShowS)
-> Show SystemEndpointAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SystemEndpointAttributesProperty -> ShowS
showsPrec :: Int -> SystemEndpointAttributesProperty -> ShowS
$cshow :: SystemEndpointAttributesProperty -> String
show :: SystemEndpointAttributesProperty -> String
$cshowList :: [SystemEndpointAttributesProperty] -> ShowS
showList :: [SystemEndpointAttributesProperty] -> ShowS
Prelude.Show)
mkSystemEndpointAttributesProperty ::
  SystemEndpointAttributesProperty
mkSystemEndpointAttributesProperty :: SystemEndpointAttributesProperty
mkSystemEndpointAttributesProperty
  = SystemEndpointAttributesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), address :: Maybe (Value Text)
address = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SystemEndpointAttributesProperty where
  toResourceProperties :: SystemEndpointAttributesProperty -> ResourceProperties
toResourceProperties SystemEndpointAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SystemEndpointAttributesProperty -> ()
address :: SystemEndpointAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
address :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::MessageTemplate.SystemEndpointAttributes",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Address" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
address])}
instance JSON.ToJSON SystemEndpointAttributesProperty where
  toJSON :: SystemEndpointAttributesProperty -> Value
toJSON SystemEndpointAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SystemEndpointAttributesProperty -> ()
address :: SystemEndpointAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
address :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Address" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
address]))
instance Property "Address" SystemEndpointAttributesProperty where
  type PropertyType "Address" SystemEndpointAttributesProperty = Value Prelude.Text
  set :: PropertyType "Address" SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty
-> SystemEndpointAttributesProperty
set PropertyType "Address" SystemEndpointAttributesProperty
newValue SystemEndpointAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SystemEndpointAttributesProperty -> ()
address :: SystemEndpointAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
address :: Maybe (Value Text)
..}
    = SystemEndpointAttributesProperty
        {address :: Maybe (Value Text)
address = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Address" SystemEndpointAttributesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}