AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/DataSourceType.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 DataSourceSummary() = default;
33 AWS_QUICKSIGHT_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 DataSourceSummary& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
60 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
61 template <typename DataSourceIdT = Aws::String>
62 void SetDataSourceId(DataSourceIdT&& value) {
63 m_dataSourceIdHasBeenSet = true;
64 m_dataSourceId = std::forward<DataSourceIdT>(value);
65 }
66 template <typename DataSourceIdT = Aws::String>
67 DataSourceSummary& WithDataSourceId(DataSourceIdT&& value) {
68 SetDataSourceId(std::forward<DataSourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 DataSourceSummary& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline DataSourceType GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(DataSourceType value) {
98 m_typeHasBeenSet = true;
99 m_type = value;
100 }
102 SetType(value);
103 return *this;
104 }
106
108
112 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
113 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
114 template <typename CreatedTimeT = Aws::Utils::DateTime>
115 void SetCreatedTime(CreatedTimeT&& value) {
116 m_createdTimeHasBeenSet = true;
117 m_createdTime = std::forward<CreatedTimeT>(value);
118 }
119 template <typename CreatedTimeT = Aws::Utils::DateTime>
120 DataSourceSummary& WithCreatedTime(CreatedTimeT&& value) {
121 SetCreatedTime(std::forward<CreatedTimeT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
132 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
133 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
134 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
135 m_lastUpdatedTimeHasBeenSet = true;
136 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
137 }
138 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
139 DataSourceSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
140 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_arn;
146
147 Aws::String m_dataSourceId;
148
149 Aws::String m_name;
150
152
153 Aws::Utils::DateTime m_createdTime{};
154
155 Aws::Utils::DateTime m_lastUpdatedTime{};
156 bool m_arnHasBeenSet = false;
157 bool m_dataSourceIdHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_typeHasBeenSet = false;
160 bool m_createdTimeHasBeenSet = false;
161 bool m_lastUpdatedTimeHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace QuickSight
166} // namespace Aws
void SetDataSourceId(DataSourceIdT &&value)
DataSourceSummary & WithName(NameT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDataSourceId() const
const Aws::Utils::DateTime & GetCreatedTime() const
DataSourceSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_QUICKSIGHT_API DataSourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_QUICKSIGHT_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue)
DataSourceSummary & WithArn(ArnT &&value)
DataSourceSummary & WithDataSourceId(DataSourceIdT &&value)
DataSourceSummary & WithType(DataSourceType value)
AWS_QUICKSIGHT_API DataSourceSummary()=default
DataSourceSummary & WithCreatedTime(CreatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue