AWS SDK for C++  0.14.3
AWS SDK for C++
CreatePlatformEndpointRequest.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 
41  inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
42 
47  inline void SetPlatformApplicationArn(const Aws::String& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
48 
53  inline void SetPlatformApplicationArn(Aws::String&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
54 
59  inline void SetPlatformApplicationArn(const char* value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn.assign(value); }
60 
65  inline CreatePlatformEndpointRequest& WithPlatformApplicationArn(const Aws::String& value) { SetPlatformApplicationArn(value); return *this;}
66 
71  inline CreatePlatformEndpointRequest& WithPlatformApplicationArn(Aws::String&& value) { SetPlatformApplicationArn(value); return *this;}
72 
77  inline CreatePlatformEndpointRequest& WithPlatformApplicationArn(const char* value) { SetPlatformApplicationArn(value); return *this;}
78 
86  inline const Aws::String& GetToken() const{ return m_token; }
87 
95  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
96 
104  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = value; }
105 
113  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
114 
122  inline CreatePlatformEndpointRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
123 
131  inline CreatePlatformEndpointRequest& WithToken(Aws::String&& value) { SetToken(value); return *this;}
132 
140  inline CreatePlatformEndpointRequest& WithToken(const char* value) { SetToken(value); return *this;}
141 
146  inline const Aws::String& GetCustomUserData() const{ return m_customUserData; }
147 
152  inline void SetCustomUserData(const Aws::String& value) { m_customUserDataHasBeenSet = true; m_customUserData = value; }
153 
158  inline void SetCustomUserData(Aws::String&& value) { m_customUserDataHasBeenSet = true; m_customUserData = value; }
159 
164  inline void SetCustomUserData(const char* value) { m_customUserDataHasBeenSet = true; m_customUserData.assign(value); }
165 
170  inline CreatePlatformEndpointRequest& WithCustomUserData(const Aws::String& value) { SetCustomUserData(value); return *this;}
171 
176  inline CreatePlatformEndpointRequest& WithCustomUserData(Aws::String&& value) { SetCustomUserData(value); return *this;}
177 
182  inline CreatePlatformEndpointRequest& WithCustomUserData(const char* value) { SetCustomUserData(value); return *this;}
183 
188  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
189 
194  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
195 
200  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
201 
206  inline CreatePlatformEndpointRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
207 
212  inline CreatePlatformEndpointRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
213 
218  inline CreatePlatformEndpointRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
219 
224  inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
225 
230  inline CreatePlatformEndpointRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
231 
236  inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
237 
242  inline CreatePlatformEndpointRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
243 
248  inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
249 
254  inline CreatePlatformEndpointRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
255 
256  private:
257  Aws::String m_platformApplicationArn;
258  bool m_platformApplicationArnHasBeenSet;
259  Aws::String m_token;
260  bool m_tokenHasBeenSet;
261  Aws::String m_customUserData;
262  bool m_customUserDataHasBeenSet;
264  bool m_attributesHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace SNS
269 } // namespace Aws
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlatformEndpointRequest & WithToken(const char *value)
CreatePlatformEndpointRequest & WithToken(const Aws::String &value)
CreatePlatformEndpointRequest & WithToken(Aws::String &&value)
CreatePlatformEndpointRequest & 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
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, const char *value)
CreatePlatformEndpointRequest & WithCustomUserData(const char *value)
CreatePlatformEndpointRequest & WithPlatformApplicationArn(Aws::String &&value)
CreatePlatformEndpointRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlatformEndpointRequest & AddAttributes(const char *key, const char *value)
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreatePlatformEndpointRequest & AddAttributes(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlatformEndpointRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePlatformEndpointRequest & WithPlatformApplicationArn(const char *value)
CreatePlatformEndpointRequest & WithCustomUserData(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePlatformEndpointRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:37
CreatePlatformEndpointRequest & WithPlatformApplicationArn(const Aws::String &value)
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
CreatePlatformEndpointRequest & WithCustomUserData(const Aws::String &value)
JSON (JavaScript Object Notation).