/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class ListImportFailuresResult { public: AWS_CLOUDTRAIL_API ListImportFailuresResult(); AWS_CLOUDTRAIL_API ListImportFailuresResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API ListImportFailuresResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains information about the import failures.

*/ inline const Aws::Vector& GetFailures() const{ return m_failures; } /** *

Contains information about the import failures.

*/ inline void SetFailures(const Aws::Vector& value) { m_failures = value; } /** *

Contains information about the import failures.

*/ inline void SetFailures(Aws::Vector&& value) { m_failures = std::move(value); } /** *

Contains information about the import failures.

*/ inline ListImportFailuresResult& WithFailures(const Aws::Vector& value) { SetFailures(value); return *this;} /** *

Contains information about the import failures.

*/ inline ListImportFailuresResult& WithFailures(Aws::Vector&& value) { SetFailures(std::move(value)); return *this;} /** *

Contains information about the import failures.

*/ inline ListImportFailuresResult& AddFailures(const ImportFailureListItem& value) { m_failures.push_back(value); return *this; } /** *

Contains information about the import failures.

*/ inline ListImportFailuresResult& AddFailures(ImportFailureListItem&& value) { m_failures.push_back(std::move(value)); return *this; } /** *

A token you can use to get the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A token you can use to get the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

A token you can use to get the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

A token you can use to get the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

A token you can use to get the next page of results.

*/ inline ListImportFailuresResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A token you can use to get the next page of results.

*/ inline ListImportFailuresResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A token you can use to get the next page of results.

*/ inline ListImportFailuresResult& 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 ListImportFailuresResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListImportFailuresResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListImportFailuresResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_failures; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws