AWS SDK for C++  1.8.71
AWS SDK for C++
DeleteOTAUpdateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
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 "DeleteOTAUpdate"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetOtaUpdateId() const{ return m_otaUpdateId; }
45 
49  inline bool OtaUpdateIdHasBeenSet() const { return m_otaUpdateIdHasBeenSet; }
50 
54  inline void SetOtaUpdateId(const Aws::String& value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId = value; }
55 
59  inline void SetOtaUpdateId(Aws::String&& value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId = std::move(value); }
60 
64  inline void SetOtaUpdateId(const char* value) { m_otaUpdateIdHasBeenSet = true; m_otaUpdateId.assign(value); }
65 
69  inline DeleteOTAUpdateRequest& WithOtaUpdateId(const Aws::String& value) { SetOtaUpdateId(value); return *this;}
70 
74  inline DeleteOTAUpdateRequest& WithOtaUpdateId(Aws::String&& value) { SetOtaUpdateId(std::move(value)); return *this;}
75 
79  inline DeleteOTAUpdateRequest& WithOtaUpdateId(const char* value) { SetOtaUpdateId(value); return *this;}
80 
81 
86  inline bool GetDeleteStream() const{ return m_deleteStream; }
87 
92  inline bool DeleteStreamHasBeenSet() const { return m_deleteStreamHasBeenSet; }
93 
98  inline void SetDeleteStream(bool value) { m_deleteStreamHasBeenSet = true; m_deleteStream = value; }
99 
104  inline DeleteOTAUpdateRequest& WithDeleteStream(bool value) { SetDeleteStream(value); return *this;}
105 
106 
111  inline bool GetForceDeleteAWSJob() const{ return m_forceDeleteAWSJob; }
112 
117  inline bool ForceDeleteAWSJobHasBeenSet() const { return m_forceDeleteAWSJobHasBeenSet; }
118 
123  inline void SetForceDeleteAWSJob(bool value) { m_forceDeleteAWSJobHasBeenSet = true; m_forceDeleteAWSJob = value; }
124 
129  inline DeleteOTAUpdateRequest& WithForceDeleteAWSJob(bool value) { SetForceDeleteAWSJob(value); return *this;}
130 
131  private:
132 
133  Aws::String m_otaUpdateId;
134  bool m_otaUpdateIdHasBeenSet;
135 
136  bool m_deleteStream;
137  bool m_deleteStreamHasBeenSet;
138 
139  bool m_forceDeleteAWSJob;
140  bool m_forceDeleteAWSJobHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace IoT
145 } // namespace Aws
DeleteOTAUpdateRequest & WithForceDeleteAWSJob(bool value)
DeleteOTAUpdateRequest & WithDeleteStream(bool value)
void SetOtaUpdateId(const Aws::String &value)
DeleteOTAUpdateRequest & WithOtaUpdateId(const char *value)
DeleteOTAUpdateRequest & WithOtaUpdateId(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
DeleteOTAUpdateRequest & WithOtaUpdateId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97