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 <utility> 11 12 namespace Aws 13 { 14 namespace Pinpoint 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_PINPOINT_API GetInAppMessagesRequest : public PinpointRequest 22 { 23 public: 24 GetInAppMessagesRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "GetInAppMessages"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The unique identifier for the application. This identifier is displayed as 37 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 38 */ GetApplicationId()39 inline const Aws::String& GetApplicationId() const{ return m_applicationId; } 40 41 /** 42 * <p>The unique identifier for the application. This identifier is displayed as 43 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 44 */ ApplicationIdHasBeenSet()45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } 46 47 /** 48 * <p>The unique identifier for the application. This identifier is displayed as 49 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 50 */ SetApplicationId(const Aws::String & value)51 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } 52 53 /** 54 * <p>The unique identifier for the application. This identifier is displayed as 55 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 56 */ SetApplicationId(Aws::String && value)57 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } 58 59 /** 60 * <p>The unique identifier for the application. This identifier is displayed as 61 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 62 */ SetApplicationId(const char * value)63 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } 64 65 /** 66 * <p>The unique identifier for the application. This identifier is displayed as 67 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 68 */ WithApplicationId(const Aws::String & value)69 inline GetInAppMessagesRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} 70 71 /** 72 * <p>The unique identifier for the application. This identifier is displayed as 73 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 74 */ WithApplicationId(Aws::String && value)75 inline GetInAppMessagesRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} 76 77 /** 78 * <p>The unique identifier for the application. This identifier is displayed as 79 * the <b>Project ID</b> on the Amazon Pinpoint console.</p> 80 */ WithApplicationId(const char * value)81 inline GetInAppMessagesRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} 82 83 84 /** 85 * <p>The unique identifier for the endpoint.</p> 86 */ GetEndpointId()87 inline const Aws::String& GetEndpointId() const{ return m_endpointId; } 88 89 /** 90 * <p>The unique identifier for the endpoint.</p> 91 */ EndpointIdHasBeenSet()92 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; } 93 94 /** 95 * <p>The unique identifier for the endpoint.</p> 96 */ SetEndpointId(const Aws::String & value)97 inline void SetEndpointId(const Aws::String& value) { m_endpointIdHasBeenSet = true; m_endpointId = value; } 98 99 /** 100 * <p>The unique identifier for the endpoint.</p> 101 */ SetEndpointId(Aws::String && value)102 inline void SetEndpointId(Aws::String&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::move(value); } 103 104 /** 105 * <p>The unique identifier for the endpoint.</p> 106 */ SetEndpointId(const char * value)107 inline void SetEndpointId(const char* value) { m_endpointIdHasBeenSet = true; m_endpointId.assign(value); } 108 109 /** 110 * <p>The unique identifier for the endpoint.</p> 111 */ WithEndpointId(const Aws::String & value)112 inline GetInAppMessagesRequest& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;} 113 114 /** 115 * <p>The unique identifier for the endpoint.</p> 116 */ WithEndpointId(Aws::String && value)117 inline GetInAppMessagesRequest& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;} 118 119 /** 120 * <p>The unique identifier for the endpoint.</p> 121 */ WithEndpointId(const char * value)122 inline GetInAppMessagesRequest& WithEndpointId(const char* value) { SetEndpointId(value); return *this;} 123 124 private: 125 126 Aws::String m_applicationId; 127 bool m_applicationIdHasBeenSet; 128 129 Aws::String m_endpointId; 130 bool m_endpointIdHasBeenSet; 131 }; 132 133 } // namespace Model 134 } // namespace Pinpoint 135 } // namespace Aws 136