AWS SDK for C++  1.8.71
AWS SDK for C++
SetSubscriptionAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SNS
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 "SetSubscriptionAttributes"; }
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& GetSubscriptionArn() const{ return m_subscriptionArn; }
46 
50  inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
51 
55  inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
56 
60  inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
61 
65  inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
66 
70  inline SetSubscriptionAttributesRequest& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
71 
75  inline SetSubscriptionAttributesRequest& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
76 
80  inline SetSubscriptionAttributesRequest& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
81 
82 
102  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
103 
123  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
124 
144  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
145 
165  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
166 
186  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
187 
207  inline SetSubscriptionAttributesRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
208 
228  inline SetSubscriptionAttributesRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
229 
249  inline SetSubscriptionAttributesRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
250 
251 
255  inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
256 
260  inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
261 
265  inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
266 
270  inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); }
271 
275  inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
276 
280  inline SetSubscriptionAttributesRequest& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
281 
285  inline SetSubscriptionAttributesRequest& WithAttributeValue(Aws::String&& value) { SetAttributeValue(std::move(value)); return *this;}
286 
290  inline SetSubscriptionAttributesRequest& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
291 
292  private:
293 
294  Aws::String m_subscriptionArn;
295  bool m_subscriptionArnHasBeenSet;
296 
297  Aws::String m_attributeName;
298  bool m_attributeNameHasBeenSet;
299 
300  Aws::String m_attributeValue;
301  bool m_attributeValueHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace SNS
306 } // namespace Aws
SetSubscriptionAttributesRequest & WithAttributeValue(const Aws::String &value)
SetSubscriptionAttributesRequest & WithAttributeValue(const char *value)
SetSubscriptionAttributesRequest & WithAttributeName(Aws::String &&value)
SetSubscriptionAttributesRequest & WithAttributeValue(Aws::String &&value)
SetSubscriptionAttributesRequest & WithAttributeName(const Aws::String &value)
SetSubscriptionAttributesRequest & WithSubscriptionArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SetSubscriptionAttributesRequest & WithSubscriptionArn(const char *value)
SetSubscriptionAttributesRequest & WithAttributeName(const char *value)
SetSubscriptionAttributesRequest & WithSubscriptionArn(const Aws::String &value)