AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AuthorizeSnapshotAccessRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AuthorizeSnapshotAccess"; }
34
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
45 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
46
50 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
51
55 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
56
60 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
61
65 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
66
71
76
80 inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
81
82
86 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
87
91 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
92
96 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
97
101 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
102
106 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
107
111 inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
112
116 inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
117
121 inline AuthorizeSnapshotAccessRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
122
123
129 inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
130
136 inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
137
143 inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
144
150 inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); }
151
157 inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
158
165
172
179
180
186 inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; }
187
193 inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
194
200 inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
201
207 inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); }
208
214 inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); }
215
222
229
236
237 private:
238
239 Aws::String m_snapshotIdentifier;
240 bool m_snapshotIdentifierHasBeenSet = false;
241
242 Aws::String m_snapshotArn;
243 bool m_snapshotArnHasBeenSet = false;
244
245 Aws::String m_snapshotClusterIdentifier;
246 bool m_snapshotClusterIdentifierHasBeenSet = false;
247
248 Aws::String m_accountWithRestoreAccess;
249 bool m_accountWithRestoreAccessHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace Redshift
254} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotArn(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotArn(const char *value)
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const Aws::String &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const char *value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const char *value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const char *value)
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotArn(const Aws::String &value)
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(Aws::String &&value)
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String