AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DimensionsT = SegmentDimensions>
52 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
53 template<typename DimensionsT = SegmentDimensions>
54 WriteSegmentRequest& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 WriteSegmentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
75 inline const SegmentGroupList& GetSegmentGroups() const { return m_segmentGroups; }
76 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
77 template<typename SegmentGroupsT = SegmentGroupList>
78 void SetSegmentGroups(SegmentGroupsT&& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = std::forward<SegmentGroupsT>(value); }
79 template<typename SegmentGroupsT = SegmentGroupList>
80 WriteSegmentRequest& WithSegmentGroups(SegmentGroupsT&& value) { SetSegmentGroups(std::forward<SegmentGroupsT>(value)); return *this;}
82
84
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 WriteSegmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 WriteSegmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
106 }
108 private:
109
110 SegmentDimensions m_dimensions;
111 bool m_dimensionsHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 SegmentGroupList m_segmentGroups;
117 bool m_segmentGroupsHasBeenSet = false;
118
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Pinpoint
125} // 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