AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
44 template<typename DescriptionT = Aws::String>
45 CreateSegmentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 CreateSegmentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
67 inline const Aws::String& GetPattern() const { return m_pattern; }
68 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
69 template<typename PatternT = Aws::String>
70 void SetPattern(PatternT&& value) { m_patternHasBeenSet = true; m_pattern = std::forward<PatternT>(value); }
71 template<typename PatternT = Aws::String>
72 CreateSegmentRequest& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
74
76
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 CreateSegmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
94 CreateSegmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
95 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
96 }
98 private:
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_pattern;
107 bool m_patternHasBeenSet = false;
108
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CloudWatchEvidently
115} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHEVIDENTLY_API CreateSegmentRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSegmentRequest & WithDescription(DescriptionT &&value)
CreateSegmentRequest & WithPattern(PatternT &&value)
virtual const char * GetServiceRequestName() const override
CreateSegmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&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