AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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