AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateTopicRuleDestinationRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateTopicRuleDestination"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetArn() const{ return m_arn; }
40 
44  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 
49  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 
54  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 
59  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
60 
64  inline UpdateTopicRuleDestinationRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
65 
69  inline UpdateTopicRuleDestinationRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 
74  inline UpdateTopicRuleDestinationRequest& WithArn(const char* value) { SetArn(value); return *this;}
75 
76 
97  inline const TopicRuleDestinationStatus& GetStatus() const{ return m_status; }
98 
119  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 
141  inline void SetStatus(const TopicRuleDestinationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
142 
163  inline void SetStatus(TopicRuleDestinationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
164 
185  inline UpdateTopicRuleDestinationRequest& WithStatus(const TopicRuleDestinationStatus& value) { SetStatus(value); return *this;}
186 
207  inline UpdateTopicRuleDestinationRequest& WithStatus(TopicRuleDestinationStatus&& value) { SetStatus(std::move(value)); return *this;}
208 
209  private:
210 
211  Aws::String m_arn;
212  bool m_arnHasBeenSet;
213 
215  bool m_statusHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace IoT
220 } // namespace Aws
Aws::IoT::Model::TopicRuleDestinationStatus
TopicRuleDestinationStatus
Definition: TopicRuleDestinationStatus.h:17
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: UpdateTopicRuleDestinationRequest.h:44
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::GetStatus
const TopicRuleDestinationStatus & GetStatus() const
Definition: UpdateTopicRuleDestinationRequest.h:97
Aws::IoT::Model::UpdateTopicRuleDestinationRequest
Definition: UpdateTopicRuleDestinationRequest.h:23
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::SetArn
void SetArn(const Aws::String &value)
Definition: UpdateTopicRuleDestinationRequest.h:49
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::GetArn
const Aws::String & GetArn() const
Definition: UpdateTopicRuleDestinationRequest.h:39
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::WithArn
UpdateTopicRuleDestinationRequest & WithArn(Aws::String &&value)
Definition: UpdateTopicRuleDestinationRequest.h:69
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::WithStatus
UpdateTopicRuleDestinationRequest & WithStatus(const TopicRuleDestinationStatus &value)
Definition: UpdateTopicRuleDestinationRequest.h:185
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::SetArn
void SetArn(const char *value)
Definition: UpdateTopicRuleDestinationRequest.h:59
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::WithArn
UpdateTopicRuleDestinationRequest & WithArn(const char *value)
Definition: UpdateTopicRuleDestinationRequest.h:74
TopicRuleDestinationStatus.h
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::UpdateTopicRuleDestinationRequest
UpdateTopicRuleDestinationRequest()
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::WithArn
UpdateTopicRuleDestinationRequest & WithArn(const Aws::String &value)
Definition: UpdateTopicRuleDestinationRequest.h:64
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTopicRuleDestinationRequest.h:31
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::SetArn
void SetArn(Aws::String &&value)
Definition: UpdateTopicRuleDestinationRequest.h:54
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdateTopicRuleDestinationRequest.h:119
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::SetStatus
void SetStatus(TopicRuleDestinationStatus &&value)
Definition: UpdateTopicRuleDestinationRequest.h:163
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
IoTRequest.h
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::WithStatus
UpdateTopicRuleDestinationRequest & WithStatus(TopicRuleDestinationStatus &&value)
Definition: UpdateTopicRuleDestinationRequest.h:207
Aws::IoT::Model::UpdateTopicRuleDestinationRequest::SetStatus
void SetStatus(const TopicRuleDestinationStatus &value)
Definition: UpdateTopicRuleDestinationRequest.h:141
IoT_EXPORTS.h