/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT1ClickProjects { namespace Model { /** *

An object defining the template for a placement.

See Also:

* AWS * API Reference

*/ class PlacementTemplate { public: AWS_IOT1CLICKPROJECTS_API PlacementTemplate(); AWS_IOT1CLICKPROJECTS_API PlacementTemplate(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKPROJECTS_API PlacementTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKPROJECTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline const Aws::Map& GetDefaultAttributes() const{ return m_defaultAttributes; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline bool DefaultAttributesHasBeenSet() const { return m_defaultAttributesHasBeenSet; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline void SetDefaultAttributes(const Aws::Map& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes = value; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline void SetDefaultAttributes(Aws::Map&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes = std::move(value); } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& WithDefaultAttributes(const Aws::Map& value) { SetDefaultAttributes(value); return *this;} /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& WithDefaultAttributes(Aws::Map&& value) { SetDefaultAttributes(std::move(value)); return *this;} /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(const Aws::String& key, const Aws::String& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, value); return *this; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(Aws::String&& key, const Aws::String& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(std::move(key), value); return *this; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(const Aws::String& key, Aws::String&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, std::move(value)); return *this; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(Aws::String&& key, Aws::String&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(std::move(key), std::move(value)); return *this; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(const char* key, Aws::String&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, std::move(value)); return *this; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(Aws::String&& key, const char* value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(std::move(key), value); return *this; } /** *

The default attributes (key/value pairs) to be applied to all placements * using this template.

*/ inline PlacementTemplate& AddDefaultAttributes(const char* key, const char* value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, value); return *this; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline const Aws::Map& GetDeviceTemplates() const{ return m_deviceTemplates; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline bool DeviceTemplatesHasBeenSet() const { return m_deviceTemplatesHasBeenSet; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline void SetDeviceTemplates(const Aws::Map& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates = value; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline void SetDeviceTemplates(Aws::Map&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates = std::move(value); } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& WithDeviceTemplates(const Aws::Map& value) { SetDeviceTemplates(value); return *this;} /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& WithDeviceTemplates(Aws::Map&& value) { SetDeviceTemplates(std::move(value)); return *this;} /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& AddDeviceTemplates(const Aws::String& key, const DeviceTemplate& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, value); return *this; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& AddDeviceTemplates(Aws::String&& key, const DeviceTemplate& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(std::move(key), value); return *this; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& AddDeviceTemplates(const Aws::String& key, DeviceTemplate&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, std::move(value)); return *this; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& AddDeviceTemplates(Aws::String&& key, DeviceTemplate&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(std::move(key), std::move(value)); return *this; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& AddDeviceTemplates(const char* key, DeviceTemplate&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, std::move(value)); return *this; } /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ inline PlacementTemplate& AddDeviceTemplates(const char* key, const DeviceTemplate& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, value); return *this; } private: Aws::Map m_defaultAttributes; bool m_defaultAttributesHasBeenSet = false; Aws::Map m_deviceTemplates; bool m_deviceTemplatesHasBeenSet = false; }; } // namespace Model } // namespace IoT1ClickProjects } // namespace Aws