/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudWatchEvidently { namespace Model { /** */ class PutProjectEventsRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API PutProjectEventsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutProjectEvents"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline PutProjectEventsRequest& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline PutProjectEventsRequest& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline PutProjectEventsRequest& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

An array of event structures that contain the performance data that is being * sent to Evidently.

*/ inline PutProjectEventsRequest& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } /** *

The name or ARN of the project to write the events to.

*/ inline const Aws::String& GetProject() const{ return m_project; } /** *

The name or ARN of the project to write the events to.

*/ inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; } /** *

The name or ARN of the project to write the events to.

*/ inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; } /** *

The name or ARN of the project to write the events to.

*/ inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); } /** *

The name or ARN of the project to write the events to.

*/ inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); } /** *

The name or ARN of the project to write the events to.

*/ inline PutProjectEventsRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;} /** *

The name or ARN of the project to write the events to.

*/ inline PutProjectEventsRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;} /** *

The name or ARN of the project to write the events to.

*/ inline PutProjectEventsRequest& WithProject(const char* value) { SetProject(value); return *this;} private: Aws::Vector m_events; bool m_eventsHasBeenSet = false; Aws::String m_project; bool m_projectHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws