AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTableRequest.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/timestream-write/TimestreamWriteRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-write/model/RetentionProperties.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/timestream-write/model/MagneticStoreWriteProperties.h>
13#include <aws/timestream-write/model/Schema.h>
14#include <aws/timestream-write/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace TimestreamWrite
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TIMESTREAMWRITE_API CreateTableRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateTable"; }
36
37 AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override;
38
39 AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
47 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
48 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
49 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
50 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
51 inline CreateTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
52 inline CreateTableRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
53 inline CreateTableRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
55
57
60 inline const Aws::String& GetTableName() const{ return m_tableName; }
61 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
62 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
63 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
64 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
65 inline CreateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
66 inline CreateTableRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
67 inline CreateTableRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
69
71
75 inline const RetentionProperties& GetRetentionProperties() const{ return m_retentionProperties; }
76 inline bool RetentionPropertiesHasBeenSet() const { return m_retentionPropertiesHasBeenSet; }
77 inline void SetRetentionProperties(const RetentionProperties& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = value; }
78 inline void SetRetentionProperties(RetentionProperties&& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = std::move(value); }
80 inline CreateTableRequest& WithRetentionProperties(RetentionProperties&& value) { SetRetentionProperties(std::move(value)); return *this;}
82
84
87 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline CreateTableRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
92 inline CreateTableRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
93 inline CreateTableRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
94 inline CreateTableRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
96
98
102 inline const MagneticStoreWriteProperties& GetMagneticStoreWriteProperties() const{ return m_magneticStoreWriteProperties; }
103 inline bool MagneticStoreWritePropertiesHasBeenSet() const { return m_magneticStoreWritePropertiesHasBeenSet; }
104 inline void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = value; }
105 inline void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties&& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = std::move(value); }
109
111
114 inline const Schema& GetSchema() const{ return m_schema; }
115 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
116 inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; }
117 inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
118 inline CreateTableRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;}
119 inline CreateTableRequest& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_databaseName;
124 bool m_databaseNameHasBeenSet = false;
125
126 Aws::String m_tableName;
127 bool m_tableNameHasBeenSet = false;
128
129 RetentionProperties m_retentionProperties;
130 bool m_retentionPropertiesHasBeenSet = false;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_tagsHasBeenSet = false;
134
135 MagneticStoreWriteProperties m_magneticStoreWriteProperties;
136 bool m_magneticStoreWritePropertiesHasBeenSet = false;
137
138 Schema m_schema;
139 bool m_schemaHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace TimestreamWrite
144} // namespace Aws
CreateTableRequest & WithMagneticStoreWriteProperties(MagneticStoreWriteProperties &&value)
CreateTableRequest & WithTableName(Aws::String &&value)
CreateTableRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTableRequest & WithSchema(Schema &&value)
CreateTableRequest & WithDatabaseName(const char *value)
AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override
const RetentionProperties & GetRetentionProperties() const
CreateTableRequest & WithMagneticStoreWriteProperties(const MagneticStoreWriteProperties &value)
AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateTableRequest & WithSchema(const Schema &value)
void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties &&value)
void SetRetentionProperties(RetentionProperties &&value)
CreateTableRequest & WithTableName(const Aws::String &value)
CreateTableRequest & WithDatabaseName(Aws::String &&value)
CreateTableRequest & WithTags(Aws::Vector< Tag > &&value)
void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties &value)
const MagneticStoreWriteProperties & GetMagneticStoreWriteProperties() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateTableRequest & WithDatabaseName(const Aws::String &value)
CreateTableRequest & AddTags(const Tag &value)
CreateTableRequest & WithRetentionProperties(const RetentionProperties &value)
void SetRetentionProperties(const RetentionProperties &value)
CreateTableRequest & WithTableName(const char *value)
CreateTableRequest & WithRetentionProperties(RetentionProperties &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector