AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PivotConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/PivotedLabel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API PivotConfiguration() = default;
33 AWS_QUICKSIGHT_API PivotConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetLabelColumnName() const { return m_labelColumnName; }
43 inline bool LabelColumnNameHasBeenSet() const { return m_labelColumnNameHasBeenSet; }
44 template <typename LabelColumnNameT = Aws::String>
45 void SetLabelColumnName(LabelColumnNameT&& value) {
46 m_labelColumnNameHasBeenSet = true;
47 m_labelColumnName = std::forward<LabelColumnNameT>(value);
48 }
49 template <typename LabelColumnNameT = Aws::String>
50 PivotConfiguration& WithLabelColumnName(LabelColumnNameT&& value) {
51 SetLabelColumnName(std::forward<LabelColumnNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<PivotedLabel>& GetPivotedLabels() const { return m_pivotedLabels; }
61 inline bool PivotedLabelsHasBeenSet() const { return m_pivotedLabelsHasBeenSet; }
62 template <typename PivotedLabelsT = Aws::Vector<PivotedLabel>>
63 void SetPivotedLabels(PivotedLabelsT&& value) {
64 m_pivotedLabelsHasBeenSet = true;
65 m_pivotedLabels = std::forward<PivotedLabelsT>(value);
66 }
67 template <typename PivotedLabelsT = Aws::Vector<PivotedLabel>>
68 PivotConfiguration& WithPivotedLabels(PivotedLabelsT&& value) {
69 SetPivotedLabels(std::forward<PivotedLabelsT>(value));
70 return *this;
71 }
72 template <typename PivotedLabelsT = PivotedLabel>
73 PivotConfiguration& AddPivotedLabels(PivotedLabelsT&& value) {
74 m_pivotedLabelsHasBeenSet = true;
75 m_pivotedLabels.emplace_back(std::forward<PivotedLabelsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_labelColumnName;
81
82 Aws::Vector<PivotedLabel> m_pivotedLabels;
83 bool m_labelColumnNameHasBeenSet = false;
84 bool m_pivotedLabelsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace QuickSight
89} // namespace Aws
void SetPivotedLabels(PivotedLabelsT &&value)
const Aws::String & GetLabelColumnName() const
PivotConfiguration & WithLabelColumnName(LabelColumnNameT &&value)
PivotConfiguration & AddPivotedLabels(PivotedLabelsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PivotedLabel > & GetPivotedLabels() const
void SetLabelColumnName(LabelColumnNameT &&value)
AWS_QUICKSIGHT_API PivotConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API PivotConfiguration()=default
AWS_QUICKSIGHT_API PivotConfiguration(Aws::Utils::Json::JsonView jsonValue)
PivotConfiguration & WithPivotedLabels(PivotedLabelsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue