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

Specifies the display name of an application and the tags to associate with * the application.

See Also:

AWS * API Reference

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

The display name of the application. This name is displayed as the Project * name on the Amazon Pinpoint console.

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

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A string-to-string map of key-value pairs that defines the tags to associate * with the application. Each tag consists of a required tag key and an associated * tag value.

*/ inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws