AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDatastoreRequest.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/iotanalytics/IoTAnalyticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotanalytics/model/DatastoreStorage.h>
11#include <aws/iotanalytics/model/RetentionPeriod.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iotanalytics/model/FileFormatConfiguration.h>
14#include <aws/iotanalytics/model/DatastorePartitions.h>
15#include <aws/iotanalytics/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace IoTAnalytics
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOTANALYTICS_API CreateDatastoreRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDatastore"; }
37
38 AWS_IOTANALYTICS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetDatastoreName() const{ return m_datastoreName; }
46 inline bool DatastoreNameHasBeenSet() const { return m_datastoreNameHasBeenSet; }
47 inline void SetDatastoreName(const Aws::String& value) { m_datastoreNameHasBeenSet = true; m_datastoreName = value; }
48 inline void SetDatastoreName(Aws::String&& value) { m_datastoreNameHasBeenSet = true; m_datastoreName = std::move(value); }
49 inline void SetDatastoreName(const char* value) { m_datastoreNameHasBeenSet = true; m_datastoreName.assign(value); }
50 inline CreateDatastoreRequest& WithDatastoreName(const Aws::String& value) { SetDatastoreName(value); return *this;}
51 inline CreateDatastoreRequest& WithDatastoreName(Aws::String&& value) { SetDatastoreName(std::move(value)); return *this;}
52 inline CreateDatastoreRequest& WithDatastoreName(const char* value) { SetDatastoreName(value); return *this;}
54
56
63 inline const DatastoreStorage& GetDatastoreStorage() const{ return m_datastoreStorage; }
64 inline bool DatastoreStorageHasBeenSet() const { return m_datastoreStorageHasBeenSet; }
65 inline void SetDatastoreStorage(const DatastoreStorage& value) { m_datastoreStorageHasBeenSet = true; m_datastoreStorage = value; }
66 inline void SetDatastoreStorage(DatastoreStorage&& value) { m_datastoreStorageHasBeenSet = true; m_datastoreStorage = std::move(value); }
68 inline CreateDatastoreRequest& WithDatastoreStorage(DatastoreStorage&& value) { SetDatastoreStorage(std::move(value)); return *this;}
70
72
77 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
78 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
79 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
80 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
82 inline CreateDatastoreRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
84
86
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline CreateDatastoreRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
94 inline CreateDatastoreRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 inline CreateDatastoreRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
96 inline CreateDatastoreRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
98
100
106 inline const FileFormatConfiguration& GetFileFormatConfiguration() const{ return m_fileFormatConfiguration; }
107 inline bool FileFormatConfigurationHasBeenSet() const { return m_fileFormatConfigurationHasBeenSet; }
108 inline void SetFileFormatConfiguration(const FileFormatConfiguration& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = value; }
109 inline void SetFileFormatConfiguration(FileFormatConfiguration&& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = std::move(value); }
113
115
118 inline const DatastorePartitions& GetDatastorePartitions() const{ return m_datastorePartitions; }
119 inline bool DatastorePartitionsHasBeenSet() const { return m_datastorePartitionsHasBeenSet; }
120 inline void SetDatastorePartitions(const DatastorePartitions& value) { m_datastorePartitionsHasBeenSet = true; m_datastorePartitions = value; }
121 inline void SetDatastorePartitions(DatastorePartitions&& value) { m_datastorePartitionsHasBeenSet = true; m_datastorePartitions = std::move(value); }
125 private:
126
127 Aws::String m_datastoreName;
128 bool m_datastoreNameHasBeenSet = false;
129
130 DatastoreStorage m_datastoreStorage;
131 bool m_datastoreStorageHasBeenSet = false;
132
133 RetentionPeriod m_retentionPeriod;
134 bool m_retentionPeriodHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138
139 FileFormatConfiguration m_fileFormatConfiguration;
140 bool m_fileFormatConfigurationHasBeenSet = false;
141
142 DatastorePartitions m_datastorePartitions;
143 bool m_datastorePartitionsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace IoTAnalytics
148} // namespace Aws
CreateDatastoreRequest & WithDatastorePartitions(DatastorePartitions &&value)
CreateDatastoreRequest & WithFileFormatConfiguration(const FileFormatConfiguration &value)
void SetDatastorePartitions(const DatastorePartitions &value)
CreateDatastoreRequest & WithDatastoreStorage(DatastoreStorage &&value)
CreateDatastoreRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDatastoreRequest & WithDatastoreStorage(const DatastoreStorage &value)
CreateDatastoreRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDatastoreRequest & WithRetentionPeriod(const RetentionPeriod &value)
CreateDatastoreRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
void SetDatastoreStorage(const DatastoreStorage &value)
void SetFileFormatConfiguration(const FileFormatConfiguration &value)
CreateDatastoreRequest & WithFileFormatConfiguration(FileFormatConfiguration &&value)
CreateDatastoreRequest & WithRetentionPeriod(RetentionPeriod &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDatastoreRequest & WithDatastoreName(Aws::String &&value)
void SetDatastorePartitions(DatastorePartitions &&value)
CreateDatastoreRequest & WithDatastoreName(const Aws::String &value)
CreateDatastoreRequest & WithDatastorePartitions(const DatastorePartitions &value)
void SetFileFormatConfiguration(FileFormatConfiguration &&value)
CreateDatastoreRequest & AddTags(Tag &&value)
CreateDatastoreRequest & WithDatastoreName(const char *value)
const FileFormatConfiguration & GetFileFormatConfiguration() const
const DatastorePartitions & GetDatastorePartitions() const
void SetRetentionPeriod(const RetentionPeriod &value)
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector