AWS SDK for C++  0.14.3
AWS SDK for C++
LookupEventsRequest.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
22 
23 namespace Aws
24 {
25 namespace CloudTrail
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::Vector<LookupAttribute>& GetLookupAttributes() const{ return m_lookupAttributes; }
46 
51  inline void SetLookupAttributes(const Aws::Vector<LookupAttribute>& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes = value; }
52 
57  inline void SetLookupAttributes(Aws::Vector<LookupAttribute>&& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes = value; }
58 
63  inline LookupEventsRequest& WithLookupAttributes(const Aws::Vector<LookupAttribute>& value) { SetLookupAttributes(value); return *this;}
64 
69  inline LookupEventsRequest& WithLookupAttributes(Aws::Vector<LookupAttribute>&& value) { SetLookupAttributes(value); return *this;}
70 
75  inline LookupEventsRequest& AddLookupAttributes(const LookupAttribute& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes.push_back(value); return *this; }
76 
81  inline LookupEventsRequest& AddLookupAttributes(LookupAttribute&& value) { m_lookupAttributesHasBeenSet = true; m_lookupAttributes.push_back(value); return *this; }
82 
88  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
89 
95  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
96 
102  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
103 
109  inline LookupEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
110 
116  inline LookupEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
117 
123  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
124 
130  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
131 
137  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
138 
144  inline LookupEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
145 
151  inline LookupEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
152 
157  inline int GetMaxResults() const{ return m_maxResults; }
158 
163  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
164 
169  inline LookupEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
170 
178  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
179 
187  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
188 
196  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
197 
205  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
206 
214  inline LookupEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
215 
223  inline LookupEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
224 
232  inline LookupEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
233 
234  private:
235  Aws::Vector<LookupAttribute> m_lookupAttributes;
236  bool m_lookupAttributesHasBeenSet;
237  Aws::Utils::DateTime m_startTime;
238  bool m_startTimeHasBeenSet;
239  Aws::Utils::DateTime m_endTime;
240  bool m_endTimeHasBeenSet;
241  int m_maxResults;
242  bool m_maxResultsHasBeenSet;
243  Aws::String m_nextToken;
244  bool m_nextTokenHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace CloudTrail
249 } // namespace Aws
LookupEventsRequest & WithNextToken(Aws::String &&value)
LookupEventsRequest & WithLookupAttributes(const Aws::Vector< LookupAttribute > &value)
void SetNextToken(const Aws::String &value)
LookupEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Vector< LookupAttribute > & GetLookupAttributes() const
LookupEventsRequest & WithLookupAttributes(Aws::Vector< LookupAttribute > &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::Utils::DateTime & GetStartTime() const
void SetEndTime(Aws::Utils::DateTime &&value)
LookupEventsRequest & WithNextToken(const Aws::String &value)
LookupEventsRequest & AddLookupAttributes(const LookupAttribute &value)
LookupEventsRequest & WithMaxResults(int value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
LookupEventsRequest & WithNextToken(const char *value)
LookupEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
LookupEventsRequest & AddLookupAttributes(LookupAttribute &&value)
LookupEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetLookupAttributes(const Aws::Vector< LookupAttribute > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDTRAIL_API
void SetLookupAttributes(Aws::Vector< LookupAttribute > &&value)
LookupEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).