AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace LakeFormation
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_LAKEFORMATION_API Resource();
42 AWS_LAKEFORMATION_API Resource(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LAKEFORMATION_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline const CatalogResource& GetCatalog() const{ return m_catalog; }
55 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
56 inline void SetCatalog(const CatalogResource& value) { m_catalogHasBeenSet = true; m_catalog = value; }
57 inline void SetCatalog(CatalogResource&& value) { m_catalogHasBeenSet = true; m_catalog = std::move(value); }
58 inline Resource& WithCatalog(const CatalogResource& value) { SetCatalog(value); return *this;}
59 inline Resource& WithCatalog(CatalogResource&& value) { SetCatalog(std::move(value)); return *this;}
61
63
68 inline const DatabaseResource& GetDatabase() const{ return m_database; }
69 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
70 inline void SetDatabase(const DatabaseResource& value) { m_databaseHasBeenSet = true; m_database = value; }
71 inline void SetDatabase(DatabaseResource&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
72 inline Resource& WithDatabase(const DatabaseResource& value) { SetDatabase(value); return *this;}
73 inline Resource& WithDatabase(DatabaseResource&& value) { SetDatabase(std::move(value)); return *this;}
75
77
81 inline const TableResource& GetTable() const{ return m_table; }
82 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
83 inline void SetTable(const TableResource& value) { m_tableHasBeenSet = true; m_table = value; }
84 inline void SetTable(TableResource&& value) { m_tableHasBeenSet = true; m_table = std::move(value); }
85 inline Resource& WithTable(const TableResource& value) { SetTable(value); return *this;}
86 inline Resource& WithTable(TableResource&& value) { SetTable(std::move(value)); return *this;}
88
90
95 inline const TableWithColumnsResource& GetTableWithColumns() const{ return m_tableWithColumns; }
96 inline bool TableWithColumnsHasBeenSet() const { return m_tableWithColumnsHasBeenSet; }
97 inline void SetTableWithColumns(const TableWithColumnsResource& value) { m_tableWithColumnsHasBeenSet = true; m_tableWithColumns = value; }
98 inline void SetTableWithColumns(TableWithColumnsResource&& value) { m_tableWithColumnsHasBeenSet = true; m_tableWithColumns = std::move(value); }
99 inline Resource& WithTableWithColumns(const TableWithColumnsResource& value) { SetTableWithColumns(value); return *this;}
100 inline Resource& WithTableWithColumns(TableWithColumnsResource&& value) { SetTableWithColumns(std::move(value)); return *this;}
102
104
108 inline const DataLocationResource& GetDataLocation() const{ return m_dataLocation; }
109 inline bool DataLocationHasBeenSet() const { return m_dataLocationHasBeenSet; }
110 inline void SetDataLocation(const DataLocationResource& value) { m_dataLocationHasBeenSet = true; m_dataLocation = value; }
111 inline void SetDataLocation(DataLocationResource&& value) { m_dataLocationHasBeenSet = true; m_dataLocation = std::move(value); }
112 inline Resource& WithDataLocation(const DataLocationResource& value) { SetDataLocation(value); return *this;}
113 inline Resource& WithDataLocation(DataLocationResource&& value) { SetDataLocation(std::move(value)); return *this;}
115
117
120 inline const DataCellsFilterResource& GetDataCellsFilter() const{ return m_dataCellsFilter; }
121 inline bool DataCellsFilterHasBeenSet() const { return m_dataCellsFilterHasBeenSet; }
122 inline void SetDataCellsFilter(const DataCellsFilterResource& value) { m_dataCellsFilterHasBeenSet = true; m_dataCellsFilter = value; }
123 inline void SetDataCellsFilter(DataCellsFilterResource&& value) { m_dataCellsFilterHasBeenSet = true; m_dataCellsFilter = std::move(value); }
124 inline Resource& WithDataCellsFilter(const DataCellsFilterResource& value) { SetDataCellsFilter(value); return *this;}
125 inline Resource& WithDataCellsFilter(DataCellsFilterResource&& value) { SetDataCellsFilter(std::move(value)); return *this;}
127
129
132 inline const LFTagKeyResource& GetLFTag() const{ return m_lFTag; }
133 inline bool LFTagHasBeenSet() const { return m_lFTagHasBeenSet; }
134 inline void SetLFTag(const LFTagKeyResource& value) { m_lFTagHasBeenSet = true; m_lFTag = value; }
135 inline void SetLFTag(LFTagKeyResource&& value) { m_lFTagHasBeenSet = true; m_lFTag = std::move(value); }
136 inline Resource& WithLFTag(const LFTagKeyResource& value) { SetLFTag(value); return *this;}
137 inline Resource& WithLFTag(LFTagKeyResource&& value) { SetLFTag(std::move(value)); return *this;}
139
141
144 inline const LFTagPolicyResource& GetLFTagPolicy() const{ return m_lFTagPolicy; }
145 inline bool LFTagPolicyHasBeenSet() const { return m_lFTagPolicyHasBeenSet; }
146 inline void SetLFTagPolicy(const LFTagPolicyResource& value) { m_lFTagPolicyHasBeenSet = true; m_lFTagPolicy = value; }
147 inline void SetLFTagPolicy(LFTagPolicyResource&& value) { m_lFTagPolicyHasBeenSet = true; m_lFTagPolicy = std::move(value); }
148 inline Resource& WithLFTagPolicy(const LFTagPolicyResource& value) { SetLFTagPolicy(value); return *this;}
149 inline Resource& WithLFTagPolicy(LFTagPolicyResource&& value) { SetLFTagPolicy(std::move(value)); return *this;}
151 private:
152
153 CatalogResource m_catalog;
154 bool m_catalogHasBeenSet = false;
155
156 DatabaseResource m_database;
157 bool m_databaseHasBeenSet = false;
158
159 TableResource m_table;
160 bool m_tableHasBeenSet = false;
161
162 TableWithColumnsResource m_tableWithColumns;
163 bool m_tableWithColumnsHasBeenSet = false;
164
165 DataLocationResource m_dataLocation;
166 bool m_dataLocationHasBeenSet = false;
167
168 DataCellsFilterResource m_dataCellsFilter;
169 bool m_dataCellsFilterHasBeenSet = false;
170
171 LFTagKeyResource m_lFTag;
172 bool m_lFTagHasBeenSet = false;
173
174 LFTagPolicyResource m_lFTagPolicy;
175 bool m_lFTagPolicyHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace LakeFormation
180} // namespace Aws
void SetLFTag(const LFTagKeyResource &value)
Definition Resource.h:134
void SetTableWithColumns(const TableWithColumnsResource &value)
Definition Resource.h:97
const LFTagKeyResource & GetLFTag() const
Definition Resource.h:132
Resource & WithTableWithColumns(const TableWithColumnsResource &value)
Definition Resource.h:99
void SetTable(TableResource &&value)
Definition Resource.h:84
void SetCatalog(CatalogResource &&value)
Definition Resource.h:57
void SetDataLocation(DataLocationResource &&value)
Definition Resource.h:111
void SetLFTag(LFTagKeyResource &&value)
Definition Resource.h:135
void SetTableWithColumns(TableWithColumnsResource &&value)
Definition Resource.h:98
void SetDatabase(DatabaseResource &&value)
Definition Resource.h:71
Resource & WithLFTag(const LFTagKeyResource &value)
Definition Resource.h:136
void SetTable(const TableResource &value)
Definition Resource.h:83
Resource & WithDataLocation(const DataLocationResource &value)
Definition Resource.h:112
const TableResource & GetTable() const
Definition Resource.h:81
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithTableWithColumns(TableWithColumnsResource &&value)
Definition Resource.h:100
AWS_LAKEFORMATION_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithDatabase(const DatabaseResource &value)
Definition Resource.h:72
void SetLFTagPolicy(LFTagPolicyResource &&value)
Definition Resource.h:147
void SetDatabase(const DatabaseResource &value)
Definition Resource.h:70
Resource & WithTable(TableResource &&value)
Definition Resource.h:86
Resource & WithTable(const TableResource &value)
Definition Resource.h:85
Resource & WithDataCellsFilter(DataCellsFilterResource &&value)
Definition Resource.h:125
const DataCellsFilterResource & GetDataCellsFilter() const
Definition Resource.h:120
void SetDataCellsFilter(const DataCellsFilterResource &value)
Definition Resource.h:122
const TableWithColumnsResource & GetTableWithColumns() const
Definition Resource.h:95
const LFTagPolicyResource & GetLFTagPolicy() const
Definition Resource.h:144
const CatalogResource & GetCatalog() const
Definition Resource.h:54
Resource & WithLFTagPolicy(LFTagPolicyResource &&value)
Definition Resource.h:149
void SetLFTagPolicy(const LFTagPolicyResource &value)
Definition Resource.h:146
Resource & WithLFTagPolicy(const LFTagPolicyResource &value)
Definition Resource.h:148
void SetDataLocation(const DataLocationResource &value)
Definition Resource.h:110
AWS_LAKEFORMATION_API Resource()
void SetCatalog(const CatalogResource &value)
Definition Resource.h:56
Resource & WithCatalog(CatalogResource &&value)
Definition Resource.h:59
Resource & WithDataCellsFilter(const DataCellsFilterResource &value)
Definition Resource.h:124
Resource & WithDataLocation(DataLocationResource &&value)
Definition Resource.h:113
Resource & WithCatalog(const CatalogResource &value)
Definition Resource.h:58
Resource & WithLFTag(LFTagKeyResource &&value)
Definition Resource.h:137
AWS_LAKEFORMATION_API Resource(Aws::Utils::Json::JsonView jsonValue)
const DataLocationResource & GetDataLocation() const
Definition Resource.h:108
const DatabaseResource & GetDatabase() const
Definition Resource.h:68
Resource & WithDatabase(DatabaseResource &&value)
Definition Resource.h:73
void SetDataCellsFilter(DataCellsFilterResource &&value)
Definition Resource.h:123
Aws::Utils::Json::JsonValue JsonValue