AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTableRequest.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/timestream-write/model/MagneticStoreWriteProperties.h>
12#include <aws/timestream-write/model/Schema.h>
13#include <utility>
14
15namespace Aws
16{
17namespace TimestreamWrite
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TIMESTREAMWRITE_API UpdateTableRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateTable"; }
34
35 AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override;
36
37 AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
45 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
46 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
47 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
48 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
49 inline UpdateTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
50 inline UpdateTableRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
51 inline UpdateTableRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
53
55
58 inline const Aws::String& GetTableName() const{ return m_tableName; }
59 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
60 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
61 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
62 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
63 inline UpdateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
64 inline UpdateTableRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
65 inline UpdateTableRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
67
69
72 inline const RetentionProperties& GetRetentionProperties() const{ return m_retentionProperties; }
73 inline bool RetentionPropertiesHasBeenSet() const { return m_retentionPropertiesHasBeenSet; }
74 inline void SetRetentionProperties(const RetentionProperties& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = value; }
75 inline void SetRetentionProperties(RetentionProperties&& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = std::move(value); }
77 inline UpdateTableRequest& WithRetentionProperties(RetentionProperties&& value) { SetRetentionProperties(std::move(value)); return *this;}
79
81
85 inline const MagneticStoreWriteProperties& GetMagneticStoreWriteProperties() const{ return m_magneticStoreWriteProperties; }
86 inline bool MagneticStoreWritePropertiesHasBeenSet() const { return m_magneticStoreWritePropertiesHasBeenSet; }
87 inline void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = value; }
88 inline void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties&& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = std::move(value); }
92
94
97 inline const Schema& GetSchema() const{ return m_schema; }
98 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
99 inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; }
100 inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
101 inline UpdateTableRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;}
102 inline UpdateTableRequest& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
104 private:
105
106 Aws::String m_databaseName;
107 bool m_databaseNameHasBeenSet = false;
108
109 Aws::String m_tableName;
110 bool m_tableNameHasBeenSet = false;
111
112 RetentionProperties m_retentionProperties;
113 bool m_retentionPropertiesHasBeenSet = false;
114
115 MagneticStoreWriteProperties m_magneticStoreWriteProperties;
116 bool m_magneticStoreWritePropertiesHasBeenSet = false;
117
118 Schema m_schema;
119 bool m_schemaHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace TimestreamWrite
124} // namespace Aws
UpdateTableRequest & WithSchema(Schema &&value)
UpdateTableRequest & WithDatabaseName(Aws::String &&value)
void SetRetentionProperties(const RetentionProperties &value)
UpdateTableRequest & WithSchema(const Schema &value)
UpdateTableRequest & WithTableName(const Aws::String &value)
UpdateTableRequest & WithRetentionProperties(RetentionProperties &&value)
UpdateTableRequest & WithMagneticStoreWriteProperties(MagneticStoreWriteProperties &&value)
UpdateTableRequest & WithTableName(Aws::String &&value)
const RetentionProperties & GetRetentionProperties() const
UpdateTableRequest & WithRetentionProperties(const RetentionProperties &value)
virtual const char * GetServiceRequestName() const override
UpdateTableRequest & WithMagneticStoreWriteProperties(const MagneticStoreWriteProperties &value)
void SetRetentionProperties(RetentionProperties &&value)
const MagneticStoreWriteProperties & GetMagneticStoreWriteProperties() const
void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties &value)
UpdateTableRequest & WithTableName(const char *value)
UpdateTableRequest & WithDatabaseName(const Aws::String &value)
AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override
AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties &&value)
UpdateTableRequest & WithDatabaseName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String