AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateDatabaseRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/timestream-write/TimestreamWriteRequest.h>
10#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
11#include <aws/timestream-write/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace TimestreamWrite {
17namespace Model {
18
22 public:
23 AWS_TIMESTREAMWRITE_API CreateDatabaseRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDatabase"; }
30
31 AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override;
32
33 AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
40 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
41 template <typename DatabaseNameT = Aws::String>
42 void SetDatabaseName(DatabaseNameT&& value) {
43 m_databaseNameHasBeenSet = true;
44 m_databaseName = std::forward<DatabaseNameT>(value);
45 }
46 template <typename DatabaseNameT = Aws::String>
47 CreateDatabaseRequest& WithDatabaseName(DatabaseNameT&& value) {
48 SetDatabaseName(std::forward<DatabaseNameT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
62 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
63 template <typename KmsKeyIdT = Aws::String>
64 void SetKmsKeyId(KmsKeyIdT&& value) {
65 m_kmsKeyIdHasBeenSet = true;
66 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
67 }
68 template <typename KmsKeyIdT = Aws::String>
69 CreateDatabaseRequest& WithKmsKeyId(KmsKeyIdT&& value) {
70 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template <typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) {
83 m_tagsHasBeenSet = true;
84 m_tags = std::forward<TagsT>(value);
85 }
86 template <typename TagsT = Aws::Vector<Tag>>
88 SetTags(std::forward<TagsT>(value));
89 return *this;
90 }
91 template <typename TagsT = Tag>
93 m_tagsHasBeenSet = true;
94 m_tags.emplace_back(std::forward<TagsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_databaseName;
100
101 Aws::String m_kmsKeyId;
102
103 Aws::Vector<Tag> m_tags;
104 bool m_databaseNameHasBeenSet = false;
105 bool m_kmsKeyIdHasBeenSet = false;
106 bool m_tagsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace TimestreamWrite
111} // namespace Aws
CreateDatabaseRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateDatabaseRequest & WithDatabaseName(DatabaseNameT &&value)
CreateDatabaseRequest & AddTags(TagsT &&value)
AWS_TIMESTREAMWRITE_API CreateDatabaseRequest()=default
CreateDatabaseRequest & WithTags(TagsT &&value)
AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
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