AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDatabaseRequest.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 <utility>
11
12namespace Aws
13{
14namespace TimestreamWrite
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_TIMESTREAMWRITE_API UpdateDatabaseRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateDatabase"; }
31
32 AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override;
33
34 AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
42 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
43 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
44 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
45 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
46 inline UpdateDatabaseRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
47 inline UpdateDatabaseRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
48 inline UpdateDatabaseRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
50
52
64 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
65 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
66 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
67 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
68 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
69 inline UpdateDatabaseRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
70 inline UpdateDatabaseRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
71 inline UpdateDatabaseRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
73 private:
74
75 Aws::String m_databaseName;
76 bool m_databaseNameHasBeenSet = false;
77
78 Aws::String m_kmsKeyId;
79 bool m_kmsKeyIdHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace TimestreamWrite
84} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateDatabaseRequest & WithKmsKeyId(Aws::String &&value)
UpdateDatabaseRequest & WithKmsKeyId(const Aws::String &value)
UpdateDatabaseRequest & WithDatabaseName(const char *value)
AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override
AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDatabaseRequest & WithKmsKeyId(const char *value)
UpdateDatabaseRequest & WithDatabaseName(const Aws::String &value)
UpdateDatabaseRequest & WithDatabaseName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String