AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutProjectEventsRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/evidently/model/Event.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchEvidently
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHEVIDENTLY_API PutProjectEventsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutProjectEvents"; }
33
34 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
43 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
44 template<typename EventsT = Aws::Vector<Event>>
45 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
46 template<typename EventsT = Aws::Vector<Event>>
47 PutProjectEventsRequest& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
48 template<typename EventsT = Event>
49 PutProjectEventsRequest& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
51
53
56 inline const Aws::String& GetProject() const { return m_project; }
57 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
58 template<typename ProjectT = Aws::String>
59 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
60 template<typename ProjectT = Aws::String>
61 PutProjectEventsRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
63 private:
64
65 Aws::Vector<Event> m_events;
66 bool m_eventsHasBeenSet = false;
67
68 Aws::String m_project;
69 bool m_projectHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace CloudWatchEvidently
74} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
PutProjectEventsRequest & WithProject(ProjectT &&value)
PutProjectEventsRequest & WithEvents(EventsT &&value)
AWS_CLOUDWATCHEVIDENTLY_API PutProjectEventsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector