AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRelationalDatabaseSnapshotRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
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 "CreateRelationalDatabaseSnapshot"; }
33
34 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
44 inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
45 inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
46 inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
47 inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
52
54
59 inline const Aws::String& GetRelationalDatabaseSnapshotName() const{ return m_relationalDatabaseSnapshotName; }
60 inline bool RelationalDatabaseSnapshotNameHasBeenSet() const { return m_relationalDatabaseSnapshotNameHasBeenSet; }
61 inline void SetRelationalDatabaseSnapshotName(const Aws::String& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = value; }
62 inline void SetRelationalDatabaseSnapshotName(Aws::String&& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = std::move(value); }
63 inline void SetRelationalDatabaseSnapshotName(const char* value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName.assign(value); }
68
70
75 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
78 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
79 inline CreateRelationalDatabaseSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
80 inline CreateRelationalDatabaseSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
81 inline CreateRelationalDatabaseSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
82 inline CreateRelationalDatabaseSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::String m_relationalDatabaseName;
87 bool m_relationalDatabaseNameHasBeenSet = false;
88
89 Aws::String m_relationalDatabaseSnapshotName;
90 bool m_relationalDatabaseSnapshotNameHasBeenSet = false;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Lightsail
98} // namespace Aws
CreateRelationalDatabaseSnapshotRequest & AddTags(const Tag &value)
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseName(Aws::String &&value)
CreateRelationalDatabaseSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseSnapshotName(Aws::String &&value)
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseSnapshotName(const Aws::String &value)
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseName(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseName(const char *value)
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseSnapshotName(const char *value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateRelationalDatabaseSnapshotRequest & WithTags(const Aws::Vector< Tag > &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