/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains a response to a LookupEvents action.See Also:
AWS
* API Reference
A list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline const Aws::VectorA list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline void SetEvents(const Aws::VectorA list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline void SetEvents(Aws::VectorA list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline LookupEventsResult& WithEvents(const Aws::VectorA list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline LookupEventsResult& WithEvents(Aws::VectorA list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline LookupEventsResult& AddEvents(const Event& value) { m_events.push_back(value); return *this; } /** *A list of events returned based on the lookup attributes specified and the * CloudTrail event. The events list is sorted by time. The most recent event is * listed first.
*/ inline LookupEventsResult& AddEvents(Event&& value) { m_events.push_back(std::move(value)); return *this; } /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline LookupEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline LookupEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *The token to use to get the next page of results after a previous API call. * If the token does not appear, there are no more results to return. The token * must be passed in with the same parameters as the previous call. For example, if * the original call specified an AttributeKey of 'Username' with a value of * 'root', the call with NextToken should include those same parameters.
*/ inline LookupEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline LookupEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline LookupEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline LookupEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector