/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatchEvents { namespace Model { /** */ class PutEventsRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API PutEventsRequest(); // 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 "PutEvents"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline void SetEntries(const Aws::Vector& value) { m_entriesHasBeenSet = true; m_entries = value; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline void SetEntries(Aws::Vector&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& AddEntries(const PutEventsRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& AddEntries(PutEventsRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; } private: Aws::Vector m_entries; bool m_entriesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws