AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
UpdateEventSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridgev2/EventBridgeV2Request.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10#include <aws/eventbridgev2/model/EventSourceConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EventBridgeV2 {
16namespace Model {
17
21 public:
22 AWS_EVENTBRIDGEV2_API UpdateEventSourceRequest() = 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 "UpdateEventSource"; }
29
30 AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override;
31
32 AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
36 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
37 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
38 template <typename EventSourceArnT = Aws::String>
39 void SetEventSourceArn(EventSourceArnT&& value) {
40 m_eventSourceArnHasBeenSet = true;
41 m_eventSourceArn = std::forward<EventSourceArnT>(value);
42 }
43 template <typename EventSourceArnT = Aws::String>
44 UpdateEventSourceRequest& WithEventSourceArn(EventSourceArnT&& value) {
45 SetEventSourceArn(std::forward<EventSourceArnT>(value));
46 return *this;
47 }
49
51
52 inline const EventSourceConfiguration& GetConfiguration() const { return m_configuration; }
53 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
54 template <typename ConfigurationT = EventSourceConfiguration>
55 void SetConfiguration(ConfigurationT&& value) {
56 m_configurationHasBeenSet = true;
57 m_configuration = std::forward<ConfigurationT>(value);
58 }
59 template <typename ConfigurationT = EventSourceConfiguration>
61 SetConfiguration(std::forward<ConfigurationT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_eventSourceArn;
83
84 EventSourceConfiguration m_configuration;
85
86 Aws::String m_description;
87 bool m_eventSourceArnHasBeenSet = false;
88 bool m_configurationHasBeenSet = false;
89 bool m_descriptionHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace EventBridgeV2
94} // namespace Aws
AWS_EVENTBRIDGEV2_API UpdateEventSourceRequest()=default
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEventSourceRequest & WithEventSourceArn(EventSourceArnT &&value)
UpdateEventSourceRequest & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
UpdateEventSourceRequest & WithConfiguration(ConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const EventSourceConfiguration & GetConfiguration() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String