AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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