1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/pinpoint/Pinpoint_EXPORTS.h> 8 #include <aws/pinpoint/PinpointRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/pinpoint/model/SendUsersMessageRequest.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Pinpoint 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_PINPOINT_API SendUsersMessagesRequest : public PinpointRequest 23 { 24 public: 25 SendUsersMessagesRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "SendUsersMessages"; } 32 33 Aws::String SerializePayload() const override; 34 35 36 /** 37 * <p>The unique identifier for the application. This identifier is displayed as 38 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 39 */ GetApplicationId()40 inline const Aws::String& GetApplicationId() const{ return m_applicationId; } 41 42 /** 43 * <p>The unique identifier for the application. This identifier is displayed as 44 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 45 */ ApplicationIdHasBeenSet()46 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } 47 48 /** 49 * <p>The unique identifier for the application. This identifier is displayed as 50 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 51 */ SetApplicationId(const Aws::String & value)52 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } 53 54 /** 55 * <p>The unique identifier for the application. This identifier is displayed as 56 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 57 */ SetApplicationId(Aws::String && value)58 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } 59 60 /** 61 * <p>The unique identifier for the application. This identifier is displayed as 62 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 63 */ SetApplicationId(const char * value)64 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } 65 66 /** 67 * <p>The unique identifier for the application. This identifier is displayed as 68 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 69 */ WithApplicationId(const Aws::String & value)70 inline SendUsersMessagesRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} 71 72 /** 73 * <p>The unique identifier for the application. This identifier is displayed as 74 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 75 */ WithApplicationId(Aws::String && value)76 inline SendUsersMessagesRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} 77 78 /** 79 * <p>The unique identifier for the application. This identifier is displayed as 80 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 81 */ WithApplicationId(const char * value)82 inline SendUsersMessagesRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} 83 84 85 GetSendUsersMessageRequest()86 inline const SendUsersMessageRequest& GetSendUsersMessageRequest() const{ return m_sendUsersMessageRequest; } 87 88 SendUsersMessageRequestHasBeenSet()89 inline bool SendUsersMessageRequestHasBeenSet() const { return m_sendUsersMessageRequestHasBeenSet; } 90 91 SetSendUsersMessageRequest(const SendUsersMessageRequest & value)92 inline void SetSendUsersMessageRequest(const SendUsersMessageRequest& value) { m_sendUsersMessageRequestHasBeenSet = true; m_sendUsersMessageRequest = value; } 93 94 SetSendUsersMessageRequest(SendUsersMessageRequest && value)95 inline void SetSendUsersMessageRequest(SendUsersMessageRequest&& value) { m_sendUsersMessageRequestHasBeenSet = true; m_sendUsersMessageRequest = std::move(value); } 96 97 WithSendUsersMessageRequest(const SendUsersMessageRequest & value)98 inline SendUsersMessagesRequest& WithSendUsersMessageRequest(const SendUsersMessageRequest& value) { SetSendUsersMessageRequest(value); return *this;} 99 100 WithSendUsersMessageRequest(SendUsersMessageRequest && value)101 inline SendUsersMessagesRequest& WithSendUsersMessageRequest(SendUsersMessageRequest&& value) { SetSendUsersMessageRequest(std::move(value)); return *this;} 102 103 private: 104 105 Aws::String m_applicationId; 106 bool m_applicationIdHasBeenSet; 107 108 SendUsersMessageRequest m_sendUsersMessageRequest; 109 bool m_sendUsersMessageRequestHasBeenSet; 110 }; 111 112 } // namespace Model 113 } // namespace Pinpoint 114 } // namespace Aws 115