AWS SDK for C++  1.9.126
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 
87  inline bool GetDeleteStream() const{ return m_deleteStream; }
88 
94  inline bool DeleteStreamHasBeenSet() const { return m_deleteStreamHasBeenSet; }
95 
101  inline void SetDeleteStream(bool value) { m_deleteStreamHasBeenSet = true; m_deleteStream = value; }
102 
108  inline DeleteOTAUpdateRequest& WithDeleteStream(bool value) { SetDeleteStream(value); return *this;}
109 
110 
116  inline bool GetForceDeleteAWSJob() const{ return m_forceDeleteAWSJob; }
117 
123  inline bool ForceDeleteAWSJobHasBeenSet() const { return m_forceDeleteAWSJobHasBeenSet; }
124 
130  inline void SetForceDeleteAWSJob(bool value) { m_forceDeleteAWSJobHasBeenSet = true; m_forceDeleteAWSJob = value; }
131 
137  inline DeleteOTAUpdateRequest& WithForceDeleteAWSJob(bool value) { SetForceDeleteAWSJob(value); return *this;}
138 
139  private:
140 
141  Aws::String m_otaUpdateId;
142  bool m_otaUpdateIdHasBeenSet;
143 
144  bool m_deleteStream;
145  bool m_deleteStreamHasBeenSet;
146 
147  bool m_forceDeleteAWSJob;
148  bool m_forceDeleteAWSJobHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace IoT
153 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::DeleteOTAUpdateRequest::WithOtaUpdateId
DeleteOTAUpdateRequest & WithOtaUpdateId(const Aws::String &value)
Definition: DeleteOTAUpdateRequest.h:69
Aws::IoT::Model::DeleteOTAUpdateRequest::DeleteOTAUpdateRequest
DeleteOTAUpdateRequest()
Aws::IoT::Model::DeleteOTAUpdateRequest::SetOtaUpdateId
void SetOtaUpdateId(const Aws::String &value)
Definition: DeleteOTAUpdateRequest.h:54
Aws::IoT::Model::DeleteOTAUpdateRequest::ForceDeleteAWSJobHasBeenSet
bool ForceDeleteAWSJobHasBeenSet() const
Definition: DeleteOTAUpdateRequest.h:123
Aws::IoT::Model::DeleteOTAUpdateRequest::SetOtaUpdateId
void SetOtaUpdateId(const char *value)
Definition: DeleteOTAUpdateRequest.h:64
Aws::IoT::Model::DeleteOTAUpdateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteOTAUpdateRequest::SetForceDeleteAWSJob
void SetForceDeleteAWSJob(bool value)
Definition: DeleteOTAUpdateRequest.h:130
Aws::IoT::Model::DeleteOTAUpdateRequest::DeleteStreamHasBeenSet
bool DeleteStreamHasBeenSet() const
Definition: DeleteOTAUpdateRequest.h:94
Aws::IoT::Model::DeleteOTAUpdateRequest::WithForceDeleteAWSJob
DeleteOTAUpdateRequest & WithForceDeleteAWSJob(bool value)
Definition: DeleteOTAUpdateRequest.h:137
Aws::IoT::Model::DeleteOTAUpdateRequest::GetDeleteStream
bool GetDeleteStream() const
Definition: DeleteOTAUpdateRequest.h:87
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteOTAUpdateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteOTAUpdateRequest.h:34
Aws::IoT::Model::DeleteOTAUpdateRequest::GetOtaUpdateId
const Aws::String & GetOtaUpdateId() const
Definition: DeleteOTAUpdateRequest.h:44
Aws::IoT::Model::DeleteOTAUpdateRequest::WithOtaUpdateId
DeleteOTAUpdateRequest & WithOtaUpdateId(Aws::String &&value)
Definition: DeleteOTAUpdateRequest.h:74
Aws::IoT::Model::DeleteOTAUpdateRequest::WithOtaUpdateId
DeleteOTAUpdateRequest & WithOtaUpdateId(const char *value)
Definition: DeleteOTAUpdateRequest.h:79
Aws::IoT::Model::DeleteOTAUpdateRequest::GetForceDeleteAWSJob
bool GetForceDeleteAWSJob() const
Definition: DeleteOTAUpdateRequest.h:116
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DeleteOTAUpdateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::DeleteOTAUpdateRequest::SetOtaUpdateId
void SetOtaUpdateId(Aws::String &&value)
Definition: DeleteOTAUpdateRequest.h:59
IoTRequest.h
Aws::IoT::Model::DeleteOTAUpdateRequest
Definition: DeleteOTAUpdateRequest.h:26
Aws::IoT::Model::DeleteOTAUpdateRequest::WithDeleteStream
DeleteOTAUpdateRequest & WithDeleteStream(bool value)
Definition: DeleteOTAUpdateRequest.h:108
Aws::IoT::Model::DeleteOTAUpdateRequest::OtaUpdateIdHasBeenSet
bool OtaUpdateIdHasBeenSet() const
Definition: DeleteOTAUpdateRequest.h:49
Aws::IoT::Model::DeleteOTAUpdateRequest::SetDeleteStream
void SetDeleteStream(bool value)
Definition: DeleteOTAUpdateRequest.h:101
IoT_EXPORTS.h