AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartImportTaskRequest.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/discovery/ApplicationDiscoveryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace ApplicationDiscoveryService
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPLICATIONDISCOVERYSERVICE_API StartImportTaskRequest() = default;
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_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
47 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
48 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
49 template<typename ClientRequestTokenT = Aws::String>
50 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
51 template<typename ClientRequestTokenT = Aws::String>
52 StartImportTaskRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
54
56
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 StartImportTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
76 inline const Aws::String& GetImportUrl() const { return m_importUrl; }
77 inline bool ImportUrlHasBeenSet() const { return m_importUrlHasBeenSet; }
78 template<typename ImportUrlT = Aws::String>
79 void SetImportUrl(ImportUrlT&& value) { m_importUrlHasBeenSet = true; m_importUrl = std::forward<ImportUrlT>(value); }
80 template<typename ImportUrlT = Aws::String>
81 StartImportTaskRequest& WithImportUrl(ImportUrlT&& value) { SetImportUrl(std::forward<ImportUrlT>(value)); return *this;}
83 private:
84
85 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
86 bool m_clientRequestTokenHasBeenSet = true;
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
91 Aws::String m_importUrl;
92 bool m_importUrlHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ApplicationDiscoveryService
97} // namespace Aws
AWS_APPLICATIONDISCOVERYSERVICE_API StartImportTaskRequest()=default
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartImportTaskRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String