AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnableAlarmActionsRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatch
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCH_API EnableAlarmActionsRequest() = default;
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 "EnableAlarmActions"; }
32
33 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
45 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
46 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
47 void SetAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::forward<AlarmNamesT>(value); }
48 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
49 EnableAlarmActionsRequest& WithAlarmNames(AlarmNamesT&& value) { SetAlarmNames(std::forward<AlarmNamesT>(value)); return *this;}
50 template<typename AlarmNamesT = Aws::String>
51 EnableAlarmActionsRequest& AddAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value)); return *this; }
53 private:
54
55 Aws::Vector<Aws::String> m_alarmNames;
56 bool m_alarmNamesHasBeenSet = false;
57 };
58
59} // namespace Model
60} // namespace CloudWatch
61} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetAlarmNames() const
EnableAlarmActionsRequest & WithAlarmNames(AlarmNamesT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
EnableAlarmActionsRequest & AddAlarmNames(AlarmNamesT &&value)
AWS_CLOUDWATCH_API EnableAlarmActionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector