AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateJobRequest.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 CreateJobRequest() = 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 "CreateJob"; }
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 JobType GetJobType() const { return m_jobType; }
42 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
43 inline void SetJobType(JobType value) {
44 m_jobTypeHasBeenSet = true;
45 m_jobType = value;
46 }
48 SetJobType(value);
49 return *this;
50 }
52
54
55 inline const Aws::String& GetManifest() const { return m_manifest; }
56 inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
57 template <typename ManifestT = Aws::String>
58 void SetManifest(ManifestT&& value) {
59 m_manifestHasBeenSet = true;
60 m_manifest = std::forward<ManifestT>(value);
61 }
62 template <typename ManifestT = Aws::String>
63 CreateJobRequest& WithManifest(ManifestT&& value) {
64 SetManifest(std::forward<ManifestT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetManifestAddendum() const { return m_manifestAddendum; }
72 inline bool ManifestAddendumHasBeenSet() const { return m_manifestAddendumHasBeenSet; }
73 template <typename ManifestAddendumT = Aws::String>
74 void SetManifestAddendum(ManifestAddendumT&& value) {
75 m_manifestAddendumHasBeenSet = true;
76 m_manifestAddendum = std::forward<ManifestAddendumT>(value);
77 }
78 template <typename ManifestAddendumT = Aws::String>
79 CreateJobRequest& WithManifestAddendum(ManifestAddendumT&& value) {
80 SetManifestAddendum(std::forward<ManifestAddendumT>(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 CreateJobRequest& 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 CreateJobRequest& WithAPIVersion(APIVersionT&& value) {
110 SetAPIVersion(std::forward<APIVersionT>(value));
111 return *this;
112 }
114 private:
115 JobType m_jobType{JobType::NOT_SET};
116
117 Aws::String m_manifest;
118
119 Aws::String m_manifestAddendum;
120
121 bool m_validateOnly{false};
122
123 Aws::String m_aPIVersion;
124 bool m_jobTypeHasBeenSet = false;
125 bool m_manifestHasBeenSet = false;
126 bool m_manifestAddendumHasBeenSet = false;
127 bool m_validateOnlyHasBeenSet = false;
128 bool m_aPIVersionHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace ImportExport
133} // namespace Aws
CreateJobRequest & WithJobType(JobType value)
CreateJobRequest & WithManifest(ManifestT &&value)
AWS_IMPORTEXPORT_API Aws::String SerializePayload() const override
CreateJobRequest & WithManifestAddendum(ManifestAddendumT &&value)
AWS_IMPORTEXPORT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithAPIVersion(APIVersionT &&value)
CreateJobRequest & WithValidateOnly(bool value)
void SetManifestAddendum(ManifestAddendumT &&value)
AWS_IMPORTEXPORT_API CreateJobRequest()=default
const Aws::String & GetManifestAddendum() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String