/** * 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 Synthetics { namespace Model { /** */ class CreateGroupRequest : public SyntheticsRequest { public: AWS_SYNTHETICS_API CreateGroupRequest(); // 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 "CreateGroup"; } AWS_SYNTHETICS_API Aws::String SerializePayload() const override; /** *

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

The name for the group. It can include any Unicode characters.

The * names for all groups in your account, across all Regions, must be unique.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

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

A list of key-value pairs to associate with the group. You can associate as * many as 50 tags with a group.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateGroupRequest& 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 Synthetics } // namespace Aws