AWS SDK for C++  1.9.104
AWS SDK for C++
SetTopicAttributesRequest.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 "SetTopicAttributes"; }
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& GetTopicArn() const{ return m_topicArn; }
46 
50  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
51 
55  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
56 
60  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
61 
65  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
66 
70  inline SetTopicAttributesRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
71 
75  inline SetTopicAttributesRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
76 
80  inline SetTopicAttributesRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
81 
82 
117  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
118 
153  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
154 
189  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
190 
225  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
226 
261  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
262 
297  inline SetTopicAttributesRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
298 
333  inline SetTopicAttributesRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
334 
369  inline SetTopicAttributesRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
370 
371 
375  inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
376 
380  inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
381 
385  inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
386 
390  inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); }
391 
395  inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
396 
400  inline SetTopicAttributesRequest& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
401 
405  inline SetTopicAttributesRequest& WithAttributeValue(Aws::String&& value) { SetAttributeValue(std::move(value)); return *this;}
406 
410  inline SetTopicAttributesRequest& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
411 
412  private:
413 
414  Aws::String m_topicArn;
415  bool m_topicArnHasBeenSet;
416 
417  Aws::String m_attributeName;
418  bool m_attributeNameHasBeenSet;
419 
420  Aws::String m_attributeValue;
421  bool m_attributeValueHasBeenSet;
422  };
423 
424 } // namespace Model
425 } // namespace SNS
426 } // namespace Aws
Aws::SNS::Model::SetTopicAttributesRequest::WithAttributeValue
SetTopicAttributesRequest & WithAttributeValue(Aws::String &&value)
Definition: SetTopicAttributesRequest.h:405
Aws::SNS::Model::SetTopicAttributesRequest::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: SetTopicAttributesRequest.h:189
Aws::SNS::Model::SetTopicAttributesRequest::WithAttributeName
SetTopicAttributesRequest & WithAttributeName(const Aws::String &value)
Definition: SetTopicAttributesRequest.h:297
Aws::SNS::Model::SetTopicAttributesRequest::WithTopicArn
SetTopicAttributesRequest & WithTopicArn(const char *value)
Definition: SetTopicAttributesRequest.h:80
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::SetTopicAttributesRequest::SetTopicAttributesRequest
SetTopicAttributesRequest()
Aws::SNS::Model::SetTopicAttributesRequest::WithAttributeValue
SetTopicAttributesRequest & WithAttributeValue(const char *value)
Definition: SetTopicAttributesRequest.h:410
Aws::SNS::Model::SetTopicAttributesRequest::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: SetTopicAttributesRequest.h:117
Aws::SNS::Model::SetTopicAttributesRequest::WithAttributeName
SetTopicAttributesRequest & WithAttributeName(Aws::String &&value)
Definition: SetTopicAttributesRequest.h:333
Aws::SNS::Model::SetTopicAttributesRequest::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: SetTopicAttributesRequest.h:60
Aws::SNS::Model::SetTopicAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::SetTopicAttributesRequest::WithTopicArn
SetTopicAttributesRequest & WithTopicArn(Aws::String &&value)
Definition: SetTopicAttributesRequest.h:75
Aws::SNS::Model::SetTopicAttributesRequest::SetAttributeValue
void SetAttributeValue(Aws::String &&value)
Definition: SetTopicAttributesRequest.h:390
Aws::SNS::Model::SetTopicAttributesRequest::SetTopicArn
void SetTopicArn(const char *value)
Definition: SetTopicAttributesRequest.h:65
Aws::SNS::Model::SetTopicAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetTopicAttributesRequest.h:33
Aws::SNS::Model::SetTopicAttributesRequest::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: SetTopicAttributesRequest.h:50
Aws::SNS::Model::SetTopicAttributesRequest::WithTopicArn
SetTopicAttributesRequest & WithTopicArn(const Aws::String &value)
Definition: SetTopicAttributesRequest.h:70
Aws::SNS::Model::SetTopicAttributesRequest::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: SetTopicAttributesRequest.h:45
Aws::SNS::Model::SetTopicAttributesRequest::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: SetTopicAttributesRequest.h:225
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::SetTopicAttributesRequest::SetAttributeValue
void SetAttributeValue(const Aws::String &value)
Definition: SetTopicAttributesRequest.h:385
AWSString.h
Aws::SNS::Model::SetTopicAttributesRequest::AttributeValueHasBeenSet
bool AttributeValueHasBeenSet() const
Definition: SetTopicAttributesRequest.h:380
Aws::SNS::Model::SetTopicAttributesRequest::SetAttributeValue
void SetAttributeValue(const char *value)
Definition: SetTopicAttributesRequest.h:395
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::SetTopicAttributesRequest::SetAttributeName
void SetAttributeName(const char *value)
Definition: SetTopicAttributesRequest.h:261
SNS_EXPORTS.h
Aws::SNS::Model::SetTopicAttributesRequest::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: SetTopicAttributesRequest.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::SetTopicAttributesRequest::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::SNS::Model::SetTopicAttributesRequest::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: SetTopicAttributesRequest.h:55
Aws::SNS::Model::SetTopicAttributesRequest::WithAttributeValue
SetTopicAttributesRequest & WithAttributeValue(const Aws::String &value)
Definition: SetTopicAttributesRequest.h:400
Aws::SNS::Model::SetTopicAttributesRequest
Definition: SetTopicAttributesRequest.h:25
Aws::SNS::Model::SetTopicAttributesRequest::GetAttributeValue
const Aws::String & GetAttributeValue() const
Definition: SetTopicAttributesRequest.h:375
Aws::SNS::Model::SetTopicAttributesRequest::WithAttributeName
SetTopicAttributesRequest & WithAttributeName(const char *value)
Definition: SetTopicAttributesRequest.h:369