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 GetCampaignVersionRequest : public PinpointRequest 22 { 23 public: 24 GetCampaignVersionRequest(); 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 "GetCampaignVersion"; } 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 GetCampaignVersionRequest& 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 GetCampaignVersionRequest& 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 GetCampaignVersionRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} 82 83 84 /** 85 * <p>The unique identifier for the campaign.</p> 86 */ GetCampaignId()87 inline const Aws::String& GetCampaignId() const{ return m_campaignId; } 88 89 /** 90 * <p>The unique identifier for the campaign.</p> 91 */ CampaignIdHasBeenSet()92 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; } 93 94 /** 95 * <p>The unique identifier for the campaign.</p> 96 */ SetCampaignId(const Aws::String & value)97 inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; } 98 99 /** 100 * <p>The unique identifier for the campaign.</p> 101 */ SetCampaignId(Aws::String && value)102 inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); } 103 104 /** 105 * <p>The unique identifier for the campaign.</p> 106 */ SetCampaignId(const char * value)107 inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); } 108 109 /** 110 * <p>The unique identifier for the campaign.</p> 111 */ WithCampaignId(const Aws::String & value)112 inline GetCampaignVersionRequest& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;} 113 114 /** 115 * <p>The unique identifier for the campaign.</p> 116 */ WithCampaignId(Aws::String && value)117 inline GetCampaignVersionRequest& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;} 118 119 /** 120 * <p>The unique identifier for the campaign.</p> 121 */ WithCampaignId(const char * value)122 inline GetCampaignVersionRequest& WithCampaignId(const char* value) { SetCampaignId(value); return *this;} 123 124 125 /** 126 * <p>The unique version number (Version property) for the campaign version.</p> 127 */ GetVersion()128 inline const Aws::String& GetVersion() const{ return m_version; } 129 130 /** 131 * <p>The unique version number (Version property) for the campaign version.</p> 132 */ VersionHasBeenSet()133 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } 134 135 /** 136 * <p>The unique version number (Version property) for the campaign version.</p> 137 */ SetVersion(const Aws::String & value)138 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } 139 140 /** 141 * <p>The unique version number (Version property) for the campaign version.</p> 142 */ SetVersion(Aws::String && value)143 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } 144 145 /** 146 * <p>The unique version number (Version property) for the campaign version.</p> 147 */ SetVersion(const char * value)148 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } 149 150 /** 151 * <p>The unique version number (Version property) for the campaign version.</p> 152 */ WithVersion(const Aws::String & value)153 inline GetCampaignVersionRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} 154 155 /** 156 * <p>The unique version number (Version property) for the campaign version.</p> 157 */ WithVersion(Aws::String && value)158 inline GetCampaignVersionRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} 159 160 /** 161 * <p>The unique version number (Version property) for the campaign version.</p> 162 */ WithVersion(const char * value)163 inline GetCampaignVersionRequest& WithVersion(const char* value) { SetVersion(value); return *this;} 164 165 private: 166 167 Aws::String m_applicationId; 168 bool m_applicationIdHasBeenSet; 169 170 Aws::String m_campaignId; 171 bool m_campaignIdHasBeenSet; 172 173 Aws::String m_version; 174 bool m_versionHasBeenSet; 175 }; 176 177 } // namespace Model 178 } // namespace Pinpoint 179 } // namespace Aws 180