AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSegmentRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvidently
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVIDENTLY_API CreateSegmentRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSegment"; }
32
33 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDescription() const{ return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
43 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
44 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
45 inline CreateSegmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
46 inline CreateSegmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
47 inline CreateSegmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
49
51
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline CreateSegmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline CreateSegmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline CreateSegmentRequest& WithName(const char* value) { SetName(value); return *this;}
63
65
71 inline const Aws::String& GetPattern() const{ return m_pattern; }
72 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
73 inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; }
74 inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
75 inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); }
76 inline CreateSegmentRequest& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
77 inline CreateSegmentRequest& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;}
78 inline CreateSegmentRequest& WithPattern(const char* value) { SetPattern(value); return *this;}
80
82
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline CreateSegmentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
98 inline CreateSegmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
99 inline CreateSegmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100 inline CreateSegmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline CreateSegmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
102 inline CreateSegmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
103 inline CreateSegmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
104 inline CreateSegmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateSegmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 private:
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::String m_pattern;
116 bool m_patternHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CloudWatchEvidently
124} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
CreateSegmentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSegmentRequest & WithPattern(Aws::String &&value)
CreateSegmentRequest & WithDescription(const Aws::String &value)
CreateSegmentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSegmentRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSegmentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSegmentRequest & AddTags(const char *key, const char *value)
CreateSegmentRequest & WithPattern(const char *value)
CreateSegmentRequest & AddTags(Aws::String &&key, const char *value)
CreateSegmentRequest & WithPattern(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API CreateSegmentRequest()
virtual const char * GetServiceRequestName() const override
CreateSegmentRequest & WithName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSegmentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSegmentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSegmentRequest & WithDescription(Aws::String &&value)
CreateSegmentRequest & WithDescription(const char *value)
CreateSegmentRequest & WithName(const char *value)
CreateSegmentRequest & WithName(const Aws::String &value)
CreateSegmentRequest & AddTags(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String