AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResultRow.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/ResultRowValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API ResultRow() = default;
38 AWS_PINPOINT_API ResultRow(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API ResultRow& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<ResultRowValue>& GetGroupedBys() const { return m_groupedBys; }
50 inline bool GroupedBysHasBeenSet() const { return m_groupedBysHasBeenSet; }
51 template<typename GroupedBysT = Aws::Vector<ResultRowValue>>
52 void SetGroupedBys(GroupedBysT&& value) { m_groupedBysHasBeenSet = true; m_groupedBys = std::forward<GroupedBysT>(value); }
53 template<typename GroupedBysT = Aws::Vector<ResultRowValue>>
54 ResultRow& WithGroupedBys(GroupedBysT&& value) { SetGroupedBys(std::forward<GroupedBysT>(value)); return *this;}
55 template<typename GroupedBysT = ResultRowValue>
56 ResultRow& AddGroupedBys(GroupedBysT&& value) { m_groupedBysHasBeenSet = true; m_groupedBys.emplace_back(std::forward<GroupedBysT>(value)); return *this; }
58
60
64 inline const Aws::Vector<ResultRowValue>& GetValues() const { return m_values; }
65 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
66 template<typename ValuesT = Aws::Vector<ResultRowValue>>
67 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
68 template<typename ValuesT = Aws::Vector<ResultRowValue>>
69 ResultRow& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
70 template<typename ValuesT = ResultRowValue>
71 ResultRow& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
73 private:
74
75 Aws::Vector<ResultRowValue> m_groupedBys;
76 bool m_groupedBysHasBeenSet = false;
77
79 bool m_valuesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Pinpoint
84} // 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:69
ResultRow & AddValues(ValuesT &&value)
Definition ResultRow.h:71
void SetGroupedBys(GroupedBysT &&value)
Definition ResultRow.h:52
const Aws::Vector< ResultRowValue > & GetGroupedBys() const
Definition ResultRow.h:49
ResultRow & WithGroupedBys(GroupedBysT &&value)
Definition ResultRow.h:54
ResultRow & AddGroupedBys(GroupedBysT &&value)
Definition ResultRow.h:56
const Aws::Vector< ResultRowValue > & GetValues() const
Definition ResultRow.h:64
AWS_PINPOINT_API ResultRow & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValues(ValuesT &&value)
Definition ResultRow.h:67
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue