AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SubscribeToEventRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/InspectorEvent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Inspector {
16namespace Model {
17
21 public:
22 AWS_INSPECTOR_API SubscribeToEventRequest() = 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 "SubscribeToEvent"; }
29
30 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
40 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
41 template <typename ResourceArnT = Aws::String>
42 void SetResourceArn(ResourceArnT&& value) {
43 m_resourceArnHasBeenSet = true;
44 m_resourceArn = std::forward<ResourceArnT>(value);
45 }
46 template <typename ResourceArnT = Aws::String>
48 SetResourceArn(std::forward<ResourceArnT>(value));
49 return *this;
50 }
52
54
57 inline InspectorEvent GetEvent() const { return m_event; }
58 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
59 inline void SetEvent(InspectorEvent value) {
60 m_eventHasBeenSet = true;
61 m_event = value;
62 }
64 SetEvent(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
74 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
75 template <typename TopicArnT = Aws::String>
76 void SetTopicArn(TopicArnT&& value) {
77 m_topicArnHasBeenSet = true;
78 m_topicArn = std::forward<TopicArnT>(value);
79 }
80 template <typename TopicArnT = Aws::String>
82 SetTopicArn(std::forward<TopicArnT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_resourceArn;
88
90
91 Aws::String m_topicArn;
92 bool m_resourceArnHasBeenSet = false;
93 bool m_eventHasBeenSet = false;
94 bool m_topicArnHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Inspector
99} // namespace Aws
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SubscribeToEventRequest & WithResourceArn(ResourceArnT &&value)
SubscribeToEventRequest & WithEvent(InspectorEvent value)
AWS_INSPECTOR_API SubscribeToEventRequest()=default
AWS_INSPECTOR_API Aws::String SerializePayload() const override
SubscribeToEventRequest & WithTopicArn(TopicArnT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String