AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ImportExport
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
43 
44  inline const Aws::String& GetJobId() const{ return m_jobId; }
45 
46 
47  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
48 
49 
50  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
51 
52 
53  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
54 
55 
56  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
57 
58 
59  inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
60 
61 
62  inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
63 
64 
65  inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
66 
67 
68 
69  inline const Aws::String& GetManifest() const{ return m_manifest; }
70 
71 
72  inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
73 
74 
75  inline void SetManifest(const Aws::String& value) { m_manifestHasBeenSet = true; m_manifest = value; }
76 
77 
78  inline void SetManifest(Aws::String&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); }
79 
80 
81  inline void SetManifest(const char* value) { m_manifestHasBeenSet = true; m_manifest.assign(value); }
82 
83 
84  inline UpdateJobRequest& WithManifest(const Aws::String& value) { SetManifest(value); return *this;}
85 
86 
87  inline UpdateJobRequest& WithManifest(Aws::String&& value) { SetManifest(std::move(value)); return *this;}
88 
89 
90  inline UpdateJobRequest& WithManifest(const char* value) { SetManifest(value); return *this;}
91 
92 
93 
94  inline const JobType& GetJobType() const{ return m_jobType; }
95 
96 
97  inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
98 
99 
100  inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
101 
102 
103  inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
104 
105 
106  inline UpdateJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
107 
108 
109  inline UpdateJobRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
110 
111 
112 
113  inline bool GetValidateOnly() const{ return m_validateOnly; }
114 
115 
116  inline bool ValidateOnlyHasBeenSet() const { return m_validateOnlyHasBeenSet; }
117 
118 
119  inline void SetValidateOnly(bool value) { m_validateOnlyHasBeenSet = true; m_validateOnly = value; }
120 
121 
122  inline UpdateJobRequest& WithValidateOnly(bool value) { SetValidateOnly(value); return *this;}
123 
124 
125 
126  inline const Aws::String& GetAPIVersion() const{ return m_aPIVersion; }
127 
128 
129  inline bool APIVersionHasBeenSet() const { return m_aPIVersionHasBeenSet; }
130 
131 
132  inline void SetAPIVersion(const Aws::String& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = value; }
133 
134 
135  inline void SetAPIVersion(Aws::String&& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = std::move(value); }
136 
137 
138  inline void SetAPIVersion(const char* value) { m_aPIVersionHasBeenSet = true; m_aPIVersion.assign(value); }
139 
140 
141  inline UpdateJobRequest& WithAPIVersion(const Aws::String& value) { SetAPIVersion(value); return *this;}
142 
143 
144  inline UpdateJobRequest& WithAPIVersion(Aws::String&& value) { SetAPIVersion(std::move(value)); return *this;}
145 
146 
147  inline UpdateJobRequest& WithAPIVersion(const char* value) { SetAPIVersion(value); return *this;}
148 
149  private:
150 
151  Aws::String m_jobId;
152  bool m_jobIdHasBeenSet;
153 
154  Aws::String m_manifest;
155  bool m_manifestHasBeenSet;
156 
157  JobType m_jobType;
158  bool m_jobTypeHasBeenSet;
159 
160  bool m_validateOnly;
161  bool m_validateOnlyHasBeenSet;
162 
163  Aws::String m_aPIVersion;
164  bool m_aPIVersionHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace ImportExport
169 } // namespace Aws
const Aws::String & GetManifest() const
UpdateJobRequest & WithJobType(const JobType &value)
UpdateJobRequest & WithJobId(const char *value)
UpdateJobRequest & WithAPIVersion(const char *value)
UpdateJobRequest & WithManifest(const Aws::String &value)
const Aws::String & GetAPIVersion() const
UpdateJobRequest & WithJobId(const Aws::String &value)
UpdateJobRequest & WithManifest(const char *value)
UpdateJobRequest & WithJobId(Aws::String &&value)
void SetAPIVersion(const Aws::String &value)
UpdateJobRequest & WithJobType(JobType &&value)
UpdateJobRequest & WithAPIVersion(Aws::String &&value)
UpdateJobRequest & WithValidateOnly(bool value)
virtual const char * GetServiceRequestName() const override
void SetManifest(const Aws::String &value)
UpdateJobRequest & WithAPIVersion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateJobRequest & WithManifest(Aws::String &&value)
void SetJobId(const Aws::String &value)
#define AWS_IMPORTEXPORT_API