module Stratosphere.Wisdom.MessageTemplate.SystemAttributesProperty (
        module Exports, SystemAttributesProperty(..),
        mkSystemAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.MessageTemplate.SystemEndpointAttributesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SystemAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html>
    SystemAttributesProperty {SystemAttributesProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html#cfn-wisdom-messagetemplate-systemattributes-customerendpoint>
                              SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
customerEndpoint :: (Prelude.Maybe SystemEndpointAttributesProperty),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html#cfn-wisdom-messagetemplate-systemattributes-name>
                              SystemAttributesProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html#cfn-wisdom-messagetemplate-systemattributes-systemendpoint>
                              SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
systemEndpoint :: (Prelude.Maybe SystemEndpointAttributesProperty)}
  deriving stock (SystemAttributesProperty -> SystemAttributesProperty -> Bool
(SystemAttributesProperty -> SystemAttributesProperty -> Bool)
-> (SystemAttributesProperty -> SystemAttributesProperty -> Bool)
-> Eq SystemAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SystemAttributesProperty -> SystemAttributesProperty -> Bool
== :: SystemAttributesProperty -> SystemAttributesProperty -> Bool
$c/= :: SystemAttributesProperty -> SystemAttributesProperty -> Bool
/= :: SystemAttributesProperty -> SystemAttributesProperty -> Bool
Prelude.Eq, Int -> SystemAttributesProperty -> ShowS
[SystemAttributesProperty] -> ShowS
SystemAttributesProperty -> String
(Int -> SystemAttributesProperty -> ShowS)
-> (SystemAttributesProperty -> String)
-> ([SystemAttributesProperty] -> ShowS)
-> Show SystemAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SystemAttributesProperty -> ShowS
showsPrec :: Int -> SystemAttributesProperty -> ShowS
$cshow :: SystemAttributesProperty -> String
show :: SystemAttributesProperty -> String
$cshowList :: [SystemAttributesProperty] -> ShowS
showList :: [SystemAttributesProperty] -> ShowS
Prelude.Show)
mkSystemAttributesProperty :: SystemAttributesProperty
mkSystemAttributesProperty :: SystemAttributesProperty
mkSystemAttributesProperty
  = SystemAttributesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), customerEndpoint :: Maybe SystemEndpointAttributesProperty
customerEndpoint = Maybe SystemEndpointAttributesProperty
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, systemEndpoint :: Maybe SystemEndpointAttributesProperty
systemEndpoint = Maybe SystemEndpointAttributesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SystemAttributesProperty where
  toResourceProperties :: SystemAttributesProperty -> ResourceProperties
toResourceProperties SystemAttributesProperty {Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: SystemAttributesProperty -> ()
customerEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
name :: SystemAttributesProperty -> Maybe (Value Text)
systemEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::MessageTemplate.SystemAttributes",
         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 -> SystemEndpointAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomerEndpoint" (SystemEndpointAttributesProperty -> (Key, Value))
-> Maybe SystemEndpointAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SystemEndpointAttributesProperty
customerEndpoint,
                            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
"Name" (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)
name,
                            Key -> SystemEndpointAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SystemEndpoint" (SystemEndpointAttributesProperty -> (Key, Value))
-> Maybe SystemEndpointAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SystemEndpointAttributesProperty
systemEndpoint])}
instance JSON.ToJSON SystemAttributesProperty where
  toJSON :: SystemAttributesProperty -> Value
toJSON SystemAttributesProperty {Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: SystemAttributesProperty -> ()
customerEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
name :: SystemAttributesProperty -> Maybe (Value Text)
systemEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
    = [(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 -> SystemEndpointAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomerEndpoint" (SystemEndpointAttributesProperty -> (Key, Value))
-> Maybe SystemEndpointAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SystemEndpointAttributesProperty
customerEndpoint,
               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
"Name" (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)
name,
               Key -> SystemEndpointAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SystemEndpoint" (SystemEndpointAttributesProperty -> (Key, Value))
-> Maybe SystemEndpointAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SystemEndpointAttributesProperty
systemEndpoint]))
instance Property "CustomerEndpoint" SystemAttributesProperty where
  type PropertyType "CustomerEndpoint" SystemAttributesProperty = SystemEndpointAttributesProperty
  set :: PropertyType "CustomerEndpoint" SystemAttributesProperty
-> SystemAttributesProperty -> SystemAttributesProperty
set PropertyType "CustomerEndpoint" SystemAttributesProperty
newValue SystemAttributesProperty {Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: SystemAttributesProperty -> ()
customerEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
name :: SystemAttributesProperty -> Maybe (Value Text)
systemEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
    = SystemAttributesProperty
        {customerEndpoint :: Maybe SystemEndpointAttributesProperty
customerEndpoint = SystemEndpointAttributesProperty
-> Maybe SystemEndpointAttributesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomerEndpoint" SystemAttributesProperty
SystemEndpointAttributesProperty
newValue, Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
instance Property "Name" SystemAttributesProperty where
  type PropertyType "Name" SystemAttributesProperty = Value Prelude.Text
  set :: PropertyType "Name" SystemAttributesProperty
-> SystemAttributesProperty -> SystemAttributesProperty
set PropertyType "Name" SystemAttributesProperty
newValue SystemAttributesProperty {Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: SystemAttributesProperty -> ()
customerEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
name :: SystemAttributesProperty -> Maybe (Value Text)
systemEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
    = SystemAttributesProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" SystemAttributesProperty
Value Text
newValue, Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
systemEndpoint :: Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
instance Property "SystemEndpoint" SystemAttributesProperty where
  type PropertyType "SystemEndpoint" SystemAttributesProperty = SystemEndpointAttributesProperty
  set :: PropertyType "SystemEndpoint" SystemAttributesProperty
-> SystemAttributesProperty -> SystemAttributesProperty
set PropertyType "SystemEndpoint" SystemAttributesProperty
newValue SystemAttributesProperty {Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: SystemAttributesProperty -> ()
customerEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
name :: SystemAttributesProperty -> Maybe (Value Text)
systemEndpoint :: SystemAttributesProperty -> Maybe SystemEndpointAttributesProperty
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
systemEndpoint :: Maybe SystemEndpointAttributesProperty
..}
    = SystemAttributesProperty
        {systemEndpoint :: Maybe SystemEndpointAttributesProperty
systemEndpoint = SystemEndpointAttributesProperty
-> Maybe SystemEndpointAttributesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SystemEndpoint" SystemAttributesProperty
SystemEndpointAttributesProperty
newValue, Maybe (Value Text)
Maybe SystemEndpointAttributesProperty
()
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
customerEndpoint :: Maybe SystemEndpointAttributesProperty
name :: Maybe (Value Text)
..}