AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateEventRuleRequest.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/NotificationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Notifications
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_NOTIFICATIONS_API UpdateEventRuleRequest() = 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 "UpdateEventRule"; }
32
33 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 UpdateEventRuleRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
56 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
57 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
58 template<typename EventPatternT = Aws::String>
59 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
60 template<typename EventPatternT = Aws::String>
61 UpdateEventRuleRequest& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
70 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
71 template<typename RegionsT = Aws::Vector<Aws::String>>
72 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
73 template<typename RegionsT = Aws::Vector<Aws::String>>
74 UpdateEventRuleRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
75 template<typename RegionsT = Aws::String>
76 UpdateEventRuleRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
78 private:
79
80 Aws::String m_arn;
81 bool m_arnHasBeenSet = false;
82
83 Aws::String m_eventPattern;
84 bool m_eventPatternHasBeenSet = false;
85
87 bool m_regionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Notifications
92} // 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