AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BaseKpiResult.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/ResultRow.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 BaseKpiResult() = default;
38 AWS_PINPOINT_API BaseKpiResult(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<ResultRow>& GetRows() const { return m_rows; }
50 inline bool RowsHasBeenSet() const { return m_rowsHasBeenSet; }
51 template<typename RowsT = Aws::Vector<ResultRow>>
52 void SetRows(RowsT&& value) { m_rowsHasBeenSet = true; m_rows = std::forward<RowsT>(value); }
53 template<typename RowsT = Aws::Vector<ResultRow>>
54 BaseKpiResult& WithRows(RowsT&& value) { SetRows(std::forward<RowsT>(value)); return *this;}
55 template<typename RowsT = ResultRow>
56 BaseKpiResult& AddRows(RowsT&& value) { m_rowsHasBeenSet = true; m_rows.emplace_back(std::forward<RowsT>(value)); return *this; }
58 private:
59
61 bool m_rowsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Pinpoint
66} // namespace Aws
AWS_PINPOINT_API BaseKpiResult & operator=(Aws::Utils::Json::JsonView jsonValue)
BaseKpiResult & AddRows(RowsT &&value)
BaseKpiResult & WithRows(RowsT &&value)
AWS_PINPOINT_API BaseKpiResult(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ResultRow > & GetRows() const
AWS_PINPOINT_API BaseKpiResult()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue