AWS SDK for C++  1.9.129
AWS SDK for C++
StartImportTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace ApplicationDiscoveryService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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.
31  inline virtual const char* GetServiceRequestName() const override { return "StartImportTask"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
46  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
47 
56  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
57 
66  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
67 
76  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
77 
86  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
87 
96  inline StartImportTaskRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
97 
106  inline StartImportTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
107 
116  inline StartImportTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
117 
118 
125  inline const Aws::String& GetName() const{ return m_name; }
126 
133  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 
141  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
142 
149  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
150 
157  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
158 
165  inline StartImportTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
166 
173  inline StartImportTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
174 
181  inline StartImportTaskRequest& WithName(const char* value) { SetName(value); return *this;}
182 
183 
189  inline const Aws::String& GetImportUrl() const{ return m_importUrl; }
190 
196  inline bool ImportUrlHasBeenSet() const { return m_importUrlHasBeenSet; }
197 
203  inline void SetImportUrl(const Aws::String& value) { m_importUrlHasBeenSet = true; m_importUrl = value; }
204 
210  inline void SetImportUrl(Aws::String&& value) { m_importUrlHasBeenSet = true; m_importUrl = std::move(value); }
211 
217  inline void SetImportUrl(const char* value) { m_importUrlHasBeenSet = true; m_importUrl.assign(value); }
218 
224  inline StartImportTaskRequest& WithImportUrl(const Aws::String& value) { SetImportUrl(value); return *this;}
225 
231  inline StartImportTaskRequest& WithImportUrl(Aws::String&& value) { SetImportUrl(std::move(value)); return *this;}
232 
238  inline StartImportTaskRequest& WithImportUrl(const char* value) { SetImportUrl(value); return *this;}
239 
240  private:
241 
242  Aws::String m_clientRequestToken;
243  bool m_clientRequestTokenHasBeenSet;
244 
245  Aws::String m_name;
246  bool m_nameHasBeenSet;
247 
248  Aws::String m_importUrl;
249  bool m_importUrlHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace ApplicationDiscoveryService
254 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::ImportUrlHasBeenSet
bool ImportUrlHasBeenSet() const
Definition: StartImportTaskRequest.h:196
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartImportTaskRequest.h:31
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetName
void SetName(Aws::String &&value)
Definition: StartImportTaskRequest.h:149
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithName
StartImportTaskRequest & WithName(const Aws::String &value)
Definition: StartImportTaskRequest.h:165
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SerializePayload
Aws::String SerializePayload() const override
ApplicationDiscoveryService_EXPORTS.h
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest
Definition: StartImportTaskRequest.h:23
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithClientRequestToken
StartImportTaskRequest & WithClientRequestToken(const char *value)
Definition: StartImportTaskRequest.h:116
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithImportUrl
StartImportTaskRequest & WithImportUrl(const char *value)
Definition: StartImportTaskRequest.h:238
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetImportUrl
void SetImportUrl(const char *value)
Definition: StartImportTaskRequest.h:217
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: StartImportTaskRequest.h:76
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::GetName
const Aws::String & GetName() const
Definition: StartImportTaskRequest.h:125
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithName
StartImportTaskRequest & WithName(Aws::String &&value)
Definition: StartImportTaskRequest.h:173
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithImportUrl
StartImportTaskRequest & WithImportUrl(Aws::String &&value)
Definition: StartImportTaskRequest.h:231
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::StartImportTaskRequest
StartImportTaskRequest()
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithClientRequestToken
StartImportTaskRequest & WithClientRequestToken(Aws::String &&value)
Definition: StartImportTaskRequest.h:106
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetName
void SetName(const char *value)
Definition: StartImportTaskRequest.h:157
AWSString.h
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: StartImportTaskRequest.h:86
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithName
StartImportTaskRequest & WithName(const char *value)
Definition: StartImportTaskRequest.h:181
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetImportUrl
void SetImportUrl(const Aws::String &value)
Definition: StartImportTaskRequest.h:203
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithClientRequestToken
StartImportTaskRequest & WithClientRequestToken(const Aws::String &value)
Definition: StartImportTaskRequest.h:96
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: StartImportTaskRequest.h:46
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::WithImportUrl
StartImportTaskRequest & WithImportUrl(const Aws::String &value)
Definition: StartImportTaskRequest.h:224
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: StartImportTaskRequest.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: StartImportTaskRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetName
void SetName(const Aws::String &value)
Definition: StartImportTaskRequest.h:141
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: StartImportTaskRequest.h:133
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::GetImportUrl
const Aws::String & GetImportUrl() const
Definition: StartImportTaskRequest.h:189
UUID.h
Aws::ApplicationDiscoveryService::Model::StartImportTaskRequest::SetImportUrl
void SetImportUrl(Aws::String &&value)
Definition: StartImportTaskRequest.h:210
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28