AWS SDK for C++  0.14.3
AWS SDK for C++
SetTopicAttributesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sns/SNS_EXPORTS.h>
17 #include <aws/sns/SNSRequest.h>
19 
20 namespace Aws
21 {
22 namespace SNS
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
40 
44  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
45 
49  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
50 
54  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
55 
59  inline SetTopicAttributesRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
60 
64  inline SetTopicAttributesRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
65 
69  inline SetTopicAttributesRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
70 
76  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
77 
83  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
84 
90  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
91 
97  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
98 
104  inline SetTopicAttributesRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
105 
111  inline SetTopicAttributesRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(value); return *this;}
112 
118  inline SetTopicAttributesRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
119 
123  inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
124 
128  inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
129 
133  inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
134 
138  inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
139 
143  inline SetTopicAttributesRequest& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
144 
148  inline SetTopicAttributesRequest& WithAttributeValue(Aws::String&& value) { SetAttributeValue(value); return *this;}
149 
153  inline SetTopicAttributesRequest& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
154 
155  private:
156  Aws::String m_topicArn;
157  bool m_topicArnHasBeenSet;
158  Aws::String m_attributeName;
159  bool m_attributeNameHasBeenSet;
160  Aws::String m_attributeValue;
161  bool m_attributeValueHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace SNS
166 } // namespace Aws
SetTopicAttributesRequest & WithAttributeValue(const char *value)
SetTopicAttributesRequest & WithTopicArn(Aws::String &&value)
SetTopicAttributesRequest & WithAttributeValue(const Aws::String &value)
SetTopicAttributesRequest & WithTopicArn(const Aws::String &value)
SetTopicAttributesRequest & WithAttributeValue(Aws::String &&value)
SetTopicAttributesRequest & WithAttributeName(Aws::String &&value)
SetTopicAttributesRequest & WithAttributeName(const char *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:37
SetTopicAttributesRequest & WithAttributeName(const Aws::String &value)
SetTopicAttributesRequest & WithTopicArn(const char *value)
JSON (JavaScript Object Notation).