AWS SDK for C++  0.12.9
AWS SDK for C++
GetLogEventsResult.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
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CloudWatchLogs
34 {
35 namespace Model
36 {
38  {
39  public:
43 
44 
45  inline const Aws::Vector<OutputLogEvent>& GetEvents() const{ return m_events; }
46 
47 
48  inline void SetEvents(const Aws::Vector<OutputLogEvent>& value) { m_events = value; }
49 
50 
51  inline void SetEvents(Aws::Vector<OutputLogEvent>&& value) { m_events = value; }
52 
53 
54  inline GetLogEventsResult& WithEvents(const Aws::Vector<OutputLogEvent>& value) { SetEvents(value); return *this;}
55 
56 
57  inline GetLogEventsResult& WithEvents(Aws::Vector<OutputLogEvent>&& value) { SetEvents(value); return *this;}
58 
59 
60  inline GetLogEventsResult& AddEvents(const OutputLogEvent& value) { m_events.push_back(value); return *this; }
61 
62 
63  inline GetLogEventsResult& AddEvents(OutputLogEvent&& value) { m_events.push_back(value); return *this; }
64 
65 
66  inline const Aws::String& GetNextForwardToken() const{ return m_nextForwardToken; }
67 
68 
69  inline void SetNextForwardToken(const Aws::String& value) { m_nextForwardToken = value; }
70 
71 
72  inline void SetNextForwardToken(Aws::String&& value) { m_nextForwardToken = value; }
73 
74 
75  inline void SetNextForwardToken(const char* value) { m_nextForwardToken.assign(value); }
76 
77 
78  inline GetLogEventsResult& WithNextForwardToken(const Aws::String& value) { SetNextForwardToken(value); return *this;}
79 
80 
81  inline GetLogEventsResult& WithNextForwardToken(Aws::String&& value) { SetNextForwardToken(value); return *this;}
82 
83 
84  inline GetLogEventsResult& WithNextForwardToken(const char* value) { SetNextForwardToken(value); return *this;}
85 
86 
87  inline const Aws::String& GetNextBackwardToken() const{ return m_nextBackwardToken; }
88 
89 
90  inline void SetNextBackwardToken(const Aws::String& value) { m_nextBackwardToken = value; }
91 
92 
93  inline void SetNextBackwardToken(Aws::String&& value) { m_nextBackwardToken = value; }
94 
95 
96  inline void SetNextBackwardToken(const char* value) { m_nextBackwardToken.assign(value); }
97 
98 
99  inline GetLogEventsResult& WithNextBackwardToken(const Aws::String& value) { SetNextBackwardToken(value); return *this;}
100 
101 
102  inline GetLogEventsResult& WithNextBackwardToken(Aws::String&& value) { SetNextBackwardToken(value); return *this;}
103 
104 
105  inline GetLogEventsResult& WithNextBackwardToken(const char* value) { SetNextBackwardToken(value); return *this;}
106 
107  private:
109  Aws::String m_nextForwardToken;
110  Aws::String m_nextBackwardToken;
111  };
112 
113 } // namespace Model
114 } // namespace CloudWatchLogs
115 } // namespace Aws
const Aws::Vector< OutputLogEvent > & GetEvents() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetLogEventsResult & WithNextForwardToken(const char *value)
GetLogEventsResult & WithEvents(const Aws::Vector< OutputLogEvent > &value)
GetLogEventsResult & WithNextForwardToken(const Aws::String &value)
GetLogEventsResult & WithEvents(Aws::Vector< OutputLogEvent > &&value)
#define AWS_CLOUDWATCHLOGS_API
GetLogEventsResult & WithNextBackwardToken(const char *value)
void SetNextForwardToken(const Aws::String &value)
const Aws::String & GetNextForwardToken() const
GetLogEventsResult & WithNextBackwardToken(const Aws::String &value)
void SetEvents(Aws::Vector< OutputLogEvent > &&value)
GetLogEventsResult & WithNextBackwardToken(Aws::String &&value)
void SetNextBackwardToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetLogEventsResult & AddEvents(OutputLogEvent &&value)
void SetEvents(const Aws::Vector< OutputLogEvent > &value)
const Aws::String & GetNextBackwardToken() const
GetLogEventsResult & AddEvents(const OutputLogEvent &value)
GetLogEventsResult & WithNextForwardToken(Aws::String &&value)
JSON (JavaScript Object Notation).