AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/lakeformation/model/CatalogResource.h>
9#include <aws/lakeformation/model/DatabaseResource.h>
10#include <aws/lakeformation/model/TableResource.h>
11#include <aws/lakeformation/model/TableWithColumnsResource.h>
12#include <aws/lakeformation/model/DataLocationResource.h>
13#include <aws/lakeformation/model/DataCellsFilterResource.h>
14#include <aws/lakeformation/model/LFTagKeyResource.h>
15#include <aws/lakeformation/model/LFTagPolicyResource.h>
16#include <aws/lakeformation/model/LFTagExpressionResource.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace LakeFormation
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_LAKEFORMATION_API Resource() = default;
43 AWS_LAKEFORMATION_API Resource(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LAKEFORMATION_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
55 inline const CatalogResource& GetCatalog() const { return m_catalog; }
56 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
57 template<typename CatalogT = CatalogResource>
58 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
59 template<typename CatalogT = CatalogResource>
60 Resource& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
62
64
69 inline const DatabaseResource& GetDatabase() const { return m_database; }
70 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
71 template<typename DatabaseT = DatabaseResource>
72 void SetDatabase(DatabaseT&& value) { m_databaseHasBeenSet = true; m_database = std::forward<DatabaseT>(value); }
73 template<typename DatabaseT = DatabaseResource>
74 Resource& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
76
78
82 inline const TableResource& GetTable() const { return m_table; }
83 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
84 template<typename TableT = TableResource>
85 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
86 template<typename TableT = TableResource>
87 Resource& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
89
91
96 inline const TableWithColumnsResource& GetTableWithColumns() const { return m_tableWithColumns; }
97 inline bool TableWithColumnsHasBeenSet() const { return m_tableWithColumnsHasBeenSet; }
98 template<typename TableWithColumnsT = TableWithColumnsResource>
99 void SetTableWithColumns(TableWithColumnsT&& value) { m_tableWithColumnsHasBeenSet = true; m_tableWithColumns = std::forward<TableWithColumnsT>(value); }
100 template<typename TableWithColumnsT = TableWithColumnsResource>
101 Resource& WithTableWithColumns(TableWithColumnsT&& value) { SetTableWithColumns(std::forward<TableWithColumnsT>(value)); return *this;}
103
105
109 inline const DataLocationResource& GetDataLocation() const { return m_dataLocation; }
110 inline bool DataLocationHasBeenSet() const { return m_dataLocationHasBeenSet; }
111 template<typename DataLocationT = DataLocationResource>
112 void SetDataLocation(DataLocationT&& value) { m_dataLocationHasBeenSet = true; m_dataLocation = std::forward<DataLocationT>(value); }
113 template<typename DataLocationT = DataLocationResource>
114 Resource& WithDataLocation(DataLocationT&& value) { SetDataLocation(std::forward<DataLocationT>(value)); return *this;}
116
118
121 inline const DataCellsFilterResource& GetDataCellsFilter() const { return m_dataCellsFilter; }
122 inline bool DataCellsFilterHasBeenSet() const { return m_dataCellsFilterHasBeenSet; }
123 template<typename DataCellsFilterT = DataCellsFilterResource>
124 void SetDataCellsFilter(DataCellsFilterT&& value) { m_dataCellsFilterHasBeenSet = true; m_dataCellsFilter = std::forward<DataCellsFilterT>(value); }
125 template<typename DataCellsFilterT = DataCellsFilterResource>
126 Resource& WithDataCellsFilter(DataCellsFilterT&& value) { SetDataCellsFilter(std::forward<DataCellsFilterT>(value)); return *this;}
128
130
133 inline const LFTagKeyResource& GetLFTag() const { return m_lFTag; }
134 inline bool LFTagHasBeenSet() const { return m_lFTagHasBeenSet; }
135 template<typename LFTagT = LFTagKeyResource>
136 void SetLFTag(LFTagT&& value) { m_lFTagHasBeenSet = true; m_lFTag = std::forward<LFTagT>(value); }
137 template<typename LFTagT = LFTagKeyResource>
138 Resource& WithLFTag(LFTagT&& value) { SetLFTag(std::forward<LFTagT>(value)); return *this;}
140
142
146 inline const LFTagPolicyResource& GetLFTagPolicy() const { return m_lFTagPolicy; }
147 inline bool LFTagPolicyHasBeenSet() const { return m_lFTagPolicyHasBeenSet; }
148 template<typename LFTagPolicyT = LFTagPolicyResource>
149 void SetLFTagPolicy(LFTagPolicyT&& value) { m_lFTagPolicyHasBeenSet = true; m_lFTagPolicy = std::forward<LFTagPolicyT>(value); }
150 template<typename LFTagPolicyT = LFTagPolicyResource>
151 Resource& WithLFTagPolicy(LFTagPolicyT&& value) { SetLFTagPolicy(std::forward<LFTagPolicyT>(value)); return *this;}
153
155
159 inline const LFTagExpressionResource& GetLFTagExpression() const { return m_lFTagExpression; }
160 inline bool LFTagExpressionHasBeenSet() const { return m_lFTagExpressionHasBeenSet; }
161 template<typename LFTagExpressionT = LFTagExpressionResource>
162 void SetLFTagExpression(LFTagExpressionT&& value) { m_lFTagExpressionHasBeenSet = true; m_lFTagExpression = std::forward<LFTagExpressionT>(value); }
163 template<typename LFTagExpressionT = LFTagExpressionResource>
164 Resource& WithLFTagExpression(LFTagExpressionT&& value) { SetLFTagExpression(std::forward<LFTagExpressionT>(value)); return *this;}
166 private:
167
168 CatalogResource m_catalog;
169 bool m_catalogHasBeenSet = false;
170
171 DatabaseResource m_database;
172 bool m_databaseHasBeenSet = false;
173
174 TableResource m_table;
175 bool m_tableHasBeenSet = false;
176
177 TableWithColumnsResource m_tableWithColumns;
178 bool m_tableWithColumnsHasBeenSet = false;
179
180 DataLocationResource m_dataLocation;
181 bool m_dataLocationHasBeenSet = false;
182
183 DataCellsFilterResource m_dataCellsFilter;
184 bool m_dataCellsFilterHasBeenSet = false;
185
186 LFTagKeyResource m_lFTag;
187 bool m_lFTagHasBeenSet = false;
188
189 LFTagPolicyResource m_lFTagPolicy;
190 bool m_lFTagPolicyHasBeenSet = false;
191
192 LFTagExpressionResource m_lFTagExpression;
193 bool m_lFTagExpressionHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace LakeFormation
198} // namespace Aws
void SetDatabase(DatabaseT &&value)
Definition Resource.h:72
const LFTagKeyResource & GetLFTag() const
Definition Resource.h:133
Resource & WithCatalog(CatalogT &&value)
Definition Resource.h:60
const TableResource & GetTable() const
Definition Resource.h:82
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAKEFORMATION_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithLFTag(LFTagT &&value)
Definition Resource.h:138
Resource & WithLFTagPolicy(LFTagPolicyT &&value)
Definition Resource.h:151
Resource & WithDataLocation(DataLocationT &&value)
Definition Resource.h:114
const DataCellsFilterResource & GetDataCellsFilter() const
Definition Resource.h:121
Resource & WithTable(TableT &&value)
Definition Resource.h:87
const TableWithColumnsResource & GetTableWithColumns() const
Definition Resource.h:96
const LFTagPolicyResource & GetLFTagPolicy() const
Definition Resource.h:146
void SetTable(TableT &&value)
Definition Resource.h:85
const CatalogResource & GetCatalog() const
Definition Resource.h:55
void SetLFTag(LFTagT &&value)
Definition Resource.h:136
void SetCatalog(CatalogT &&value)
Definition Resource.h:58
void SetLFTagPolicy(LFTagPolicyT &&value)
Definition Resource.h:149
void SetTableWithColumns(TableWithColumnsT &&value)
Definition Resource.h:99
const LFTagExpressionResource & GetLFTagExpression() const
Definition Resource.h:159
void SetDataLocation(DataLocationT &&value)
Definition Resource.h:112
void SetLFTagExpression(LFTagExpressionT &&value)
Definition Resource.h:162
Resource & WithDatabase(DatabaseT &&value)
Definition Resource.h:74
AWS_LAKEFORMATION_API Resource()=default
Resource & WithDataCellsFilter(DataCellsFilterT &&value)
Definition Resource.h:126
Resource & WithTableWithColumns(TableWithColumnsT &&value)
Definition Resource.h:101
void SetDataCellsFilter(DataCellsFilterT &&value)
Definition Resource.h:124
AWS_LAKEFORMATION_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithLFTagExpression(LFTagExpressionT &&value)
Definition Resource.h:164
const DataLocationResource & GetDataLocation() const
Definition Resource.h:109
const DatabaseResource & GetDatabase() const
Definition Resource.h:69
Aws::Utils::Json::JsonValue JsonValue