AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
UpdateEventRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/notifications/NotificationsRequest.h>
10#include <aws/notifications/Notifications_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Notifications {
16namespace Model {
17
21 public:
22 AWS_NOTIFICATIONS_API UpdateEventRuleRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventRule"; }
29
30 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetArn() const { return m_arn; }
38 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
59 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
60 template <typename EventPatternT = Aws::String>
61 void SetEventPattern(EventPatternT&& value) {
62 m_eventPatternHasBeenSet = true;
63 m_eventPattern = std::forward<EventPatternT>(value);
64 }
65 template <typename EventPatternT = Aws::String>
66 UpdateEventRuleRequest& WithEventPattern(EventPatternT&& value) {
67 SetEventPattern(std::forward<EventPatternT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
78 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
79 template <typename RegionsT = Aws::Vector<Aws::String>>
80 void SetRegions(RegionsT&& value) {
81 m_regionsHasBeenSet = true;
82 m_regions = std::forward<RegionsT>(value);
83 }
84 template <typename RegionsT = Aws::Vector<Aws::String>>
86 SetRegions(std::forward<RegionsT>(value));
87 return *this;
88 }
89 template <typename RegionsT = Aws::String>
91 m_regionsHasBeenSet = true;
92 m_regions.emplace_back(std::forward<RegionsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_arn;
98
99 Aws::String m_eventPattern;
100
101 Aws::Vector<Aws::String> m_regions;
102 bool m_arnHasBeenSet = false;
103 bool m_eventPatternHasBeenSet = false;
104 bool m_regionsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Notifications
109} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetRegions() const
UpdateEventRuleRequest & WithEventPattern(EventPatternT &&value)
AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override
UpdateEventRuleRequest & WithRegions(RegionsT &&value)
UpdateEventRuleRequest & WithArn(ArnT &&value)
UpdateEventRuleRequest & AddRegions(RegionsT &&value)
AWS_NOTIFICATIONS_API UpdateEventRuleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector