AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateSnapshotCopyGrantRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
28 {
29 public:
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 "CreateSnapshotCopyGrant"; }
37
39
40 protected:
41 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
54 inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
55
65 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
66
76 inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
77
87 inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
88
98 inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
99
110
121
132
133
138 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
139
144 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
145
150 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
151
156 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
157
162 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
163
168 inline CreateSnapshotCopyGrantRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
169
174 inline CreateSnapshotCopyGrantRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
175
180 inline CreateSnapshotCopyGrantRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
181
182
186 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
187
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192
196 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197
201 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202
206 inline CreateSnapshotCopyGrantRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
207
211 inline CreateSnapshotCopyGrantRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
212
216 inline CreateSnapshotCopyGrantRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
217
221 inline CreateSnapshotCopyGrantRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
222
223 private:
224
225 Aws::String m_snapshotCopyGrantName;
226 bool m_snapshotCopyGrantNameHasBeenSet = false;
227
228 Aws::String m_kmsKeyId;
229 bool m_kmsKeyIdHasBeenSet = false;
230
231 Aws::Vector<Tag> m_tags;
232 bool m_tagsHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Redshift
237} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSnapshotCopyGrantRequest & AddTags(const Tag &value)
CreateSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(const char *value)
CreateSnapshotCopyGrantRequest & AddTags(Tag &&value)
CreateSnapshotCopyGrantRequest & WithKmsKeyId(Aws::String &&value)
CreateSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(Aws::String &&value)
CreateSnapshotCopyGrantRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSnapshotCopyGrantRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(const Aws::String &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateSnapshotCopyGrantRequest & WithKmsKeyId(const Aws::String &value)
CreateSnapshotCopyGrantRequest & WithKmsKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector