AWS SDK for C++  1.9.108
AWS SDK for C++
StartActivityStreamRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace RDS
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "StartActivityStream"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
44  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
45 
50  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
51 
56  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
57 
62  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
63 
68  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
69 
74  inline StartActivityStreamRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
75 
80  inline StartActivityStreamRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
81 
86  inline StartActivityStreamRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
87 
88 
94  inline const ActivityStreamMode& GetMode() const{ return m_mode; }
95 
101  inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
102 
108  inline void SetMode(const ActivityStreamMode& value) { m_modeHasBeenSet = true; m_mode = value; }
109 
115  inline void SetMode(ActivityStreamMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
116 
122  inline StartActivityStreamRequest& WithMode(const ActivityStreamMode& value) { SetMode(value); return *this;}
123 
129  inline StartActivityStreamRequest& WithMode(ActivityStreamMode&& value) { SetMode(std::move(value)); return *this;}
130 
131 
138  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
139 
146  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
147 
154  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
155 
162  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
163 
170  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
171 
178  inline StartActivityStreamRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
179 
186  inline StartActivityStreamRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
187 
194  inline StartActivityStreamRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
195 
196 
201  inline bool GetApplyImmediately() const{ return m_applyImmediately; }
202 
207  inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
208 
213  inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
214 
219  inline StartActivityStreamRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
220 
221 
227  inline bool GetEngineNativeAuditFieldsIncluded() const{ return m_engineNativeAuditFieldsIncluded; }
228 
234  inline bool EngineNativeAuditFieldsIncludedHasBeenSet() const { return m_engineNativeAuditFieldsIncludedHasBeenSet; }
235 
241  inline void SetEngineNativeAuditFieldsIncluded(bool value) { m_engineNativeAuditFieldsIncludedHasBeenSet = true; m_engineNativeAuditFieldsIncluded = value; }
242 
248  inline StartActivityStreamRequest& WithEngineNativeAuditFieldsIncluded(bool value) { SetEngineNativeAuditFieldsIncluded(value); return *this;}
249 
250  private:
251 
252  Aws::String m_resourceArn;
253  bool m_resourceArnHasBeenSet;
254 
255  ActivityStreamMode m_mode;
256  bool m_modeHasBeenSet;
257 
258  Aws::String m_kmsKeyId;
259  bool m_kmsKeyIdHasBeenSet;
260 
261  bool m_applyImmediately;
262  bool m_applyImmediatelyHasBeenSet;
263 
264  bool m_engineNativeAuditFieldsIncluded;
265  bool m_engineNativeAuditFieldsIncludedHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace RDS
270 } // namespace Aws
Aws::RDS::Model::StartActivityStreamRequest::WithResourceArn
StartActivityStreamRequest & WithResourceArn(const char *value)
Definition: StartActivityStreamRequest.h:86
Aws::RDS::Model::StartActivityStreamRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: StartActivityStreamRequest.h:50
Aws::RDS::Model::StartActivityStreamRequest::SetMode
void SetMode(const ActivityStreamMode &value)
Definition: StartActivityStreamRequest.h:108
Aws::RDS::Model::StartActivityStreamRequest::WithEngineNativeAuditFieldsIncluded
StartActivityStreamRequest & WithEngineNativeAuditFieldsIncluded(bool value)
Definition: StartActivityStreamRequest.h:248
Aws::RDS::Model::StartActivityStreamRequest::GetMode
const ActivityStreamMode & GetMode() const
Definition: StartActivityStreamRequest.h:94
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::StartActivityStreamRequest::StartActivityStreamRequest
StartActivityStreamRequest()
Aws::RDS::Model::StartActivityStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartActivityStreamRequest.h:31
Aws::RDS::Model::StartActivityStreamRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: StartActivityStreamRequest.h:146
Aws::RDS::Model::ActivityStreamMode
ActivityStreamMode
Definition: ActivityStreamMode.h:17
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::StartActivityStreamRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: StartActivityStreamRequest.h:154
Aws::RDS::Model::StartActivityStreamRequest::GetApplyImmediately
bool GetApplyImmediately() const
Definition: StartActivityStreamRequest.h:201
Aws::RDS::Model::StartActivityStreamRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: StartActivityStreamRequest.h:162
Aws::RDS::Model::StartActivityStreamRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: StartActivityStreamRequest.h:62
Aws::RDS::Model::StartActivityStreamRequest::WithKmsKeyId
StartActivityStreamRequest & WithKmsKeyId(Aws::String &&value)
Definition: StartActivityStreamRequest.h:186
Aws::RDS::Model::StartActivityStreamRequest::SetMode
void SetMode(ActivityStreamMode &&value)
Definition: StartActivityStreamRequest.h:115
Aws::RDS::Model::StartActivityStreamRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: StartActivityStreamRequest.h:68
ActivityStreamMode.h
Aws::RDS::Model::StartActivityStreamRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: StartActivityStreamRequest.h:138
Aws::RDS::Model::StartActivityStreamRequest::WithMode
StartActivityStreamRequest & WithMode(ActivityStreamMode &&value)
Definition: StartActivityStreamRequest.h:129
Aws::RDS::Model::StartActivityStreamRequest
Definition: StartActivityStreamRequest.h:23
Aws::RDS::Model::StartActivityStreamRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: StartActivityStreamRequest.h:44
Aws::RDS::Model::StartActivityStreamRequest::WithKmsKeyId
StartActivityStreamRequest & WithKmsKeyId(const Aws::String &value)
Definition: StartActivityStreamRequest.h:178
RDS_EXPORTS.h
Aws::RDS::Model::StartActivityStreamRequest::SetEngineNativeAuditFieldsIncluded
void SetEngineNativeAuditFieldsIncluded(bool value)
Definition: StartActivityStreamRequest.h:241
Aws::RDS::Model::StartActivityStreamRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: StartActivityStreamRequest.h:56
Aws::RDS::Model::StartActivityStreamRequest::WithResourceArn
StartActivityStreamRequest & WithResourceArn(Aws::String &&value)
Definition: StartActivityStreamRequest.h:80
Aws::RDS::Model::StartActivityStreamRequest::ApplyImmediatelyHasBeenSet
bool ApplyImmediatelyHasBeenSet() const
Definition: StartActivityStreamRequest.h:207
Aws::RDS::Model::StartActivityStreamRequest::WithKmsKeyId
StartActivityStreamRequest & WithKmsKeyId(const char *value)
Definition: StartActivityStreamRequest.h:194
AWSString.h
Aws::RDS::Model::StartActivityStreamRequest::EngineNativeAuditFieldsIncludedHasBeenSet
bool EngineNativeAuditFieldsIncludedHasBeenSet() const
Definition: StartActivityStreamRequest.h:234
Aws::RDS::Model::StartActivityStreamRequest::SetApplyImmediately
void SetApplyImmediately(bool value)
Definition: StartActivityStreamRequest.h:213
Aws::RDS::Model::StartActivityStreamRequest::GetEngineNativeAuditFieldsIncluded
bool GetEngineNativeAuditFieldsIncluded() const
Definition: StartActivityStreamRequest.h:227
Aws::RDS::Model::StartActivityStreamRequest::WithMode
StartActivityStreamRequest & WithMode(const ActivityStreamMode &value)
Definition: StartActivityStreamRequest.h:122
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::StartActivityStreamRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: StartActivityStreamRequest.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::StartActivityStreamRequest::WithResourceArn
StartActivityStreamRequest & WithResourceArn(const Aws::String &value)
Definition: StartActivityStreamRequest.h:74
Aws::RDS::Model::StartActivityStreamRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::StartActivityStreamRequest::ModeHasBeenSet
bool ModeHasBeenSet() const
Definition: StartActivityStreamRequest.h:101
Aws::RDS::Model::StartActivityStreamRequest::WithApplyImmediately
StartActivityStreamRequest & WithApplyImmediately(bool value)
Definition: StartActivityStreamRequest.h:219
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::StartActivityStreamRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override