AWS SDK for C++  1.9.104
AWS SDK for C++
AddSourceIdentifierToSubscriptionRequest.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 
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 "AddSourceIdentifierToSubscription"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
46  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
47 
52  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
53 
58  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
59 
64  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
65 
70  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
71 
76  inline AddSourceIdentifierToSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
77 
82  inline AddSourceIdentifierToSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
83 
88  inline AddSourceIdentifierToSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
89 
90 
104  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
105 
119  inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
120 
134  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
135 
149  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
150 
164  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
165 
179  inline AddSourceIdentifierToSubscriptionRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
180 
194  inline AddSourceIdentifierToSubscriptionRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
195 
209  inline AddSourceIdentifierToSubscriptionRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
210 
211  private:
212 
213  Aws::String m_subscriptionName;
214  bool m_subscriptionNameHasBeenSet;
215 
216  Aws::String m_sourceIdentifier;
217  bool m_sourceIdentifierHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace RDS
222 } // namespace Aws
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::GetSourceIdentifier
const Aws::String & GetSourceIdentifier() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:104
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::WithSubscriptionName
AddSourceIdentifierToSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:82
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SetSourceIdentifier
void SetSourceIdentifier(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:149
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddSourceIdentifierToSubscriptionRequest.h:33
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SetSourceIdentifier
void SetSourceIdentifier(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:164
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::WithSourceIdentifier
AddSourceIdentifierToSubscriptionRequest & WithSourceIdentifier(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:194
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:70
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:52
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::WithSourceIdentifier
AddSourceIdentifierToSubscriptionRequest & WithSourceIdentifier(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:179
RDS_EXPORTS.h
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:64
AWSString.h
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SourceIdentifierHasBeenSet
bool SourceIdentifierHasBeenSet() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:119
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::WithSubscriptionName
AddSourceIdentifierToSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:76
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:46
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::AddSourceIdentifierToSubscriptionRequest
AddSourceIdentifierToSubscriptionRequest()
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::WithSourceIdentifier
AddSourceIdentifierToSubscriptionRequest & WithSourceIdentifier(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:209
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SetSourceIdentifier
void SetSourceIdentifier(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:134
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest
Definition: AddSourceIdentifierToSubscriptionRequest.h:25
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::WithSubscriptionName
AddSourceIdentifierToSubscriptionRequest & WithSubscriptionName(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:88
Aws::RDS::Model::AddSourceIdentifierToSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17