AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TestEventPatternRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EventBridge {
15namespace Model {
16
20 public:
21 AWS_EVENTBRIDGE_API TestEventPatternRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "TestEventPattern"; }
28
29 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
40 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
41 template <typename EventPatternT = Aws::String>
42 void SetEventPattern(EventPatternT&& value) {
43 m_eventPatternHasBeenSet = true;
44 m_eventPattern = std::forward<EventPatternT>(value);
45 }
46 template <typename EventPatternT = Aws::String>
47 TestEventPatternRequest& WithEventPattern(EventPatternT&& value) {
48 SetEventPattern(std::forward<EventPatternT>(value));
49 return *this;
50 }
52
54
64 inline const Aws::String& GetEvent() const { return m_event; }
65 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
66 template <typename EventT = Aws::String>
67 void SetEvent(EventT&& value) {
68 m_eventHasBeenSet = true;
69 m_event = std::forward<EventT>(value);
70 }
71 template <typename EventT = Aws::String>
73 SetEvent(std::forward<EventT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_eventPattern;
79
80 Aws::String m_event;
81 bool m_eventPatternHasBeenSet = false;
82 bool m_eventHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace EventBridge
87} // namespace Aws
TestEventPatternRequest & WithEvent(EventT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EVENTBRIDGE_API TestEventPatternRequest()=default
virtual const char * GetServiceRequestName() const override
TestEventPatternRequest & WithEventPattern(EventPatternT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String