AWS SDK for C++  0.12.9
AWS SDK for C++
SetEndpointAttributesRequest.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>
20 
21 namespace Aws
22 {
23 namespace SNS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
41 
45  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
46 
50  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
51 
55  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
56 
60  inline SetEndpointAttributesRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
61 
65  inline SetEndpointAttributesRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(value); return *this;}
66 
70  inline SetEndpointAttributesRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
71 
85  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
86 
100  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
101 
115  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
116 
130  inline SetEndpointAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
131 
145  inline SetEndpointAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
146 
160  inline SetEndpointAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
161 
175  inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
176 
190  inline SetEndpointAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
191 
205  inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
206 
220  inline SetEndpointAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
221 
235  inline SetEndpointAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
236 
250  inline SetEndpointAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
251 
252  private:
253  Aws::String m_endpointArn;
254  bool m_endpointArnHasBeenSet;
256  bool m_attributesHasBeenSet;
257  };
258 
259 } // namespace Model
260 } // namespace SNS
261 } // namespace Aws
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
SetEndpointAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
SetEndpointAttributesRequest & WithEndpointArn(const Aws::String &value)
SetEndpointAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
SetEndpointAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SetEndpointAttributesRequest & WithEndpointArn(Aws::String &&value)
SetEndpointAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SetEndpointAttributesRequest & WithEndpointArn(const char *value)
SetEndpointAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
SetEndpointAttributesRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(Aws::Map< Aws::String, 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:34
SetEndpointAttributesRequest & AddAttributes(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
JSON (JavaScript Object Notation).