AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SegmentGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/Group.h>
10#include <aws/customer-profiles/model/IncludeOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
30 public:
31 AWS_CUSTOMERPROFILES_API SegmentGroup() = default;
32 AWS_CUSTOMERPROFILES_API SegmentGroup(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API SegmentGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Group>& GetGroups() const { return m_groups; }
41 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
42 template <typename GroupsT = Aws::Vector<Group>>
43 void SetGroups(GroupsT&& value) {
44 m_groupsHasBeenSet = true;
45 m_groups = std::forward<GroupsT>(value);
46 }
47 template <typename GroupsT = Aws::Vector<Group>>
48 SegmentGroup& WithGroups(GroupsT&& value) {
49 SetGroups(std::forward<GroupsT>(value));
50 return *this;
51 }
52 template <typename GroupsT = Group>
53 SegmentGroup& AddGroups(GroupsT&& value) {
54 m_groupsHasBeenSet = true;
55 m_groups.emplace_back(std::forward<GroupsT>(value));
56 return *this;
57 }
59
61
65 inline IncludeOptions GetInclude() const { return m_include; }
66 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
67 inline void SetInclude(IncludeOptions value) {
68 m_includeHasBeenSet = true;
69 m_include = value;
70 }
72 SetInclude(value);
73 return *this;
74 }
76 private:
77 Aws::Vector<Group> m_groups;
78
80 bool m_groupsHasBeenSet = false;
81 bool m_includeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CustomerProfiles
86} // namespace Aws
void SetInclude(IncludeOptions value)
AWS_CUSTOMERPROFILES_API SegmentGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API SegmentGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API SegmentGroup()=default
SegmentGroup & WithInclude(IncludeOptions value)
SegmentGroup & AddGroups(GroupsT &&value)
SegmentGroup & WithGroups(GroupsT &&value)
const Aws::Vector< Group > & GetGroups() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue