AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
CreateAutonomousDatabaseBackupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/odb/OdbRequest.h>
11#include <aws/odb/Odb_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace odb {
17namespace Model {
18
22 public:
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateAutonomousDatabaseBackup"; }
30
31 AWS_ODB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetAutonomousDatabaseId() const { return m_autonomousDatabaseId; }
40 inline bool AutonomousDatabaseIdHasBeenSet() const { return m_autonomousDatabaseIdHasBeenSet; }
41 template <typename AutonomousDatabaseIdT = Aws::String>
42 void SetAutonomousDatabaseId(AutonomousDatabaseIdT&& value) {
43 m_autonomousDatabaseIdHasBeenSet = true;
44 m_autonomousDatabaseId = std::forward<AutonomousDatabaseIdT>(value);
45 }
46 template <typename AutonomousDatabaseIdT = Aws::String>
48 SetAutonomousDatabaseId(std::forward<AutonomousDatabaseIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 template <typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) {
61 m_displayNameHasBeenSet = true;
62 m_displayName = std::forward<DisplayNameT>(value);
63 }
64 template <typename DisplayNameT = Aws::String>
66 SetDisplayName(std::forward<DisplayNameT>(value));
67 return *this;
68 }
70
72
75 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
76 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
77 inline void SetRetentionPeriodInDays(int value) {
78 m_retentionPeriodInDaysHasBeenSet = true;
79 m_retentionPeriodInDays = value;
80 }
83 return *this;
84 }
86
88
91 inline const Aws::String& GetClientToken() const { return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 template <typename ClientTokenT = Aws::String>
94 void SetClientToken(ClientTokenT&& value) {
95 m_clientTokenHasBeenSet = true;
96 m_clientToken = std::forward<ClientTokenT>(value);
97 }
98 template <typename ClientTokenT = Aws::String>
100 SetClientToken(std::forward<ClientTokenT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateAutonomousDatabaseBackupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_autonomousDatabaseId;
131
132 Aws::String m_displayName;
133
134 int m_retentionPeriodInDays{0};
135
137
139 bool m_autonomousDatabaseIdHasBeenSet = false;
140 bool m_displayNameHasBeenSet = false;
141 bool m_retentionPeriodInDaysHasBeenSet = false;
142 bool m_clientTokenHasBeenSet = true;
143 bool m_tagsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace odb
148} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateAutonomousDatabaseBackupRequest & WithTags(TagsT &&value)
AWS_ODB_API Aws::String SerializePayload() const override
CreateAutonomousDatabaseBackupRequest & WithAutonomousDatabaseId(AutonomousDatabaseIdT &&value)
CreateAutonomousDatabaseBackupRequest & WithRetentionPeriodInDays(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAutonomousDatabaseBackupRequest & WithDisplayName(DisplayNameT &&value)
AWS_ODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAutonomousDatabaseBackupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAutonomousDatabaseBackupRequest & WithClientToken(ClientTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String