AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDBSnapshotRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_RDS_API CreateDBSnapshotRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDBSnapshot"; }
36
37 AWS_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
52 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
53 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
54 template<typename DBSnapshotIdentifierT = Aws::String>
55 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value); }
56 template<typename DBSnapshotIdentifierT = Aws::String>
57 CreateDBSnapshotRequest& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) { SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value)); return *this;}
59
61
66 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
67 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
68 template<typename DBInstanceIdentifierT = Aws::String>
69 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value); }
70 template<typename DBInstanceIdentifierT = Aws::String>
71 CreateDBSnapshotRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) { SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value)); return *this;}
73
75
76 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<Tag>>
81 CreateDBSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = Tag>
83 CreateDBSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85 private:
86
87 Aws::String m_dBSnapshotIdentifier;
88 bool m_dBSnapshotIdentifierHasBeenSet = false;
89
90 Aws::String m_dBInstanceIdentifier;
91 bool m_dBInstanceIdentifierHasBeenSet = false;
92
93 Aws::Vector<Tag> m_tags;
94 bool m_tagsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace RDS
99} // 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