AWS SDK for C++  1.9.104
AWS SDK for C++
CreateDBClusterSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace 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 "CreateDBClusterSnapshot"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
51  inline const Aws::String& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
52 
60  inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
61 
69  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
70 
78  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::move(value); }
79 
87  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
88 
96  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
97 
105  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(std::move(value)); return *this;}
106 
114  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(value); return *this;}
115 
116 
123  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
124 
131  inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
132 
139  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
140 
147  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
148 
155  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
156 
163  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
164 
171  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
172 
179  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
180 
181 
185  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
186 
190  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 
195  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
196 
200  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
201 
205  inline CreateDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
206 
210  inline CreateDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
211 
215  inline CreateDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
216 
220  inline CreateDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
221 
222  private:
223 
224  Aws::String m_dBClusterSnapshotIdentifier;
225  bool m_dBClusterSnapshotIdentifierHasBeenSet;
226 
227  Aws::String m_dBClusterIdentifier;
228  bool m_dBClusterIdentifierHasBeenSet;
229 
230  Aws::Vector<Tag> m_tags;
231  bool m_tagsHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace RDS
236 } // namespace Aws
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBClusterSnapshotRequest.h:195
Aws::RDS::Model::CreateDBClusterSnapshotRequest
Definition: CreateDBClusterSnapshotRequest.h:27
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:69
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithDBClusterSnapshotIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:114
Aws::RDS::Model::CreateDBClusterSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBClusterSnapshotRequest.h:185
Aws::RDS::Model::CreateDBClusterSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBClusterSnapshotRequest.h:190
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithTags
CreateDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBClusterSnapshotRequest.h:210
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithTags
CreateDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBClusterSnapshotRequest.h:205
Aws::RDS::Model::CreateDBClusterSnapshotRequest::CreateDBClusterSnapshotRequest
CreateDBClusterSnapshotRequest()
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithDBClusterSnapshotIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:96
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:155
AWSVector.h
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:78
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithDBClusterIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:163
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:87
Aws::RDS::Model::CreateDBClusterSnapshotRequest::AddTags
CreateDBClusterSnapshotRequest & AddTags(Tag &&value)
Definition: CreateDBClusterSnapshotRequest.h:220
RDS_EXPORTS.h
Aws::RDS::Model::CreateDBClusterSnapshotRequest::DBClusterSnapshotIdentifierHasBeenSet
bool DBClusterSnapshotIdentifierHasBeenSet() const
Definition: CreateDBClusterSnapshotRequest.h:60
Aws::RDS::Model::CreateDBClusterSnapshotRequest::GetDBClusterSnapshotIdentifier
const Aws::String & GetDBClusterSnapshotIdentifier() const
Definition: CreateDBClusterSnapshotRequest.h:51
AWSString.h
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithDBClusterSnapshotIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:105
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateDBClusterSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBClusterSnapshotRequest.h:35
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithDBClusterIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:179
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:139
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:147
Aws::RDS::Model::CreateDBClusterSnapshotRequest::AddTags
CreateDBClusterSnapshotRequest & AddTags(const Tag &value)
Definition: CreateDBClusterSnapshotRequest.h:215
Aws::RDS::Model::CreateDBClusterSnapshotRequest::DBClusterIdentifierHasBeenSet
bool DBClusterIdentifierHasBeenSet() const
Definition: CreateDBClusterSnapshotRequest.h:131
RDSRequest.h
Aws::RDS::Model::CreateDBClusterSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateDBClusterSnapshotRequest::GetDBClusterIdentifier
const Aws::String & GetDBClusterIdentifier() const
Definition: CreateDBClusterSnapshotRequest.h:123
Aws::RDS::Model::CreateDBClusterSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBClusterSnapshotRequest.h:200
Aws::RDS::Model::CreateDBClusterSnapshotRequest::WithDBClusterIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:171