AWS SDK for C++  1.9.159
AWS SDK for C++
CreateDBClusterSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/neptune/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Neptune
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 "CreateDBClusterSnapshot"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
48  inline const Aws::String& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
49 
57  inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
58 
66  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
67 
75  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::move(value); }
76 
84  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
85 
93  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
94 
102  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(std::move(value)); return *this;}
103 
111  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(value); return *this;}
112 
113 
120  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
121 
128  inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
129 
136  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
137 
144  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
145 
152  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
153 
160  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
161 
168  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
169 
176  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
177 
178 
182  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
183 
187  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 
192  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 
197  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
198 
202  inline CreateDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
203 
207  inline CreateDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
208 
212  inline CreateDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
213 
217  inline CreateDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
218 
219  private:
220 
221  Aws::String m_dBClusterSnapshotIdentifier;
222  bool m_dBClusterSnapshotIdentifierHasBeenSet;
223 
224  Aws::String m_dBClusterIdentifier;
225  bool m_dBClusterIdentifierHasBeenSet;
226 
227  Aws::Vector<Tag> m_tags;
228  bool m_tagsHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace Neptune
233 } // namespace Aws
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:84
Aws::Http::URI
Definition: URI.h:32
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Neptune_EXPORTS.h
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBClusterSnapshotRequest.h:192
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithDBClusterSnapshotIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:111
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:152
Aws::Neptune::Model::CreateDBClusterSnapshotRequest
Definition: CreateDBClusterSnapshotRequest.h:24
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithDBClusterIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:160
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::DBClusterIdentifierHasBeenSet
bool DBClusterIdentifierHasBeenSet() const
Definition: CreateDBClusterSnapshotRequest.h:128
AWS_NEPTUNE_API
#define AWS_NEPTUNE_API
Definition: Neptune_EXPORTS.h:28
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBClusterSnapshotRequest.h:197
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBClusterSnapshotRequest.h:187
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:144
Aws::Neptune::NeptuneRequest
Definition: NeptuneRequest.h:17
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithDBClusterIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(const char *value)
Definition: CreateDBClusterSnapshotRequest.h:176
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::AddTags
CreateDBClusterSnapshotRequest & AddTags(Tag &&value)
Definition: CreateDBClusterSnapshotRequest.h:217
Tag.h
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBClusterSnapshotRequest.h:182
Aws::Neptune::Model::Tag
Definition: Tag.h:33
AWSString.h
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithDBClusterIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:168
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithTags
CreateDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBClusterSnapshotRequest.h:202
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:66
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:136
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::DBClusterSnapshotIdentifierHasBeenSet
bool DBClusterSnapshotIdentifierHasBeenSet() const
Definition: CreateDBClusterSnapshotRequest.h:57
NeptuneRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBClusterSnapshotRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithTags
CreateDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBClusterSnapshotRequest.h:207
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::GetDBClusterSnapshotIdentifier
const Aws::String & GetDBClusterSnapshotIdentifier() const
Definition: CreateDBClusterSnapshotRequest.h:48
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::AddTags
CreateDBClusterSnapshotRequest & AddTags(const Tag &value)
Definition: CreateDBClusterSnapshotRequest.h:212
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithDBClusterSnapshotIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:102
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::WithDBClusterSnapshotIdentifier
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CreateDBClusterSnapshotRequest.h:93
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::CreateDBClusterSnapshotRequest
CreateDBClusterSnapshotRequest()
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CreateDBClusterSnapshotRequest.h:75
Aws::Neptune::Model::CreateDBClusterSnapshotRequest::GetDBClusterIdentifier
const Aws::String & GetDBClusterIdentifier() const
Definition: CreateDBClusterSnapshotRequest.h:120