AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
WriteSegmentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/SegmentDimensions.h>
11#include <aws/pinpoint/model/SegmentGroupList.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
33 public:
34 AWS_PINPOINT_API WriteSegmentRequest() = default;
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const SegmentDimensions& GetDimensions() const { return m_dimensions; }
44 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
45 template <typename DimensionsT = SegmentDimensions>
46 void SetDimensions(DimensionsT&& value) {
47 m_dimensionsHasBeenSet = true;
48 m_dimensions = std::forward<DimensionsT>(value);
49 }
50 template <typename DimensionsT = SegmentDimensions>
51 WriteSegmentRequest& WithDimensions(DimensionsT&& value) {
52 SetDimensions(std::forward<DimensionsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 WriteSegmentRequest& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
81 inline const SegmentGroupList& GetSegmentGroups() const { return m_segmentGroups; }
82 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
83 template <typename SegmentGroupsT = SegmentGroupList>
84 void SetSegmentGroups(SegmentGroupsT&& value) {
85 m_segmentGroupsHasBeenSet = true;
86 m_segmentGroups = std::forward<SegmentGroupsT>(value);
87 }
88 template <typename SegmentGroupsT = SegmentGroupList>
89 WriteSegmentRequest& WithSegmentGroups(SegmentGroupsT&& value) {
90 SetSegmentGroups(std::forward<SegmentGroupsT>(value));
91 return *this;
92 }
94
96
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags = std::forward<TagsT>(value);
115 }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 SetTags(std::forward<TagsT>(value));
119 return *this;
120 }
121 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 WriteSegmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
125 return *this;
126 }
128 private:
129 SegmentDimensions m_dimensions;
130
131 Aws::String m_name;
132
133 SegmentGroupList m_segmentGroups;
134
136 bool m_dimensionsHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_segmentGroupsHasBeenSet = false;
139 bool m_tagsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Pinpoint
144} // namespace Aws
WriteSegmentRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API WriteSegmentRequest(Aws::Utils::Json::JsonView jsonValue)
const SegmentDimensions & GetDimensions() const
WriteSegmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PINPOINT_API WriteSegmentRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API WriteSegmentRequest()=default
const SegmentGroupList & GetSegmentGroups() const
WriteSegmentRequest & WithSegmentGroups(SegmentGroupsT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteSegmentRequest & WithTags(TagsT &&value)
void SetSegmentGroups(SegmentGroupsT &&value)
WriteSegmentRequest & WithDimensions(DimensionsT &&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