AWS SDK for C++  1.8.102
AWS SDK for C++
CreateDataSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
20 #include <utility>
21 
22 namespace Aws
23 {
24 namespace QuickSight
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "CreateDataSet"; }
41 
42  Aws::String SerializePayload() const override;
43 
44 
48  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
49 
53  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
54 
58  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
59 
63  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
64 
68  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
69 
73  inline CreateDataSetRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
74 
78  inline CreateDataSetRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
79 
83  inline CreateDataSetRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
84 
85 
90  inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
91 
96  inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
97 
102  inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
103 
108  inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
109 
114  inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
115 
120  inline CreateDataSetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
121 
126  inline CreateDataSetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
127 
132  inline CreateDataSetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
133 
134 
138  inline const Aws::String& GetName() const{ return m_name; }
139 
143  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
144 
148  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
149 
153  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
154 
158  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
159 
163  inline CreateDataSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
164 
168  inline CreateDataSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
169 
173  inline CreateDataSetRequest& WithName(const char* value) { SetName(value); return *this;}
174 
175 
180  inline const Aws::Map<Aws::String, PhysicalTable>& GetPhysicalTableMap() const{ return m_physicalTableMap; }
181 
186  inline bool PhysicalTableMapHasBeenSet() const { return m_physicalTableMapHasBeenSet; }
187 
192  inline void SetPhysicalTableMap(const Aws::Map<Aws::String, PhysicalTable>& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap = value; }
193 
198  inline void SetPhysicalTableMap(Aws::Map<Aws::String, PhysicalTable>&& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap = std::move(value); }
199 
204  inline CreateDataSetRequest& WithPhysicalTableMap(const Aws::Map<Aws::String, PhysicalTable>& value) { SetPhysicalTableMap(value); return *this;}
205 
210  inline CreateDataSetRequest& WithPhysicalTableMap(Aws::Map<Aws::String, PhysicalTable>&& value) { SetPhysicalTableMap(std::move(value)); return *this;}
211 
216  inline CreateDataSetRequest& AddPhysicalTableMap(const Aws::String& key, const PhysicalTable& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap.emplace(key, value); return *this; }
217 
222  inline CreateDataSetRequest& AddPhysicalTableMap(Aws::String&& key, const PhysicalTable& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap.emplace(std::move(key), value); return *this; }
223 
228  inline CreateDataSetRequest& AddPhysicalTableMap(const Aws::String& key, PhysicalTable&& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap.emplace(key, std::move(value)); return *this; }
229 
234  inline CreateDataSetRequest& AddPhysicalTableMap(Aws::String&& key, PhysicalTable&& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap.emplace(std::move(key), std::move(value)); return *this; }
235 
240  inline CreateDataSetRequest& AddPhysicalTableMap(const char* key, PhysicalTable&& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap.emplace(key, std::move(value)); return *this; }
241 
246  inline CreateDataSetRequest& AddPhysicalTableMap(const char* key, const PhysicalTable& value) { m_physicalTableMapHasBeenSet = true; m_physicalTableMap.emplace(key, value); return *this; }
247 
248 
253  inline const Aws::Map<Aws::String, LogicalTable>& GetLogicalTableMap() const{ return m_logicalTableMap; }
254 
259  inline bool LogicalTableMapHasBeenSet() const { return m_logicalTableMapHasBeenSet; }
260 
265  inline void SetLogicalTableMap(const Aws::Map<Aws::String, LogicalTable>& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap = value; }
266 
271  inline void SetLogicalTableMap(Aws::Map<Aws::String, LogicalTable>&& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap = std::move(value); }
272 
277  inline CreateDataSetRequest& WithLogicalTableMap(const Aws::Map<Aws::String, LogicalTable>& value) { SetLogicalTableMap(value); return *this;}
278 
283  inline CreateDataSetRequest& WithLogicalTableMap(Aws::Map<Aws::String, LogicalTable>&& value) { SetLogicalTableMap(std::move(value)); return *this;}
284 
289  inline CreateDataSetRequest& AddLogicalTableMap(const Aws::String& key, const LogicalTable& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap.emplace(key, value); return *this; }
290 
295  inline CreateDataSetRequest& AddLogicalTableMap(Aws::String&& key, const LogicalTable& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap.emplace(std::move(key), value); return *this; }
296 
301  inline CreateDataSetRequest& AddLogicalTableMap(const Aws::String& key, LogicalTable&& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap.emplace(key, std::move(value)); return *this; }
302 
307  inline CreateDataSetRequest& AddLogicalTableMap(Aws::String&& key, LogicalTable&& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap.emplace(std::move(key), std::move(value)); return *this; }
308 
313  inline CreateDataSetRequest& AddLogicalTableMap(const char* key, LogicalTable&& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap.emplace(key, std::move(value)); return *this; }
314 
319  inline CreateDataSetRequest& AddLogicalTableMap(const char* key, const LogicalTable& value) { m_logicalTableMapHasBeenSet = true; m_logicalTableMap.emplace(key, value); return *this; }
320 
321 
325  inline const DataSetImportMode& GetImportMode() const{ return m_importMode; }
326 
330  inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
331 
335  inline void SetImportMode(const DataSetImportMode& value) { m_importModeHasBeenSet = true; m_importMode = value; }
336 
340  inline void SetImportMode(DataSetImportMode&& value) { m_importModeHasBeenSet = true; m_importMode = std::move(value); }
341 
345  inline CreateDataSetRequest& WithImportMode(const DataSetImportMode& value) { SetImportMode(value); return *this;}
346 
350  inline CreateDataSetRequest& WithImportMode(DataSetImportMode&& value) { SetImportMode(std::move(value)); return *this;}
351 
352 
357  inline const Aws::Vector<ColumnGroup>& GetColumnGroups() const{ return m_columnGroups; }
358 
363  inline bool ColumnGroupsHasBeenSet() const { return m_columnGroupsHasBeenSet; }
364 
369  inline void SetColumnGroups(const Aws::Vector<ColumnGroup>& value) { m_columnGroupsHasBeenSet = true; m_columnGroups = value; }
370 
375  inline void SetColumnGroups(Aws::Vector<ColumnGroup>&& value) { m_columnGroupsHasBeenSet = true; m_columnGroups = std::move(value); }
376 
381  inline CreateDataSetRequest& WithColumnGroups(const Aws::Vector<ColumnGroup>& value) { SetColumnGroups(value); return *this;}
382 
387  inline CreateDataSetRequest& WithColumnGroups(Aws::Vector<ColumnGroup>&& value) { SetColumnGroups(std::move(value)); return *this;}
388 
393  inline CreateDataSetRequest& AddColumnGroups(const ColumnGroup& value) { m_columnGroupsHasBeenSet = true; m_columnGroups.push_back(value); return *this; }
394 
399  inline CreateDataSetRequest& AddColumnGroups(ColumnGroup&& value) { m_columnGroupsHasBeenSet = true; m_columnGroups.push_back(std::move(value)); return *this; }
400 
401 
405  inline const Aws::Vector<ResourcePermission>& GetPermissions() const{ return m_permissions; }
406 
410  inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
411 
415  inline void SetPermissions(const Aws::Vector<ResourcePermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
416 
420  inline void SetPermissions(Aws::Vector<ResourcePermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
421 
425  inline CreateDataSetRequest& WithPermissions(const Aws::Vector<ResourcePermission>& value) { SetPermissions(value); return *this;}
426 
430  inline CreateDataSetRequest& WithPermissions(Aws::Vector<ResourcePermission>&& value) { SetPermissions(std::move(value)); return *this;}
431 
435  inline CreateDataSetRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
436 
440  inline CreateDataSetRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
441 
442 
447  inline const RowLevelPermissionDataSet& GetRowLevelPermissionDataSet() const{ return m_rowLevelPermissionDataSet; }
448 
453  inline bool RowLevelPermissionDataSetHasBeenSet() const { return m_rowLevelPermissionDataSetHasBeenSet; }
454 
459  inline void SetRowLevelPermissionDataSet(const RowLevelPermissionDataSet& value) { m_rowLevelPermissionDataSetHasBeenSet = true; m_rowLevelPermissionDataSet = value; }
460 
465  inline void SetRowLevelPermissionDataSet(RowLevelPermissionDataSet&& value) { m_rowLevelPermissionDataSetHasBeenSet = true; m_rowLevelPermissionDataSet = std::move(value); }
466 
471  inline CreateDataSetRequest& WithRowLevelPermissionDataSet(const RowLevelPermissionDataSet& value) { SetRowLevelPermissionDataSet(value); return *this;}
472 
477  inline CreateDataSetRequest& WithRowLevelPermissionDataSet(RowLevelPermissionDataSet&& value) { SetRowLevelPermissionDataSet(std::move(value)); return *this;}
478 
479 
484  inline const Aws::Vector<ColumnLevelPermissionRule>& GetColumnLevelPermissionRules() const{ return m_columnLevelPermissionRules; }
485 
490  inline bool ColumnLevelPermissionRulesHasBeenSet() const { return m_columnLevelPermissionRulesHasBeenSet; }
491 
496  inline void SetColumnLevelPermissionRules(const Aws::Vector<ColumnLevelPermissionRule>& value) { m_columnLevelPermissionRulesHasBeenSet = true; m_columnLevelPermissionRules = value; }
497 
502  inline void SetColumnLevelPermissionRules(Aws::Vector<ColumnLevelPermissionRule>&& value) { m_columnLevelPermissionRulesHasBeenSet = true; m_columnLevelPermissionRules = std::move(value); }
503 
508  inline CreateDataSetRequest& WithColumnLevelPermissionRules(const Aws::Vector<ColumnLevelPermissionRule>& value) { SetColumnLevelPermissionRules(value); return *this;}
509 
514  inline CreateDataSetRequest& WithColumnLevelPermissionRules(Aws::Vector<ColumnLevelPermissionRule>&& value) { SetColumnLevelPermissionRules(std::move(value)); return *this;}
515 
520  inline CreateDataSetRequest& AddColumnLevelPermissionRules(const ColumnLevelPermissionRule& value) { m_columnLevelPermissionRulesHasBeenSet = true; m_columnLevelPermissionRules.push_back(value); return *this; }
521 
526  inline CreateDataSetRequest& AddColumnLevelPermissionRules(ColumnLevelPermissionRule&& value) { m_columnLevelPermissionRulesHasBeenSet = true; m_columnLevelPermissionRules.push_back(std::move(value)); return *this; }
527 
528 
533  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
534 
539  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
540 
545  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
546 
551  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
552 
557  inline CreateDataSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
558 
563  inline CreateDataSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
564 
569  inline CreateDataSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
570 
575  inline CreateDataSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
576 
577  private:
578 
579  Aws::String m_awsAccountId;
580  bool m_awsAccountIdHasBeenSet;
581 
582  Aws::String m_dataSetId;
583  bool m_dataSetIdHasBeenSet;
584 
585  Aws::String m_name;
586  bool m_nameHasBeenSet;
587 
588  Aws::Map<Aws::String, PhysicalTable> m_physicalTableMap;
589  bool m_physicalTableMapHasBeenSet;
590 
591  Aws::Map<Aws::String, LogicalTable> m_logicalTableMap;
592  bool m_logicalTableMapHasBeenSet;
593 
594  DataSetImportMode m_importMode;
595  bool m_importModeHasBeenSet;
596 
597  Aws::Vector<ColumnGroup> m_columnGroups;
598  bool m_columnGroupsHasBeenSet;
599 
600  Aws::Vector<ResourcePermission> m_permissions;
601  bool m_permissionsHasBeenSet;
602 
603  RowLevelPermissionDataSet m_rowLevelPermissionDataSet;
604  bool m_rowLevelPermissionDataSetHasBeenSet;
605 
606  Aws::Vector<ColumnLevelPermissionRule> m_columnLevelPermissionRules;
607  bool m_columnLevelPermissionRulesHasBeenSet;
608 
609  Aws::Vector<Tag> m_tags;
610  bool m_tagsHasBeenSet;
611  };
612 
613 } // namespace Model
614 } // namespace QuickSight
615 } // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< ColumnGroup > & GetColumnGroups() const
CreateDataSetRequest & AddPhysicalTableMap(const char *key, PhysicalTable &&value)
CreateDataSetRequest & WithColumnLevelPermissionRules(Aws::Vector< ColumnLevelPermissionRule > &&value)
CreateDataSetRequest & WithName(const Aws::String &value)
void SetPhysicalTableMap(const Aws::Map< Aws::String, PhysicalTable > &value)
void SetLogicalTableMap(Aws::Map< Aws::String, LogicalTable > &&value)
CreateDataSetRequest & WithAwsAccountId(Aws::String &&value)
CreateDataSetRequest & WithName(const char *value)
CreateDataSetRequest & WithLogicalTableMap(const Aws::Map< Aws::String, LogicalTable > &value)
CreateDataSetRequest & WithColumnGroups(const Aws::Vector< ColumnGroup > &value)
void SetLogicalTableMap(const Aws::Map< Aws::String, LogicalTable > &value)
CreateDataSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDataSetRequest & AddLogicalTableMap(const Aws::String &key, const LogicalTable &value)
CreateDataSetRequest & AddTags(Tag &&value)
CreateDataSetRequest & AddTags(const Tag &value)
CreateDataSetRequest & AddColumnLevelPermissionRules(const ColumnLevelPermissionRule &value)
CreateDataSetRequest & AddLogicalTableMap(const Aws::String &key, LogicalTable &&value)
const Aws::Map< Aws::String, PhysicalTable > & GetPhysicalTableMap() const
const DataSetImportMode & GetImportMode() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateDataSetRequest & WithPermissions(const Aws::Vector< ResourcePermission > &value)
virtual const char * GetServiceRequestName() const override
void SetColumnLevelPermissionRules(const Aws::Vector< ColumnLevelPermissionRule > &value)
void SetColumnGroups(const Aws::Vector< ColumnGroup > &value)
CreateDataSetRequest & AddLogicalTableMap(const char *key, const LogicalTable &value)
CreateDataSetRequest & AddPhysicalTableMap(Aws::String &&key, const PhysicalTable &value)
CreateDataSetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataSetRequest & WithRowLevelPermissionDataSet(const RowLevelPermissionDataSet &value)
CreateDataSetRequest & WithRowLevelPermissionDataSet(RowLevelPermissionDataSet &&value)
CreateDataSetRequest & WithDataSetId(Aws::String &&value)
CreateDataSetRequest & WithColumnLevelPermissionRules(const Aws::Vector< ColumnLevelPermissionRule > &value)
CreateDataSetRequest & WithPhysicalTableMap(Aws::Map< Aws::String, PhysicalTable > &&value)
void SetPermissions(Aws::Vector< ResourcePermission > &&value)
const RowLevelPermissionDataSet & GetRowLevelPermissionDataSet() const
void SetImportMode(DataSetImportMode &&value)
const Aws::Vector< Tag > & GetTags() const
CreateDataSetRequest & WithAwsAccountId(const char *value)
CreateDataSetRequest & WithLogicalTableMap(Aws::Map< Aws::String, LogicalTable > &&value)
CreateDataSetRequest & AddLogicalTableMap(const char *key, LogicalTable &&value)
void SetPhysicalTableMap(Aws::Map< Aws::String, PhysicalTable > &&value)
CreateDataSetRequest & AddLogicalTableMap(Aws::String &&key, LogicalTable &&value)
CreateDataSetRequest & WithDataSetId(const char *value)
CreateDataSetRequest & AddPhysicalTableMap(Aws::String &&key, PhysicalTable &&value)
CreateDataSetRequest & AddLogicalTableMap(Aws::String &&key, const LogicalTable &value)
CreateDataSetRequest & WithDataSetId(const Aws::String &value)
CreateDataSetRequest & WithColumnGroups(Aws::Vector< ColumnGroup > &&value)
CreateDataSetRequest & AddPhysicalTableMap(const Aws::String &key, const PhysicalTable &value)
void SetPermissions(const Aws::Vector< ResourcePermission > &value)
void SetColumnLevelPermissionRules(Aws::Vector< ColumnLevelPermissionRule > &&value)
CreateDataSetRequest & WithPermissions(Aws::Vector< ResourcePermission > &&value)
void SetColumnGroups(Aws::Vector< ColumnGroup > &&value)
CreateDataSetRequest & AddPermissions(ResourcePermission &&value)
void SetImportMode(const DataSetImportMode &value)
const Aws::Map< Aws::String, LogicalTable > & GetLogicalTableMap() const
CreateDataSetRequest & WithName(Aws::String &&value)
void SetRowLevelPermissionDataSet(const RowLevelPermissionDataSet &value)
CreateDataSetRequest & AddColumnLevelPermissionRules(ColumnLevelPermissionRule &&value)
CreateDataSetRequest & AddPhysicalTableMap(const Aws::String &key, PhysicalTable &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDataSetRequest & WithPhysicalTableMap(const Aws::Map< Aws::String, PhysicalTable > &value)
CreateDataSetRequest & WithAwsAccountId(const Aws::String &value)
CreateDataSetRequest & AddPermissions(const ResourcePermission &value)
#define AWS_QUICKSIGHT_API
const Aws::Vector< ResourcePermission > & GetPermissions() const
void SetRowLevelPermissionDataSet(RowLevelPermissionDataSet &&value)
CreateDataSetRequest & AddColumnGroups(ColumnGroup &&value)
CreateDataSetRequest & AddPhysicalTableMap(const char *key, const PhysicalTable &value)
void SetAwsAccountId(const Aws::String &value)
CreateDataSetRequest & AddColumnGroups(const ColumnGroup &value)
CreateDataSetRequest & WithImportMode(DataSetImportMode &&value)
const Aws::Vector< ColumnLevelPermissionRule > & GetColumnLevelPermissionRules() const
CreateDataSetRequest & WithImportMode(const DataSetImportMode &value)