AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ResultRow.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/ResultRowValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30class ResultRow {
31 public:
32 AWS_PINPOINT_API ResultRow() = default;
33 AWS_PINPOINT_API ResultRow(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API ResultRow& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<ResultRowValue>& GetGroupedBys() const { return m_groupedBys; }
44 inline bool GroupedBysHasBeenSet() const { return m_groupedBysHasBeenSet; }
45 template <typename GroupedBysT = Aws::Vector<ResultRowValue>>
46 void SetGroupedBys(GroupedBysT&& value) {
47 m_groupedBysHasBeenSet = true;
48 m_groupedBys = std::forward<GroupedBysT>(value);
49 }
50 template <typename GroupedBysT = Aws::Vector<ResultRowValue>>
51 ResultRow& WithGroupedBys(GroupedBysT&& value) {
52 SetGroupedBys(std::forward<GroupedBysT>(value));
53 return *this;
54 }
55 template <typename GroupedBysT = ResultRowValue>
56 ResultRow& AddGroupedBys(GroupedBysT&& value) {
57 m_groupedBysHasBeenSet = true;
58 m_groupedBys.emplace_back(std::forward<GroupedBysT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<ResultRowValue>& GetValues() const { return m_values; }
69 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
70 template <typename ValuesT = Aws::Vector<ResultRowValue>>
71 void SetValues(ValuesT&& value) {
72 m_valuesHasBeenSet = true;
73 m_values = std::forward<ValuesT>(value);
74 }
75 template <typename ValuesT = Aws::Vector<ResultRowValue>>
76 ResultRow& WithValues(ValuesT&& value) {
77 SetValues(std::forward<ValuesT>(value));
78 return *this;
79 }
80 template <typename ValuesT = ResultRowValue>
81 ResultRow& AddValues(ValuesT&& value) {
82 m_valuesHasBeenSet = true;
83 m_values.emplace_back(std::forward<ValuesT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<ResultRowValue> m_groupedBys;
89 bool m_groupedBysHasBeenSet = false;
90
92 bool m_valuesHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Pinpoint
97} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API ResultRow()=default
AWS_PINPOINT_API ResultRow(Aws::Utils::Json::JsonView jsonValue)
ResultRow & WithValues(ValuesT &&value)
Definition ResultRow.h:76
ResultRow & AddValues(ValuesT &&value)
Definition ResultRow.h:81
void SetGroupedBys(GroupedBysT &&value)
Definition ResultRow.h:46
const Aws::Vector< ResultRowValue > & GetGroupedBys() const
Definition ResultRow.h:43
ResultRow & WithGroupedBys(GroupedBysT &&value)
Definition ResultRow.h:51
ResultRow & AddGroupedBys(GroupedBysT &&value)
Definition ResultRow.h:56
const Aws::Vector< ResultRowValue > & GetValues() const
Definition ResultRow.h:68
AWS_PINPOINT_API ResultRow & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValues(ValuesT &&value)
Definition ResultRow.h:71
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue