AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DeleteJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API DeleteJobRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteJob"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
43 inline const Aws::String& GetJobId() const { return m_jobId; }
44 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
45 template <typename JobIdT = Aws::String>
46 void SetJobId(JobIdT&& value) {
47 m_jobIdHasBeenSet = true;
48 m_jobId = std::forward<JobIdT>(value);
49 }
50 template <typename JobIdT = Aws::String>
51 DeleteJobRequest& WithJobId(JobIdT&& value) {
52 SetJobId(std::forward<JobIdT>(value));
53 return *this;
54 }
56
58
67 inline bool GetForce() const { return m_force; }
68 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
69 inline void SetForce(bool value) {
70 m_forceHasBeenSet = true;
71 m_force = value;
72 }
73 inline DeleteJobRequest& WithForce(bool value) {
74 SetForce(value);
75 return *this;
76 }
78
80
91 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
92 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
93 template <typename NamespaceIdT = Aws::String>
94 void SetNamespaceId(NamespaceIdT&& value) {
95 m_namespaceIdHasBeenSet = true;
96 m_namespaceId = std::forward<NamespaceIdT>(value);
97 }
98 template <typename NamespaceIdT = Aws::String>
99 DeleteJobRequest& WithNamespaceId(NamespaceIdT&& value) {
100 SetNamespaceId(std::forward<NamespaceIdT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_jobId;
106
107 bool m_force{false};
108
109 Aws::String m_namespaceId;
110 bool m_jobIdHasBeenSet = false;
111 bool m_forceHasBeenSet = false;
112 bool m_namespaceIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace IoT
117} // namespace Aws
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetNamespaceId() const
AWS_IOT_API DeleteJobRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
void SetNamespaceId(NamespaceIdT &&value)
DeleteJobRequest & WithJobId(JobIdT &&value)
DeleteJobRequest & WithForce(bool value)
DeleteJobRequest & WithNamespaceId(NamespaceIdT &&value)
const Aws::String & GetJobId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String