AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CancelJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/importexport/ImportExportRequest.h>
9#include <aws/importexport/ImportExport_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ImportExport {
15namespace Model {
16
23 public:
24 AWS_IMPORTEXPORT_API CancelJobRequest() = default;
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.
30 inline virtual const char* GetServiceRequestName() const override { return "CancelJob"; }
31
32 AWS_IMPORTEXPORT_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_IMPORTEXPORT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
40 inline const Aws::String& GetJobId() const { return m_jobId; }
41 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
42 template <typename JobIdT = Aws::String>
43 void SetJobId(JobIdT&& value) {
44 m_jobIdHasBeenSet = true;
45 m_jobId = std::forward<JobIdT>(value);
46 }
47 template <typename JobIdT = Aws::String>
48 CancelJobRequest& WithJobId(JobIdT&& value) {
49 SetJobId(std::forward<JobIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetAPIVersion() const { return m_aPIVersion; }
57 inline bool APIVersionHasBeenSet() const { return m_aPIVersionHasBeenSet; }
58 template <typename APIVersionT = Aws::String>
59 void SetAPIVersion(APIVersionT&& value) {
60 m_aPIVersionHasBeenSet = true;
61 m_aPIVersion = std::forward<APIVersionT>(value);
62 }
63 template <typename APIVersionT = Aws::String>
64 CancelJobRequest& WithAPIVersion(APIVersionT&& value) {
65 SetAPIVersion(std::forward<APIVersionT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_jobId;
71
72 Aws::String m_aPIVersion;
73 bool m_jobIdHasBeenSet = false;
74 bool m_aPIVersionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ImportExport
79} // namespace Aws
AWS_IMPORTEXPORT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_IMPORTEXPORT_API CancelJobRequest()=default
const Aws::String & GetAPIVersion() const
CancelJobRequest & WithAPIVersion(APIVersionT &&value)
AWS_IMPORTEXPORT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CancelJobRequest & WithJobId(JobIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String