AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SegmentGroupList.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/Include.h>
10#include <aws/pinpoint/model/SegmentGroup.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 Pinpoint
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINT_API SegmentGroupList() = default;
38 AWS_PINPOINT_API SegmentGroupList(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<SegmentGroup>& GetGroups() const { return m_groups; }
49 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
50 template<typename GroupsT = Aws::Vector<SegmentGroup>>
51 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
52 template<typename GroupsT = Aws::Vector<SegmentGroup>>
53 SegmentGroupList& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
54 template<typename GroupsT = SegmentGroup>
55 SegmentGroupList& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
57
59
64 inline Include GetInclude() const { return m_include; }
65 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
66 inline void SetInclude(Include value) { m_includeHasBeenSet = true; m_include = value; }
67 inline SegmentGroupList& WithInclude(Include value) { SetInclude(value); return *this;}
69 private:
70
72 bool m_groupsHasBeenSet = false;
73
74 Include m_include{Include::NOT_SET};
75 bool m_includeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Pinpoint
80} // 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