AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WriteSegmentRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/SegmentDimensions.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/SegmentGroupList.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_PINPOINT_API WriteSegmentRequest();
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const SegmentDimensions& GetDimensions() const{ return m_dimensions; }
50 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
51 inline void SetDimensions(const SegmentDimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
52 inline void SetDimensions(SegmentDimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
53 inline WriteSegmentRequest& WithDimensions(const SegmentDimensions& value) { SetDimensions(value); return *this;}
54 inline WriteSegmentRequest& WithDimensions(SegmentDimensions&& value) { SetDimensions(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline WriteSegmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline WriteSegmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline WriteSegmentRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
77 inline const SegmentGroupList& GetSegmentGroups() const{ return m_segmentGroups; }
78 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
79 inline void SetSegmentGroups(const SegmentGroupList& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = value; }
80 inline void SetSegmentGroups(SegmentGroupList&& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = std::move(value); }
81 inline WriteSegmentRequest& WithSegmentGroups(const SegmentGroupList& value) { SetSegmentGroups(value); return *this;}
82 inline WriteSegmentRequest& WithSegmentGroups(SegmentGroupList&& value) { SetSegmentGroups(std::move(value)); return *this;}
84
86
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline WriteSegmentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
104 inline WriteSegmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
105 inline WriteSegmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
106 inline WriteSegmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
107 inline WriteSegmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline WriteSegmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
109 inline WriteSegmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
110 inline WriteSegmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
111 inline WriteSegmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
113 private:
114
115 SegmentDimensions m_dimensions;
116 bool m_dimensionsHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 SegmentGroupList m_segmentGroups;
122 bool m_segmentGroupsHasBeenSet = false;
123
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Pinpoint
130} // namespace Aws
void SetSegmentGroups(SegmentGroupList &&value)
WriteSegmentRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WriteSegmentRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetSegmentGroups(const SegmentGroupList &value)
AWS_PINPOINT_API WriteSegmentRequest(Aws::Utils::Json::JsonView jsonValue)
const SegmentDimensions & GetDimensions() const
void SetDimensions(const SegmentDimensions &value)
WriteSegmentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDimensions(SegmentDimensions &&value)
AWS_PINPOINT_API WriteSegmentRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
WriteSegmentRequest & AddTags(const char *key, const char *value)
WriteSegmentRequest & WithName(Aws::String &&value)
WriteSegmentRequest & AddTags(Aws::String &&key, const Aws::String &value)
WriteSegmentRequest & WithSegmentGroups(SegmentGroupList &&value)
WriteSegmentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
WriteSegmentRequest & WithSegmentGroups(const SegmentGroupList &value)
WriteSegmentRequest & AddTags(const Aws::String &key, Aws::String &&value)
const SegmentGroupList & GetSegmentGroups() const
WriteSegmentRequest & AddTags(Aws::String &&key, Aws::String &&value)
WriteSegmentRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
WriteSegmentRequest & WithName(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
WriteSegmentRequest & WithName(const char *value)
WriteSegmentRequest & WithDimensions(const SegmentDimensions &value)
WriteSegmentRequest & WithDimensions(SegmentDimensions &&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
Aws::Utils::Json::JsonValue JsonValue