AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscribeToEventRequest.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector/model/InspectorEvent.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Inspector
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INSPECTOR_API SubscribeToEventRequest();
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 "SubscribeToEvent"; }
32
33 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
44 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
45 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
46 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
47 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
48 inline SubscribeToEventRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
49 inline SubscribeToEventRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
50 inline SubscribeToEventRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
52
54
57 inline const InspectorEvent& GetEvent() const{ return m_event; }
58 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
59 inline void SetEvent(const InspectorEvent& value) { m_eventHasBeenSet = true; m_event = value; }
60 inline void SetEvent(InspectorEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
61 inline SubscribeToEventRequest& WithEvent(const InspectorEvent& value) { SetEvent(value); return *this;}
62 inline SubscribeToEventRequest& WithEvent(InspectorEvent&& value) { SetEvent(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
70 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
71 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
72 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
73 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
74 inline SubscribeToEventRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
75 inline SubscribeToEventRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
76 inline SubscribeToEventRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
78 private:
79
80 Aws::String m_resourceArn;
81 bool m_resourceArnHasBeenSet = false;
82
83 InspectorEvent m_event;
84 bool m_eventHasBeenSet = false;
85
86 Aws::String m_topicArn;
87 bool m_topicArnHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Inspector
92} // namespace Aws
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SubscribeToEventRequest & WithTopicArn(const Aws::String &value)
SubscribeToEventRequest & WithResourceArn(Aws::String &&value)
SubscribeToEventRequest & WithEvent(InspectorEvent &&value)
SubscribeToEventRequest & WithEvent(const InspectorEvent &value)
AWS_INSPECTOR_API Aws::String SerializePayload() const override
SubscribeToEventRequest & WithTopicArn(const char *value)
SubscribeToEventRequest & WithTopicArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
SubscribeToEventRequest & WithResourceArn(const char *value)
SubscribeToEventRequest & WithResourceArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String