AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
45 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
46 inline PutProjectEventsRequest& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
47 inline PutProjectEventsRequest& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
48 inline PutProjectEventsRequest& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
49 inline PutProjectEventsRequest& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
51
53
56 inline const Aws::String& GetProject() const{ return m_project; }
57 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
58 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
59 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
60 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
61 inline PutProjectEventsRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
62 inline PutProjectEventsRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
63 inline PutProjectEventsRequest& WithProject(const char* value) { SetProject(value); return *this;}
65 private:
66
67 Aws::Vector<Event> m_events;
68 bool m_eventsHasBeenSet = false;
69
70 Aws::String m_project;
71 bool m_projectHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudWatchEvidently
76} // namespace Aws
PutProjectEventsRequest & WithEvents(const Aws::Vector< Event > &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
PutProjectEventsRequest & WithProject(Aws::String &&value)
PutProjectEventsRequest & AddEvents(const Event &value)
PutProjectEventsRequest & WithProject(const Aws::String &value)
PutProjectEventsRequest & WithEvents(Aws::Vector< Event > &&value)
PutProjectEventsRequest & WithProject(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector