AWS SDK for C++  1.9.158
AWS SDK for C++
AddSourceIdentifierToSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Neptune
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 "AddSourceIdentifierToSubscription"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
44 
49  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
50 
55  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
56 
61  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
62 
67  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
68 
73  inline AddSourceIdentifierToSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
74 
79  inline AddSourceIdentifierToSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
80 
85  inline AddSourceIdentifierToSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
86 
87 
98  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
99 
110  inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
111 
122  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
123 
134  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
135 
146  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
147 
158  inline AddSourceIdentifierToSubscriptionRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
159 
170  inline AddSourceIdentifierToSubscriptionRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
171 
182  inline AddSourceIdentifierToSubscriptionRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
183 
184  private:
185 
186  Aws::String m_subscriptionName;
187  bool m_subscriptionNameHasBeenSet;
188 
189  Aws::String m_sourceIdentifier;
190  bool m_sourceIdentifierHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace Neptune
195 } // namespace Aws
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::WithSubscriptionName
AddSourceIdentifierToSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:73
Aws::Http::URI
Definition: URI.h:32
Neptune_EXPORTS.h
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:67
AWS_NEPTUNE_API
#define AWS_NEPTUNE_API
Definition: Neptune_EXPORTS.h:28
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::GetSourceIdentifier
const Aws::String & GetSourceIdentifier() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:98
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::WithSourceIdentifier
AddSourceIdentifierToSubscriptionRequest & WithSourceIdentifier(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:182
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SetSourceIdentifier
void SetSourceIdentifier(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:146
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::WithSubscriptionName
AddSourceIdentifierToSubscriptionRequest & WithSubscriptionName(const char *value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:85
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:55
Aws::Neptune::NeptuneRequest
Definition: NeptuneRequest.h:17
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::WithSourceIdentifier
AddSourceIdentifierToSubscriptionRequest & WithSourceIdentifier(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:158
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:61
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::WithSubscriptionName
AddSourceIdentifierToSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:79
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:43
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddSourceIdentifierToSubscriptionRequest.h:30
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::AddSourceIdentifierToSubscriptionRequest
AddSourceIdentifierToSubscriptionRequest()
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::WithSourceIdentifier
AddSourceIdentifierToSubscriptionRequest & WithSourceIdentifier(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:170
AWSString.h
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:49
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SetSourceIdentifier
void SetSourceIdentifier(Aws::String &&value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:134
NeptuneRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SetSourceIdentifier
void SetSourceIdentifier(const Aws::String &value)
Definition: AddSourceIdentifierToSubscriptionRequest.h:122
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest
Definition: AddSourceIdentifierToSubscriptionRequest.h:22
Aws::Neptune::Model::AddSourceIdentifierToSubscriptionRequest::SourceIdentifierHasBeenSet
bool SourceIdentifierHasBeenSet() const
Definition: AddSourceIdentifierToSubscriptionRequest.h:110