AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDBClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDB
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DOCDB_API CreateDBClusterSnapshotRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDBClusterSnapshot"; }
37
38 AWS_DOCDB_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
53 inline const Aws::String& GetDBClusterSnapshotIdentifier() const { return m_dBClusterSnapshotIdentifier; }
54 inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
55 template<typename DBClusterSnapshotIdentifierT = Aws::String>
56 void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::forward<DBClusterSnapshotIdentifierT>(value); }
57 template<typename DBClusterSnapshotIdentifierT = Aws::String>
58 CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) { SetDBClusterSnapshotIdentifier(std::forward<DBClusterSnapshotIdentifierT>(value)); return *this;}
60
62
68 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
69 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
70 template<typename DBClusterIdentifierT = Aws::String>
71 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
72 template<typename DBClusterIdentifierT = Aws::String>
73 CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
75
77
80 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template<typename TagsT = Aws::Vector<Tag>>
83 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
84 template<typename TagsT = Aws::Vector<Tag>>
85 CreateDBClusterSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
86 template<typename TagsT = Tag>
87 CreateDBClusterSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
89 private:
90
91 Aws::String m_dBClusterSnapshotIdentifier;
92 bool m_dBClusterSnapshotIdentifierHasBeenSet = false;
93
94 Aws::String m_dBClusterIdentifier;
95 bool m_dBClusterIdentifierHasBeenSet = false;
96
97 Aws::Vector<Tag> m_tags;
98 bool m_tagsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace DocDB
103} // namespace Aws
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT &&value)
AWS_DOCDB_API CreateDBClusterSnapshotRequest()=default
CreateDBClusterSnapshotRequest & WithTags(TagsT &&value)
void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT &&value)
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
CreateDBClusterSnapshotRequest & AddTags(TagsT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_DOCDB_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector