AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutEventsRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/eventbridge/model/PutEventsRequestEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EventBridge
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EVENTBRIDGE_API PutEventsRequest();
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 "PutEvents"; }
33
34 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
35
36 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
41 AWS_EVENTBRIDGE_API EndpointParameters GetEndpointContextParams() const override;
42
44
49 inline const Aws::Vector<PutEventsRequestEntry>& GetEntries() const{ return m_entries; }
50 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
51 inline void SetEntries(const Aws::Vector<PutEventsRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
52 inline void SetEntries(Aws::Vector<PutEventsRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
53 inline PutEventsRequest& WithEntries(const Aws::Vector<PutEventsRequestEntry>& value) { SetEntries(value); return *this;}
54 inline PutEventsRequest& WithEntries(Aws::Vector<PutEventsRequestEntry>&& value) { SetEntries(std::move(value)); return *this;}
55 inline PutEventsRequest& AddEntries(const PutEventsRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
56 inline PutEventsRequest& AddEntries(PutEventsRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
58
60
66 inline const Aws::String& GetEndpointId() const{ return m_endpointId; }
67 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
68 inline void SetEndpointId(const Aws::String& value) { m_endpointIdHasBeenSet = true; m_endpointId = value; }
69 inline void SetEndpointId(Aws::String&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::move(value); }
70 inline void SetEndpointId(const char* value) { m_endpointIdHasBeenSet = true; m_endpointId.assign(value); }
71 inline PutEventsRequest& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;}
72 inline PutEventsRequest& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;}
73 inline PutEventsRequest& WithEndpointId(const char* value) { SetEndpointId(value); return *this;}
75 private:
76
78 bool m_entriesHasBeenSet = false;
79
80 Aws::String m_endpointId;
81 bool m_endpointIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace EventBridge
86} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEndpointId(const Aws::String &value)
PutEventsRequest & AddEntries(PutEventsRequestEntry &&value)
PutEventsRequest & WithEntries(const Aws::Vector< PutEventsRequestEntry > &value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
PutEventsRequest & WithEndpointId(const Aws::String &value)
AWS_EVENTBRIDGE_API EndpointParameters GetEndpointContextParams() const override
const Aws::String & GetEndpointId() const
PutEventsRequest & WithEntries(Aws::Vector< PutEventsRequestEntry > &&value)
virtual const char * GetServiceRequestName() const override
PutEventsRequest & AddEntries(const PutEventsRequestEntry &value)
void SetEntries(const Aws::Vector< PutEventsRequestEntry > &value)
PutEventsRequest & WithEndpointId(const char *value)
PutEventsRequest & WithEndpointId(Aws::String &&value)
const Aws::Vector< PutEventsRequestEntry > & GetEntries() const
void SetEntries(Aws::Vector< PutEventsRequestEntry > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector