AWS SDK for C++  1.9.104
AWS SDK for C++
RevokeSnapshotAccessRequest.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 "RevokeSnapshotAccess"; }
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 RevokeSnapshotAccessRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
71 
75  inline RevokeSnapshotAccessRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
76 
80  inline RevokeSnapshotAccessRequest& 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 RevokeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const Aws::String& value) { SetSnapshotClusterIdentifier(value); return *this;}
124 
130  inline RevokeSnapshotAccessRequest& WithSnapshotClusterIdentifier(Aws::String&& value) { SetSnapshotClusterIdentifier(std::move(value)); return *this;}
131 
137  inline RevokeSnapshotAccessRequest& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;}
138 
139 
144  inline const Aws::String& GetAccountWithRestoreAccess() const{ return m_accountWithRestoreAccess; }
145 
150  inline bool AccountWithRestoreAccessHasBeenSet() const { return m_accountWithRestoreAccessHasBeenSet; }
151 
156  inline void SetAccountWithRestoreAccess(const Aws::String& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = value; }
157 
162  inline void SetAccountWithRestoreAccess(Aws::String&& value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess = std::move(value); }
163 
168  inline void SetAccountWithRestoreAccess(const char* value) { m_accountWithRestoreAccessHasBeenSet = true; m_accountWithRestoreAccess.assign(value); }
169 
174  inline RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(const Aws::String& value) { SetAccountWithRestoreAccess(value); return *this;}
175 
180  inline RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(Aws::String&& value) { SetAccountWithRestoreAccess(std::move(value)); return *this;}
181 
186  inline RevokeSnapshotAccessRequest& WithAccountWithRestoreAccess(const char* value) { SetAccountWithRestoreAccess(value); return *this;}
187 
188  private:
189 
190  Aws::String m_snapshotIdentifier;
191  bool m_snapshotIdentifierHasBeenSet;
192 
193  Aws::String m_snapshotClusterIdentifier;
194  bool m_snapshotClusterIdentifierHasBeenSet;
195 
196  Aws::String m_accountWithRestoreAccess;
197  bool m_accountWithRestoreAccessHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace Redshift
202 } // namespace Aws
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithAccountWithRestoreAccess
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(Aws::String &&value)
Definition: RevokeSnapshotAccessRequest.h:180
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetAccountWithRestoreAccess
void SetAccountWithRestoreAccess(Aws::String &&value)
Definition: RevokeSnapshotAccessRequest.h:162
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const char *value)
Definition: RevokeSnapshotAccessRequest.h:65
Aws::Redshift::Model::RevokeSnapshotAccessRequest::AccountWithRestoreAccessHasBeenSet
bool AccountWithRestoreAccessHasBeenSet() const
Definition: RevokeSnapshotAccessRequest.h:150
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetAccountWithRestoreAccess
void SetAccountWithRestoreAccess(const Aws::String &value)
Definition: RevokeSnapshotAccessRequest.h:156
RedshiftRequest.h
Aws::Redshift::Model::RevokeSnapshotAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RevokeSnapshotAccessRequest.h:33
Aws::Redshift::Model::RevokeSnapshotAccessRequest::RevokeSnapshotAccessRequest
RevokeSnapshotAccessRequest()
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SnapshotClusterIdentifierHasBeenSet
bool SnapshotClusterIdentifierHasBeenSet() const
Definition: RevokeSnapshotAccessRequest.h:95
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithSnapshotClusterIdentifier
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(Aws::String &&value)
Definition: RevokeSnapshotAccessRequest.h:130
Aws::Redshift::Model::RevokeSnapshotAccessRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithAccountWithRestoreAccess
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(const Aws::String &value)
Definition: RevokeSnapshotAccessRequest.h:174
Aws::Redshift::Model::RevokeSnapshotAccessRequest
Definition: RevokeSnapshotAccessRequest.h:25
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const Aws::String &value)
Definition: RevokeSnapshotAccessRequest.h:55
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(Aws::String &&value)
Definition: RevokeSnapshotAccessRequest.h:60
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetAccountWithRestoreAccess
void SetAccountWithRestoreAccess(const char *value)
Definition: RevokeSnapshotAccessRequest.h:168
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithSnapshotIdentifier
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(const char *value)
Definition: RevokeSnapshotAccessRequest.h:80
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithSnapshotClusterIdentifier
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const Aws::String &value)
Definition: RevokeSnapshotAccessRequest.h:123
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithSnapshotIdentifier
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(Aws::String &&value)
Definition: RevokeSnapshotAccessRequest.h:75
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(Aws::String &&value)
Definition: RevokeSnapshotAccessRequest.h:109
Aws::Redshift::Model::RevokeSnapshotAccessRequest::GetAccountWithRestoreAccess
const Aws::String & GetAccountWithRestoreAccess() const
Definition: RevokeSnapshotAccessRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::RevokeSnapshotAccessRequest::GetSnapshotClusterIdentifier
const Aws::String & GetSnapshotClusterIdentifier() const
Definition: RevokeSnapshotAccessRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::RevokeSnapshotAccessRequest::GetSnapshotIdentifier
const Aws::String & GetSnapshotIdentifier() const
Definition: RevokeSnapshotAccessRequest.h:45
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(const Aws::String &value)
Definition: RevokeSnapshotAccessRequest.h:102
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SetSnapshotClusterIdentifier
void SetSnapshotClusterIdentifier(const char *value)
Definition: RevokeSnapshotAccessRequest.h:116
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithSnapshotClusterIdentifier
RevokeSnapshotAccessRequest & WithSnapshotClusterIdentifier(const char *value)
Definition: RevokeSnapshotAccessRequest.h:137
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithSnapshotIdentifier
RevokeSnapshotAccessRequest & WithSnapshotIdentifier(const Aws::String &value)
Definition: RevokeSnapshotAccessRequest.h:70
Aws::Redshift::Model::RevokeSnapshotAccessRequest::SnapshotIdentifierHasBeenSet
bool SnapshotIdentifierHasBeenSet() const
Definition: RevokeSnapshotAccessRequest.h:50
Aws::Redshift::Model::RevokeSnapshotAccessRequest::WithAccountWithRestoreAccess
RevokeSnapshotAccessRequest & WithAccountWithRestoreAccess(const char *value)
Definition: RevokeSnapshotAccessRequest.h:186