AWS SDK for C++  1.9.14
AWS SDK for C++
CreateRelationalDatabaseSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CreateRelationalDatabaseSnapshot"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
43 
47  inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
48 
52  inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
53 
57  inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
58 
62  inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
63 
67  inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;}
68 
72  inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;}
73 
77  inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;}
78 
79 
85  inline const Aws::String& GetRelationalDatabaseSnapshotName() const{ return m_relationalDatabaseSnapshotName; }
86 
92  inline bool RelationalDatabaseSnapshotNameHasBeenSet() const { return m_relationalDatabaseSnapshotNameHasBeenSet; }
93 
99  inline void SetRelationalDatabaseSnapshotName(const Aws::String& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = value; }
100 
106  inline void SetRelationalDatabaseSnapshotName(Aws::String&& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = std::move(value); }
107 
113  inline void SetRelationalDatabaseSnapshotName(const char* value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName.assign(value); }
114 
120  inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseSnapshotName(const Aws::String& value) { SetRelationalDatabaseSnapshotName(value); return *this;}
121 
127  inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseSnapshotName(Aws::String&& value) { SetRelationalDatabaseSnapshotName(std::move(value)); return *this;}
128 
134  inline CreateRelationalDatabaseSnapshotRequest& WithRelationalDatabaseSnapshotName(const char* value) { SetRelationalDatabaseSnapshotName(value); return *this;}
135 
136 
142  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
143 
149  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 
156  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 
163  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
164 
170  inline CreateRelationalDatabaseSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
171 
177  inline CreateRelationalDatabaseSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
178 
184  inline CreateRelationalDatabaseSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
185 
191  inline CreateRelationalDatabaseSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
192 
193  private:
194 
195  Aws::String m_relationalDatabaseName;
196  bool m_relationalDatabaseNameHasBeenSet;
197 
198  Aws::String m_relationalDatabaseSnapshotName;
199  bool m_relationalDatabaseSnapshotNameHasBeenSet;
200 
201  Aws::Vector<Tag> m_tags;
202  bool m_tagsHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace Lightsail
207 } // namespace Aws
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::AddTags
CreateRelationalDatabaseSnapshotRequest & AddTags(const Tag &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:184
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::AddTags
CreateRelationalDatabaseSnapshotRequest & AddTags(Tag &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:191
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithRelationalDatabaseName
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseName(Aws::String &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:72
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithRelationalDatabaseSnapshotName
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseSnapshotName(const Aws::String &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:120
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:156
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetRelationalDatabaseSnapshotName
void SetRelationalDatabaseSnapshotName(const char *value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:113
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithRelationalDatabaseSnapshotName
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseSnapshotName(Aws::String &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:127
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithRelationalDatabaseName
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseName(const Aws::String &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:67
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRelationalDatabaseSnapshotRequest.h:142
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::CreateRelationalDatabaseSnapshotRequest
CreateRelationalDatabaseSnapshotRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetRelationalDatabaseSnapshotName
void SetRelationalDatabaseSnapshotName(Aws::String &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:106
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
LightsailRequest.h
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRelationalDatabaseSnapshotRequest.h:149
Tag.h
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(Aws::String &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:57
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const Aws::String &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:52
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetRelationalDatabaseSnapshotName
void SetRelationalDatabaseSnapshotName(const Aws::String &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:99
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::GetRelationalDatabaseSnapshotName
const Aws::String & GetRelationalDatabaseSnapshotName() const
Definition: CreateRelationalDatabaseSnapshotRequest.h:85
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::RelationalDatabaseNameHasBeenSet
bool RelationalDatabaseNameHasBeenSet() const
Definition: CreateRelationalDatabaseSnapshotRequest.h:47
AWSString.h
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithRelationalDatabaseSnapshotName
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseSnapshotName(const char *value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:134
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithRelationalDatabaseName
CreateRelationalDatabaseSnapshotRequest & WithRelationalDatabaseName(const char *value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:77
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::RelationalDatabaseSnapshotNameHasBeenSet
bool RelationalDatabaseSnapshotNameHasBeenSet() const
Definition: CreateRelationalDatabaseSnapshotRequest.h:92
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const char *value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:62
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:163
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithTags
CreateRelationalDatabaseSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:177
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::GetRelationalDatabaseName
const Aws::String & GetRelationalDatabaseName() const
Definition: CreateRelationalDatabaseSnapshotRequest.h:42
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRelationalDatabaseSnapshotRequest.h:32
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest
Definition: CreateRelationalDatabaseSnapshotRequest.h:24
Aws::Lightsail::Model::CreateRelationalDatabaseSnapshotRequest::WithTags
CreateRelationalDatabaseSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRelationalDatabaseSnapshotRequest.h:170