AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDBSnapshotRequest.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/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API CreateDBSnapshotRequest() = 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 "CreateDBSnapshot"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
48 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
49 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
50 template <typename DBSnapshotIdentifierT = Aws::String>
51 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
52 m_dBSnapshotIdentifierHasBeenSet = true;
53 m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value);
54 }
55 template <typename DBSnapshotIdentifierT = Aws::String>
56 CreateDBSnapshotRequest& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
57 SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
69 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
70 template <typename DBInstanceIdentifierT = Aws::String>
71 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
72 m_dBInstanceIdentifierHasBeenSet = true;
73 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
74 }
75 template <typename DBInstanceIdentifierT = Aws::String>
76 CreateDBSnapshotRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
77 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template <typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags = std::forward<TagsT>(value);
90 }
91 template <typename TagsT = Aws::Vector<Tag>>
93 SetTags(std::forward<TagsT>(value));
94 return *this;
95 }
96 template <typename TagsT = Tag>
98 m_tagsHasBeenSet = true;
99 m_tags.emplace_back(std::forward<TagsT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_dBSnapshotIdentifier;
105
106 Aws::String m_dBInstanceIdentifier;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_dBSnapshotIdentifierHasBeenSet = false;
110 bool m_dBInstanceIdentifierHasBeenSet = false;
111 bool m_tagsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace RDS
116} // namespace Aws
CreateDBSnapshotRequest & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
const Aws::String & GetDBSnapshotIdentifier() const
AWS_RDS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
CreateDBSnapshotRequest & AddTags(TagsT &&value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
AWS_RDS_API CreateDBSnapshotRequest()=default
const Aws::String & GetDBInstanceIdentifier() const
CreateDBSnapshotRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector