AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutLogEventsRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/logs/model/Entity.h>
12#include <aws/logs/model/InputLogEvent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatchLogs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHLOGS_API PutLogEventsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutLogEvents"; }
34
35 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
45 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
46 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
47 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
48 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
49 inline PutLogEventsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
50 inline PutLogEventsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
51 inline PutLogEventsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
53
55
58 inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
59 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
60 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
61 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
62 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
63 inline PutLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
64 inline PutLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
65 inline PutLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
67
69
72 inline const Aws::Vector<InputLogEvent>& GetLogEvents() const{ return m_logEvents; }
73 inline bool LogEventsHasBeenSet() const { return m_logEventsHasBeenSet; }
74 inline void SetLogEvents(const Aws::Vector<InputLogEvent>& value) { m_logEventsHasBeenSet = true; m_logEvents = value; }
75 inline void SetLogEvents(Aws::Vector<InputLogEvent>&& value) { m_logEventsHasBeenSet = true; m_logEvents = std::move(value); }
76 inline PutLogEventsRequest& WithLogEvents(const Aws::Vector<InputLogEvent>& value) { SetLogEvents(value); return *this;}
77 inline PutLogEventsRequest& WithLogEvents(Aws::Vector<InputLogEvent>&& value) { SetLogEvents(std::move(value)); return *this;}
78 inline PutLogEventsRequest& AddLogEvents(const InputLogEvent& value) { m_logEventsHasBeenSet = true; m_logEvents.push_back(value); return *this; }
79 inline PutLogEventsRequest& AddLogEvents(InputLogEvent&& value) { m_logEventsHasBeenSet = true; m_logEvents.push_back(std::move(value)); return *this; }
81
83
92 inline const Aws::String& GetSequenceToken() const{ return m_sequenceToken; }
93 inline bool SequenceTokenHasBeenSet() const { return m_sequenceTokenHasBeenSet; }
94 inline void SetSequenceToken(const Aws::String& value) { m_sequenceTokenHasBeenSet = true; m_sequenceToken = value; }
95 inline void SetSequenceToken(Aws::String&& value) { m_sequenceTokenHasBeenSet = true; m_sequenceToken = std::move(value); }
96 inline void SetSequenceToken(const char* value) { m_sequenceTokenHasBeenSet = true; m_sequenceToken.assign(value); }
97 inline PutLogEventsRequest& WithSequenceToken(const Aws::String& value) { SetSequenceToken(value); return *this;}
98 inline PutLogEventsRequest& WithSequenceToken(Aws::String&& value) { SetSequenceToken(std::move(value)); return *this;}
99 inline PutLogEventsRequest& WithSequenceToken(const char* value) { SetSequenceToken(value); return *this;}
101
103
106 inline const Entity& GetEntity() const{ return m_entity; }
107 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
108 inline void SetEntity(const Entity& value) { m_entityHasBeenSet = true; m_entity = value; }
109 inline void SetEntity(Entity&& value) { m_entityHasBeenSet = true; m_entity = std::move(value); }
110 inline PutLogEventsRequest& WithEntity(const Entity& value) { SetEntity(value); return *this;}
111 inline PutLogEventsRequest& WithEntity(Entity&& value) { SetEntity(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_logGroupName;
116 bool m_logGroupNameHasBeenSet = false;
117
118 Aws::String m_logStreamName;
119 bool m_logStreamNameHasBeenSet = false;
120
121 Aws::Vector<InputLogEvent> m_logEvents;
122 bool m_logEventsHasBeenSet = false;
123
124 Aws::String m_sequenceToken;
125 bool m_sequenceTokenHasBeenSet = false;
126
127 Entity m_entity;
128 bool m_entityHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace CloudWatchLogs
133} // namespace Aws
PutLogEventsRequest & AddLogEvents(const InputLogEvent &value)
PutLogEventsRequest & WithEntity(Entity &&value)
virtual const char * GetServiceRequestName() const override
PutLogEventsRequest & WithLogStreamName(const Aws::String &value)
PutLogEventsRequest & WithLogStreamName(const char *value)
PutLogEventsRequest & WithSequenceToken(const char *value)
void SetLogEvents(const Aws::Vector< InputLogEvent > &value)
PutLogEventsRequest & AddLogEvents(InputLogEvent &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutLogEventsRequest & WithLogGroupName(const char *value)
PutLogEventsRequest & WithLogEvents(const Aws::Vector< InputLogEvent > &value)
PutLogEventsRequest & WithLogGroupName(Aws::String &&value)
PutLogEventsRequest & WithLogStreamName(Aws::String &&value)
PutLogEventsRequest & WithSequenceToken(const Aws::String &value)
void SetLogEvents(Aws::Vector< InputLogEvent > &&value)
PutLogEventsRequest & WithEntity(const Entity &value)
PutLogEventsRequest & WithLogGroupName(const Aws::String &value)
PutLogEventsRequest & WithSequenceToken(Aws::String &&value)
const Aws::Vector< InputLogEvent > & GetLogEvents() const
PutLogEventsRequest & WithLogEvents(Aws::Vector< InputLogEvent > &&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