/** * 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 CloudWatchEvidently { namespace Model { /** */ class CreateSegmentRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API CreateSegmentRequest(); // 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 "CreateSegment"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; /** *

An optional description for this segment.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

An optional description for this segment.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

An optional description for this segment.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

An optional description for this segment.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

An optional description for this segment.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

An optional description for this segment.

*/ inline CreateSegmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

An optional description for this segment.

*/ inline CreateSegmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

An optional description for this segment.

*/ inline CreateSegmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A name for the segment.

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

A name for the segment.

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

A name for the segment.

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

A name for the segment.

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

A name for the segment.

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

A name for the segment.

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

A name for the segment.

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

A name for the segment.

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

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline const Aws::String& GetPattern() const{ return m_pattern; } /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; } /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; } /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); } /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); } /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline CreateSegmentRequest& WithPattern(const Aws::String& value) { SetPattern(value); return *this;} /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline CreateSegmentRequest& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;} /** *

The pattern to use for the segment. For more information about pattern * syntax, see * Segment rule pattern syntax.

*/ inline CreateSegmentRequest& WithPattern(const char* value) { SetPattern(value); return *this;} /** *

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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

Assigns one or more tags (key-value pairs) to the segment.

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 * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a segment.

*

For more information, see Tagging * Amazon Web Services resources.

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