AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
55 inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
56 inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
58 inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;}
59 inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
61
63
68 inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
69 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
70 inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
71 inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
72 inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
74 inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
75 inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
77
79
80 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
83 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
84 inline CreateDBSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
85 inline CreateDBSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
86 inline CreateDBSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
87 inline CreateDBSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_dBSnapshotIdentifier;
92 bool m_dBSnapshotIdentifierHasBeenSet = false;
93
94 Aws::String m_dBInstanceIdentifier;
95 bool m_dBInstanceIdentifierHasBeenSet = false;
96
97 Aws::Vector<Tag> m_tags;
98 bool m_tagsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace RDS
103} // namespace Aws
void SetDBInstanceIdentifier(const Aws::String &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
CreateDBSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBSnapshotRequest & AddTags(const Tag &value)
CreateDBSnapshotRequest & AddTags(Tag &&value)
CreateDBSnapshotRequest & WithDBInstanceIdentifier(Aws::String &&value)
CreateDBSnapshotRequest & WithDBInstanceIdentifier(const Aws::String &value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(const char *value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(Aws::String &&value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDBSnapshotRequest & WithDBInstanceIdentifier(const char *value)
CreateDBSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
void SetDBSnapshotIdentifier(const Aws::String &value)
const Aws::String & GetDBInstanceIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector