AWS SDK for C++  1.9.66
AWS SDK for C++
AuthorizeSnapshotAccessRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace 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 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  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 
70  inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
71 
75  inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
76 
80  inline AuthorizeSnapshotAccessRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
81 
82 
88  inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; }
89 
95  inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
96 
102  inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; }
103 
109  inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); }
110 
116  inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); }
117 
123  inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const Aws::String& value) { SetSnapshotClusterIdentifier(value); return *this;}
124 
130  inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(Aws::String&& value) { SetSnapshotClusterIdentifier(std::move(value)); return *this;}
131 
137  inline AuthorizeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;}
138 
139 
145  inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; }
146 
152  inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
153 
159  inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
160 
166  inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); }
167 
173  inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); }
174 
180  inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(const Aws::String& value) { SetAccountWithRestoreAccess(value); return *this;}
181 
187  inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(Aws::String&& value) { SetAccountWithRestoreAccess(std::move(value)); return *this;}
188 
194  inline AuthorizeSnapshotAccessRequest& WithAccountWithRestoreAccess(const char* value) { SetAccountWithRestoreAccess(value); return *this;}
195 
196  private:
197 
198  Aws::String m_snapshotIdentifier;
199  bool m_snapshotIdentifierHasBeenSet;
200 
201  Aws::String m_snapshotClusterIdentifier;
202  bool m_snapshotClusterIdentifierHasBeenSet;
203 
204  Aws::String m_accountWithRestoreAccess;
205  bool m_accountWithRestoreAccessHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace Redshift
210 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithAccountWithRestoreAccess
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const char *value)
Definition: AuthorizeSnapshotAccessRequest.h:194
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithSnapshotIdentifier
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const Aws::String &value)
Definition: AuthorizeSnapshotAccessRequest.h:70
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithAccountWithRestoreAccess
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(Aws::String &&value)
Definition: AuthorizeSnapshotAccessRequest.h:187
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AuthorizeSnapshotAccessRequest.h:33
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest
Definition: AuthorizeSnapshotAccessRequest.h:25
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithSnapshotClusterIdentifier
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const Aws::String &value)
Definition: AuthorizeSnapshotAccessRequest.h:123
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithSnapshotClusterIdentifier
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(Aws::String &&value)
Definition: AuthorizeSnapshotAccessRequest.h:130
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::GetSnapshotClusterIdentifier
const Aws::String & GetSnapshotClusterIdentifier() const
Definition: AuthorizeSnapshotAccessRequest.h:88
RedshiftRequest.h
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(const Aws::String &value)
Definition: AuthorizeSnapshotAccessRequest.h:102
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const char *value)
Definition: AuthorizeSnapshotAccessRequest.h:65
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(Aws::String &&value)
Definition: AuthorizeSnapshotAccessRequest.h:109
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SnapshotIdentifierHasBeenSet
bool SnapshotIdentifierHasBeenSet() const
Definition: AuthorizeSnapshotAccessRequest.h:50
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetAccountWithRestoreAccess
void SetAccountWithRestoreAccess(const Aws::String &value)
Definition: AuthorizeSnapshotAccessRequest.h:159
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(Aws::String &&value)
Definition: AuthorizeSnapshotAccessRequest.h:60
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::AuthorizeSnapshotAccessRequest
AuthorizeSnapshotAccessRequest()
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SnapshotClusterIdentifierHasBeenSet
bool SnapshotClusterIdentifierHasBeenSet() const
Definition: AuthorizeSnapshotAccessRequest.h:95
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::GetSnapshotIdentifier
const Aws::String & GetSnapshotIdentifier() const
Definition: AuthorizeSnapshotAccessRequest.h:45
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const Aws::String &value)
Definition: AuthorizeSnapshotAccessRequest.h:55
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::AccountWithRestoreAccessHasBeenSet
bool AccountWithRestoreAccessHasBeenSet() const
Definition: AuthorizeSnapshotAccessRequest.h:152
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::GetAccountWithRestoreAccess
const Aws::String & GetAccountWithRestoreAccess() const
Definition: AuthorizeSnapshotAccessRequest.h:145
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithSnapshotIdentifier
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(const char *value)
Definition: AuthorizeSnapshotAccessRequest.h:80
AWSString.h
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetAccountWithRestoreAccess
void SetAccountWithRestoreAccess(const char *value)
Definition: AuthorizeSnapshotAccessRequest.h:173
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithAccountWithRestoreAccess
AuthorizeSnapshotAccessRequest & WithAccountWithRestoreAccess(const Aws::String &value)
Definition: AuthorizeSnapshotAccessRequest.h:180
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetAccountWithRestoreAccess
void SetAccountWithRestoreAccess(Aws::String &&value)
Definition: AuthorizeSnapshotAccessRequest.h:166
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithSnapshotIdentifier
AuthorizeSnapshotAccessRequest & WithSnapshotIdentifier(Aws::String &&value)
Definition: AuthorizeSnapshotAccessRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(const char *value)
Definition: AuthorizeSnapshotAccessRequest.h:116
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::WithSnapshotClusterIdentifier
AuthorizeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const char *value)
Definition: AuthorizeSnapshotAccessRequest.h:137
Aws::Redshift::Model::AuthorizeSnapshotAccessRequest::SerializePayload
Aws::String SerializePayload() const override