AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateJobRequest.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#include <aws/importexport/model/JobType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ImportExport {
16namespace Model {
17
24 public:
25 AWS_IMPORTEXPORT_API UpdateJobRequest() = 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 "UpdateJob"; }
32
33 AWS_IMPORTEXPORT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_IMPORTEXPORT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
41 inline const Aws::String& GetJobId() const { return m_jobId; }
42 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
43 template <typename JobIdT = Aws::String>
44 void SetJobId(JobIdT&& value) {
45 m_jobIdHasBeenSet = true;
46 m_jobId = std::forward<JobIdT>(value);
47 }
48 template <typename JobIdT = Aws::String>
49 UpdateJobRequest& WithJobId(JobIdT&& value) {
50 SetJobId(std::forward<JobIdT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetManifest() const { return m_manifest; }
58 inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
59 template <typename ManifestT = Aws::String>
60 void SetManifest(ManifestT&& value) {
61 m_manifestHasBeenSet = true;
62 m_manifest = std::forward<ManifestT>(value);
63 }
64 template <typename ManifestT = Aws::String>
65 UpdateJobRequest& WithManifest(ManifestT&& value) {
66 SetManifest(std::forward<ManifestT>(value));
67 return *this;
68 }
70
72
73 inline JobType GetJobType() const { return m_jobType; }
74 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
75 inline void SetJobType(JobType value) {
76 m_jobTypeHasBeenSet = true;
77 m_jobType = value;
78 }
80 SetJobType(value);
81 return *this;
82 }
84
86
87 inline bool GetValidateOnly() const { return m_validateOnly; }
88 inline bool ValidateOnlyHasBeenSet() const { return m_validateOnlyHasBeenSet; }
89 inline void SetValidateOnly(bool value) {
90 m_validateOnlyHasBeenSet = true;
91 m_validateOnly = value;
92 }
93 inline UpdateJobRequest& WithValidateOnly(bool value) {
94 SetValidateOnly(value);
95 return *this;
96 }
98
100
101 inline const Aws::String& GetAPIVersion() const { return m_aPIVersion; }
102 inline bool APIVersionHasBeenSet() const { return m_aPIVersionHasBeenSet; }
103 template <typename APIVersionT = Aws::String>
104 void SetAPIVersion(APIVersionT&& value) {
105 m_aPIVersionHasBeenSet = true;
106 m_aPIVersion = std::forward<APIVersionT>(value);
107 }
108 template <typename APIVersionT = Aws::String>
109 UpdateJobRequest& WithAPIVersion(APIVersionT&& value) {
110 SetAPIVersion(std::forward<APIVersionT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_jobId;
116
117 Aws::String m_manifest;
118
119 JobType m_jobType{JobType::NOT_SET};
120
121 bool m_validateOnly{false};
122
123 Aws::String m_aPIVersion;
124 bool m_jobIdHasBeenSet = false;
125 bool m_manifestHasBeenSet = false;
126 bool m_jobTypeHasBeenSet = false;
127 bool m_validateOnlyHasBeenSet = false;
128 bool m_aPIVersionHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace ImportExport
133} // namespace Aws
UpdateJobRequest & WithAPIVersion(APIVersionT &&value)
AWS_IMPORTEXPORT_API UpdateJobRequest()=default
AWS_IMPORTEXPORT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateJobRequest & WithManifest(ManifestT &&value)
virtual const char * GetServiceRequestName() const override
UpdateJobRequest & WithValidateOnly(bool value)
AWS_IMPORTEXPORT_API Aws::String SerializePayload() const override
UpdateJobRequest & WithJobId(JobIdT &&value)
UpdateJobRequest & WithJobType(JobType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String