AWS SDK for C++  0.14.3
AWS SDK for C++
PutLogEventsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CloudWatchLogs
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
43 
47  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
48 
52  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
53 
57  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
58 
62  inline PutLogEventsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
63 
67  inline PutLogEventsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
68 
72  inline PutLogEventsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
73 
77  inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
78 
82  inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
83 
87  inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
88 
92  inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
93 
97  inline PutLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
98 
102  inline PutLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(value); return *this;}
103 
107  inline PutLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
108 
109 
110  inline const Aws::Vector<InputLogEvent>& GetLogEvents() const{ return m_logEvents; }
111 
112 
113  inline void SetLogEvents(const Aws::Vector<InputLogEvent>& value) { m_logEventsHasBeenSet = true; m_logEvents = value; }
114 
115 
116  inline void SetLogEvents(Aws::Vector<InputLogEvent>&& value) { m_logEventsHasBeenSet = true; m_logEvents = value; }
117 
118 
119  inline PutLogEventsRequest& WithLogEvents(const Aws::Vector<InputLogEvent>& value) { SetLogEvents(value); return *this;}
120 
121 
122  inline PutLogEventsRequest& WithLogEvents(Aws::Vector<InputLogEvent>&& value) { SetLogEvents(value); return *this;}
123 
124 
125  inline PutLogEventsRequest& AddLogEvents(const InputLogEvent& value) { m_logEventsHasBeenSet = true; m_logEvents.push_back(value); return *this; }
126 
127 
128  inline PutLogEventsRequest& AddLogEvents(InputLogEvent&& value) { m_logEventsHasBeenSet = true; m_logEvents.push_back(value); return *this; }
129 
134  inline const Aws::String& GetSequenceToken() const{ return m_sequenceToken; }
135 
140  inline void SetSequenceToken(const Aws::String& value) { m_sequenceTokenHasBeenSet = true; m_sequenceToken = value; }
141 
146  inline void SetSequenceToken(Aws::String&& value) { m_sequenceTokenHasBeenSet = true; m_sequenceToken = value; }
147 
152  inline void SetSequenceToken(const char* value) { m_sequenceTokenHasBeenSet = true; m_sequenceToken.assign(value); }
153 
158  inline PutLogEventsRequest& WithSequenceToken(const Aws::String& value) { SetSequenceToken(value); return *this;}
159 
164  inline PutLogEventsRequest& WithSequenceToken(Aws::String&& value) { SetSequenceToken(value); return *this;}
165 
170  inline PutLogEventsRequest& WithSequenceToken(const char* value) { SetSequenceToken(value); return *this;}
171 
172  private:
173  Aws::String m_logGroupName;
174  bool m_logGroupNameHasBeenSet;
175  Aws::String m_logStreamName;
176  bool m_logStreamNameHasBeenSet;
177  Aws::Vector<InputLogEvent> m_logEvents;
178  bool m_logEventsHasBeenSet;
179  Aws::String m_sequenceToken;
180  bool m_sequenceTokenHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace CloudWatchLogs
185 } // namespace Aws
PutLogEventsRequest & WithSequenceToken(const Aws::String &value)
PutLogEventsRequest & WithSequenceToken(Aws::String &&value)
PutLogEventsRequest & WithLogStreamName(Aws::String &&value)
PutLogEventsRequest & WithLogGroupName(const Aws::String &value)
void SetLogEvents(const Aws::Vector< InputLogEvent > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutLogEventsRequest & AddLogEvents(InputLogEvent &&value)
void SetLogEvents(Aws::Vector< InputLogEvent > &&value)
#define AWS_CLOUDWATCHLOGS_API
PutLogEventsRequest & WithSequenceToken(const char *value)
PutLogEventsRequest & WithLogGroupName(Aws::String &&value)
PutLogEventsRequest & WithLogEvents(const Aws::Vector< InputLogEvent > &value)
PutLogEventsRequest & AddLogEvents(const InputLogEvent &value)
const Aws::Vector< InputLogEvent > & GetLogEvents() const
PutLogEventsRequest & WithLogStreamName(const Aws::String &value)
PutLogEventsRequest & WithLogEvents(Aws::Vector< InputLogEvent > &&value)
PutLogEventsRequest & WithLogStreamName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutLogEventsRequest & WithLogGroupName(const char *value)
JSON (JavaScript Object Notation).