/** * 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 IoTAnalytics { namespace Model { /** *

An activity that adds other attributes based on existing attributes in the * message.

See Also:

AWS * API Reference

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

The name of the addAttributes activity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

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

A list of 1-50 AttributeNameMapping objects that map an existing * attribute to a new attribute.

The existing attributes remain in * the message, so if you want to remove the originals, use * RemoveAttributeActivity.

*/ inline AddAttributesActivity& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

The next activity in the pipeline.

*/ inline const Aws::String& GetNext() const{ return m_next; } /** *

The next activity in the pipeline.

*/ inline bool NextHasBeenSet() const { return m_nextHasBeenSet; } /** *

The next activity in the pipeline.

*/ inline void SetNext(const Aws::String& value) { m_nextHasBeenSet = true; m_next = value; } /** *

The next activity in the pipeline.

*/ inline void SetNext(Aws::String&& value) { m_nextHasBeenSet = true; m_next = std::move(value); } /** *

The next activity in the pipeline.

*/ inline void SetNext(const char* value) { m_nextHasBeenSet = true; m_next.assign(value); } /** *

The next activity in the pipeline.

*/ inline AddAttributesActivity& WithNext(const Aws::String& value) { SetNext(value); return *this;} /** *

The next activity in the pipeline.

*/ inline AddAttributesActivity& WithNext(Aws::String&& value) { SetNext(std::move(value)); return *this;} /** *

The next activity in the pipeline.

*/ inline AddAttributesActivity& WithNext(const char* value) { SetNext(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_next; bool m_nextHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws