AWS SDK for C++  0.14.3
AWS SDK for C++
CreatePlatformApplicationRequest.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 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
49  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
57 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
70  inline CreatePlatformApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
77  inline CreatePlatformApplicationRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
78 
84  inline CreatePlatformApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
85 
91  inline const Aws::String& GetPlatform() const{ return m_platform; }
92 
98  inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
99 
105  inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = value; }
106 
112  inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
113 
119  inline CreatePlatformApplicationRequest& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
120 
126  inline CreatePlatformApplicationRequest& WithPlatform(Aws::String&& value) { SetPlatform(value); return *this;}
127 
133  inline CreatePlatformApplicationRequest& WithPlatform(const char* value) { SetPlatform(value); return *this;}
134 
139  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
140 
145  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
146 
151  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
152 
157  inline CreatePlatformApplicationRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
158 
163  inline CreatePlatformApplicationRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
164 
169  inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
170 
175  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
176 
181  inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
182 
187  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
188 
193  inline CreatePlatformApplicationRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
194 
199  inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
200 
205  inline CreatePlatformApplicationRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
206 
207  private:
208  Aws::String m_name;
209  bool m_nameHasBeenSet;
210  Aws::String m_platform;
211  bool m_platformHasBeenSet;
213  bool m_attributesHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace SNS
218 } // namespace Aws
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePlatformApplicationRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
CreatePlatformApplicationRequest & WithPlatform(Aws::String &&value)
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, const char *value)
CreatePlatformApplicationRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
CreatePlatformApplicationRequest & WithPlatform(const Aws::String &value)
CreatePlatformApplicationRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePlatformApplicationRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlatformApplicationRequest & WithPlatform(const char *value)
CreatePlatformApplicationRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreatePlatformApplicationRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePlatformApplicationRequest & WithName(const Aws::String &value)
CreatePlatformApplicationRequest & AddAttributes(const char *key, 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:37
CreatePlatformApplicationRequest & WithName(Aws::String &&value)
CreatePlatformApplicationRequest & WithName(const char *value)
JSON (JavaScript Object Notation).