AWS SDK for C++  1.9.109
AWS SDK for C++
StopActivityStreamRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "StopActivityStream"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
44  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
45 
51  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
52 
58  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
59 
65  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
66 
72  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
73 
79  inline StopActivityStreamRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
80 
86  inline StopActivityStreamRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
87 
93  inline StopActivityStreamRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
94 
95 
100  inline bool GetApplyImmediately() const{ return m_applyImmediately; }
101 
106  inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
107 
112  inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
113 
118  inline StopActivityStreamRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
119 
120  private:
121 
122  Aws::String m_resourceArn;
123  bool m_resourceArnHasBeenSet;
124 
125  bool m_applyImmediately;
126  bool m_applyImmediatelyHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace RDS
131 } // namespace Aws
Aws::RDS::Model::StopActivityStreamRequest::WithResourceArn
StopActivityStreamRequest & WithResourceArn(const Aws::String &value)
Definition: StopActivityStreamRequest.h:79
Aws::RDS::Model::StopActivityStreamRequest::StopActivityStreamRequest
StopActivityStreamRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::StopActivityStreamRequest::GetApplyImmediately
bool GetApplyImmediately() const
Definition: StopActivityStreamRequest.h:100
Aws::RDS::Model::StopActivityStreamRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: StopActivityStreamRequest.h:72
Aws::RDS::Model::StopActivityStreamRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::StopActivityStreamRequest::WithApplyImmediately
StopActivityStreamRequest & WithApplyImmediately(bool value)
Definition: StopActivityStreamRequest.h:118
Aws::RDS::Model::StopActivityStreamRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: StopActivityStreamRequest.h:65
Aws::RDS::Model::StopActivityStreamRequest::ApplyImmediatelyHasBeenSet
bool ApplyImmediatelyHasBeenSet() const
Definition: StopActivityStreamRequest.h:106
Aws::RDS::Model::StopActivityStreamRequest::WithResourceArn
StopActivityStreamRequest & WithResourceArn(const char *value)
Definition: StopActivityStreamRequest.h:93
RDS_EXPORTS.h
Aws::RDS::Model::StopActivityStreamRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: StopActivityStreamRequest.h:58
AWSString.h
Aws::RDS::Model::StopActivityStreamRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: StopActivityStreamRequest.h:51
Aws::RDS::Model::StopActivityStreamRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: StopActivityStreamRequest.h:44
Aws::RDS::Model::StopActivityStreamRequest::SetApplyImmediately
void SetApplyImmediately(bool value)
Definition: StopActivityStreamRequest.h:112
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::StopActivityStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopActivityStreamRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::StopActivityStreamRequest
Definition: StopActivityStreamRequest.h:22
Aws::RDS::Model::StopActivityStreamRequest::WithResourceArn
StopActivityStreamRequest & WithResourceArn(Aws::String &&value)
Definition: StopActivityStreamRequest.h:86
RDSRequest.h
Aws::RDS::Model::StopActivityStreamRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17