AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
UpdateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/JobUpdate.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API UpdateJobRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetJobName() const { return m_jobName; }
39 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
40 template <typename JobNameT = Aws::String>
41 void SetJobName(JobNameT&& value) {
42 m_jobNameHasBeenSet = true;
43 m_jobName = std::forward<JobNameT>(value);
44 }
45 template <typename JobNameT = Aws::String>
46 UpdateJobRequest& WithJobName(JobNameT&& value) {
47 SetJobName(std::forward<JobNameT>(value));
48 return *this;
49 }
51
53
57 inline const JobUpdate& GetJobUpdate() const { return m_jobUpdate; }
58 inline bool JobUpdateHasBeenSet() const { return m_jobUpdateHasBeenSet; }
59 template <typename JobUpdateT = JobUpdate>
60 void SetJobUpdate(JobUpdateT&& value) {
61 m_jobUpdateHasBeenSet = true;
62 m_jobUpdate = std::forward<JobUpdateT>(value);
63 }
64 template <typename JobUpdateT = JobUpdate>
65 UpdateJobRequest& WithJobUpdate(JobUpdateT&& value) {
66 SetJobUpdate(std::forward<JobUpdateT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_jobName;
72 bool m_jobNameHasBeenSet = false;
73
74 JobUpdate m_jobUpdate;
75 bool m_jobUpdateHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Glue
80} // namespace Aws
AWS_GLUE_API Aws::String SerializePayload() const override
const JobUpdate & GetJobUpdate() const
void SetJobUpdate(JobUpdateT &&value)
virtual const char * GetServiceRequestName() const override
UpdateJobRequest & WithJobName(JobNameT &&value)
const Aws::String & GetJobName() const
UpdateJobRequest & WithJobUpdate(JobUpdateT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLUE_API UpdateJobRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String