AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SegmentGroupList.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/Include.h>
10#include <aws/pinpoint/model/SegmentGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
31 public:
32 AWS_PINPOINT_API SegmentGroupList() = default;
33 AWS_PINPOINT_API SegmentGroupList(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<SegmentGroup>& GetGroups() const { return m_groups; }
43 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
44 template <typename GroupsT = Aws::Vector<SegmentGroup>>
45 void SetGroups(GroupsT&& value) {
46 m_groupsHasBeenSet = true;
47 m_groups = std::forward<GroupsT>(value);
48 }
49 template <typename GroupsT = Aws::Vector<SegmentGroup>>
50 SegmentGroupList& WithGroups(GroupsT&& value) {
51 SetGroups(std::forward<GroupsT>(value));
52 return *this;
53 }
54 template <typename GroupsT = SegmentGroup>
55 SegmentGroupList& AddGroups(GroupsT&& value) {
56 m_groupsHasBeenSet = true;
57 m_groups.emplace_back(std::forward<GroupsT>(value));
58 return *this;
59 }
61
63
68 inline Include GetInclude() const { return m_include; }
69 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
70 inline void SetInclude(Include value) {
71 m_includeHasBeenSet = true;
72 m_include = value;
73 }
75 SetInclude(value);
76 return *this;
77 }
79 private:
81
82 Include m_include{Include::NOT_SET};
83 bool m_groupsHasBeenSet = false;
84 bool m_includeHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Pinpoint
89} // namespace Aws
SegmentGroupList & WithGroups(GroupsT &&value)
SegmentGroupList & WithInclude(Include value)
SegmentGroupList & AddGroups(GroupsT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API SegmentGroupList()=default
const Aws::Vector< SegmentGroup > & GetGroups() const
AWS_PINPOINT_API SegmentGroupList & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API SegmentGroupList(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue