AWS SDK for C++  1.9.104
AWS SDK for C++
CreatePlatformEndpointRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SNS
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreatePlatformEndpoint"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetPlatformApplicationArn() const{ return m_platformApplicationArn; }
48 
53  inline bool PlatformApplicationArnHasBeenSet() const { return m_platformApplicationArnHasBeenSet; }
54 
59  inline void SetPlatformApplicationArn(const Aws::String& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = value; }
60 
65  inline void SetPlatformApplicationArn(Aws::String&& value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn = std::move(value); }
66 
71  inline void SetPlatformApplicationArn(const char* value) { m_platformApplicationArnHasBeenSet = true; m_platformApplicationArn.assign(value); }
72 
77  inline CreatePlatformEndpointRequest& WithPlatformApplicationArn(const Aws::String& value) { SetPlatformApplicationArn(value); return *this;}
78 
83  inline CreatePlatformEndpointRequest& WithPlatformApplicationArn(Aws::String&& value) { SetPlatformApplicationArn(std::move(value)); return *this;}
84 
89  inline CreatePlatformEndpointRequest& WithPlatformApplicationArn(const char* value) { SetPlatformApplicationArn(value); return *this;}
90 
91 
99  inline const Aws::String& GetToken() const{ return m_token; }
100 
108  inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
109 
117  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
118 
126  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
127 
135  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
136 
144  inline CreatePlatformEndpointRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
145 
153  inline CreatePlatformEndpointRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
154 
162  inline CreatePlatformEndpointRequest& WithToken(const char* value) { SetToken(value); return *this;}
163 
164 
169  inline const Aws::String& GetCustomUserData() const{ return m_customUserData; }
170 
175  inline bool CustomUserDataHasBeenSet() const { return m_customUserDataHasBeenSet; }
176 
181  inline void SetCustomUserData(const Aws::String& value) { m_customUserDataHasBeenSet = true; m_customUserData = value; }
182 
187  inline void SetCustomUserData(Aws::String&& value) { m_customUserDataHasBeenSet = true; m_customUserData = std::move(value); }
188 
193  inline void SetCustomUserData(const char* value) { m_customUserDataHasBeenSet = true; m_customUserData.assign(value); }
194 
199  inline CreatePlatformEndpointRequest& WithCustomUserData(const Aws::String& value) { SetCustomUserData(value); return *this;}
200 
205  inline CreatePlatformEndpointRequest& WithCustomUserData(Aws::String&& value) { SetCustomUserData(std::move(value)); return *this;}
206 
211  inline CreatePlatformEndpointRequest& WithCustomUserData(const char* value) { SetCustomUserData(value); return *this;}
212 
213 
218  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
219 
224  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
225 
230  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
231 
236  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
237 
242  inline CreatePlatformEndpointRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
243 
248  inline CreatePlatformEndpointRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
249 
254  inline CreatePlatformEndpointRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
255 
260  inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
261 
266  inline CreatePlatformEndpointRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
267 
272  inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
273 
278  inline CreatePlatformEndpointRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
279 
284  inline CreatePlatformEndpointRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
285 
290  inline CreatePlatformEndpointRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
291 
292  private:
293 
294  Aws::String m_platformApplicationArn;
295  bool m_platformApplicationArnHasBeenSet;
296 
297  Aws::String m_token;
298  bool m_tokenHasBeenSet;
299 
300  Aws::String m_customUserData;
301  bool m_customUserDataHasBeenSet;
302 
304  bool m_attributesHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace SNS
309 } // namespace Aws
Aws::SNS::Model::CreatePlatformEndpointRequest::SetToken
void SetToken(Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:126
Aws::SNS::Model::CreatePlatformEndpointRequest::GetPlatformApplicationArn
const Aws::String & GetPlatformApplicationArn() const
Definition: CreatePlatformEndpointRequest.h:47
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::CreatePlatformEndpointRequest::CreatePlatformEndpointRequest
CreatePlatformEndpointRequest()
Aws::SNS::Model::CreatePlatformEndpointRequest::WithPlatformApplicationArn
CreatePlatformEndpointRequest & WithPlatformApplicationArn(Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:83
Aws::SNS::Model::CreatePlatformEndpointRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: CreatePlatformEndpointRequest.h:224
Aws::SNS::Model::CreatePlatformEndpointRequest::PlatformApplicationArnHasBeenSet
bool PlatformApplicationArnHasBeenSet() const
Definition: CreatePlatformEndpointRequest.h:53
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:254
Aws::SNS::Model::CreatePlatformEndpointRequest::SetToken
void SetToken(const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:117
Aws::SNS::Model::CreatePlatformEndpointRequest::SetToken
void SetToken(const char *value)
Definition: CreatePlatformEndpointRequest.h:135
Aws::SNS::Model::CreatePlatformEndpointRequest::SetPlatformApplicationArn
void SetPlatformApplicationArn(Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:65
Aws::SNS::Model::CreatePlatformEndpointRequest::SetCustomUserData
void SetCustomUserData(const char *value)
Definition: CreatePlatformEndpointRequest.h:193
Aws::SNS::Model::CreatePlatformEndpointRequest::GetCustomUserData
const Aws::String & GetCustomUserData() const
Definition: CreatePlatformEndpointRequest.h:169
Aws::SNS::Model::CreatePlatformEndpointRequest::WithPlatformApplicationArn
CreatePlatformEndpointRequest & WithPlatformApplicationArn(const char *value)
Definition: CreatePlatformEndpointRequest.h:89
Aws::SNS::Model::CreatePlatformEndpointRequest::WithToken
CreatePlatformEndpointRequest & WithToken(Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:153
Aws::SNS::Model::CreatePlatformEndpointRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::CreatePlatformEndpointRequest::SetPlatformApplicationArn
void SetPlatformApplicationArn(const char *value)
Definition: CreatePlatformEndpointRequest.h:71
Aws::SNS::Model::CreatePlatformEndpointRequest::TokenHasBeenSet
bool TokenHasBeenSet() const
Definition: CreatePlatformEndpointRequest.h:108
Aws::SNS::Model::CreatePlatformEndpointRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SNS::Model::CreatePlatformEndpointRequest::WithAttributes
CreatePlatformEndpointRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePlatformEndpointRequest.h:242
Aws::SNS::Model::CreatePlatformEndpointRequest::WithToken
CreatePlatformEndpointRequest & WithToken(const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:144
Aws::SNS::Model::CreatePlatformEndpointRequest::WithAttributes
CreatePlatformEndpointRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePlatformEndpointRequest.h:248
Aws::SNS::Model::CreatePlatformEndpointRequest::CustomUserDataHasBeenSet
bool CustomUserDataHasBeenSet() const
Definition: CreatePlatformEndpointRequest.h:175
SNSRequest.h
Aws::SNS::Model::CreatePlatformEndpointRequest::SetPlatformApplicationArn
void SetPlatformApplicationArn(const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:59
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:266
Aws::SNS::Model::CreatePlatformEndpointRequest::WithPlatformApplicationArn
CreatePlatformEndpointRequest & WithPlatformApplicationArn(const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:77
Aws::SNS::Model::CreatePlatformEndpointRequest::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePlatformEndpointRequest.h:236
Aws::SNS::Model::CreatePlatformEndpointRequest::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePlatformEndpointRequest.h:230
AWSString.h
Aws::SNS::Model::CreatePlatformEndpointRequest::SetCustomUserData
void SetCustomUserData(const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:181
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, const char *value)
Definition: CreatePlatformEndpointRequest.h:284
Aws::SNS::Model::CreatePlatformEndpointRequest::WithCustomUserData
CreatePlatformEndpointRequest & WithCustomUserData(const char *value)
Definition: CreatePlatformEndpointRequest.h:211
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:272
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::CreatePlatformEndpointRequest::WithToken
CreatePlatformEndpointRequest & WithToken(const char *value)
Definition: CreatePlatformEndpointRequest.h:162
Aws::SNS::Model::CreatePlatformEndpointRequest::WithCustomUserData
CreatePlatformEndpointRequest & WithCustomUserData(Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:205
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::CreatePlatformEndpointRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePlatformEndpointRequest.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:260
Aws::SNS::Model::CreatePlatformEndpointRequest::GetToken
const Aws::String & GetToken() const
Definition: CreatePlatformEndpointRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::CreatePlatformEndpointRequest::SetCustomUserData
void SetCustomUserData(Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:187
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(const char *key, Aws::String &&value)
Definition: CreatePlatformEndpointRequest.h:278
AWSMap.h
Aws::SNS::Model::CreatePlatformEndpointRequest::AddAttributes
CreatePlatformEndpointRequest & AddAttributes(const char *key, const char *value)
Definition: CreatePlatformEndpointRequest.h:290
Aws::SNS::Model::CreatePlatformEndpointRequest::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: CreatePlatformEndpointRequest.h:218
Aws::SNS::Model::CreatePlatformEndpointRequest
Definition: CreatePlatformEndpointRequest.h:26
Aws::SNS::Model::CreatePlatformEndpointRequest::WithCustomUserData
CreatePlatformEndpointRequest & WithCustomUserData(const Aws::String &value)
Definition: CreatePlatformEndpointRequest.h:199
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19