/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SNS { namespace Model { /** *

Input for CreatePlatformApplication action.

See Also:

AWS * API Reference

*/ 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: /** *

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.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

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.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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.

*/ inline CreatePlatformApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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.

*/ inline CreatePlatformApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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.

*/ inline CreatePlatformApplicationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline const Aws::String& GetPlatform() const{ return m_platform; } /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); } /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline CreatePlatformApplicationRequest& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline CreatePlatformApplicationRequest& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} /** *

The following platforms are supported: ADM (Amazon Device Messaging), APNS * (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud * Messaging).

*/ inline CreatePlatformApplicationRequest& WithPlatform(const char* value) { SetPlatform(value); return *this;} /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ inline CreatePlatformApplicationRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ 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 m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws