AWS SDK for C++  1.9.158
AWS SDK for C++
BatchEnableAlarmRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoTEventsData
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 "BatchEnableAlarm"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::Vector<EnableAlarmActionRequest>& GetEnableActionRequests() const{ return m_enableActionRequests; }
41 
46  inline bool EnableActionRequestsHasBeenSet() const { return m_enableActionRequestsHasBeenSet; }
47 
52  inline void SetEnableActionRequests(const Aws::Vector<EnableAlarmActionRequest>& value) { m_enableActionRequestsHasBeenSet = true; m_enableActionRequests = value; }
53 
58  inline void SetEnableActionRequests(Aws::Vector<EnableAlarmActionRequest>&& value) { m_enableActionRequestsHasBeenSet = true; m_enableActionRequests = std::move(value); }
59 
64  inline BatchEnableAlarmRequest& WithEnableActionRequests(const Aws::Vector<EnableAlarmActionRequest>& value) { SetEnableActionRequests(value); return *this;}
65 
70  inline BatchEnableAlarmRequest& WithEnableActionRequests(Aws::Vector<EnableAlarmActionRequest>&& value) { SetEnableActionRequests(std::move(value)); return *this;}
71 
76  inline BatchEnableAlarmRequest& AddEnableActionRequests(const EnableAlarmActionRequest& value) { m_enableActionRequestsHasBeenSet = true; m_enableActionRequests.push_back(value); return *this; }
77 
82  inline BatchEnableAlarmRequest& AddEnableActionRequests(EnableAlarmActionRequest&& value) { m_enableActionRequestsHasBeenSet = true; m_enableActionRequests.push_back(std::move(value)); return *this; }
83 
84  private:
85 
86  Aws::Vector<EnableAlarmActionRequest> m_enableActionRequests;
87  bool m_enableActionRequestsHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace IoTEventsData
92 } // namespace Aws
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::WithEnableActionRequests
BatchEnableAlarmRequest & WithEnableActionRequests(const Aws::Vector< EnableAlarmActionRequest > &value)
Definition: BatchEnableAlarmRequest.h:64
Aws::IoTEventsData::Model::EnableAlarmActionRequest
Definition: EnableAlarmActionRequest.h:32
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::WithEnableActionRequests
BatchEnableAlarmRequest & WithEnableActionRequests(Aws::Vector< EnableAlarmActionRequest > &&value)
Definition: BatchEnableAlarmRequest.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::EnableActionRequestsHasBeenSet
bool EnableActionRequestsHasBeenSet() const
Definition: BatchEnableAlarmRequest.h:46
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::GetEnableActionRequests
const Aws::Vector< EnableAlarmActionRequest > & GetEnableActionRequests() const
Definition: BatchEnableAlarmRequest.h:40
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::AddEnableActionRequests
BatchEnableAlarmRequest & AddEnableActionRequests(const EnableAlarmActionRequest &value)
Definition: BatchEnableAlarmRequest.h:76
Aws::IoTEventsData::Model::BatchEnableAlarmRequest
Definition: BatchEnableAlarmRequest.h:23
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::BatchEnableAlarmRequest
BatchEnableAlarmRequest()
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::SetEnableActionRequests
void SetEnableActionRequests(const Aws::Vector< EnableAlarmActionRequest > &value)
Definition: BatchEnableAlarmRequest.h:52
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchEnableAlarmRequest.h:31
IoTEventsDataRequest.h
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::AddEnableActionRequests
BatchEnableAlarmRequest & AddEnableActionRequests(EnableAlarmActionRequest &&value)
Definition: BatchEnableAlarmRequest.h:82
IoTEventsData_EXPORTS.h
Aws::IoTEventsData::Model::BatchEnableAlarmRequest::SetEnableActionRequests
void SetEnableActionRequests(Aws::Vector< EnableAlarmActionRequest > &&value)
Definition: BatchEnableAlarmRequest.h:58
EnableAlarmActionRequest.h
AWS_IOTEVENTSDATA_API
#define AWS_IOTEVENTSDATA_API
Definition: IoTEventsData_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTEventsData::IoTEventsDataRequest
Definition: IoTEventsDataRequest.h:17