AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDatabaseRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/timestream-write/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace TimestreamWrite
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TIMESTREAMWRITE_API CreateDatabaseRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDatabase"; }
33
34 AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override;
35
36 AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
44 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
45 template<typename DatabaseNameT = Aws::String>
46 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
47 template<typename DatabaseNameT = Aws::String>
48 CreateDatabaseRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
50
52
59 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
60 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
61 template<typename KmsKeyIdT = Aws::String>
62 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
63 template<typename KmsKeyIdT = Aws::String>
64 CreateDatabaseRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
66
68
71 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 template<typename TagsT = Aws::Vector<Tag>>
74 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
75 template<typename TagsT = Aws::Vector<Tag>>
76 CreateDatabaseRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
77 template<typename TagsT = Tag>
78 CreateDatabaseRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
80 private:
81
82 Aws::String m_databaseName;
83 bool m_databaseNameHasBeenSet = false;
84
85 Aws::String m_kmsKeyId;
86 bool m_kmsKeyIdHasBeenSet = false;
87
88 Aws::Vector<Tag> m_tags;
89 bool m_tagsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace TimestreamWrite
94} // 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