/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class UpdateEventConfigurationsRequest : public IoTRequest { public: AWS_IOT_API UpdateEventConfigurationsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEventConfigurations"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The new event configuration values.

*/ inline const Aws::Map& GetEventConfigurations() const{ return m_eventConfigurations; } /** *

The new event configuration values.

*/ inline bool EventConfigurationsHasBeenSet() const { return m_eventConfigurationsHasBeenSet; } /** *

The new event configuration values.

*/ inline void SetEventConfigurations(const Aws::Map& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations = value; } /** *

The new event configuration values.

*/ inline void SetEventConfigurations(Aws::Map&& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations = std::move(value); } /** *

The new event configuration values.

*/ inline UpdateEventConfigurationsRequest& WithEventConfigurations(const Aws::Map& value) { SetEventConfigurations(value); return *this;} /** *

The new event configuration values.

*/ inline UpdateEventConfigurationsRequest& WithEventConfigurations(Aws::Map&& value) { SetEventConfigurations(std::move(value)); return *this;} /** *

The new event configuration values.

*/ inline UpdateEventConfigurationsRequest& AddEventConfigurations(const EventType& key, const Configuration& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(key, value); return *this; } /** *

The new event configuration values.

*/ inline UpdateEventConfigurationsRequest& AddEventConfigurations(EventType&& key, const Configuration& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(std::move(key), value); return *this; } /** *

The new event configuration values.

*/ inline UpdateEventConfigurationsRequest& AddEventConfigurations(const EventType& key, Configuration&& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(key, std::move(value)); return *this; } /** *

The new event configuration values.

*/ inline UpdateEventConfigurationsRequest& AddEventConfigurations(EventType&& key, Configuration&& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(std::move(key), std::move(value)); return *this; } private: Aws::Map m_eventConfigurations; bool m_eventConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws