AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SnapshotFile.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/SnapshotFileFormatType.h>
10#include <aws/quicksight/model/SnapshotFileSheetSelection.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
32 public:
33 AWS_QUICKSIGHT_API SnapshotFile() = default;
34 AWS_QUICKSIGHT_API SnapshotFile(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API SnapshotFile& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::Vector<SnapshotFileSheetSelection>& GetSheetSelections() const { return m_sheetSelections; }
47 inline bool SheetSelectionsHasBeenSet() const { return m_sheetSelectionsHasBeenSet; }
48 template <typename SheetSelectionsT = Aws::Vector<SnapshotFileSheetSelection>>
49 void SetSheetSelections(SheetSelectionsT&& value) {
50 m_sheetSelectionsHasBeenSet = true;
51 m_sheetSelections = std::forward<SheetSelectionsT>(value);
52 }
53 template <typename SheetSelectionsT = Aws::Vector<SnapshotFileSheetSelection>>
54 SnapshotFile& WithSheetSelections(SheetSelectionsT&& value) {
55 SetSheetSelections(std::forward<SheetSelectionsT>(value));
56 return *this;
57 }
58 template <typename SheetSelectionsT = SnapshotFileSheetSelection>
59 SnapshotFile& AddSheetSelections(SheetSelectionsT&& value) {
60 m_sheetSelectionsHasBeenSet = true;
61 m_sheetSelections.emplace_back(std::forward<SheetSelectionsT>(value));
62 return *this;
63 }
65
67
71 inline SnapshotFileFormatType GetFormatType() const { return m_formatType; }
72 inline bool FormatTypeHasBeenSet() const { return m_formatTypeHasBeenSet; }
74 m_formatTypeHasBeenSet = true;
75 m_formatType = value;
76 }
78 SetFormatType(value);
79 return *this;
80 }
82 private:
84
86 bool m_sheetSelectionsHasBeenSet = false;
87 bool m_formatTypeHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace QuickSight
92} // namespace Aws
SnapshotFile & AddSheetSelections(SheetSelectionsT &&value)
AWS_QUICKSIGHT_API SnapshotFile(Aws::Utils::Json::JsonView jsonValue)
SnapshotFile & WithFormatType(SnapshotFileFormatType value)
void SetSheetSelections(SheetSelectionsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API SnapshotFile & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SnapshotFileSheetSelection > & GetSheetSelections() const
void SetFormatType(SnapshotFileFormatType value)
SnapshotFile & WithSheetSelections(SheetSelectionsT &&value)
SnapshotFileFormatType GetFormatType() const
AWS_QUICKSIGHT_API SnapshotFile()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue