AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateJobRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/PresignedUrlConfig.h>
11#include <aws/iot/model/JobExecutionsRolloutConfig.h>
12#include <aws/iot/model/AbortConfig.h>
13#include <aws/iot/model/TimeoutConfig.h>
14#include <aws/iot/model/JobExecutionsRetryConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace IoT
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_IOT_API UpdateJobRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
40
41 AWS_IOT_API Aws::String SerializePayload() const override;
42
43 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
50 inline const Aws::String& GetJobId() const{ return m_jobId; }
51 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
52 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
53 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
54 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
55 inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
56 inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
57 inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline UpdateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline UpdateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline UpdateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
78 inline const PresignedUrlConfig& GetPresignedUrlConfig() const{ return m_presignedUrlConfig; }
79 inline bool PresignedUrlConfigHasBeenSet() const { return m_presignedUrlConfigHasBeenSet; }
80 inline void SetPresignedUrlConfig(const PresignedUrlConfig& value) { m_presignedUrlConfigHasBeenSet = true; m_presignedUrlConfig = value; }
81 inline void SetPresignedUrlConfig(PresignedUrlConfig&& value) { m_presignedUrlConfigHasBeenSet = true; m_presignedUrlConfig = std::move(value); }
83 inline UpdateJobRequest& WithPresignedUrlConfig(PresignedUrlConfig&& value) { SetPresignedUrlConfig(std::move(value)); return *this;}
85
87
90 inline const JobExecutionsRolloutConfig& GetJobExecutionsRolloutConfig() const{ return m_jobExecutionsRolloutConfig; }
91 inline bool JobExecutionsRolloutConfigHasBeenSet() const { return m_jobExecutionsRolloutConfigHasBeenSet; }
92 inline void SetJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = value; }
93 inline void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfig&& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = std::move(value); }
97
99
102 inline const AbortConfig& GetAbortConfig() const{ return m_abortConfig; }
103 inline bool AbortConfigHasBeenSet() const { return m_abortConfigHasBeenSet; }
104 inline void SetAbortConfig(const AbortConfig& value) { m_abortConfigHasBeenSet = true; m_abortConfig = value; }
105 inline void SetAbortConfig(AbortConfig&& value) { m_abortConfigHasBeenSet = true; m_abortConfig = std::move(value); }
106 inline UpdateJobRequest& WithAbortConfig(const AbortConfig& value) { SetAbortConfig(value); return *this;}
107 inline UpdateJobRequest& WithAbortConfig(AbortConfig&& value) { SetAbortConfig(std::move(value)); return *this;}
109
111
118 inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; }
119 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
120 inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; }
121 inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); }
122 inline UpdateJobRequest& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;}
123 inline UpdateJobRequest& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;}
125
127
138 inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
139 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
140 inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
141 inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
142 inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
143 inline UpdateJobRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
144 inline UpdateJobRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
145 inline UpdateJobRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
147
149
152 inline const JobExecutionsRetryConfig& GetJobExecutionsRetryConfig() const{ return m_jobExecutionsRetryConfig; }
153 inline bool JobExecutionsRetryConfigHasBeenSet() const { return m_jobExecutionsRetryConfigHasBeenSet; }
154 inline void SetJobExecutionsRetryConfig(const JobExecutionsRetryConfig& value) { m_jobExecutionsRetryConfigHasBeenSet = true; m_jobExecutionsRetryConfig = value; }
155 inline void SetJobExecutionsRetryConfig(JobExecutionsRetryConfig&& value) { m_jobExecutionsRetryConfigHasBeenSet = true; m_jobExecutionsRetryConfig = std::move(value); }
159 private:
160
161 Aws::String m_jobId;
162 bool m_jobIdHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 PresignedUrlConfig m_presignedUrlConfig;
168 bool m_presignedUrlConfigHasBeenSet = false;
169
170 JobExecutionsRolloutConfig m_jobExecutionsRolloutConfig;
171 bool m_jobExecutionsRolloutConfigHasBeenSet = false;
172
173 AbortConfig m_abortConfig;
174 bool m_abortConfigHasBeenSet = false;
175
176 TimeoutConfig m_timeoutConfig;
177 bool m_timeoutConfigHasBeenSet = false;
178
179 Aws::String m_namespaceId;
180 bool m_namespaceIdHasBeenSet = false;
181
182 JobExecutionsRetryConfig m_jobExecutionsRetryConfig;
183 bool m_jobExecutionsRetryConfigHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace IoT
188} // namespace Aws
UpdateJobRequest & WithNamespaceId(Aws::String &&value)
UpdateJobRequest & WithJobId(const char *value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateJobRequest & WithJobId(Aws::String &&value)
const JobExecutionsRetryConfig & GetJobExecutionsRetryConfig() const
UpdateJobRequest & WithJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig &value)
const Aws::String & GetNamespaceId() const
UpdateJobRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
const PresignedUrlConfig & GetPresignedUrlConfig() const
UpdateJobRequest & WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfig &&value)
UpdateJobRequest & WithNamespaceId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateJobRequest & WithNamespaceId(const Aws::String &value)
UpdateJobRequest & WithTimeoutConfig(TimeoutConfig &&value)
const Aws::String & GetDescription() const
const AbortConfig & GetAbortConfig() const
void SetAbortConfig(AbortConfig &&value)
void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfig &&value)
void SetJobId(const Aws::String &value)
const TimeoutConfig & GetTimeoutConfig() const
UpdateJobRequest & WithJobExecutionsRetryConfig(JobExecutionsRetryConfig &&value)
void SetJobId(const char *value)
void SetTimeoutConfig(const TimeoutConfig &value)
void SetNamespaceId(const char *value)
UpdateJobRequest & WithJobId(const Aws::String &value)
UpdateJobRequest & WithPresignedUrlConfig(PresignedUrlConfig &&value)
void SetAbortConfig(const AbortConfig &value)
UpdateJobRequest & WithJobExecutionsRetryConfig(const JobExecutionsRetryConfig &value)
void SetJobExecutionsRetryConfig(const JobExecutionsRetryConfig &value)
void SetJobId(Aws::String &&value)
void SetTimeoutConfig(TimeoutConfig &&value)
UpdateJobRequest & WithDescription(Aws::String &&value)
const JobExecutionsRolloutConfig & GetJobExecutionsRolloutConfig() const
UpdateJobRequest & WithAbortConfig(const AbortConfig &value)
void SetPresignedUrlConfig(PresignedUrlConfig &&value)
void SetNamespaceId(const Aws::String &value)
UpdateJobRequest & WithDescription(const char *value)
void SetDescription(const char *value)
void SetDescription(Aws::String &&value)
void SetJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig &value)
void SetNamespaceId(Aws::String &&value)
void SetPresignedUrlConfig(const PresignedUrlConfig &value)
UpdateJobRequest & WithPresignedUrlConfig(const PresignedUrlConfig &value)
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::String & GetJobId() const
void SetJobExecutionsRetryConfig(JobExecutionsRetryConfig &&value)
UpdateJobRequest & WithTimeoutConfig(const TimeoutConfig &value)
UpdateJobRequest & WithAbortConfig(AbortConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String