dai_env / include /aws /sns /model /CreatePlatformApplicationRequest.h
Shenghong's picture
Add files using upload-large-folder tool
bfd87b5 verified
Raw History Blame Contribute Delete
6.05 kB
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sns/SNS_EXPORTS.h>
#include <aws/sns/SNSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace SNS
{
namespace Model
{
/**
* <p>Input for CreatePlatformApplication action.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplicationInput">AWS
* API Reference</a></p>
*/
class CreatePlatformApplicationRequest : public SNSRequest
{
public:
AWS_SNS_API CreatePlatformApplicationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreatePlatformApplication"; }
AWS_SNS_API Aws::String SerializePayload() const override;
protected:
AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
///@{
/**
* <p>Application names must be made up of only uppercase and lowercase ASCII
* letters, numbers, underscores, hyphens, and periods, and must be between 1 and
* 256 characters long.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
inline CreatePlatformApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
inline CreatePlatformApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
inline CreatePlatformApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
///@}
///@{
/**
* <p>The following platforms are supported: ADM (Amazon Device Messaging), APNS
* (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud
* Messaging).</p>
*/
inline const Aws::String& GetPlatform() const{ return m_platform; }
inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
inline CreatePlatformApplicationRequest& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
inline CreatePlatformApplicationRequest& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
inline CreatePlatformApplicationRequest& WithPlatform(const char* value) { SetPlatform(value); return *this;}
///@}
///@{
/**
* <p>For a list of attributes, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html">
* <code>SetPlatformApplicationAttributes</code> </a>.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
inline CreatePlatformApplicationRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
inline CreatePlatformApplicationRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
inline CreatePlatformApplicationRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
inline CreatePlatformApplicationRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
///@}
private:
Aws::String m_name;
bool m_nameHasBeenSet = false;
Aws::String m_platform;
bool m_platformHasBeenSet = false;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet = false;
};
} // namespace Model
} // namespace SNS
} // namespace Aws