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

Contains information about a platform that a component * supports.

See Also:

AWS * API Reference

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

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline ComponentPlatform& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline ComponentPlatform& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The friendly name of the platform. This name helps you identify the * platform.

If you omit this parameter, IoT Greengrass creates a friendly * name from the os and architecture of the platform.

*/ inline ComponentPlatform& WithName(const char* value) { SetName(value); return *this;} /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

A dictionary of attributes for the platform. The IoT Greengrass Core software * defines the os and architecture by default. You can * specify additional platform attributes for a core device when you deploy the * Greengrass nucleus component. For more information, see the Greengrass * nucleus component in the IoT Greengrass V2 Developer Guide.

*/ inline ComponentPlatform& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws